Greetings!This thread will teach you how you can add additional AI drivers to a race by simply edit a ghost data file. Want to have more and unique police cars in a Hot Pursuit race? Tired of only having 7 AI opponents? More traffic cars to dodge? How about additional racers and cops in two player mode? All is possible!

Simply launch the game and choose either a normal Race or Hot Pursuit. I recommend that you don't choose Career, Knockout or Tournament modes, because the game might crash later on.

Start the race. When the lights turn green and the AI starts to drive away, pause the game and exit. A gst file will be created in the SaveData folder. Note: If you want to edit a 2 player race, you need to copy config.dat and rename it into a gst file.

(Since we can't save a ghost file in Hot Pursuit mode, you need to get it manually.) Navigate to the SaveData folder and locate the ghost.gst file. This is the ghost file that records the latest race you did, even if you didn't complete it. Make a copy and change the name of it. Like: cop_07a.gst. Remember: when you're done with the editing, move it to the SaveData/Saves folder (or move it there before you edit).

Now open the Hex-editor and start editing, here's the addresses that's possible to change:

00000FEC-00000FEE = XYZ Start Location (Getaway mode only)

00000FF0 = Gamemode00 = Single Race01 = Tournament02 = Knockout03 = Hot Pursuit04 = High Stakes (Will crash the game when the race is done. The car upgrades is activated in this mode.)

000010A4 = Tickets QuotaNumber of tickets for the police team. This value should be the total number of tickets for the speeders. I changed my game to have 4 speeders instead of 2, so for me this will be: 4*5=20 (14 in HEX).NumberOfRacers * MaxTickets = TicketsQuota

000010A8 = Max Tickets for each speederSince the police team must deliver 20 tickets, each speeder needs to have 5 tickets. So this value must be 05.

000010E8 = Number of Laps: 2, 4 or 8. You can use any number here, but I wouldn't personally recommend it since I don't know how the game will keep any track records.000010EC = Direction (0=Forward, 1=Backward)000010F0 = Mirrored (0=Off, 1=On)000010F4 = Nighttime (0=Off, 1=On)000010F8 = Weather (0=Off, 1=On)

00001140 = Number of Cars in total (Max=10)00001144 = Number of Humans in total (Max=02)

00001148 = Number of Human Drivers (Max=02)0000114C = Number of Human Cops (Max=02)00001150 = Number of AI Drivers (Max=0E)00001154 = Number of AI Cops (Max=08)00001158 = Number of AI Traffic (Max=0F)All addresses above is to help the game to spawn the cars correctly. Always double check the AI types for each racer, cop or traffic driver. Otherwise the game crashes or will not spawn them correctly.

The following adresses here is for Player One, to change for the next player simply add 70 in the address, and another 70 for the next one.Note: Each player always starts with the name, so it's quite easy to keep them apart.00001160 is Player One.000011D0 is Player Two.

00001160 = NameBelieve 10-12 characters is the max limit. 7 if you want to make it fit the number plate. Note: if you have 9-15 racers at once, their number plate will be blank.

00001170 = CarThis is the cars serial number. To load from the traffic folder, this value must be: FF FF FF FF.

000011CC = AI driver ID (Values: 00-47, 71 in total)This is the AI driver ID, hair color, skin color and I think even their driving style. It's hard to observe their behaviour, but their looks will change however. An example is: 35 - Jammin (from the Career mode), he has cool green hair.

That's all you need to know. I hope you'll get it to work and I bet you'll have more fun with NFS4 as I'm having.If you want to help me out with this and providing research, you're more than welcome to do so. This post will be updated with additional information or discoveries.

Big thanks to Zalcus20 for finding additional addresses! Also big thanks for everyone that have tested and confirmed various values.

Setting the timer for Getaway and Time Trap should be possible. If I'm lucky I should be able to find start positions as well. And maybe hide the ghost car from the race. But time will tell, I'm still just a beginner with this kind of stuff.

Quote from: noise

-Changing carcolor opponent car? (I hate that poison green)

Yes, you can change the opponent colors quite easily, your color is at: 00001188-0000118BI was racing against Bogey and he used the MHRT Commodore, that car don't have a color, so it's green. His offset is: 000011F8-000011FB (+70 after my color offset). The value for the color is: 00 FF 00 FF replace it with: 8C 8D 8C 7F - to give him the Bonus Camaro color. If you don't know the color code for a car, use Color Picker in Photoshop if you have it.

Quote from: noise

-Damage in singleplayer visible?

Car damage, I don't know. I've only managed to find stuff related to the race itself and not any gameplay settings. But it could be in there somewhere.

Quote from: noise

-More control of what opponent car is showing up?

Again yes, you can control what car the opponent drives. One can drive the McLaren and someone else can have the Corvette while you drive around in a BMW Z3. I even belive that you can drive the Knockout truck outside of Knockout (without viv editing), I should test that. But the only problem is to change all 7 opponents in the file, it gets tideous. But I think the result is worth it. I could list the values for all the cars if you want. It's the same as the serial number, but it's written in HEX so you'll need to convert it. Offsets:00001170 - Player 100001170 + 70 = 000011E0 - Opponent 1 Car (aka Player 2)000011E0 + 70 = 00001250 - Opponent 2 Car...and so on...

I recently tested it with 2 extra speeders and it spawned those cars in front of the starting line, stacked on top of each other. They also needed to complete an extra lap. So I would say, yes, it's quite possible to do it.

I just figured out how to do it. I was able to turn all ai cop cars into ai perps. I adjusted the laps and the tickets so that everything is set up right and...voila! It worked like a charm. I took a few in-game screenshots but I don't know how to use the Insert Image feature.

Damn... I'm missing, the old game.. like rite now!. But hey, I got real new tires on my front anyway, Hi Zalcus20 nice pics, did you mode them Siren lights,on top of the Porches csrs? They look Great. Budd Man you guys sure are Cool Hackers on here! Sounds tuff this Hex stuff thanks Dr.Speed for showing us it

The Porsche was already made that way. Didn't have to do anything, although I do agree it looks cool. It is quite complicated at first but once you learn how to understand hexadecimals it becomes very simple.

You just made me wonder: If there is a way to create a user-friendly program in which the user could customize what he/she wants in the game in normal language and then the program will do the hard work and put it together like a batch file? Wonder if that's possible. Not too familiar with that level of programming.

It's really good to see that NFSHS is still being played by many Thanks again DrSpeed. This has totally made my weekend

Oh I see it came this,way the Cop cars np. Yes,it makes me think of JimD's Cool Simple T3Ed, Track View, Visibility text,program. I really love how that, made my Tracks more nicer!. So I bet Dr.Speed or someone,could make,it this way. Into a exe. Like an all they do. So that's my Rainy,night Comment,pal have a Good cheerful, Sunday. I'm staying Sober, an going to bed now. Yippy huh cya )

If I had the skill to create a program that edited the gst file I would. It does get quite messy with the numbers sometimes.

Great pictures Zalcus, I dunno if I should feel sorry for Mulligan, haha.

- I tried to add a 9th police car, but he decided to spam the spikestrip button constantly for some reason.- I also tried add computer drivers/cops in 2 players mode (Player 1 - Speeder and Player 2 - Cop). It worked like a charm, but Player 1 can only spectate other speeders and Player 2 can only spectate police officers in replay. Otherwise, the game crashes.- And another thing I tested. The Knockout truck can be used in Hot Pursuit and it's quite hard to stop it. The player however... can't use it, the truck will be sunken into the ground. HEX value: 21 (Serial number 33).

2 player mode sounds fun now. I guess the only workaround for the cop control issue is to only have a person who wants to be the cop play as player 1 and the person who wants to be the perp play as player 2.

Also that part where the game crashes when you hex edit the user car to be a traffic vehicle. The reason it crashes is because the game is looking for a fedata file. The traffic cars' viv file do not contain a fedata file. You have to create a fedata file for the desired traffic vehicle and make sure the extension matches the language you play in your game (fedata.eng for english fedata.ger for german).

One more thing: you can have any number of laps besides 2,4, or 8. I haven't tested what the max number of laps are.

I'll try to post as much as I can find out with this special hex editing trick and try to help you out, DrSpeed. I'm starting to see why they call you Doctor lol