How to add a new car (Burnout Paradise): Difference between revisions

Content added Content deleted
(Add Data Types)
(Use the correct name for each hash)
Line 17: Line 17:
# Edit the binary files:
# Edit the binary files:
## Find the IDs that you have to edit. For all values in the table below, do the following:
## Find the IDs that you have to edit. For all values in the table below, do the following:
## Calculate the replacement value, by following the schema in the table below, change all letters to lowercase, generate a CRC32 value with HxD and bit swap them ([[Common Data Types (Burnout_Paradise)#CgsResourceID|CgsResourceID]])
## Calculate the [[Common Data Types (Burnout_Paradise)#CgsResourceID|CgsResourceID]], by following the schema in the table below, change all letters to lowercase, generate a CRC32 value with HxD and bit swap them
## Open up the File in Bundle Manager and look at the IDs. They are corrected, so you have to bit swap them when looking for them, e.g. ac21de43 is 43de21ac in the binary file.
## Open up the File in Bundle Manager and look at the IDs. They are corrected, so you have to bit swap them when looking for them, e.g. ac21de43 is 43de21ac in the binary file.
## Open Hexedit and search for the IDs to find out where you have to replace it
## Open Hexedit and search for the IDs to find out where you have to replace it
Line 23: Line 23:
##If it worked the name will show up in BundleManager
##If it worked the name will show up in BundleManager
# Unpack the VEH_<vehicleid>_AT with the Noesis and the noesis plugin to a folder
# Unpack the VEH_<vehicleid>_AT with the Noesis and the noesis plugin to a folder
# Edit the file in the AttributeSysVault folder, replace the values starting from 0x2E8 with the AttribSys ID from step three hashed as lookup8 little endian ([[Common Data Types (Burnout_Paradise)#Hash Int|Hash Int]])
# Calculate the [[Common Data Types (Burnout_Paradise)#Hash Int|Hash Int]] by taking AttribSys ID from step three and hash it as a lookup8 with [https://bpr.bo98.uk/lookup8/ lookup8]. The hash int is the little endian value.
# Edit the file in the AttributeSysVault folder, replace the values starting from 0x2E8 with the [[Common Data Types (Burnout_Paradise)#Hash Int|Hash Int]]
# Pack it up, rename it to VEH_<vehicleid>_AT and replace it in vehicles.
# Pack it up, rename it to VEH_<vehicleid>_AT and replace it in vehicles.


Line 55: Line 56:
Search your language in LANGUAGE/LANGUAGE_X.bundle and open it up with BundleManager
Search your language in LANGUAGE/LANGUAGE_X.bundle and open it up with BundleManager


# Calculate the hash, by click on Tools → Hash in the Language Manager and typing in CAR_CAPS_<vehicle_id> for the name or CAR_BLURB_<vehicle_id> for the description ([[Common Data Types (Burnout_Paradise)#LanguageResourceHash |Language Resource Hash]])
# Calculate the [[Common Data Types (Burnout_Paradise)#LanguageResourceHash |Language Resource Hash]], by click on Tools → Hash in the Language Manager and typing in CAR_CAPS_<vehicle_id> for the name or CAR_BLURB_<vehicle_id> for the description
# Add the hash at the bottom with the new string
# Add the hash at the bottom with the new string
# Click on File → Apply changes to apply your changes
# Click on File → Apply changes to apply your changes