Fix oversight in nfsms generation, breaking the new recipe
This commit is contained in:
parent
61f244ae0d
commit
3d8b5316d2
|
@ -15,6 +15,9 @@ Importing the scripts multiple times is absolutely fine and will cause no issues
|
|||
This also includes the script used to generate the .nfsms file. If you wish to modify the values, edit mw\developer\ug2ish-handling.py and then run it using Python 3.x. You may use it to more easily make handling mods yourself.
|
||||
|
||||
Changelog:
|
||||
1.3:
|
||||
* Fix oversight in nfsms generation, breaking the new recipe
|
||||
|
||||
1.2:
|
||||
* Make folder structure a little nicer for future additions
|
||||
* Add new handling flavor that is a bit more grippy
|
||||
|
|
|
@ -35,6 +35,8 @@ os.chdir(sp)
|
|||
|
||||
nfsmsScript = s.replace(sp,p(pUp(sp),"scripts"),1).rsplit(".",1)[0] + ".nfsms"
|
||||
|
||||
propsPrefix = """"""
|
||||
|
||||
properties = """\
|
||||
# Handling/new: replaceme/misc
|
||||
update_field rigidbodyspecs racers GRAVITY -13
|
||||
|
@ -47,6 +49,8 @@ update_field chassis replaceme_top RIDE_HEIGHT Rear 14
|
|||
\
|
||||
"""
|
||||
|
||||
propsSuffix = """"""
|
||||
|
||||
carlist = ["911gt2","911turbo","997s","a3","a4","bmwm3gtr","bmwm3gtre46","camaro","carreragt","caymans","clio","clk500","cobaltss","corvette","corvettec6r","cts","db9","eclipsegt","elise","fordgt","gallardo","gti","gto","imprezawrx","is300","lancerevo8","monaro","murcielago","mustanggt","punto","rx7","rx8","sl500","sl65","slr","supra","tt","viper"]
|
||||
carlistNoTop = ["911gt2","bmwm3gtr","bmwm3gtre46","camaro","corvettec6r","sl65"]
|
||||
|
||||
|
@ -245,7 +249,9 @@ def main():
|
|||
output.append(line.replace("replaceme",car))
|
||||
|
||||
file = open(nfsmsScript,"w")
|
||||
file.write(propsPrefix)
|
||||
for line in output:
|
||||
file.write(line + "\n")
|
||||
file.write(propsSuffix)
|
||||
file.close()
|
||||
main()
|
||||
|
|
|
@ -35,14 +35,17 @@ os.chdir(sp)
|
|||
|
||||
nfsmsScript = s.replace(sp,pUp(sp),1).rsplit(".",1)[0] + ".nfsms"
|
||||
|
||||
properties = """\
|
||||
propsPrefix = """\
|
||||
game MW
|
||||
|
||||
ui_control checkbox new true "New flavor"
|
||||
ui_text More changes from the original values, makes primarily high-end vehicles a bit more planted.
|
||||
|
||||
script scripts\\separate-ai-handling.nfsms
|
||||
\
|
||||
"""
|
||||
|
||||
properties = """\
|
||||
# Handling: general/separation
|
||||
copy_node rigidbodyspecs cars racers ai_racers
|
||||
update_field pvehicle ai_racers rigidbodyspecs Collection ai_racers
|
||||
|
@ -167,7 +170,10 @@ update_field tires replaceme_top YAW_CONTROL[0] 1
|
|||
update_field tires replaceme_top YAW_CONTROL[1] 1
|
||||
update_field tires replaceme_top YAW_CONTROL[2] 1
|
||||
update_field tires replaceme_top YAW_CONTROL[3] 1
|
||||
\
|
||||
"""
|
||||
|
||||
propsSuffix = """\
|
||||
ui_option new
|
||||
script scripts\\ug2ish-handling-new.nfsms
|
||||
ui_option new
|
||||
|
@ -372,7 +378,9 @@ def main():
|
|||
output.append(line.replace("replaceme",car))
|
||||
|
||||
file = open(nfsmsScript,"w")
|
||||
file.write(propsPrefix)
|
||||
for line in output:
|
||||
file.write(line + "\n")
|
||||
file.write(propsSuffix)
|
||||
file.close()
|
||||
main()
|
||||
|
|
|
@ -4,7 +4,6 @@ ui_control checkbox new true "New flavor"
|
|||
ui_text More changes from the original values, makes primarily high-end vehicles a bit more planted.
|
||||
|
||||
script scripts\separate-ai-handling.nfsms
|
||||
|
||||
# Handling: general/separation
|
||||
copy_node rigidbodyspecs cars racers ai_racers
|
||||
update_field pvehicle ai_racers rigidbodyspecs Collection ai_racers
|
||||
|
@ -93,12 +92,6 @@ update_field tires 911gt2 YAW_CONTROL[2] 1.0
|
|||
update_field tires 911gt2 YAW_CONTROL[3] 1.0
|
||||
|
||||
|
||||
ui_option new
|
||||
script scripts\ug2ish-handling-new.nfsms
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -206,10 +199,6 @@ update_field tires 911turbo_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: 997s/separation
|
||||
copy_node chassis 997s ai_997s
|
||||
copy_node chassis 997s_top ai_997s_top
|
||||
|
@ -313,10 +302,6 @@ update_field tires 997s_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: a3/separation
|
||||
copy_node chassis a3 ai_a3
|
||||
copy_node chassis a3_top ai_a3_top
|
||||
|
@ -420,10 +405,6 @@ update_field tires a3_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: a4/separation
|
||||
copy_node chassis a4 ai_a4
|
||||
copy_node chassis a4_top ai_a4_top
|
||||
|
@ -527,10 +508,6 @@ update_field tires a4_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: bmwm3gtr/separation
|
||||
copy_node chassis bmwm3gtr ai_bmwm3gtr
|
||||
update_field pvehicle ai_bmwm3gtr chassis[0] Collection ai_bmwm3gtr
|
||||
|
@ -597,10 +574,6 @@ update_field tires bmwm3gtr YAW_CONTROL[3] 1.0
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: bmwm3gtre46/separation
|
||||
copy_node chassis bmwm3gtre46 ai_bmwm3gtre46
|
||||
update_field pvehicle ai_bmwm3gtre46 chassis[0] Collection ai_bmwm3gtre46
|
||||
|
@ -667,10 +640,6 @@ update_field tires bmwm3gtre46 YAW_CONTROL[3] 1.0
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: camaro/separation
|
||||
copy_node chassis camaro ai_camaro
|
||||
update_field pvehicle ai_camaro chassis[0] Collection ai_camaro
|
||||
|
@ -737,10 +706,6 @@ update_field tires camaro YAW_CONTROL[3] 1.0
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: carreragt/separation
|
||||
copy_node chassis carreragt ai_carreragt
|
||||
copy_node chassis carreragt_top ai_carreragt_top
|
||||
|
@ -844,10 +809,6 @@ update_field tires carreragt_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: caymans/separation
|
||||
copy_node chassis caymans ai_caymans
|
||||
copy_node chassis caymans_top ai_caymans_top
|
||||
|
@ -951,10 +912,6 @@ update_field tires caymans_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: clio/separation
|
||||
copy_node chassis clio ai_clio
|
||||
copy_node chassis clio_top ai_clio_top
|
||||
|
@ -1058,10 +1015,6 @@ update_field tires clio_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: clk500/separation
|
||||
copy_node chassis clk500 ai_clk500
|
||||
copy_node chassis clk500_top ai_clk500_top
|
||||
|
@ -1165,10 +1118,6 @@ update_field tires clk500_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: cobaltss/separation
|
||||
copy_node chassis cobaltss ai_cobaltss
|
||||
copy_node chassis cobaltss_top ai_cobaltss_top
|
||||
|
@ -1272,10 +1221,6 @@ update_field tires cobaltss_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: corvette/separation
|
||||
copy_node chassis corvette ai_corvette
|
||||
copy_node chassis corvette_top ai_corvette_top
|
||||
|
@ -1379,10 +1324,6 @@ update_field tires corvette_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: corvettec6r/separation
|
||||
copy_node chassis corvettec6r ai_corvettec6r
|
||||
update_field pvehicle ai_corvettec6r chassis[0] Collection ai_corvettec6r
|
||||
|
@ -1449,10 +1390,6 @@ update_field tires corvettec6r YAW_CONTROL[3] 1.0
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: cts/separation
|
||||
copy_node chassis cts ai_cts
|
||||
copy_node chassis cts_top ai_cts_top
|
||||
|
@ -1556,10 +1493,6 @@ update_field tires cts_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: db9/separation
|
||||
copy_node chassis db9 ai_db9
|
||||
copy_node chassis db9_top ai_db9_top
|
||||
|
@ -1663,10 +1596,6 @@ update_field tires db9_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: eclipsegt/separation
|
||||
copy_node chassis eclipsegt ai_eclipsegt
|
||||
copy_node chassis eclipsegt_top ai_eclipsegt_top
|
||||
|
@ -1770,10 +1699,6 @@ update_field tires eclipsegt_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: elise/separation
|
||||
copy_node chassis elise ai_elise
|
||||
copy_node chassis elise_top ai_elise_top
|
||||
|
@ -1877,10 +1802,6 @@ update_field tires elise_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: fordgt/separation
|
||||
copy_node chassis fordgt ai_fordgt
|
||||
copy_node chassis fordgt_top ai_fordgt_top
|
||||
|
@ -1984,10 +1905,6 @@ update_field tires fordgt_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: gallardo/separation
|
||||
copy_node chassis gallardo ai_gallardo
|
||||
copy_node chassis gallardo_top ai_gallardo_top
|
||||
|
@ -2091,10 +2008,6 @@ update_field tires gallardo_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: gti/separation
|
||||
copy_node chassis gti ai_gti
|
||||
copy_node chassis gti_top ai_gti_top
|
||||
|
@ -2198,10 +2111,6 @@ update_field tires gti_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: gto/separation
|
||||
copy_node chassis gto ai_gto
|
||||
copy_node chassis gto_top ai_gto_top
|
||||
|
@ -2305,10 +2214,6 @@ update_field tires gto_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: imprezawrx/separation
|
||||
copy_node chassis imprezawrx ai_imprezawrx
|
||||
copy_node chassis imprezawrx_top ai_imprezawrx_top
|
||||
|
@ -2412,10 +2317,6 @@ update_field tires imprezawrx_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: is300/separation
|
||||
copy_node chassis is300 ai_is300
|
||||
copy_node chassis is300_top ai_is300_top
|
||||
|
@ -2519,10 +2420,6 @@ update_field tires is300_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: lancerevo8/separation
|
||||
copy_node chassis lancerevo8 ai_lancerevo8
|
||||
copy_node chassis lancerevo8_top ai_lancerevo8_top
|
||||
|
@ -2626,10 +2523,6 @@ update_field tires lancerevo8_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: monaro/separation
|
||||
copy_node chassis monaro ai_monaro
|
||||
copy_node chassis monaro_top ai_monaro_top
|
||||
|
@ -2733,10 +2626,6 @@ update_field tires monaro_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: murcielago/separation
|
||||
copy_node chassis murcielago ai_murcielago
|
||||
copy_node chassis murcielago_top ai_murcielago_top
|
||||
|
@ -2840,10 +2729,6 @@ update_field tires murcielago_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: mustanggt/separation
|
||||
copy_node chassis mustanggt ai_mustanggt
|
||||
copy_node chassis mustanggt_top ai_mustanggt_top
|
||||
|
@ -2947,10 +2832,6 @@ update_field tires mustanggt_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: punto/separation
|
||||
copy_node chassis punto ai_punto
|
||||
copy_node chassis punto_top ai_punto_top
|
||||
|
@ -3054,10 +2935,6 @@ update_field tires punto_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: rx7/separation
|
||||
copy_node chassis rx7 ai_rx7
|
||||
copy_node chassis rx7_top ai_rx7_top
|
||||
|
@ -3161,10 +3038,6 @@ update_field tires rx7_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: rx8/separation
|
||||
copy_node chassis rx8 ai_rx8
|
||||
copy_node chassis rx8_top ai_rx8_top
|
||||
|
@ -3268,10 +3141,6 @@ update_field tires rx8_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: sl500/separation
|
||||
copy_node chassis sl500 ai_sl500
|
||||
copy_node chassis sl500_top ai_sl500_top
|
||||
|
@ -3375,10 +3244,6 @@ update_field tires sl500_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: sl65/separation
|
||||
copy_node chassis sl65 ai_sl65
|
||||
update_field pvehicle ai_sl65 chassis[0] Collection ai_sl65
|
||||
|
@ -3445,10 +3310,6 @@ update_field tires sl65 YAW_CONTROL[3] 1.0
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: slr/separation
|
||||
copy_node chassis slr ai_slr
|
||||
copy_node chassis slr_top ai_slr_top
|
||||
|
@ -3552,10 +3413,6 @@ update_field tires slr_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: supra/separation
|
||||
copy_node chassis supra ai_supra
|
||||
copy_node chassis supra_top ai_supra_top
|
||||
|
@ -3659,10 +3516,6 @@ update_field tires supra_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: tt/separation
|
||||
copy_node chassis tt ai_tt
|
||||
copy_node chassis tt_top ai_tt_top
|
||||
|
@ -3766,10 +3619,6 @@ update_field tires tt_top YAW_CONTROL[3] 1
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# Handling: viper/separation
|
||||
copy_node chassis viper ai_viper
|
||||
copy_node chassis viper_top ai_viper_top
|
||||
|
@ -3869,4 +3718,6 @@ update_field tires viper_top YAW_CONTROL[1] 1
|
|||
update_field tires viper_top YAW_CONTROL[2] 1
|
||||
update_field tires viper_top YAW_CONTROL[3] 1
|
||||
|
||||
|
||||
ui_option new
|
||||
script scripts\ug2ish-handling-new.nfsms
|
||||
ui_option new
|
||||
|
|
Loading…
Reference in New Issue