NFSAddons Forums

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Zalcus20

#1
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




#2
If you use Veg's modern patch, you can set the "ThrashDriver=" line in the nfs4.ini to either "nglide" or "dgvoodoo". Both of them enable windowed mode, iirc.

You may have to make some configurations for it to work properly on your system.
#3
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.
#5
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... ;)
#6
Apparently, the new thread never got posted. I'm going to try creating the topic again. This time on my computer.

Using my smartphone seems to cause problems.  ???

@Evox: You will soon find out, friend.  8)
#7
First of all, I'm sorry about the confusion this might cause. I was creating a new topic called "NFS High Stakes exe addresses and modifications" and I think I might have somehow double posted the new topic. Also, there might be a typo in the topic name: "NFS High Stakes exe addresses and modificatioms".

If this is the case, can the mods fix the problem(s)?
#8
Quote from: DrSpeed on May 25, 2024, 11:57 PM
Maybe starting a thread related to NFS4 exe stuff? Because I also have a bunch of addresses to share and I don't want to go too off topic from this thread.
Also nice find, I'll use it in my game.  ;)

Yeah. I'll start a new thread if I find more addresses to share.

This is my first attempt at patching an executable file, so I am glad that you like this 'fix'.
#9
Quote from: pete9516 on May 26, 2024,  6:04 AM
So the AI has headlights turned on? But the road textures will remain unchanged?

AI will have their headlights on only. There are no road reflections from the headlights or sirens.

Although if you want to enable light reflections, there is that lighthack tool that Jagboy made years ago.  ;)

EDIT: Jagboy's light hack can be found here: https://nfshome.nl/utils.php?version=4 It complements this patch very well.
#10
This is not directly related to editing a ghost file, but I found an interesting edit for the nfs4.exe file.

There is a way to get all cars 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. 
#11
Editing Projects / Re: Flipping polies
Apr 16, 2024, 11:30 AM
Have you tried the modify/reorient function while in faces level?

To move the object bar, hold and drag on that very fine line just above it. Tbh, moving the object bar should have been easier than this. Don't know why it was programmed this way, or maybe I'm missing something. :/
#12
Editing Projects / Re: Flipping polies
Apr 14, 2024, 3:03 PM
A simple technique that works for me is using the Hide/Unhide function in Zmodeler 1.07. Go to faces mode and keep hiding polies until you reach the problematic ones. You may have to switch from different views (front/left/top/bottom/right) to prevent hiding of the problematic polies. If you hide one of them by accident, simply undo.

Don't forget to 'unhide all' when you are done.

This may take some time.  ;)

#13
General NFS / Re: Lost nfs4 cars continued
Nov 07, 2023, 9:29 AM
Quote from: pete9516 on Nov 06, 2023,  8:59 PM
That car should be in my mega.nz archive, since i downloaded all emergency planet cars and all PoliceHQ cars, you should have a look at the file name and search it
Well actually wait, i found it myself lol

I had no idea your archive also included emergency planet and NFS Police HQ.  :o

Thanks for your contribution and hard work. This version has the correct nyc taxi skin.  :)
#14
General NFS / Re: Lost nfs4 cars continued
Nov 06, 2023, 1:28 PM
I don't have an account with emergency planet and I really do not want to make one just to download one car (if it's even hosted there).  :)

If you have it in your archive, could you please send it to me?
#15
General NFS / Re: Lost nfs4 cars continued
Nov 06, 2023, 12:23 PM

Does anyone have this nyc police undercover taxi in their archives?
https://www.nfspolicehq.com/images/Image126.jpg

The download link at nfspolicehq has a different skin (picture is inaccurate):
http://nfspolicehq.com/index.php?ind=downloads&op=entry_view&iden=266