vike's GTA2 update patch enhancement upgrade fix v11.44

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
Hippox77
Mugger
Mugger
Posts: 11
Joined: 04 Nov 2012, 20:48

Re: Vike's enhanced GTA2

Post by Hippox77 »

Sektor wrote:I knew there must be some other program for slowing the frame rate. Fraps can do it but only when recording video, so that wasn't very practical. Now is there a frame rate tool that works on ATI and other video cards?
Yeah. Well, this enforces it on the driver level, though. It works in all games, even DirectDraw games.

You cannot do it on a driver level with ATI, no. But there's MSI Afterburner that works in quite well in DirectX games, at least, but it might not be as stable, not sure, though.

On a unrelated side note:

There isn't any known way to disable auto aim in this game, right?
User avatar
Vike the Hube
Hitman
Hitman
Posts: 145
Joined: 28 Feb 2010, 22:34
GH nick: vike

Re: Vike's enhanced GTA2

Post by Vike the Hube »

Auto aim? You mean on the two guns in the game that have it? :P
Hippox77
Mugger
Mugger
Posts: 11
Joined: 04 Nov 2012, 20:48

Re: Vike's enhanced GTA2

Post by Hippox77 »

Vike the Hube wrote:Auto aim? You mean on the two guns in the game that have it? :P
Yeah, well, I thought it'd be slightly cooler without it on those guns. Not a huge turn-off by any means, though. :)
Rick
Car Jacker
Car Jacker
Posts: 33
Joined: 29 Jan 2012, 18:56
GH nick: Sequential

Re: Vike's enhanced GTA2

Post by Rick »

Already read it here but this one would be nice indeed:
:arrow: Possibility to uncheck "Show Playernames" function for every player for new gaming possibilities
:arrow: Selectable dusk or noon setting for all Players
May be these can also be done via GH.

:arrow: REPAIR_CAR (carname) command for the script
Would be sufficient if done like in the shops too, with scripted cars the remap could also be reset with the next command line.

:arrow: larger raw file support. The maximum size of a raw file is limited to 6MB - just 2 more MegaBytes would be epic!

And one more - we already talked about in GH - wich would be probably the biggest pain in the ass:
:arrow: keys (for example the number keys) wich trigger soundfiles inside the raw file and play
them back at the players local position (useful for commands like "Follow Me!" or at least more variety in burp and fart sounds :D )
If at least a key detection is easy to implement this would be awesome for scripters too, right now the only way to trigger events
(by button!) is pressing a horn.
User avatar
elypter
Immortal
Posts: 1120
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: Vike's enhanced GTA2

Post by elypter »

Rick wrote: :arrow: REPAIR_CAR (carname) command for the script
Would be sufficient if done like in the shops too, with scripted cars the remap could also be reset with the next command line.
a command like this already exists or was planned, it's just not working, just like SET_NO_COLLIDE_OFF(or what it was called)
yur sa'nok ngeyä
User avatar
Salamander
Janitor
Janitor
Posts: 145
Joined: 01 Apr 2009, 20:38
GH nick: Salamander
KingSalamander
Sally
[00]
Contact:

Re: Vike's enhanced GTA2

Post by Salamander »

Vike can I set the player's GTA2 name (the one you'd set in the Network GTA2 window) in any other way?
Perhaps via command line, the same way you'd specify the replay file:

Code: Select all

gta2.exe -r foo.rep -n Hubert
or via the registry:

Code: Select all

cat <<EOF > /tmp/gta2reg.reg
	[HKEY_CURRENT_USER\Software\DMA Design Ltd\GTA2\Network]
	"PlayerName"="${players[$nick]}"
EOF
	wine regedit /tmp/gta2reg.reg
I was hoping the registry one would work, but neither does.
I need to automate this so I can easily loop over an array of nicks and replay files when recording them to video.
User avatar
Sektor
Boss
Boss
Posts: 1423
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: Vike's enhanced GTA2

Post by Sektor »

There's no command line setting player name. You have to change names in the registry before launching each instance of GTA2.

There's also no command for repairing vehicles or restoring player health.
Rick
Car Jacker
Car Jacker
Posts: 33
Joined: 29 Jan 2012, 18:56
GH nick: Sequential

Re: Vike's enhanced GTA2

Post by Rick »

Sure there are none - it´s a wish list.
I thought to access the check box in the gtamanager network section would be the easiest of them.
But of course i don´t know which ones are possible and worth considering - for me they all are.
I read about the hard work here...
Is it still worth to ask Rockstar for the code? - I didn´t do it yet.
User avatar
Salamander
Janitor
Janitor
Posts: 145
Joined: 01 Apr 2009, 20:38
GH nick: Salamander
KingSalamander
Sally
[00]
Contact:

Re: Vike's enhanced GTA2

Post by Salamander »

Sektor wrote:There's no command line setting player name. You have to change names in the registry before launching each instance of GTA2.
Is it the key I wrote? I checked in the GH code and it seems to be that one, and my script does update it with a different nick before running each GTA2 instance, but it has no effect. I don't get why not. Communists?
User avatar
Sektor
Boss
Boss
Posts: 1423
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: Vike's enhanced GTA2

Post by Sektor »

That's the right key. Something must be wrong with your script or timing.
User avatar
Vike the Hube
Hitman
Hitman
Posts: 145
Joined: 28 Feb 2010, 22:34
GH nick: vike

Re: Vike's enhanced GTA2

Post by Vike the Hube »

Definitely communists :P

Yeah most of these things we've discussed before. At some point I'm planning on collecting together all the "Game options" (like car spawn settings, game speed, dusk, player names, blah blah there's heaps) and sticking them in options in the lobby. But it's surprisingly annoying. I know where the dialogs are in the code so I can add more controls, but then I have to write a buttload of code to hand the dialog procedure. And somehow hook in to how it currently propagates settings across the network, that's the hardest part. It's most cuz it's a much larger block of work than I normally do that I haven't yet.

I don't think Rockstar will ever release the source code cuz they're probably worried it will compete with future products... e.g. if someone ported it to mobile. But there's no harm in asking, you never know, it might work [jailfree]
User avatar
elypter
Immortal
Posts: 1120
Joined: 26 Dec 2009, 23:53
GH nick: elypter

Re: Vike's enhanced GTA2

Post by elypter »

i don't know any of the assembler tools but maybe it is possible to write the required code in c and let the ide do the compilation and merging.
yur sa'nok ngeyä
User avatar
Vike the Hube
Hitman
Hitman
Posts: 145
Joined: 28 Feb 2010, 22:34
GH nick: vike

Re: Vike's enhanced GTA2

Post by Vike the Hube »

My dad said the same thing a few days ago actually. But unfortunately no, I can't. Besides the fact I'd have to copy it into the exe and wire it in, I need access to addresses- for memory access, but also for code calls. Pretty annoying. Assembly's not too bad, it's actually the interactions with the gta2 code that is the harder part.

ONE OF THESE DAYS, THOUGH
User avatar
Pyro
Immortal
Posts: 414
Joined: 17 Mar 2010, 04:07
GH nick: Pyro
Location: Wales, UK

Re: Vike's enhanced GTA2

Post by Pyro »

Any word of maybe getting Gun Jeep's to use same controls/code as tanks to make NPC's use the gun? *shifty eyes* :P
User avatar
Sektor
Boss
Boss
Posts: 1423
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: Vike's enhanced GTA2

Post by Sektor »

NPCs use the gunjeep gun on Dafe's Death Valley but you can't order them to fire at a specific object like you can with a tank.
CarThief
Hitman
Hitman
Posts: 108
Joined: 19 May 2012, 18:12
GH nick: CarThief
Location: Holland, AKA The Netherlands

Re: Vike's enhanced GTA2

Post by CarThief »

I've been wondering, is there any list of command line inputs one can use for gta2.exe? As i havent been able to find any. Or something similar to that, in any case, as i've been wondering if its possible to make a .bat or something similar to have GTA2 run a specific gmp, sty, scr and possibily gxt file in singleplayer.

Would be quite handy for testing and for if i ever manage to release the singleplayer project i'm working on people dont have to fiddle as much with the manager to play a custom singleplayer map. Hm, and is it possible to even have a custom gxt file for singleplayer at all?
Figured i'd ask here considering its about the game/engine itself. Considering the manager can do these functions it doesnt sound very hard to implement these, if they arent already there.
User avatar
Sektor
Boss
Boss
Posts: 1423
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: Vike's enhanced GTA2

Post by Sektor »

The command line options are in this FAQ: http://gtamp.com/faq

Custom singleplayer GXT isn't supported yet (other than overwriting e.gxt or starting in network mode). It's on Vike's todo list.

GTA2 doesn't have any command line to specify GMP/STY/SCR/savegame but I could make an EXE that writes those to the registry or you could include carthief.reg file with your map and a bat file that runs regedit /s carthief.reg.
CarThief
Hitman
Hitman
Posts: 108
Joined: 19 May 2012, 18:12
GH nick: CarThief
Location: Holland, AKA The Netherlands

Re: Vike's enhanced GTA2

Post by CarThief »

Yeah would have been nice if custom gxt's where available the same way you can set different gmp, sty and scr files, saves having to manually swap e.gxt all the time.

I'm a bit confused about the whole regedit though, would editing/overwriting the registry mean values like what map, sty and scr is selected in the manager would be overwritten, or something similar but deeper like in the .seq file that handles singleplayer if i recall correctly?
Would like to know what exactly that does before trying anything like that, as i'm not that familiar with the registry and such. :P

Just hope the end result of such is that it runs GTA2 with those files, and hopefully has no significant drawbacks.
User avatar
Sektor
Boss
Boss
Posts: 1423
Joined: 04 Mar 2008, 06:51
GH nick: Sektor
Location: GTAMP.com
Contact:

Re: Vike's enhanced GTA2

Post by Sektor »

You can create these .reg files in notepad, just make sure you save them with the reg extension and not filename.reg.txt. Import into the registry by running:

regedit /s carthief.reg

carthief.reg

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\DMA Design Ltd\GTA2\Debug]
"bob_debug_display"=dword:00000001
"mapname"="carthief.gmp"
"scriptname"="carthief.scr"
"stylename"="carthief.sty"
"savename"=""
"skip_frontend"=dword:00000000
Drawback? Running gta2.exe will always start on your map but you can disable "skip frontend" by importing the following file:

carthief-undo.reg

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\DMA Design Ltd\GTA2\Debug]
"skip_frontend"=-
That will allow the normal GTA2 frontend to load. The - means delete that key value.
User avatar
Vike the Hube
Hitman
Hitman
Posts: 145
Joined: 28 Feb 2010, 22:34
GH nick: vike

Re: Vike's enhanced GTA2

Post by Vike the Hube »

The registry is what the manager uses. You can think of the registry as a fancy config file [jailfree] So by using the registry stuff Sektor has provided you're automating the process of using the manager to do it. Personally, in your batch file, I would import the first one, run gta2, then import the second once gta2 has exited. That way it's neat and self contained and doesn't mess with the rest of the player's gta2.
Post Reply