Welcome, guest. Please login or register. Did you miss your activation email?

Author Topic: How to install NFS HS with Modern Patches  (Read 1289 times)

Zpectre

  • Hero Member
  • *****
  • Posts: 502
  • Dark Paladin
    • View Profile
    • My blog
Re: How to install NFS HS with Modern Patches
« Reply #15 on: November 21, 2017, 10:52:14 PM »
Was it here that I spoke about the addon cars? No? Well, then I'll report my findings here as well.

The FEDATA files of the addon cars have some hidden data which makes them accessible only when installed into the SaveData folder. This was obviously done to preserve the integrity of the vanilla game. I do not know what this data is, because NFS Wizard can't read it, but I do know it's there.

I can't pinpoint which of the fields has it but, if you open a FEDATA file of an addon car in NFS Wizard, delete the ID and serial number content and write it again, NFS Wizard will overwrite the data with the values you input, so the problem should be fixed. This will also work for any addon car by third-parties which behaves similarly to the official ones, such as Thomas Egelkraut and jason g trusty's cars.

Addon cars also have specific AI behavior, which NFS Wizard cannot read, but it's there in the Pursuit field of the FEDATA file. NFS Wizard returns a blank field IIRC. Again, you can just switch it from the blank field to "No" and the cars will behave as normal.

I was in the middle of making a barebones expansion pack as a companion to the Modern Patch containing those fixes as well as others (missing colors in the Aston Martin, for instance), but it was necessary to make showcase slides as well as proper vidwalls and I got lazy since Photoshop is not my thing. :D I cannot provide audio either since I can't even open the files and I don't sound much like the announcer.

DrSpeed

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: How to install NFS HS with Modern Patches
« Reply #16 on: November 22, 2017, 06:54:01 AM »
The FEDATA files of the addon cars have some hidden data which makes them accessible only when installed into the SaveData folder. This was obviously done to preserve the integrity of the vanilla game. I do not know what this data is, because NFS Wizard can't read it, but I do know it's there.

I took the opportunity to check it with a HEX editor. I did find the address that controls this behaviour and managed to change it (0000037A). This address controls multiple functions in the fedata, which is: pursuit, bonus and the unknown data you talked about.

Here's the known values that I've found so far:
Value     Pursuit             Bonus     Available to AI
02NoNoYes
03NoYesNo
06NoNoNo
12YesNoYes
13YesYesYes
22No (Mercedes)NoYes
23No (Mercedes)YesNo
26No (Mercedes)NoNo
62No (Nissan)NoYes
63No (Nissan)YesNo
66No (Nissan)NoNo
A2No (Ferrari)NoYes
A3No (Ferrari)YesNo
A6No (Ferrari)NoNo

I tested on some downloaded cars such as: Nissan Pennzoil, HMRT Commodore and the Tombstone and I can confirm that it worked. None of these (Class AA) cars showed up on the Opponent garage (unless I selected one of them and then went back, like you can do with the official bonus cars).

Edit: If the value ends with a 6, the game will load the car from SaveData/Cars instead. Otherwise you'll get a Exception Access Violation error.
« Last Edit: November 22, 2017, 11:34:08 AM by DrSpeed »

Keiiko

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
    • Keiiko's pirate bay
Re: How to install NFS HS with Modern Patches
« Reply #17 on: November 22, 2017, 07:08:54 AM »
just i quick reply...

so we can say that first digit means that 0 is default car, 1 is pursuit, 2 is Mercedes, 6 is Nissan and A Ferrari
and second means that 2 is AI available but not bonus, 3 is AI available and bonus, 6 is neither of these

DrSpeed

  • Jr. Member
  • **
  • Posts: 53
    • View Profile
Re: How to install NFS HS with Modern Patches
« Reply #18 on: November 22, 2017, 07:27:06 AM »
It seems to be that way, yes.  :D

Zpectre

  • Hero Member
  • *****
  • Posts: 502
  • Dark Paladin
    • View Profile
    • My blog
Re: How to install NFS HS with Modern Patches
« Reply #19 on: November 22, 2017, 10:46:27 AM »
Thanks, DrSpeed! Nice find. :)

So there was an option to remove the Skyline from pursuits, interesting stuff.

MADMAN_nfs

  • Sr. Member
  • ****
  • Posts: 314
    • View Profile
    • Madness on youtube
Re: How to install NFS HS with Modern Patches
« Reply #20 on: November 22, 2017, 02:40:13 PM »
[...]
The FEDATA files of the addon cars have some hidden data which makes them accessible only when installed into the SaveData folder. This was obviously done to preserve the integrity of the vanilla game. I do not know what this data is, because NFS Wizard can't read it, but I do know it's there.

I can't pinpoint which of the fields has it but, if you open a FEDATA file of an addon car in NFS Wizard, delete the ID and serial number content and write it again, NFS Wizard will overwrite the data with the values you input, so the problem should be fixed. This will also work for any addon car by third-parties which behaves similarly to the official ones, such as Thomas Egelkraut and jason g trusty's cars.

Addon cars also have specific AI behavior, which NFS Wizard cannot read, but it's there in the Pursuit field of the FEDATA file. NFS Wizard returns a blank field IIRC. Again, you can just switch it from the blank field to "No" and the cars will behave as normal.
[...]

I think the fedata has lot of hidden features that would be worth further investigation. By the way FranknFurter also mentioned a somewhat useful purpose for the "empty" pursuit field Zpectre described in NFS Wizard:
http://www.nfsaddons.com/forums//index.php?topic=1831.msg33858#msg33858

Thanks for looking into this one DrSpeed! The values you found explain a lot weird stuff of the EA addons...

Another thing saved in the fedata that might be of interest, is the position of the engine (front engine or rear engine). When driving with damage enabled this settings is making a huge difference. It determines if the engine is damaged at a frontal collision or at a rear-end collison and the position of smoke coming from a damaged engine.

Surely you can do all this stuff with NFS-Wizard somehow, by copying over another fedata and replace all entries. But it always needs a lot of time to copy over identity stuff, car names and maybe showcase data...
So knowing the these hex values makes things a lot easier and faster.
Would be neat to have a little tool for this or a cheat engine script  :)

edit: FranknFurters post was about an empty class field, not about an empty pursuit field. Sorry for this mistake.
« Last Edit: November 22, 2017, 03:33:33 PM by MADMAN_nfs »

Andrew L

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: How to install NFS HS with Modern Patches
« Reply #21 on: November 22, 2017, 07:03:28 PM »
Wow great stuff you guys found! I need to try out NFS Wizard.  Can I use that tool to edit the Crown Vic and Caprice so the arms turn when turning the steering wheel?  It always bothers me that they rotate in their seat or their seat rotates with them.  I was trying cars in career mode and bought a Falcon XR8 and upped it to the max and it did the same thing where the driver rotates.

MADMAN_nfs

  • Sr. Member
  • ****
  • Posts: 314
    • View Profile
    • Madness on youtube
Re: How to install NFS HS with Modern Patches
« Reply #22 on: November 24, 2017, 08:58:05 AM »
Well, i tinkered a bit with HxD...
So to sum up my conclusions:

Reset car class (like Knockout truck)
- car has no class (B, A, AA or AAA) ingame
- NFS-Wizard shows empty class field
- in pursuit mode opponent will be chosen by random classes

Set adresses 00000382, 00000383, 00000384 and 00000385  to values "FF"

Engine position
- set engine position at front (like La Nina) or at rear (like McLaren F1)
- influences smoke position of damaged engine and amount of damage taken by collision type (Frontal- or Rear-impact crash)

Set adress 000003BB to
 "00" - Engine position at front
 "01" - Engine position at rear (other values unequal to 00 work as well)

Zpectre

  • Hero Member
  • *****
  • Posts: 502
  • Dark Paladin
    • View Profile
    • My blog
Re: How to install NFS HS with Modern Patches
« Reply #23 on: November 24, 2017, 01:49:24 PM »
Well, i tinkered a bit with HxD...
So to sum up my conclusions:

Reset car class (like Knockout truck)
- car has no class (B, A, AA or AAA) ingame
- NFS-Wizard shows empty class field
- in pursuit mode opponent will be chosen by random classes

Set adresses 00000382, 00000383, 00000384 and 00000385  to values "FF"

Engine position
- set engine position at front (like La Nina) or at rear (like McLaren F1)
- influences smoke position of damaged engine and amount of damage taken by collision type (Frontal- or Rear-impact crash)

Set adress 000003BB to
 "00" - Engine position at front
 "01" - Engine position at rear (other values unequal to 00 work as well)

I'm surprised this is in the FEDATA and not in the CARP...

There's a lot of stuff in the CARP that doesn't seem to do anything... :(

MADMAN_nfs

  • Sr. Member
  • ****
  • Posts: 314
    • View Profile
    • Madness on youtube
Re: How to install NFS HS with Modern Patches
« Reply #24 on: June 22, 2018, 10:56:14 AM »
Anyone got an idea how to get higher resolutions with the dx7 renderer in NFS4? I used dgvoodoos wrapper but then headlights in the nights are extremely flickering.

What hardware and which windows version are you using?

As far as i know, with the directX modes you are limited to the resolutions shown at the ingame-options.
The menu will always be 640x480 anyways (except with some glide wrappers).
Btw, you can configure the modern patch using Keiiko's Setup from here:
http://www.nfsaddons.com/forums//index.php?topic=1877.0

The flickering of the headlights is a common problem. The phenomenon is called z-fighting. The Z-Buffer normally should avoid that problem... but it can happen anyways with projected headlights, since the headlight texture is rendered very close to the road surface (so their distance is nearly 0).
If the issue appears despite activated Z-Buffer, you can only switch headlights to "Vertex" in graphic options, to fix it.

If you just want to run the stock game (without high-poly modifications), also consider using the Stock Pack from JimDiabolo.
http://www.tsabrowski.de/NFS-HS
Might be possible to set resolutions in the registry manually there... but not sure about that.

What works best on your machine, you gotta find out yourself.
From my experience, on a modern (Win7 and up), somewhat powerful system, you're better off using one of the glide wrappers - either nglide or dgvoodoo (or Zeckensack from the Stock Pack).