GTA2 ScriptPad

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
User avatar
Sektor
Boss
Boss
Posts: 1449
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: GTA2 ScriptPad

Post by Sektor »

Ctrl+c (copy) and Ctrl+x (cut) hotkeys don't work in v2.0.3.19. I really miss them.
Can you make compile & run button use the last "run" options, so it's a one click button?
User avatar
Sektor
Boss
Boss
Posts: 1449
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: GTA2 ScriptPad

Post by Sektor »

This version of the compiler can compile main scripts that are around 55k instead of 45k. That's at least 400 extra of the largest commands.
compiler.7z
This version of the compiler supports slightly larger mis files.
(142.39 KiB) Downloaded 894 times
Thanks to T.M. for figuring out that GTA2 worked with larger scripts and only missed the magic number by 8. Thanks to Vike for finding the magic number. Thanks to Jernej for mispad. Thanks to B-$hep for Scriptpad. Thanks to DAFE for making a really massive script (DDV) that wasn't just a test script. Thanks to DMA Design for making GTA2.

Replace compiler.exe in scriptpad\compiler folder.
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: GTA2 ScriptPad

Post by T.M. »

Epic.

The bad thing is that you cant have more than 6000 (-1) commands used, and the compiler wont tell you this! i managed to create over 6000 commands, but the exceeding commands will be lost: therefore the script will not have LEVELEND code in reach at all (it can still be in the script data, but gta2 cant execute the command since pointers are missing).
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 ScriptPad

Post by B-$hep »

Sektor, in your homepage you say that it's modified version of Jernejs mispad.

It's not. I rewrote it from scratch, because i didn't like the coding style and many things in there.
It worked but was pretty ugly.

So it's basically new product. Even if i used some code pieces, it's not modification.
I rewrote it from 0, very very few pieces of code are borrowed from mispad src.
Biggest one was handling of jernejs modified miss2.exe or whatever the compiler name was.

I don't like that word in there: modified.

Partially based on Mispad is better.
Always wear safety glasses while programming.
User avatar
Sektor
Boss
Boss
Posts: 1449
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: GTA2 ScriptPad

Post by Sektor »

Changed to "GTA2 ScriptPad - GTA2 mission editor and compiler. Created by B-$hep (partially based on mispad)".
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 ScriptPad

Post by B-$hep »

Fine.

You saw yourself probably, that i included lot's of stuff: syntax colors, code completion, parameters hints etc. I didn't rewrote them from anybody.
Always wear safety glasses while programming.
User avatar
Sektor
Boss
Boss
Posts: 1449
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: GTA2 ScriptPad

Post by Sektor »

Sektor wrote:Ctrl+c (copy) and Ctrl+x (cut) hotkeys don't work in v2.0.3.19. I really miss them.

Can you make compile & run button use the last "run" options, so it's a one click button?
Reminder.
Jones
Psycho
Psycho
Posts: 51
Joined: 08 Aug 2012, 21:25

Re: GTA2 ScriptPad

Post by Jones »

Would be nice if File->Open remembers the last used path or you could set a default path.
Concerning Sektor's request, maybe allowing users opening mmp files so it extract the run options from it?
BenMillard
Immortal
Posts: 890
Joined: 16 May 2009, 06:14
GH nick: BenMillard
Location: London, UK
Contact:

Re: GTA2 ScriptPad

Post by BenMillard »

Sektor wrote:This has the classic Delphi Induc virus. I cleaned it and attached cleaned file. There were 10 downloads before that. It is a harmless virus that just adds 5kB to the exe. It can only spread if you have Delphi 4 or 7 installed and you compile with it.
I ran a full scan using Microsoft Security Essentials this evening. Turns out I had an archived copy of ScriptPad and it contained the virus. AVG hadn't picked this up before.

I allowed the scan to remove the affected file because the new version seems fine.

Microsoft's description of Virus: Win32/Induc.A.
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: GTA2 ScriptPad

Post by T.M. »

I cant even download this, i get this warning:
epic.png
epic.png (14.94 KiB) Viewed 37828 times
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 ScriptPad

Post by B-$hep »

There are no viruses. I never send or attach viruses to my exes.
But i very often pack my exes with UPX to make them smaller. But it seems that today nobody cares about size so i will stop UPXing my exes and DLL's.
This should stop these damn virus alerts.
Always wear safety glasses while programming.
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: GTA2 ScriptPad

Post by T.M. »

B-$hep wrote:There are no viruses. I never send or attach viruses to my exes.
But i very often pack my exes with UPX to make them smaller. But it seems that today nobody cares about size so i will stop UPXing my exes and DLL's.
This should stop these damn virus alerts.
If you watch the screenshot i sent, it shows it has unpacked the file, (see the .dll file it reports). So it wont help at all even if you dont use UPX.

You never send or attach viruses, isnt a valid point. We have seen before you sharing infected files because you got a virus on your computer. So, saying you dont share them intentionally, doesnt mean your files cannot contain viruses!
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: GTA2 ScriptPad

Post by B-$hep »

Basically you are saying that i know my files are infected and im spreading viruses to guys here.
Is this what you are trying to say here?

I wont post anything here anyway anymore. Sektor can delete all the attached files and topics if he wants.
But im not spreading anything, if the files are indeed infected either Induc.A or anything, i didn't know about that and im sorry.
Always wear safety glasses while programming.
User avatar
Sektor
Boss
Boss
Posts: 1449
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: GTA2 ScriptPad

Post by Sektor »

B-$hep wrote:Basically you are saying that i know my files are infected and im spreading viruses to guys here.
Is this what you are trying to say here?
No one said that.
B-$hep wrote:I wont post anything here anyway anymore. Sektor can delete all the attached files and topics if he wants.
But im not spreading anything, if the files are indeed infected either Induc.A or anything, i didn't know about that and im sorry.
Why is your first reaction to anything slightly negative to quit and take all your files with you? Your work is used and appreciated but if you release any software, you are going to get some requests and constructive criticism. If virus scanners show infected, false or not, people should and will report it, so something can be done about it.
User avatar
T.M.
Immortal
Posts: 960
Joined: 29 Jan 2010, 15:00
Location: F21B3EED

Re: GTA2 ScriptPad

Post by T.M. »

Sektor wrote:If virus scanners show infected, false or not, people should and will report it, so something can be done about it.
Yes. And i am not going to download or execute any file which my antivirus says is infected! In fact, i cant even download it, because Avast! is blocking the download. Most probably i wouldnt even be able to run them either.
User avatar
Sektor
Boss
Boss
Posts: 1449
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: GTA2 ScriptPad

Post by Sektor »

I removed Delphi.Induc from the GTA2ScriptPad-28-05-2011.7z attachment in first post and reuploaded. I think it was really infected but fortunately it can only spread if you have Delphi installed and compile with it.
Jones
Psycho
Psycho
Posts: 51
Joined: 08 Aug 2012, 21:25

Re: Illegal Objects

Post by Jones »

B-$hep wrote:Galactic Boy

Thank you very much, for using my ScriptPad.
At least somebody uses that.
He is not the only one ;) Do you have any plans on doing a upgrade? At least fixing critical bugs like the missing Ctrl+c functionality?
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: Illegal Objects

Post by B-$hep »

I will.
Let me find the sourcecode.
I have big mess on my HDD, not easy to find everything quickly.
Always wear safety glasses while programming.
CarThief
Hitman
Hitman
Posts: 108
Joined: 19 May 2012, 18:12
GH nick: CarThief
Location: Holland, AKA The Netherlands

Re: Illegal Objects

Post by CarThief »

if its any usefull feedback: As far as i remember i never really gotten to like the scriptpad, as both the white and black(or atleast white) background themes somehow clash with the color-coded lines of code, like yellow is AWFUL when used in conjunction with white, and other combinations of both light text and background color. Or so that was the pretty long-ago last time i tried to use it.

That and i'm just not quite used to a black background for scripts, almost all things i worked with use white, perhaps it helps to have white-friendly colors for the keywords and such if white background is enabled? Or maybe even let people choose their own color for specific types of keywords in the code?
Think i'll stick to good ol mispad in the end but this might help others alot more, if the issue is still there. Coding's all about observation after all, if that part does badly coding's a big pain in the ass.
User avatar
B-$hep
Immortal
Posts: 584
Joined: 24 Apr 2009, 21:43
GH nick: B-Shep
Location: EU

Re: Illegal Objects

Post by B-$hep »

Pardon me, but doesn't this include a possibility to change color theme?
I don't remember if that version has options dialog, where you can choose color theme.
One is black and white and one is colormode (with lots of colors).

I really don't remember, maybe the older version has this.
Always wear safety glasses while programming.
Post Reply