@Quansquatch You need the gameconfig.xml and place it correctly, you need to replace the file in mods/update/update.rpf/common/data
next you need to replace the file in mods/update/update.rpf/common/data/levels/gta5 -> trains.xml
with the one provided on this side.
Now right click and edit and search.
search for KITANIC and change to METROTRAIN
that should get you fixed up.....
for the rest of you going on about the tram, well here is the fix for you.
open trains.xml by right clicking and selecting edit. this menu option only comes available AFTER
you are in edit mode.
<train_config_group name = "metro_group">
<train_config_ref name = "metro_config0" />
<train_config_ref name = "metro_config1" />
<train_config_ref name = "metro_config2" />
</train_config_group>
and click save. load up the game and the trams should be normal, or close enough.
Hey, so I'm not sure why, but when I load the game, it plays for about 2 minutes when it needs to spawn a train, crashes to desktop with no information in logs. Running modified trains.xml with redux. I mean i traced the problem back with the mod itself. When I take all the trains and move them from the kitsune group into the freight group, they work, of course no smoke or effects, but as soon as I place them back into this group or any other group (i even named one matro) and same result.
Also another bug, the way you read xml files from your mod is incorrect and is failing.
] [ERROR] Failed to instantiate script KitsuneTrains.cKitsuneTrains because constructor threw an exception: System.InvalidOperationException: There is an error in XML document (2, 2). ---> System.InvalidOperationException: <AnimalRidingDataArray xmlns=''> was not expected.
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderTrainConfigCollection.Read7_TrainConfigCollection()
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
at .[](String )
at KitsuneTrains.cKitsuneTrains.(String )
at KitsuneTrains.cKitsuneTrains.()
at KitsuneTrains.cKitsuneTrains..ctor()
I have fixed the tram for anyone that wants a fix. Tram will now spawn random 2 - 6 trams and with correct high adjustments.
So you need a hand with anything? I can help with some code if needed.
@Quansquatch You need the gameconfig.xml and place it correctly, you need to replace the file in mods/update/update.rpf/common/data
next you need to replace the file in mods/update/update.rpf/common/data/levels/gta5 -> trains.xml
with the one provided on this side.
Now right click and edit and search.
search for KITANIC and change to METROTRAIN
that should get you fixed up.....
for the rest of you going on about the tram, well here is the fix for you.
open trains.xml by right clicking and selecting edit. this menu option only comes available AFTER
you are in edit mode.
search for "metro_config0"
Select
<train_config
name = "metro_config0"
populate_train_dist = "40.0"
announce_stations = "false"
doors_beep = "false"
carriages_hang = "false"
carriages_swing = "false"
link_tracks_with_adjacent_stations = "true"
carriage_gap = "-0.4">
<carriage
model_name = "metrotrain"
max_peds_per_carriage = "4"
flip_model_dir = "false"
do_interior_lights = "true"
carriage_vert_offset = "-0.4"
repeat_count = "1" />
</train_config>
and delete it, now copy and paste this in its place
<train_config
name = "metro_config0"
populate_train_dist = "40.0"
announce_stations = "true"
doors_beep = "true"
carriages_hang = "false"
carriages_swing = "false"
link_tracks_with_adjacent_stations = "true"
carriage_gap = "-0.1">
<carriage
model_name = "metrotrain"
max_peds_per_carriage = "16"
flip_model_dir = "false"
do_interior_lights = "true"
carriage_vert_offset = "0.4"
repeat_count = "1" />
<carriage
model_name = "metrotrain"
max_peds_per_carriage = "16"
flip_model_dir = "true"
do_interior_lights = "true"
carriage_vert_offset = "0.4"
repeat_count = "1" />
<carriage
model_name = "metrotrain"
max_peds_per_carriage = "16"
flip_model_dir = "false"
do_interior_lights = "true"
carriage_vert_offset = "0.4"
repeat_count = "1" />
<carriage
model_name = "metrotrain"
max_peds_per_carriage = "16"
flip_model_dir = "true"
do_interior_lights = "true"
carriage_vert_offset = "0.4"
repeat_count = "1" />
</train_config>
<train_config
name = "metro_config1"
populate_train_dist = "40.0"
announce_stations = "true"
doors_beep = "true"
carriages_hang = "false"
carriages_swing = "false"
link_tracks_with_adjacent_stations = "true"
carriage_gap = "-0.1">
<carriage
model_name = "metrotrain"
max_peds_per_carriage = "16"
flip_model_dir = "false"
do_interior_lights = "true"
carriage_vert_offset = "0.4"
repeat_count = "1" />
<carriage
model_name = "metrotrain"
max_peds_per_carriage = "16"
flip_model_dir = "true"
do_interior_lights = "true"
carriage_vert_offset = "0.4"
repeat_count = "1" />
<carriage
model_name = "metrotrain"
max_peds_per_carriage = "10"
flip_model_dir = "false"
do_interior_lights = "true"
carriage_vert_offset = "0.4"
repeat_count = "1" />
<carriage
model_name = "metrotrain"
max_peds_per_carriage = "10"
flip_model_dir = "true"
do_interior_lights = "true"
carriage_vert_offset = "0.4"
repeat_count = "1" />
<carriage
model_name = "metrotrain"
max_peds_per_carriage = "10"
flip_model_dir = "false"
do_interior_lights = "true"
carriage_vert_offset = "0.4"
repeat_count = "1" />
<carriage
model_name = "metrotrain"
max_peds_per_carriage = "10"
flip_model_dir = "true"
do_interior_lights = "true"
carriage_vert_offset = "0.4"
repeat_count = "1" />
</train_config>
<train_config
name = "metro_config2"
populate_train_dist = "40.0"
announce_stations = "true"
doors_beep = "true"
carriages_hang = "false"
carriages_swing = "false"
link_tracks_with_adjacent_stations = "true"
carriage_gap = "-0.1">
<carriage
model_name = "metrotrain"
max_peds_per_carriage = "16"
flip_model_dir = "false"
do_interior_lights = "true"
carriage_vert_offset = "0.4"
repeat_count = "1" />
<carriage
model_name = "metrotrain"
max_peds_per_carriage = "16"
flip_model_dir = "true"
do_interior_lights = "true"
carriage_vert_offset = "0.4"
repeat_count = "1" />
</train_config>
now search for "metro_group"
and replace with
<train_config_group name = "metro_group">
<train_config_ref name = "metro_config0" />
<train_config_ref name = "metro_config1" />
<train_config_ref name = "metro_config2" />
</train_config_group>
and click save. load up the game and the trams should be normal, or close enough.
Hey, so I'm not sure why, but when I load the game, it plays for about 2 minutes when it needs to spawn a train, crashes to desktop with no information in logs. Running modified trains.xml with redux. I mean i traced the problem back with the mod itself. When I take all the trains and move them from the kitsune group into the freight group, they work, of course no smoke or effects, but as soon as I place them back into this group or any other group (i even named one matro) and same result.
Also another bug, the way you read xml files from your mod is incorrect and is failing.
] [ERROR] Failed to instantiate script KitsuneTrains.cKitsuneTrains because constructor threw an exception: System.InvalidOperationException: There is an error in XML document (2, 2). ---> System.InvalidOperationException: <AnimalRidingDataArray xmlns=''> was not expected.
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderTrainConfigCollection.Read7_TrainConfigCollection()
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(TextReader textReader)
at .[](String )
at KitsuneTrains.cKitsuneTrains.(String )
at KitsuneTrains.cKitsuneTrains.()
at KitsuneTrains.cKitsuneTrains..ctor()
I have fixed the tram for anyone that wants a fix. Tram will now spawn random 2 - 6 trams and with correct high adjustments.
So you need a hand with anything? I can help with some code if needed.
PS. I'm working on GTA V.5 (5.5) Concept Beta