SpeedReflect / Binary

Tool for editing Need for Speed binary files (.BIN, .BUN, .LZC).
GNU General Public License v3.0
103 stars 12 forks source link

Binary breaks NFS Undercover's tractor-trailer linking #15

Open NI240SX opened 1 year ago

NI240SX commented 1 year ago

Editing NFS Undercover's GlobalB.lzc will break the sort of offset between tractors and trailers, causing the trailers to spawn at the same coordinates as the tractors, so inside them, basically making these vanilla traffic vehicles unusable as well as the whole concept of trailer which could be nice to explore in terms of modding.

Tested with versions : Binary : 2.8.3 and NFSCO fork 2.9.0 Game : 1.0 steamless 10MB exe

How to replicate : You can test this with a bare vanilla 1.0 game and Extra Options' ShowAllCarsInFE, get one of the trucks which has a trailer (there should be 4, only one doesn't have a trailer), spawn in free roam, it jumps when spawning so you have to wait for it to fall back down, then enter and close the My Cars menu to reset it and you should have a properly drivable semi with a trailer. Open Binary, create a basic endscript for that game copy, then load it, do nothing as GlobalB.lzc is already loaded, and save. Back to the game, open the same save and the truck and trailer will spawn inside each other. As a double-check you can still replace the GlobalB.lzc and GlobalA.bun with their .BACC backups afterwards and see that it fixes the issue.

image image