Hey everyone. This is post is going to be a bit lengthy. :police:
I think it's about time to start a thread about useful addresses for NFS High Stakes, since there is one for NFS3. It's time to give NFS4 some love. 8)
I'll start the topic by sharing an address that most of us probably know already. It was first shared in the ghost editing thread, but I am reposting it here for the purpose of being organized.
There is a way to get ALL cars (including AI opponents, traffic and cops) to turn on their headlights during a day race (without weather).
Here are the instructions (you will need a hex editor):
NOTE: As always, make a backup of your nfs4 executable.
1. Using HxDen, open the nfs4.exe.
2. Press "Ctrl + G" and type "00018B0A" in the Offset box and click ok. HxDen will automatically place the cursor at the correct location.
3. Change byte "00" to "01".
4. Save nfs4.exe
So basically you are doing: nfs4.exe 0x18B0A 00 >> 01
I have only tested this with the modern patch by Veg. nfshsgame.exe version should work too, but I haven't tested it. As long as the addresses correspond, this small patch should work.
I would also like to announce that after 3 days of searching, the timer that is seen in Getaway and Time Trap modes has been found!
A cheat table and a trainer have been created that allows you to change the timer to a value that is different from the default 2 minutes in Getaway mode. I will attach them for download shortly. Everything has been checked and there are no viruses.
Here's a little help to get the cheat engine and trainer working. Btw, you do not need to use both. You have the option to use the cheat table or the trainer. whichever is more convenient for you.
If you use the trainer, launch NFS4 first, then launch the "NFS4 Timer Editor.exe" second. This is so that the launcher will detect the nfs4.exe process.
Now you can see the predefined timer code options and their respective hotkeys. Enter these hotkeys in the main menu just before you are ready to race.
Please remember to activate (Ctrl+space) the trainer beforehand so that the codes will take effect in the race. If you want the default timer setting for Getaway or Time Trap modes, press Ctrl+space again to deactivate while in the main menu.
Now if you prefer to use the cheat table, make sure to have cheat engine 7.4 or later installed on your system. Launch NFS4 and open the "NFS High Stakes Timer.CT".
When the cheat table opens, attach the process "nfs4.exe" to the table. Now you can activate the cheat table (Ctrl+space) while in the main menu. Same rules apply like the trainer method.
I post the hotkeys here for simplicity. They are the same for the trainer and the cheat table.
Ctrl+Space >> activate/deactivate mode.
Ctrl+0 >> set timer for 30 seconds.
Ctrl+1 >> set timer for 1 minute.
Ctrl+2 >> set tmer for 2 minutes (default).
Ctrl+3 >> set timer for 3 minutes.
Ctrl+4 >> set timer for 4 minutes.
Ctrl+5 >> set timer for 5 minutes.
Ctrl+7 >> set timer for 7 minutes.
Ctrl+6 >> set timer for 10 minutes.
Ctrl+8 >> set timer for 15 minutes.
Ctrl+9 >> set timer for 30 minutes.
Shift+= adjust/synchronize timer for Time Trap mode.
(This is necessary if you chose one of the above custom codes for Time Trap mode. You need to do this so that time you set will start at exactly that time in a Time trap race. Failure to do this step will result in the timer being off by about 3 seconds.)
Ctrl+= >> increase timer by 15 seconds. (Best used in Time Trap mode)
Ctrl+- >> decrease timer by 15 seconds. (Best used in Time Trap mode)
Some may wonder why I haven't provided an address for the nfs4 executable. Originally, I wanted to extend the default Getaway timer to 5 minutes instead of 2. However, I was unable to find the address that calculates and writes the value of "2 minutes" to the game. I can only see when it is written during the loading screen. That is how it became possible to create this trainer/cheat that changes this value before the race loads.
Maybe someone who knows more about assembly code and cheat engine can go further than I did. ^-^
In the meantime, try this thing out and enjoy the possibilities of high stakes in 2024.
Also stay tuned for more findings. Believe me, there are more... ;)
Attaching the files don't seem to work. Here are dropbox links instead:
Link to cheat table.
https://www.dropbox.com/scl/fi/rj2h07uo13hi0ymcjupye/NFS-High-Stakes-Timer.CT?rlkey=icqfmaleafhw9a6laoct9qxse&dl=0 (https://www.dropbox.com/scl/fi/rj2h07uo13hi0ymcjupye/NFS-High-Stakes-Timer.CT?rlkey=icqfmaleafhw9a6laoct9qxse&dl=0)
Link to trainer.
https://www.dropbox.com/scl/fi/j1q7ssnzekvmsftjrk9ft/NFS4-Timer-Editor.EXE?rlkey=hsidziohgqqd70e3bqqjtpwy3&dl=0 (https://www.dropbox.com/scl/fi/j1q7ssnzekvmsftjrk9ft/NFS4-Timer-Editor.EXE?rlkey=hsidziohgqqd70e3bqqjtpwy3&dl=0)
Awesome, this is very nice to have, i feel you about finding those adresses.. It's a nightmare sometimes
Thanks Pete.
Even better news. Found some more addresses stored directly in the nfs4 executable.
Extend/reduce time on the Getaway timer:
nfs4.exe 0001BC73 1E00 >> 4B00 This changes the default timer from 2 minutes to 5 minutes. Here are more options you can set:
0800 = 32 seconds
0F00 = 1 minute
2D00 = 3 minutes
3C00 = 4 minutes
4B00 = 5 minutes
6900 = 7 minutes
9600 = 10 minutes
E100 = 15 minutes
FF00 = 17 minutes
C201 = 30 minutes
---------------------------------------------
I couldn't find the direct address for the Time Trap timer, but there is a way to make them more challenging. The following hack reduces the amount of time you need to complete a Time Trap race:
nfs4.exe 0001BDAA 01C2 >> 01C1 8 seconds less per lap. Medium difficulty. Don't crash or get a ticket more than once. You most likely won't make it. But wait, there is one more option if you want a hardcore challenge:
29C2 = 16 seconds less per lap. HARD difficulty. Avoid getting even one ticket. You also need a good driving line and have a clean race (no accidents) in order to make it. If there's a shortcut, use it.
----------------------------------------------------
This hack disables the cop radar in Hot Pursuit mode permanently:
nfs4.exe 000103FE CB5C >> 9090 The radar still appears in the HUD, but it will no longer light up red and beep when a cop is in close proximity.
The only way to know when a cop is coming is to look at your map. Or did you turn that off, too? (pressed TAB key several times) ;)
Edit: Fixed a grammatical error.
Glad to see this thread up and running.
Found the addresses where the game stores the traffic vehicles for each track. The following values is the ID number of the traffic cars.
001B8310 - Total number of unique traffic vehicles to load on Hometown (default: 6, max: 7)
001B8311 - Hometown traffic vehicle 1
001B8312 - Hometown traffic vehicle 2
001B8313 - Hometown traffic vehicle 3
001B8314 - Hometown traffic vehicle 4
001B8315 - Hometown traffic vehicle 5
001B8316 - Hometown traffic vehicle 6
001B8317 - Hometown traffic vehicle 7 (default: 0)
001B8318 - Total number of unique traffic vehicles to load on Country Woods
001B8319 - List of Country Woods traffic vehicles
001B8320 - Total number of unique traffic vehicles to load on Redrock Ridge and Lost Canyons
001B8321 - List of Redrock Ridge and Lost Canyons traffic vehicles
001B8328 - Total number of unique traffic vehicles to load on Empire City
001B8329 - List of Empire City traffic vehicles
001B8330 - Total number of unique traffic vehicles to load on Atlantica and Aquatica
001B8331 - List of Atlantica and Aquatica traffic vehicles
001B8338 - Total number of unique traffic vehicles to load on Rocky Pass
001B8339 - List of Rocky Pass traffic vehicles
001B8340 - Total number of unique traffic vehicles to load on Summit
001B8341 - List of Summit traffic vehicles
001B8348 - Total number of unique traffic vehicles to load on Landstrasse
001B8349 - List of Landstrasse traffic vehicles
001B8350 - Total number of unique traffic vehicles to load on Route Adonf
001B8351 - List of Route Adonf traffic vehicles
001B8358 - Total number of unique traffic vehicles to load on Durham Road
001B8359 - List of Durham Road traffic vehicles
001B8360 - Total number of unique traffic vehicles to load on Celtic Ruins
001B8361 - List of Celtic Ruins traffic vehicles
001B8368 - Total number of unique traffic vehicles to load on Kindiak Park
001B8369 - List of Kindiak Park traffic vehicles
001B8370 - Total number of unique traffic vehicles to load on Dolphin Cove
001B8371 - List of Dolphin Cove traffic vehicles
001B8378 - Total number of unique traffic vehicles to load on Snowy Ridge
001B8379 - List of Snowy Ridge traffic vehicles
Traffic ID number:
32 = Minivan
33 = Pickup
34 = Sedan 2
35 = Stationwagon
36 = Sedan 4
37 = Hatchback
38 = Bus
39 = 50's Truck
3A = SUV
3B = Euro Sedan
3C = Euro Bus
3D = Euro Semi
3E = Semi Truck
3F = Snowplow
40 = Water Truck
Also possible to add additional vehicles:
41 = Data\Cars\Traffic\Sedan\car.viv
44 = Data\Cars\Traffic\Caprice\car.viv
Quote from: DrSpeed on Jun 12, 2024, 12:20 AM
Also possible to add additional vehicles:
41 = Data\Cars\Traffic\Sedan\car.viv
44 = Data\Cars\Traffic\Caprice\car.viv
NICE so technically these could be used for ghost files to have additional variety of different traffic cars?
Quote from: pete9516 on Jun 12, 2024, 1:30 PM
NICE so technically these could be used for ghost files to have additional variety of different traffic cars?
Yes, it's possible to do that.
Found some arcade Knockout and Tournament stuff:
000C3E31 - Number of Racers in Arcade Knockout. Recommend to keep this at 8, as the game will load a second AI with the same name. Last race will also have more opponents instead of just 1.
000C42B3 - Number of Racers in Arcade Tournament. Recommend to keep this at 8 as well. (Default:8, 9-10 is functional
*)
001B6DF8 - Tournament Points 1st Place
001B6DFA - Tournament Points 2nd Place
001B6DFC - Tournament Points 3rd Place
001B6DFE - Tournament Points 4th Place
001B6E00 - Tournament Points 5th Place
001B6E02 - Tournament Points 6th Place
001B6E04 - Tournament Points 7th Place
001B6E06 - Tournament Points 8th Place (Default:0)
001B6E08 - "Tournament Points 9th Place" (Default:A)
001B6E0A - "Tournament Points 10th Place" (Default:0)
*You can increase the points for 1-8th place so the last 2 points makes sense. Unless we know what address 001B6E08 and 001B6E0A does, I don't recommend changing these at all.
I also found the tracklist and conditions for each difficulty. But I'm gonna leave it as a text file in this post instead, because there's just too many addresses.
Quote from: DrSpeed on Jun 14, 2024, 11:26 AM
Quote from: pete9516 on Jun 12, 2024, 1:30 PM
NICE so technically these could be used for ghost files to have additional variety of different traffic cars?
Yes, it's possible to do that.
Found some arcade Knockout and Tournament stuff:
000C3E31 - Number of Racers in Arcade Knockout. Recommend to keep this at 8, as the game will load a second AI with the same name. Last race will also have more opponents instead of just 1.
000C42B3 - Number of Racers in Arcade Tournament. Recommend to keep this at 8 as well. (Default:8, 9-10 is functional*)
001B6DF8 - Tournament Points 1st Place
001B6DFA - Tournament Points 2nd Place
001B6DFC - Tournament Points 3rd Place
001B6DFE - Tournament Points 4th Place
001B6E00 - Tournament Points 5th Place
001B6E02 - Tournament Points 6th Place
001B6E04 - Tournament Points 7th Place
001B6E06 - Tournament Points 8th Place (Default:0)
001B6E08 - "Tournament Points 9th Place" (Default:A)
001B6E0A - "Tournament Points 10th Place" (Default:0)
*You can increase the points for 1-8th place so the last 2 points makes sense. Unless we know what address 001B6E08 and 001B6E0A does, I don't recommend changing these at all.
I also found the tracklist and conditions for each difficulty. But I'm gonna leave it as a text file in this post instead, because there's just too many addresses.
Nice finds, it's amazing what you guys find here. But have you found anything related to controlling AI's speed? Like decreasing AI's top speed in tunnels, when it's rainy or like giving AI it's actual top speed which there is somehow a limit for? The AI never ever reaches it's actual top speed even if the OAT's should allow it. Or things like police cars not making u turns in tunnels?
Nice finds, indeed.
@Pete: I did not find those addresses yet. Unlike the gst file, the exe is much bigger. So it will take more time to find.
In the meantime, here are two interesting addresses that can change the number of cops and traffic when playing Classic/Time Trap mode as a racer:
Number of traffic in HP mode (only affects Classic and Time Trap modes):
nfs4.exe 000C4FBF 02 >> 06 Default is 2 traffic cars. This hack sets it to 6 instead.
Other options:
00 = no traffic
01 = 1
02 = 2
03 = 3
04 = 4
05 = 5
06 = 6
07 = 7
08 = 8
09 = 9
0A = 10
0B = 11
0C = 12
0D = 13 (Doesn't make sense to go any higher than this unless you want to play without cops)
0E = 14 (MAX)
Number of cops in HP mode (only has an effect when you play as a racer):
nfs4.exe 000C4FBA 05 >> 08 Default is 5 cops. This hack sets it to 8 which is the max amount of cops the game can handle.
Other options:
00 = no cops
01 = 1
02 = 2
03 = 3
04 = 4
05 = 5
06 = 6
07 = 7
08 = 8 MAX (add more than this, and the game will crash).
You can set these addresses to the other amounts as shown, but you have to make sure the total number of cars do not exceed 16, or the game will crash or you will see strange artifacts in the horizon. NFSHS in HP classic/Time Trap by default always loads 1 opponent racer, 5 cops, and 2 traffic. Add the player car, and you will get a total of 9. As you can see from the above hacks, I pushed the game to load 8 cops and 6 traffic. Add 1 opponent racer and myself, and that gives a total of 16.
I also found the address to change the number of opponents for Hot Pursuit mode:
nfs4.exe 000C4FC4
Default is 01 for 1 opponent, of course. It affects all Hot Pursuit modes (Classic, Getaway, Time Trap).
However, it is not recommended to change it as it caused my game to either crash on loading screen, crash before the 321GO! countdown, or display strange artifacts in the horizon. Even if you get past these problems, Getaway mode will be partially broken. When the timer runs out, you sometimes won't see the "Time is up..." prompt, and when you quit to race results or replay, there is a chance the game reads it as "Aborted" instead of "Win" or "Lose".
Also, if you think you can have zero opponents by setting the address to "00", think again. The game freezes just before the 321GO countdown starts.
I also tried setting the number to the max (0D or 13 racers) for HP mode, but the maximum I can load is 8 (08). Again it is very unstable and it mostly crashes. My guess is that setting a value higher (or lower) than the default seems to break the game's calculation for determining the max number of cars.
Apparently, Gst editing is still the best for unlimited race customizations. :D
I can confirm, 000C4FC4 tells the number of AI and human racers. Setting it to 2 loads a second AI opponent and a traffic car, driving whatever the first car on your carlist is. Indeed strange.
Continuing on with Hot Pursuit stuff:
000C4F8B - Number of AI cops to load when player is cop (default:4, max:7)
000C4F96 - Number of AI Racers and Traffic when player is cop (default:2)
Here's what police car to load for the tracks, any serial number can be used. For the North American tracks, it's using the traffic ID number instead.
Interceptor Model:
000C2BCE - Celtic Ruins and Landstrasse
000C2BF0 - Route Adonf
000C2C12 - Durham Road
000C2C34 - Dolphin Cove
000C2C5E - Kindiak Park
000C2C88 - Snowy Ridge
000C2CB2 - Hometown and Country Woods
000C2CDC - Redrock Ridge and Lost Canyons
000C2D06 - Atlantica and Aquatica
000C2D2A - Rocky Pass and Summit
000C2D4E - Empire City
Regular Police cars loaded from the Cars folder:
000C2BD5 - Celtic Ruins and Landstrasse
000C2BF7 - Route Adonf
000C2C19 - Durham Road
0C = Pursuit Porsche
14 = Pursuit Camaro
16 = Pursuit BMW M5
20 = Pursuit Corvette
24 = Pursuit Diablo SV
31 = Pursuit La Niña
Police cars loaded from the Traffic\Pursuit Folder:
000C2C4E - Dolphin Cove
000C2C78 - Kindiak Park
000C2CA2 - Snowy Ridge
000C2CCC - Hometown and Country Woods
000C2CF6 - Redrock Ridge and Lost Canyons
000C2D1D - Atlantica and Aquatica
000C2D41 - Rocky Pass and Summit
000C2D65 - Empire City
F4 01 = Police Sedan
F5 01 = Police SUV
F6 01 = Police Hatchback
F7 01 = Police Caprice
I haven't found a way the make it load from the cars folder instead, or if it's even possible, no progress so far. Although it is possible to load any vehicle in the game, you just have to count where in the list your desired car is located. If you're switching around modded cars a lot, it's not recommended to change it.
000C3901 - Number of Vehicles in total in a single race. By default you have 8 racers, this will fill the rest of the slots with traffic cars. Traffic needs to be on before you select full grid as it will be greyed out. (default:08, max:10)
More continuation on Hot Pursuit:
000C4FFA - Number of Traffic in Getaway mode (default:03)
000C50E7 - Number of AI Cops in 2 Player mode (default:05)
000C50EC - Number of Traffic in 2 Player mode (HP) (default:01)
Found stuff related to Career mode.
Opponents in Tournament of Champions:
00076390 - Bonus Porsche (default:2A)
000763A5 - Mercedes CLK-GTR (default:12)
000763AC - McLaren F1 GTR (default:02)
Pro Cup bonus car:
001AEDD8 - Chevrolet Pro Cup reward car (default:29)
001AEDDC - Porsche Pro Cup reward car (default:2A)
High Stakes opponents:
001AEDE8 - High Stakes Tour - Duel car (B Class restriction) (default:04)
001AEDEC - World Tour - Duel car (A Class restriction) (default:23)
001AEDF0 - Memory Lane - Duel car (AA Class restriction) (default:1F)
001AEDF4 - Tour du Jour - Duel car (AA Class restriction) (default:10)
001AEDF8 - Need For Speed Tour - Duel car (AAA Class restriction) (default:12)
001AEDFC - North American Tour - Duel car (AAA Class restriction) (default:02)
Quote from: DrSpeed on Jul 07, 2024, 12:13 PM
000C3901 - Number of Vehicles in total in a single race. By default you have 8 racers, this will fill the rest of the slots with traffic cars. Traffic needs to be on before you select full grid as it will be greyed out. (default:08, max:10)
More continuation on Hot Pursuit:
000C4FFA - Number of Traffic in Getaway mode (default:03)
000C50E7 - Number of AI Cops in 2 Player mode (default:05)
000C50EC - Number of Traffic in 2 Player mode (HP) (default:01)
Found stuff related to Career mode.
Opponents in Tournament of Champions:
00076390 - Bonus Porsche (default:2A)
000763A5 - Mercedes CLK-GTR (default:12)
000763AC - McLaren F1 GTR (default:02)
Pro Cup bonus car:
001AEDD8 - Chevrolet Pro Cup reward car (default:29)
001AEDDC - Porsche Pro Cup reward car (default:2A)
High Stakes opponents:
001AEDE8 - High Stakes Tour - Duel car (B Class restriction) (default:04)
001AEDEC - World Tour - Duel car (A Class restriction) (default:23)
001AEDF0 - Memory Lane - Duel car (AA Class restriction) (default:1F)
001AEDF4 - Tour du Jour - Duel car (AA Class restriction) (default:10)
001AEDF8 - Need For Speed Tour - Duel car (AAA Class restriction) (default:12)
001AEDFC - North American Tour - Duel car (AAA Class restriction) (default:02)
Nice findings. Though don't you know Jonath's traffic patch? With this patch, you can have selected a Full Grid and at the same time be able to toggle traffic
Quote from: pete9516 on Jun 15, 2024, 7:57 AMOr things like police cars not making u turns in tunnels?
I found out why cops don't do U turns in tunnels. I did some testing and when the VRoad point in T3ED has "Chrome/Weather" column is set to "2" ( low chrome and always dry road ) the cops didn't do U turn. However, when is set to "anything else" ( i tested the first 16 numbers , high chrome and road depends on weather ), the cops do U turns in the tunnels.
The only chance to fix this problem is probably to find the address, that prevents Cops do U turn and change it in EXE file.
Quote from: PomFrit on Sep 01, 2024, 3:44 AMQuote from: pete9516 on Jun 15, 2024, 7:57 AMOr things like police cars not making u turns in tunnels?
I found out why cops don't do U turns in tunnels. I did some testing and when the VRoad point in T3ED has "Chrome/Weather" column is set to "2" ( low chrome and always dry road ) the cops didn't do U turn. However, when is set to "anything else" ( i tested the first 16 numbers , high chrome and road depends on weather ), the cops do U turns in the tunnels.
The only chance to fix this problem is probably to find the address, that prevents Cops do U turn and change it in EXE file.
I've already tried to find the adress and i failed hard. But luckily, TsTg has already fixed that issue. Though he's not very communicative and doesn't want his mods to get posted here. You can find his Music & Tweaks mod in this Discord server: https://discord.gg/Sfphr2W7
Quote from: pete9516 on Sep 01, 2024, 1:41 PMQuote from: PomFrit on Sep 01, 2024, 3:44 AMQuote from: pete9516 on Jun 15, 2024, 7:57 AMOr things like police cars not making u turns in tunnels?
I found out why cops don't do U turns in tunnels. I did some testing and when the VRoad point in T3ED has "Chrome/Weather" column is set to "2" ( low chrome and always dry road ) the cops didn't do U turn. However, when is set to "anything else" ( i tested the first 16 numbers , high chrome and road depends on weather ), the cops do U turns in the tunnels.
The only chance to fix this problem is probably to find the address, that prevents Cops do U turn and change it in EXE file.
I've already tried to find the adress and i failed hard. But luckily, TsTg has already fixed that issue. Though he's not as much active here as in the discord servers and doesn't want his mod to get posted here due to internet speeds. You can find his Music & Tweaks mod in this Discord server: https://discord.gg/Sfphr2W7
000C248F - AI drivers to shuffle through in arcade mode. Set it to 48 and it'll use all drivers from Career mode as well as the police ones. (Default: 07)
000C24BF - AI police drivers to shuffle through. The game sets their names with the generic UnitNumber, so you won't see the names of them. Maybe their driving style is different but it's too hard to tell. (Default: 08)
000C3B3E - Number of Laps in Arcade Knockout (Default: 02)
000C40F6 - Number of Laps in Arcade Tournament (Default: 04)
000C5028 - Number of... Player 1?
Setting this to 2 will create a "duplicate" player in splitscreen Hot Pursuit that's controlled by AI. It will also loads AI cops or racers, depends on who's cop, racer or both.
000C5097 - Number of Player 1 clones?
Setting this to 2 will force player 2 to have the same car, name and color as player 1 in Hot Pursuit. If player 2 chooses a cop car, it will still act as a cop.
Quote from: DrSpeed on Jun 14, 2024, 11:26 AMQuote from: pete9516 on Jun 12, 2024, 1:30 PMNICE so technically these could be used for ghost files to have additional variety of different traffic cars?
Yes, it's possible to do that.
Found some arcade Knockout and Tournament stuff:
000C3E31 - Number of Racers in Arcade Knockout. Recommend to keep this at 8, as the game will load a second AI with the same name. Last race will also have more opponents instead of just 1.
000C42B3 - Number of Racers in Arcade Tournament. Recommend to keep this at 8 as well. (Default:8, 9-10 is functional*)
001B6DF8 - Tournament Points 1st Place
001B6DFA - Tournament Points 2nd Place
001B6DFC - Tournament Points 3rd Place
001B6DFE - Tournament Points 4th Place
001B6E00 - Tournament Points 5th Place
001B6E02 - Tournament Points 6th Place
001B6E04 - Tournament Points 7th Place
001B6E06 - Tournament Points 8th Place (Default:0)
001B6E08 - "Tournament Points 9th Place" (Default:A)
001B6E0A - "Tournament Points 10th Place" (Default:0)
*You can increase the points for 1-8th place so the last 2 points makes sense. Unless we know what address 001B6E08 and 001B6E0A does, I don't recommend changing these at all.
I also found the tracklist and conditions for each difficulty. But I'm gonna leave it as a text file in this post instead, because there's just too many addresses.
I'm somehow having troubles using the addresses from your text file. When i add them in Cheat Engine, the addresses show silly values and when i change them, nothing changes in the knockout. I've tried both game executables. Same applies to your newly found adresses like 000C248F
Strange, it's working perfectly fine on my end.
Quote from: DrSpeed on Nov 05, 2024, 7:32 AMStrange, it's working perfectly fine on my end.
No matter which adress i choose, it always displays some ??? and that's it. I tested on Cheat Engine 7.2, 7.4 and 7.5. I tested on x86 version and 64bit versions. I tested on both nfs4.exe and nfshsgame.exe. I can't explain why this is happening to me
Anyone knows how to reduce the laps from 8 to 4 in the North American Tour's Circuit #3?
Quote from: Hommelwomb on Jan 29, 2026, 10:11 AMAnyone knows how to reduce the laps from 8 to 4 in the North American Tour's Circuit #3?
This is controlled by
CircDef.cdb at address:
000024D4.
Ah yes, I see that you know your NFS4 well.
Thanks.
Quote from: DrSpeed on Jul 07, 2024, 12:13 PMHigh Stakes opponents:
001AEDE8 - High Stakes Tour - Duel car (B Class restriction) (default:04)
001AEDEC - World Tour - Duel car (A Class restriction) (default:23)
001AEDF0 - Memory Lane - Duel car (AA Class restriction) (default:1F)
001AEDF4 - Tour du Jour - Duel car (AA Class restriction) (default:10)
001AEDF8 - Need For Speed Tour - Duel car (AAA Class restriction) (default:12)
001AEDFC - North American Tour - Duel car (AAA Class restriction) (default:02)
To what numbers do I have to change the default IDs, so that there is a random class B car, or class A car, or class AAA car.
E.g. High Stakes Tour - Duel car (B Class restriction) (random class B car)
The value for the duel car are the serial number of the said car. No way to make it random as far as I know.
Ay, next question: Is it possible to disable the requirement of having at least 2 cars in career mode for being able to enter a High Stakes track?
E.g. Changing a 02 to a 01 with some hex editing shenanigans - but where? :)
Career mode track infos stored in CIRCDEF.CDB:
https://imgur.com/a/w25XpUa (https://imgur.com/a/w25XpUa)
Nice work finding career tracks, i did my own research with your discovery and so far i found this:
EUROPEAN TOUR
- CIRCUIT 1
NUMBER OF OPPONENTS - line 00000160 - column 00 ( 05 - 5 OPPONENTS )
LAPS - line 00000160 - column 04 ( 02 - 2 laps )
CLASS LIMITATION - 00000160 - column 08 ( 02 - open ) - needs more tests which number limits what, there is also ferrari limitation and who knows what else
TRACK 1 - line 000001CO - column 00 ( 00 - CELTIRC RUINS )
TRACK 2 - line 000001D0 - column 0C ( 01 - LANDSTRASSE )
TRACK 3 - line 000001F0 - column 08 ( 04 - ROUTE ADONF )
- CIRCUIT 2
NUMBER OF OPPONENTS - line 000002B0 - column 00 ( 05 - 5 OPPONENTS )
LAPS - line 000002B0 - column 04 ( 02 - 2 laps )
CLASS LIMITATION - 000002B00 - column 08 ( 02 - open )
TRACK 1 - line 00000310 - column 00 ( 00 - CELTIRC RUINS )
TRACK 2 - line 00000320 - column 0C ( 04 - ROUTE ADONF )
TRACK 3 - line 00000340 - column 08 ( 05 - DURHAM ROAD )
Quote from: PomFrit on Mar 15, 2026, 5:53 AMNice work finding career tracks, i did my own research with your discovery and so far i found this:
EUROPEAN TOUR
- CIRCUIT 1
NUMBER OF OPPONENTS - line 00000160 - column 00 ( 05 - 5 OPPONENTS )
LAPS - line 00000160 - column 04 ( 02 - 2 laps )
CLASS LIMITATION - 00000160 - column 08 ( 02 - open ) - needs more tests which number limits what, there is also ferrari limitation and who knows what else
TRACK 1 - line 000001CO - column 00 ( 00 - CELTIRC RUINS )
TRACK 2 - line 000001D0 - column 0C ( 01 - LANDSTRASSE )
TRACK 3 - line 000001F0 - column 08 ( 04 - ROUTE ADONF )
- CIRCUIT 2
NUMBER OF OPPONENTS - line 000002B0 - column 00 ( 05 - 5 OPPONENTS )
LAPS - line 000002B0 - column 04 ( 02 - 2 laps )
CLASS LIMITATION - 000002B00 - column 08 ( 02 - open )
TRACK 1 - line 00000310 - column 00 ( 00 - CELTIRC RUINS )
TRACK 2 - line 00000320 - column 0C ( 04 - ROUTE ADONF )
TRACK 3 - line 00000340 - column 08 ( 05 - DURHAM ROAD )
omg. It would be awesome to copy over that class (un)limitation code over to single race and pursuit. But in the end, there's Zalcus' GST Editor
Is it possible to enable traffics and cops in Career mode ? Knockouts with traffics and High Stakes with cops can be interesting.
Wouldn't it be nice if the cheat codes UP1, UP2 and UP3 would work in any game mode so you could adjust the looks of your car?
Quote from: Hommelwomb on Jun 05, 2026, 10:53 PMWouldn't it be nice if the cheat codes UP1, UP2 and UP3 would work in any game mode so you could adjust the looks of your car?
Many people have wanted that for a long time, but it seems to be quite an intense amount of work to find the adresses for this and to do that. I wouldn't know where to start actually
Quote from: PomFrit on Mar 17, 2026, 3:20 AMIs it possible to enable traffics and cops in Career mode ? Knockouts with traffics and High Stakes with cops can be interesting.
Appears that someone named Scarface has enabled traffic in career mode in a recently uploaded mod
Quote from: PomFrit on Mar 17, 2026, 3:20 AMIs it possible to enable traffics and cops in Career mode ? Knockouts with traffics and High Stakes with cops can be interesting.
It is actually possible, but it requires some careful modification of the exe file.
As a test, I managed to add a minimal amount of traffic to Career mode (started with 2 cars, no cops yet), and then use all the slots that are not occupied by AI or the player.
In a normal career, this gives about 8-10 traffic cars.
But if you want a 16-car tournament (15 AI + player), there will be no traffic at all, because the game only has 16 slots in total.
Personally, I was more focused to making a "Race Again" button for Career mode first.
And yes, that is also possible now, but it still needs some time to polish and stabilize before it's ready.
Quote from: nikon on Sep 07, 2026, 1:12 AMQuote from: PomFrit on Mar 17, 2026, 3:20 AMIs it possible to enable traffics and cops in Career mode ? Knockouts with traffics and High Stakes with cops can be interesting.
It is actually possible, but it requires some careful modification of the exe file.
As a test, I managed to add a minimal amount of traffic to Career mode (started with 2 cars, no cops yet), and then use all the slots that are not occupied by AI or the player.
In a normal career, this gives about 8-10 traffic cars.
But if you want a 16-car tournament (15 AI + player), there will be no traffic at all, because the game only has 16 slots in total.
Personally, I was more focused to making a "Race Again" button for Career mode first.
And yes, that is also possible now, but it still needs some time to polish and stabilize before it's ready.
You can only have up to 14 AI racers, if you put 15, the game crashes
Quote from: pete9516 on Sep 07, 2026, 11:21 PMQuote from: nikon on Sep 07, 2026, 1:12 AMIt is actually possible, but it requires some careful modification of the exe file.
As a test, I managed to add a minimal amount of traffic to Career mode (started with 2 cars, no cops yet), and then use all the slots that are not occupied by AI or the player.
In a normal career, this gives about 8-10 traffic cars.
But if you want a 16-car tournament (15 AI + player), there will be no traffic at all, because the game only has 16 slots in total.
Personally, I was more focused to making a "Race Again" button for Career mode first.
And yes, that is also possible now, but it still needs some time to polish and stabilize before it's ready.
You can only have up to 14 AI racers, if you put 15, the game crashes
You are absolutely right about the original exe file.
Even if you edit the career file and set 15 opponents, the game just crashes.
It only launches with 14, but you can't actually complete a tournament with that many anyway.
The starting positions for the next track are generated incorrectly too (the player always ends up last).
But I edited the exe file so the game doesn't crash and actually works with 15+1, with 16 cars total.
This allowed me to run both tournaments and knockouts, and even complete them to the end and receive the reward.
On top of that, I'm trying to go further and replace the hardcoded tournament score table with a dynamic one.
It seems to be working, but still needs testing and bug fixing...
I managed to record a test video of this.
If it's appropriate to share here, I'd be post the YouTube link.
Posting Youtube links (or embedding them) is fine, go ahead.
Quote from: Remko on Sep 08, 2026, 4:55 PMPosting Youtube links (or embedding them) is fine, go ahead.
Thanks for the permission!
16-car tournament testing:
16-car knockout testing (+ custom eliminated car count):
As an example, you can see that when there are 16 participants, no traffic cars appear.
However, starting from the second race, after 5 participants have been eliminated, 5 traffic cars appear.
In the knockout video, according to the setting, the number of traffic cars should then remain at 5 for all subsequent races, even when more than 5 slots become available (from the third race onward).
The research is still in an early stage, and there are quite a few things that still need to be checked and tested.
I also used the EXE file patched with the veg.by mod as my base, so the patch may not be compatible with other patches or modified executables.
In the video where I was testing the 16-car knockout, I came across an interesting sorting (?) issue.
In the second race, two AI drivers had exactly the same finish time, and they happened to be right on the elimination cutoff.
There were 11 participants, with 4 to be eliminated. The two AI drivers were clearly in a close battle and crossed the finish line at the same time, taking 7th and 8th places respectively.
However, the AI driver who finished in 7th place was eliminated instead of the one in 8th place.
I think this might be related to how the results are sorted when the finish times are identical, but it needs further investigation. In practice, I think this is probably a fairly rare occurrence.
Very interesting observations. 16 car tournaments look like a lot of fun. Even 14 cars with a few traffic would be neat. Good luck in your research and thanks for sharing!
Quote from: nikon on Sep 08, 2026, 6:31 PMIn the video where I was testing the 16-car knockout, I came across an interesting sorting (?) issue.
In the second race, two AI drivers had exactly the same finish time, and they happened to be right on the elimination cutoff.
There were 11 participants, with 4 to be eliminated. The two AI drivers were clearly in a close battle and crossed the finish line at the same time, taking 7th and 8th places respectively.
However, the AI driver who finished in 7th place was eliminated instead of the one in 8th place.
I think this might be related to how the results are sorted when the finish times are identical, but it needs further investigation. In practice, I think this is probably a fairly rare occurrence.
yeaaah, another cool nfs4 channel, subscribed 👍
That career editor will turn out awesome.
Is there any way to have 16 racers outside of career mode, in single race for example?
Quote from: Venko on Sep 08, 2026, 10:44 PMThat career editor will turn out awesome.
Is there any way to have 16 racers outside of career mode, in single race for example?
I think it should be possible eventually.
Thanks everyone for the feedback!
This is still just the very beginning, and for now I'm mainly focused on Career mode.
I haven't gotten around to Single Race mode yet.
I'll try to consolidate my current work and put together a preliminary patch as soon as I can, but I can't promise when it will be ready yet.
With the current editor, you can set up to 14 opponents in Knockout mode (giving you 15 cars in total).
That's the maximum that can work in the unpatched version, as pete9516 mentioned above.
The player will also be placed in the last starting position for every race (although it's actually pretty fun to start at the back of the grid).
For Tournament mode, you can theoretically set more than 7 AI opponents as well, but in that case you won't be able to complete the entire tournament.
The points system also doesn't work properly, and the Standings table crashes the game.
I've managed to overcome most of the issues I described above, and with the patch, 16 participants are quite playable.
Quote from: nikon on Sep 08, 2026, 6:23 PMQuote from: Remko on Sep 08, 2026, 4:55 PMPosting Youtube links (or embedding them) is fine, go ahead.
Thanks for the permission!
16-car tournament testing:
16-car knockout testing (+ custom eliminated car count):
As an example, you can see that when there are 16 participants, no traffic cars appear.
However, starting from the second race, after 5 participants have been eliminated, 5 traffic cars appear.
In the knockout video, according to the setting, the number of traffic cars should then remain at 5 for all subsequent races, even when more than 5 slots become available (from the third race onward).
The research is still in an early stage, and there are quite a few things that still need to be checked and tested.
I also used the EXE file patched with the veg.by mod as my base, so the patch may not be compatible with other patches or modified executables.
VEG's patch is completely compatible with the older Expansion Pack/Stock Pack version as the file sizes are completely the same. So all my Delta Patches work on both of these versions. That's the good think about it
Quote from: nikon on Sep 08, 2026, 6:31 PMIn the video where I was testing the 16-car knockout, I came across an interesting sorting (?) issue.
In the second race, two AI drivers had exactly the same finish time, and they happened to be right on the elimination cutoff.
There were 11 participants, with 4 to be eliminated. The two AI drivers were clearly in a close battle and crossed the finish line at the same time, taking 7th and 8th places respectively.
However, the AI driver who finished in 7th place was eliminated instead of the one in 8th place.
I think this might be related to how the results are sorted when the finish times are identical, but it needs further investigation. In practice, I think this is probably a fairly rare occurrence.
This is a known issue, i had that happen multiple times and it's quite funny to happen but yeah it's there. Maybe it's like in TrackMania United Forever where the game displays hundreds of a second but it actually counts thousands of a second but won't display
Quote from: nikon on Sep 08, 2026, 11:05 PMFor Tournament mode, you can theoretically set more than 7 AI opponents as well, but in that case you won't be able to complete the entire tournament.
Why is that, i wonder?
Quote from: pete9516 on Sep 10, 2026, 5:20 AMQuote from: nikon on Sep 08, 2026, 11:05 PMFor Tournament mode, you can theoretically set more than 7 AI opponents as well, but in that case you won't be able to complete the entire tournament.
Why is that, i wonder?
There are quite a few places in the game where arrays are hardcoded for 8 slots.
Probably the most obvious example is the points table - it's an array of 8.
But there are many other places like that.
Actually, getting a 16-car tournament race to start is pretty easy.
You only need to change this byte:
00146B22 10 → 11Just in case the offsets don't match, here's the surrounding code:
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00146B10 8B 9C 24 20 01 00 00 83 FB 01 0F 86 F6 00 00 00
00146B20 83 FB 10 0F 83 23 01 00 00 8B 84 24 08 01 00 00
00146B30 89 84 24 34 01 00 00 85 C0 0F 8E D7 00 00 00 89
This switches the sorting mode when there are more than 15 objects (I still haven't figured out why the game does that).
But this change only lets you start a race with 16 cars - all the other problems I mentioned above are still there.
Quote from: pete9516 on Sep 10, 2026, 5:15 AMQuote from: nikon on Sep 08, 2026, 6:31 PMIn the video where I was testing the 16-car knockout, I came across an interesting sorting (?) issue.
In the second race, two AI drivers had exactly the same finish time, and they happened to be right on the elimination cutoff.
There were 11 participants, with 4 to be eliminated. The two AI drivers were clearly in a close battle and crossed the finish line at the same time, taking 7th and 8th places respectively.
However, the AI driver who finished in 7th place was eliminated instead of the one in 8th place.
I think this might be related to how the results are sorted when the finish times are identical, but it needs further investigation. In practice, I think this is probably a fairly rare occurrence.
This is a known issue, i had that happen multiple times and it's quite funny to happen but yeah it's there. Maybe it's like in TrackMania United Forever where the game displays hundreds of a second but it actually counts thousands of a second but won't display
I didn't know about that, or maybe I just forgot... :)
I haven't really investigated this issue yet (I already knew it couldn't have been caused by my changes).
But this is actually normal behavior for quicksort: if the values being compared are equal, their relative order isn't guaranteed.
The comparison function returns 0 for such objects,
so you'd need some kind of secondary criterion: the driver's name, for example,
or something ese, to decide which one goes above the other.
I remember being a bit surprised at first that the game only renders half of the car,
actually even less than that, when you're using the cokpit camera.
When I was testing the mouse look idea, I was initially a little disappointed,
because it seemed like the game simply didn't render the full object.
But it turns out it can be made to work properly just by removing the filter that decides which parts to render depending on the side.
(that might increase the hardware requirements a little, though...)
Quote from: nikon on Sep 10, 2026, 6:36 AMBut it turns out it can be made to work properly just by removing the filter that decides which parts to render depending on the side.
Yeah that's always been a nasty issue. They've probably tried to reduce the resource usage, RAM, CPU, etc. but nowadays these filters can be savely turned off if you ask me
About the issue with the positioning in the results screen: This has never been an issue to me, i've always found it to be funny how the game decides wether i'm 1st or the opponent