Page 1 of 1

gta.exe command line args

Posted: 22 Sep 2009, 08:28
by Shazdeh
Sektor's tank script was a real fun. I tried it with different maps but anytime I want to play with different map (or script) I have to open test1.seq, edit it, relaunch the game. Is there a better way? I know power manager can do that but it works only for that time that you launch it.
I was thinking if theres command-line args to launch the game directly with a particular script and map. This way I can make my own batch files or better, make an app that have this "states" in it...

Re: gta.exe command line args

Posted: 22 Sep 2009, 08:42
by Sektor
There's no command line arguments for maps but it can be set in the registry.

You can use this GTA2 launcher to run MMP files in singleplayer. I need to update it sometime. Add more cheat/debug options and make it disable skipping of frontend when you exit it. You can disable that with power manager. I could make a command line version of that app.

If you want a map to show up in that list, you need to make an MMP file. Open some of the existing ones with notepad and you will see it's very simple.

Re: gta.exe command line args

Posted: 23 Sep 2009, 16:32
by Shazdeh
It was exactly what I was looking for. How does it work?

Re: gta.exe command line args

Posted: 23 Sep 2009, 23:30
by Sektor
It writes to this registry key:

hklm\software\dma design ltd\gta2\Debug\

scriptName = test.scr
mapName = test.gmp
styleName = test.sty
skip_frontend = 0

If gta2.exe finds those keys, it skips the frontend and runs that map.