NFSMW Basic Modding Tut (Repost)

Jan. 15, 2018, 9:20 a.m.
This was actually posted on GTRCars, since the site is dead for a long time, I'll be posting it here. Much thanks goes to @RD
==================================
I'm just throwing it whatever I compiled and found in the old thread back @ RD.
Feel free to correct or contribute to here.

–––––––––––

(in textures.txt)

Code:

Code:
    [tpk]
    Identifier=CARTEXTURES
    PipelinePath=Global\Pipeline\CarTemplateTextures_CARFOLDERNAME.tpk
    XName=CARFOLDERNAME
    Output=output\CARS_REPLACE\CARFOLDERNAME\TEXTURES.BIN

    [texture]
    Name=TEXTURENAME
    File=YOURTEXTUREFILE.dds

    CARFOLDERNAME - basically is the car you want to replace. For specific car, check your NFSMW/CARS folder.
    TEXTURENAME - A name to assign your texture. See below for what names can be used
    YOURTEXTUREFILE - Simple enough. Your texture name that is saved in .dds, MUST be in the same folder as where "textures.txt" is.


Here are the following names you can use to assign texture:

    ENGINE
    MISC
    MISC_N
    TIRE
    TIRE_N
    INTERIOR
    INTERIOR_N
    BADGING
    BADGING_N
    SKIN2
    SKIN3
    SKIN4
    SKIN1
    LOGO
    DRIVER
    TREAD
    TREAD_N
    RIM_BLUR
    RIM
    NEON
    DOOR_HANDLE
    SIDELIGHT
    BADGING_EU*
    SKIN1B


NOTE: BADGING_EU may screw up games that are in other languages,
so it is NOT advised to use.

–––––––

(in materials.txt)

Code:

    MATERIAL NAME=SHADER/x_TEXTURENAME

    MATERIAL NAME - Pretty straightforward. If you don't know, hit "E" if you're in Zmodeler to check the material names. They MUST be in order, for safe side purposes.
    i.e: if PAINT material is first, then put PAINT as first material in "materials.txt".
    SHADER - Assigning the shader for that material. Refer to the table below, again.
    x_TEXTURENAME - Simple answer, your texture name that you assigned in "textures.txt". It is a must to add a x_ infront to work.


i.e: if the texture for the interior is assigned to INTERIOR in "textures.txt", use x_INTERIOR.

Here are the list of shaders.

    06D6080A ; body paint
    ALUMINUM
    BOTTOM
    BRAKEDISC
    BRAKELIGHT
    BRAKELIGHTGLASS
    BRAKES
    CALIPER
    CALIPERDECAL
    CARBONFIBER
    CARBONFIBER2
    CHAR_CLOTH
    CHAR_HAIR
    CHAR_LATEX
    CHAR_LEATHER
    CHAR_PLASTIC
    CHAR_RUBBER
    CHAR_SKIN
    CHROME
    CLEARPLASTIC
    CUSTOMPAINT_x x: 1 - 20
    DECAL
    DEFAULT
    DIABLOHP
    DRIVER
    DRIVERHEAD
    DULLENGINE
    DULLPLASTIC
    ENGINE
    EXHAUST_TIP
    GOLDROTOR
    GRILL
    HEADLIGHT
    HEADLIGHTGLASS
    HEADLIGHTREFLECTOR
    HOSES
    INTERIOR
    LICENSEPLATE
    MAGCHROME
    MAGGUNMETAL
    MAGSILVER
    MAGSILVERGLOSS
    MATTEPLASTIC
    MESH
    METPAINTx x: BLACK, BLUE, GOLD, GRAY, GREEN, RED, SILVER, YELLOW
    MIRROR
    MOLDINGS
    PEARL[x] x: 1 - 9
    PLAINNOTHING
    PLASTICHUBCAP
    RAD
    REGPAINTx x: BLACK, BLUE, GRAY, GREEN, ORANGE, PINK, RED, WHITE, YELLOW
    RIMPEARL[x] x: 1 - 9
    ROAD
    RUBBER
    SHINYMOLDINGS
    SHINYPLASTIC
    TRAFFIC
    TRAFFICWINDOWS
    USER_CALIPERS
    USER_EXHAUST
    USER_EXHAUST2
    USER_HOSES
    USER_RIMS
    USER_RIMS_CHROME
    USER_RIMS_GLOSS
    USER_RIMS_GUNMETAL
    USER_RIMS_MAGSILVER
    USER_RIMS_MET
    USER_RIMS_SILVERGLOSS
    USER_SPOILER
    WHEELBLUR
    WHITE
    WINDOWMASK
    WINDSHIELD




–––––––

(in build.bat)

Code:

    @echo off
    echo =====================================================
    echo Compiling Textures…
    echo =====================================================
    ..\bin\mwtc.exe textures.txt
    ..\bin\texpatch output\FRONTEND\MANUFACTURERS\XX-NAME.BIN "CARSELECT_MANUFACTURER_NAME"
    ..\bin\texpatch output\CARS_REPLACE\CARSFOLDERNAME\SECONDARYLOGO.BIN "SECONDARY_LOGO_CARINTERNAL_1"
    echo.
    echo =====================================================
    echo Compiling Model…
    echo =====================================================
    ..\bin\mwgc -nowait -xname "CARFOLDERNAME" -matlist "materials.txt" -xlink "lod.txt" -source "EXPORTEDMWRFILE.mwr" -target "output\CARS_REPLACE\CARFOLDERNAME\GEOMETRY.BIN"
    echo.
    echo =====================================================
    echo Complete.
    echo =====================================================
    pause

    CARFOLDERNAME - All of the fields which uses this MUST be the same as the one you changed in "textures.txt"
    CARINTERNAL - Internal value for vehicle you're replacing. Refer to the table below.
    EXPORTEDMWRFILE.mwr - Your 3D exported model source. It always ends with an .mwr . Name it correctly or else MW Geometry Compiler will not be able to compile.
    NAME - Car manufacturer's name. name MUST be the same as the one that is used in the "XX-NAME.BIN"
    XX-NAME.BIN - XX is basically the number (any number will do) and NAME is the name of the manufacturer.


NOTE: BOTH name values MUST be exact.



Here's the list for car internal values. (props to Villain aka Finalmaster 2 for posting this in the NFSMW - Car Editing Tools thread)

Internal-value (Vehicle)

    sl65 (SL65 AMG)
    monaro (Vauxhall Monaro VXR)
    db9 (Aston Martin DB9)
    a3_20t (Audi A3 3.2 quattro)
    a4_32 (Audi A4 3.2 FSI quattro)
    tt (Audi TT 3.2 quattro)
    m3_gtr (BMW M3 GTR)
    m3_gtre46 (BMW M3 GTR E46)
    cts (Cadillac CTS)
    cobaltss (Cobalt SS)
    corvette_car (Corvette C6)
    corvettec6r (Corvette C6.R)
    viper (Dodge Viper SRT10)
    punto (Fiat Punto)
    fordgt (Ford GT)
    mustanggt (Ford Mustang GT)
    gallardo (Lamborghini Gallardo)
    murcielago (Lamborghini Murciélago)
    is300 (Lexus IS300)
    elise (Lotus Elise)
    rx7 (Mazda RX-7)
    rx8 (Mazda RX-Cool
    clk500 (Mercedes-Benz CLK 500)
    sl500 (Mercedes-Benz SL 500)
    slr (Mercedes-Benz SLR McLaren)
    eclipsegt (Mitsubishi Eclipse)
    lancerevo8 (Mitsubishi Lancer EVOLUTION VIII)
    gto (Pontiac GTO)
    997s (Porsche 911 Carrera S)
    911gt2 (Porsche 911 GT2)
    911turbb (Porsche 911 Turbo S)
    carrera_gt (Porsche Carrera GT)
    caymans (Porsche Cayman S)
    clio (Renault Clio V6)
    imprezzawrx (Subaru Impreza WRX STi)
    supra (Toyota Supra)
    gti (VW Golf GTI)
    camaro (Camaro SS)


––––––––––––––

FOLDER NAME - Car Name

NORMAL CARS:

    911GT2 - Porsche 911 GT2
    911TURBO - Porsche 911 Turbo S
    997S - Porsche 911 Carrera S
    A3 - Audi A3
    A4 - Audi A4
    BMWM3GTR - BMW M3 GTR
    BMWM3GTRE46 - BMW M3 (Normal)
    CAMARO - Chevrolet Camaro SS
    CARRERAGT - Porsche Carrera GT
    CAYMANS - Porsche Cayman S
    CLIO - Renault Clio
    CLK500 - Mercedes-Benz CLK500
    COBALTSS - Chevrolet Cobalt SS
    CORVETTE - Chevrolet Corvette C6
    CORVETTEC6R - Chevrolet Corvette C6R
    CTS - Cadilliac CTS
    DB9 - Aston Martin DB9
    ECLIPSEGT - Mitsubishi Eclipse GT
    ELISE - Lotus Elise
    FORDGT - Ford GT
    GALLARDO - Lamborghini Gallardo
    GTI - Volkswagen Golf GTi
    GTO - Pontiac GTO
    IMPREZAWRX - Subaru Impreza WRX STi
    IS300 - Lexus IS300
    MURCIELAGO - Lamborghini Murcielago
    MUSTANGGT - Ford Mustang GT
    PUNTO - Fiat Punto
    RX7 - Mazda RX-7
    RX8 - Mazda RX-8
    SL500 - Mercedes-Benz SL500
    SL65 - Mercedes-Benz SL65
    SLR - Mercedes-Benz SLR McLaren
    SUPRA - Toyota Supra
    TT - Audi TT
    Viper - Dodge Viper SRT-10




TRAFFIC CARS:
(there are two lists, first list are the ones that CAN be played in-game, second one is the traffic you see while free-roaming.)

    CEMTR - Cement Truck
    GARB - Garbage Truck
    MINIVAN - Minivan
    PICKUPA - Pickup Truck
    PIZZA - Pizza Car
    SEMI - Semi-Trailer
    TAXI - Taxi Car


Still incomplete on this.

(continued in next post)

Part Names - (explained)

The following can be used while converting to MW:

    base_a
    kit00_body_a
    kit00_driver_a
    kit00_front_brake_a
    kit00_rear_brake_a
    kit00_front_tire_a
    kit00_hood_a
    kit00_interior_a
    kit00_left_brakelight_a
    kit00_right_brakelight_a
    kit00_left_headlight_a
    kit00_right_headlight_a
    kit00_left_headlight_glass_a
    kit00_right_headlight_glass_a
    kit00_left_side_mirror_a
    kit00_right_side_mirror_a
    kit00_front_window_a
    kit00_rear_window_a
    kit00_front_left_window_a
    kit00_front_right_window_a
    kit00_rear_left_window_a
    kit00_rear_right_window_a
    kit00_spoiler_a
    kit00_universal_spoiler_base_a
    style00_hood_a
    kit00_left_brakelight_glass_a
    kit00_right_brakelight_glass_a
    kit00_front_brake_a
    kit00_damage0_cop_lights_a
    kit00_damage0_trunk_a
    kit00_damage0_right_door_a
    kit00_damage1_rear_bumbper_a
    kit00_damage0_right_brakelight_a
    kit00_damage0_left_door_a
    kit00_damage0_left_brakelight_a
    kit00_damage0_right_headlight_a
    kit00_damage1_cop_lights_a
    kit00_rear_brake_a
    kit00_damage1_right_door_a
    kit00_damage0_rear_bumper_a
    kit00_damage_from_window_a
    kit00_damage1_trunk_a
    kit00_damage1_left_door_a
    kit00_damage1_front_window_a
    kit00_damage1_body_a
    kit00_damage1_hood_a
    kit00_damage0_body_a
    kit00_damage0_front_bumper_a
    kit00_driver_a
    kit00_damage0_hood_a
    kit00_damage1_front_bumper_a
    kit00_front_tire_a
    kit00_damage1_left_headlight_a
    kit00_damage1_left_brakelight_a
    kit00_damage1_right_headlight_a
    kit00_damage0_left_headlight_a
    kit00_damage1_right_brakelight_a


Any other part names that are acceptable please post.
Notes:

    _a can be changed to another character for LOD. (level of detail) Ranges from A-E.
    style00 (00) can be changed to another number for different hood part. Ranges are: 02-07, 09, 10, 13, 16, 17, 20, 21, 23, 26, 31, 32.
    kit00_body_a (00) can be changed to another number for Body Kits. (maximum of 5) Ranges from 00-05

 These are all the preset numbers for the manufacturer logos in Front End files:

Code:

1 BMW
2 Ford
3 Subaru
4 Porsche
5 Audi
6 Mazda
7 General Motors
8 Dodge
9 Toyota
10 Mitsubishi
11 Mercedes Benz/McLaren
12 Mercedes Benz
13 TP (Used to be Nissan?)
14 Lotus
15 Lamborghini
16 Renault
17 Lexus
18 Pontiac
19 Chevrolet
20 Vauxhall
21 Aston Martin
22 Volkswagen
23 Fiat
24 Cadillac
25 Corvette

The following are the VerbalType hashes for ATTRIBUTES files; for example to have the police call your Elise a 'Viper' type the following in the ATTRIBUTES file;

patch int32 bin:0x2fbc0 0x00000008


Code:

Sports Car*
0x10000000
0x90000000

N/A
0x50000000
0x00000000
0x80000000
0x00200000
0x00400000
0x00600000
0x00800000
0x00010000
0x00003000
0x00000007

Supra
0x20000000
0x30000000
0x70000000

Cadillac               
0x40000000
0x60000000

Lamborghini
0x01000000
0x03000000
0x05000000
0x09000000

Opel*
0x04000000
0x06000000

Chrysler*               
0x07000000
0x02000000

Sedan*
0x08000000

Volkswagen
0x00100000
0x00300000
0x00500000
0x00700000

Pagani*
0x00900000

Renault
0x00020000
0x00030000
0x00070000

Lexus
0x00040000
0x00050000
0x00060000

Mini*
0x00080000
0x00090000

Subaru
0x00001000
0x00005000

Camaro
0x00002000
0x00006000

GTO
0x00004000
0x00007000

Nissan*
0x00008000
0x00009000

Audi
0x00000100
0x00000300
0x00000500
0x00000900

Mitsubishi
0x00000200
0x00000600
0x00000700

Mustang
0x00000400

Lotus
0x00000800

Aston Martin
0x00000010
0x00000030
0x00000070

Corvette               
0x00000020

BMW
0x00000040
0x00000050
0x00000060

Mercedes               
0x00000080
0x00000090

McLaren
0x00000001
0x00000009

Porsche
0x00000003
0x00000006
0x00000002

Ford GT
0x00000004
0x00000005

Viper
0x00000008

The VerbalType (or copspeech) hashes in VLTEdit were not accurate so I spent about three hours plugging these in, checking them, and saving them. They are correct to my knowledge. The names with the stars next to them interest me because they don't match any default cars in the game.

Might as well add something I had written down for years.

Turbo noises for use with TurboSND fields in pvehicle section.

Code:

0x08f716bd    TURBO_EXOTIC_0_MB
0x8491a9c9    TURBO_EXOTIC_1_MB
0x2b16df5d    TURBO_EXOTIC_2_MB

0x0ae4739d    TURBO_LRG_1_MB

0x87847a68    TURBO_SC_COBRA_MB
0x572af7ce    TURBO_SC_GENERIC_MB
0x6329736a    TURBO_SC_MBZ_MB
0x051b079e    TURBO_SC_MUSTANG_MB

0x9d10a557    TURBO_TUN_MED_0_MB
0xaa6ba0b0    TURBO_TUN_MED_1_MB
0x3f333115    TURBO_TUN_MED_2_MB

0x73216c79    TURBO_TUN_SML_0_MB
0x9e45f0b2    TURBO_TUN_SML_1_MB
0x664ecb21    TURBO_TUN_SML_2_MB

0x0755409c    TURBO_TUN_SML2_0_MB
0x556596db    TURBO_TUN_SML2_1_MB
0x81c64c37    TURBO_TUN_SML2_2_MB

Complete engineaudio listing for use with engineaudio fields in pvehicle section.

Code:

Acura Integra
0x35630a57

Aston Martin DB9
0xa4b0ace5

Audi S4
0x6aecaf5e

BMW M3 type 1
0xb01b5dcf

BMW M3 type 2
0x43f96e04

BMW M3 type 3
0x45f8a988

BMW M5
0x7d48b6a8

Chevrolet Cavalier type 1
0xc64433db

Chevrolet Cavalier type 2
0x6f046022

Chevrolet Corvette Z06 type 1
0xf6a7f776

Chevrolet Corvette Z06 type 2
0xbb11a713

Dodge Viper type 1
0xad63e82d

Dodge Viper type 2
0x60873cbe

Ferrari 360
0x8db4a27

Ford Focus type 1
0xfd5983fb

Ford Focus type 2
0xb5d7ffb3

Ford Mustang type 1
0xea777c06

Ford Mustang type 2
0x6f1563c2

Ford Mustang type 3
0xeff995dd

Ford Mustang GT
0x7fc99d43

Ford Mustang GT [transmission whine variant]
0x4786d869

Honda Prelude
0xb0c12f7f

Honda S2000 type 1
0x492a9e49

Honda S2000 type 2
0x3bf54d71

Honda S2000 type 3
0xc6ca4765

Honda S2000 type 4
0x41f05093

Honda S2000 type 5
0x87b387cc

Hummer H1
0x7a947ab6

Infiniti G35
0x35765cd

Lamborghini Diablo
0x8a9ff77a

Lamborghini Gallardo
0xee6e3ffd

Lamborghini Murcielago
0xdf604ed3

Lotus Elise
0xa2c12944

Mazda MX5/Miata
0x5725ddf

Mazda Proteus type 1
0xbc3608fa

Mazda Proteus type 2
0xa8f292cc

Mazda RX7
0x11ee0647

Mazda RX8
0x6adce092

Mercedes Benz CL500
0xab394152

Mercedes Benz CL55
0xee26280d

Mercedes Benz SL65
0xb9e347d

Mercedes SLR
0x35090158

Mitsubishi Eclipse type 1
0xa8764e43

Mitsubishi Eclipse type 2
0x3b8f25af

Nissan 240SX
0x51db6dd4

Nissan 300ZX
0xc34e4550

Nissan 350Z type 1
0x896ad470

Nissan 350Z type 2
0xb364c829

Nissan Skyline
0x8d18f209

Porsche 911 type 1
0x4f526043

Porsche 911 type 2
0xaac3a15e

Porsche 928
0x4f32fc80

Porsche 996 Turbo
0xf9a6801c

Porsche Carrera GT
0xcb1caa71

Porsche DP 935
0x99a002c7

Porsche GT4RS
0x2e3e93d7

Subaru Impreza WRX type 1
0x34d1da91

Subaru Impreza WRX type 2
0xe58dcd49

Subaru Impreza WRX type 3
0xbd7dfc84

Toyota Corolla GTS
0xb2c77a77

Toyota Corolla GTS [low revving]
0xc8eb0a3b

Truck engine
0xe2b372ce

TVR Cerberra
0x799fb9ea

TVR Tuscan
0x3c908202

Volkswagen Golf Cabrio
0x8b2de016

Volkswagen Golf GTI
0x6a99bded

Volkswagen Jetta Mk3
0x3f7db81a

Volkswagen Jetta Mk4
0xf0b540a2

Volkswagen Scirocco
0x516808ec
Jan. 15, 2018, 10:31 a.m.
Wow! I was looking so long for this! Thank you! Is there more archive stuff?
Jan. 15, 2018, 12:45 p.m.
Thanks for reposting it in this site, but there are a few mistakes and I'll be thankful, if you fix them, dear: ;)

1-Change "06D6080A ; body paint" to 0xD6D6080A (Body Paint) aka CARSKIN or simply, put CARSKIN, instead of that hash.
2-BMWM3GTRE46 is Hero's BMW. BMWM3GTR is street version.

And please deattach cop car part names from racer car part names. Don't forget to credit authors.

@Zipper, he almost brought everything and should enough. :)

Search Forums

Active Topics

Notifications

You currently have no notifications.

{[{ notification.title }]}

{[{ notification.created|timeAgo:'MM/dd/yyyy' }]}
{[{ notification.sender.display_name }]}
older notifications mark all as read
Shoutbox
{[{ shout.created|timeAgo:'MM/dd/yyyy' }]}