Page 1 of 2

Changing what cars spawn in each level & driving any car

Posted: Sun Oct 14, 2012 1:30 am
by Rusty72Impala
Would either of these be possible? There are quite a few unused traffic cars, and there's a '71-'72 Cadillac Hearse that was cut from the game still in the files. Would it be possible to make it drivable?
Here's pics of the hearse, from the THPS3/THPS4/THUG vehicle modeler's flickr page:
Image
Image
Image

Re: Changing what cars spawn in each level & driving any car

Posted: Sun Oct 14, 2012 3:31 am
by WhoElseButMe
Of course it's possible just comes down to finding the scripts that load the model and replacing the model the game loads with a different one.

Re: Changing what cars spawn in each level & driving any car

Posted: Sun Oct 14, 2012 3:36 am
by Rusty72Impala
That's what I figured, however, what scripts contain the level's vehicle data?

Re: Changing what cars spawn in each level & driving any car

Posted: Mon Oct 15, 2012 9:17 am
by WhoElseButMe
level specific data would be found in the levels/ scripts

Re: Changing what cars spawn in each level & driving any car

Posted: Mon Oct 15, 2012 11:31 pm
by Rusty72Impala
The script packages (.qb) have to be unpacked and repacked, correct?

Re: Changing what cars spawn in each level & driving any car

Posted: Tue Oct 16, 2012 2:08 am
by WhoElseButMe
the qb files are scripts they need to be decompiled and compiled. use roq.exe and use the thug1 flag everything should run smoothly

Re: Changing what cars spawn in each level & driving any car

Posted: Tue Oct 16, 2012 3:58 am
by Rusty72Impala
Could you provide a link to roq.exe? Or is it included in "sources.zip" ?

Re: Changing what cars spawn in each level & driving any car

Posted: Tue Oct 16, 2012 4:29 am
by WhoElseButMe

Re: Changing what cars spawn in each level & driving any car

Posted: Tue Oct 16, 2012 4:40 am
by ZurePitchmen83
I know Anteara mod for THUG2 allows you to use vehicles in another level, not sure if it's possible to recreate the vehicle menu for THUG1 but it could be, i know quazz had the idea of doing it for his THUG1 Mod, i believe the pause menu script is inside gamemenu.qb which roq decompiler can't decompile, But another QB editor (THQB 1.0RC1) opens it just fine, but you have to cut it to just the pause menu script and hex edit the changed one into gamemenu.qb, You can't save it as-is

Re: Changing what cars spawn in each level & driving any car

Posted: Tue Oct 16, 2012 4:45 am
by WhoElseButMe
His initial question was to replace which car is currently loaded in a level.
roq.exe should only have issues with randomrange and some randoms, as long as you use the thug1 flag it will handle switch statements and if statements properly.

Re: Changing what cars spawn in each level & driving any car

Posted: Tue Oct 16, 2012 9:57 pm
by Rusty72Impala
I don't have a levels/scripts folder....although there's that weird qdir.txt document that points to a bunch of scripts being on the C:\ drive in a folder named skate5....but even in there, there's no mention of a levels or levels/scripts.

Re: Changing what cars spawn in each level & driving any car

Posted: Tue Oct 16, 2012 11:06 pm
by ZurePitchmen83
The level scripts should be inside a levels pre container (NJ.PRE for example), download PreReaper to extract the files from the pre, they should be in C:\ Drive, then copy the folders it extracted (Usually Levels, Models, Anims, etc) to your THUG1 Folder, then edit the script that carries the vehicle data

EDIT, some things (ska, skin, mdl for example) will have *.xbx extension after them, try removing that if it doesn't work

Re: Changing what cars spawn in each level & driving any car

Posted: Tue Oct 16, 2012 11:25 pm
by WhoElseButMe
game/data/levels/level_shorthand_name/
inside should be several different file types among these are a couple of scripts. one is the node array the other is the levels specific scripts.

Re: Changing what cars spawn in each level & driving any car

Posted: Tue Oct 16, 2012 11:26 pm
by Rusty72Impala
Thanks,guys. :D
EDIT:What commands do I put in CMD?

Re: Changing what cars spawn in each level & driving any car

Posted: Wed Oct 17, 2012 6:58 am
by ZurePitchmen83
Rusty72Impala wrote:What commands do I put in CMD?


You don't need to put in a command, you need to copy the pre to the same directory that has PreReaper in it, then drag the pre to prereaper.exe, then it should extract to C:\