Page 1 of 1

How can I change the vehicle data script settings?

Posted: 23 Sep 2025, 01:38
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!

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

Posted: 30 Sep 2025, 23:58
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/

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

Posted: 05 Oct 2025, 03:35
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?

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

Posted: 05 Oct 2025, 19:00
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

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

Posted: 07 Oct 2025, 13:00
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??

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

Posted: 07 Oct 2025, 16:58
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.

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

Posted: 08 Oct 2025, 03:13
by dltmdwns156
Then, which file should I open with the STYed Tool?

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

Posted: 08 Oct 2025, 04:18
by _L1pE_
bil.sty, ste.sty, wil.sty or a custom one edited from these.

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

Posted: 08 Oct 2025, 09:42
by JernejL
_L1pE_ wrote: 07 Oct 2025, 16:58 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.

If needed, fstyle can be edited in newer versions of my gta2 sty tool (the one published in january on this forum).

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

Posted: 08 Oct 2025, 09:45
by dltmdwns156
"bil.sty, ste.sty, will.sty." These are errors, too
What should I do?

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

Posted: 08 Oct 2025, 23:49
by _L1pE_
JernejL wrote: 08 Oct 2025, 09:42
_L1pE_ wrote: 07 Oct 2025, 16:58 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.

If needed, fstyle can be edited in newer versions of my gta2 sty tool (the one published in january on this forum).
Oh yea, I had forgotten you updated that.
dltmdwns156 wrote: 08 Oct 2025, 09:45 "bil.sty, ste.sty, will.sty." These are errors, too
What should I do?
Well, I guess you could try the newer version of Sty Tool instead of the one from the tools page, here: viewtopic.php?p=13788#p13788
If you still get errors, then I just don't know.

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

Posted: 13 Oct 2025, 15:38
by dltmdwns156
With the "Sty Tool" that _L1pE_ told me, I can set up a different car smashing with a regular car. Thank you! _L1pE_!!
But the important thing is that when smashing, the damage figure came out to be about "10", so the tank and the damage were different. Should the smashing damage figure be changed to a script?
If I have to change it to a script, how can I change it?

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

Posted: 15 Oct 2025, 07:00
by dltmdwns156


I'm posting a supplementary video for the above question. If you look at this video, the Facifire armoured vehicle has implemented the ability to smash a regular vehicle, but if you look closely, it only gives 1 damage when smashing the vehicle, and the figure looks like "10" and then there's no damage. So I can't break the vehicle like a tank, so how can I control this? Is it scripted to control it?