How can I change the vehicle data script settings?

Anything to do with GTA1/GTA2 modding (tools, scripts and more).
Post Reply
dltmdwns156
Jaywalker
Jaywalker
Posts: 9
Joined: 01 Jun 2025, 07:51

How can I change the vehicle data script settings?

Post by dltmdwns156 »

Hello? I asked you a question about changing the GTA2 car settings
1. Is there a way to add a vehicle weapon to a regular vehicle?
2. Is there a way for a normal vehicle to be immune to bullets, flamethrowers, electric shockers, etc. like tanks?
3. Is there a way to add a setting where a normal vehicle is just like a tank and you're just smashing another vehicle?

I'm asking about changing the GTA2 script. I downloaded the script pad and the compiler program, but I have no idea how to proceed after this. Am I writing and applying the script myself? Or I'm not sure if I just need to run the GTA2 file (BIL) as a pad program and modify the part with the vehicle data..
Please tell me how to change the script~!! Please!
User avatar
_L1pE_
Car Jacker
Car Jacker
Posts: 32
Joined: 08 Jan 2015, 15:02
GH nick: _L1pE_

Re: How can I change the vehicle data script settings?

Post by _L1pE_ »

1.

Code: Select all

GIVE_WEAPON (vehicle_name_here, WEAPON_HERE)
Only standard vehicle weapons from the garage shops work, if you give a turret to vehicle that doesn't normally have it game will crash when you try to fire it.
2.

Code: Select all

SET_CAR_BULLETPROOF (vehicle_name_here, ON)
SET_CAR_FLAMEPROOF (vehicle_name_here, ON)
SET_CAR_ROCKETPROOF (vehicle_name_here, ON)
There's no command to make vehicles electrogun proof.
3. That is done via .sty file, you need to use Sty Tool to set the flag "can drive over other cars" on the car you want. It won't work the same as the Tank, it will create visual dents but will do little HP damage.

See this page for documentation on scripting and other things: https://projectcerbera.com/gta/2/tutorials/
Let's go for a joyride
dltmdwns156
Jaywalker
Jaywalker
Posts: 9
Joined: 01 Jun 2025, 07:51

Re: How can I change the vehicle data script settings?

Post by dltmdwns156 »

Thank you for your kind explanation. But I don't know how to use the script. I don't know how to open the Gta2 script, I don't know how to save the code, I don't know how to apply it to the gta2. I'm watching the script tutorial, but I'm not sure. So, is there a related video or YouTube video?

Oh, and there is an error that I installed style tool and it doesn't run, is there a solution to this?
User avatar
_L1pE_
Car Jacker
Car Jacker
Posts: 32
Joined: 08 Jan 2015, 15:02
GH nick: _L1pE_

Re: How can I change the vehicle data script settings?

Post by _L1pE_ »

This has the very basics, should get you started: https://en.wikigta.org/wiki/Main_script_(GTA2)
There's further tutorials with basic info in that wiki, it talks about the original compiler in one of them, but I use ScriptPad to edit and quickly compile.
The page about .mmp is relevant for being able to play your custom stuff in MP, and .seq for SP.
You can look at custom maps that include source code (many of them) or the official source code of Industrial for examples on how to do things.
You can use powerpatch to enable the debug tab in GTA2 Manager, you can set a custom map, script and style file there for quickly testing. You need to use the "Skip frontend" option for the game to use those.
For the tools and resources I mentioned, look here: https://gtamp.com/gta2/tools/

I don't know anything about Sty Tool not running, for me it has always worked, I use it through Wine on Linux. You could try STYed instead: https://www.moddb.com/games/grand-theft ... s/styed-14
Let's go for a joyride
dltmdwns156
Jaywalker
Jaywalker
Posts: 9
Joined: 01 Jun 2025, 07:51

Re: How can I change the vehicle data script settings?

Post by dltmdwns156 »

I run STYed 1.4 tool, go from file menu to open menu, select 'caras only' or 'caras + tiles' and select 'bil.style, fstyle.style, ste.style, will.style' in the gta2 data folder, you will see an error saying "Error loading file" and it won't run. How do you proceed with this??
User avatar
_L1pE_
Car Jacker
Car Jacker
Posts: 32
Joined: 08 Jan 2015, 15:02
GH nick: _L1pE_

Re: How can I change the vehicle data script settings?

Post by _L1pE_ »

As it says in its help text, you can't open fstyle.sty in STYed, and it will error out any file you try to open after too if you do that. That's the only way such an error happens for me.
Let's go for a joyride
Post Reply