Page 15 of 15

Re: GTA2 ScriptPad

Posted: 24 Dec 2015, 02:54
by Sektor
B-$hep wrote:compiler.dll source is included.
How i could fix the long filenames bug then??
Which file is it? I'm not very familiar with pascal but I was expecting it to be named compiler.* since that was the dll filename.

These are the files included with mispad source:
GMP.DCU
gmp_records.dcu
gmp_records.pas
gta2mispad.~dp
gta2mispad.~ds
gta2mispad.cfg
gta2mispad.dof
gta2mispad.dpr
gta2mispad.dsk
gta2mispad.res
gta2token.bmp
Project2.dsk
TokenRecy.dcu
TokenRecy.pas
tokensystem.psp
u_run.~df
u_run.~pa
u_run.dcu
u_run.dfm
u_run.pas
Unit1.~df
Unit1.~pa
Unit1.dcu
Unit1.dfm
Unit1.pas
B-$hep wrote: In my compiler, compiling from command line is supported.
In Scriptpad? How? I tried passing it a filename but it just opens it, it doesn't compile it.

Re: GTA2 ScriptPad

Posted: 24 Dec 2015, 09:28
by B-$hep
gta1-gta2-tool-source-code.7z\GTA2\mis Pad\dll wrapper

its inside "dll wrapper" folder. Compiler.dpr has dll source.





Compiling from command line..
I meant in very new compiler command line.
In Scriptpad it just opens it, like you said. Because when i made this i didnt see the need for compiling from commandline.

Re: GTA2 ScriptPad

Posted: 19 Oct 2025, 21:15
by _L1pE_
Sektor wrote: 09 Nov 2011, 12:29 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
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.
Sorry for necro but I gotta say that this compiler should be on the tools page. It actually has a size limit of ~65k.

Re: GTA2 ScriptPad

Posted: 03 Nov 2025, 12:16
by JernejL
B-$hep wrote: 24 Dec 2015, 09:28 gta1-gta2-tool-source-code.7z\GTA2\mis Pad\dll wrapper

its inside "dll wrapper" folder. Compiler.dpr has dll source.

Scriptpad relies on a modified compiler to load file it takes from registry key that editor sets.

Fixed / upgraded compiler could be used to do same. just needs hex editor to change dll it loads to load my wrapper-