Closed JakobTischler closed 10 years ago
What do you mean by "it doesn't seem to show ingame" ? If you are talking of srping, damper, suspTravel and so : you can't change them without buying a new vehicle => the wheelshapes are not "re-created" by the "loadDynamicWheelDataFromXML" function.
Hm alright. So createWheelShape()
is called in Vehicle.load()
- which we could maybe simply call again during the reload. Not sure about this, though.
if Giants didn't just call the "vehicle:load()", I think there is something wrong that could happen (you lost many values during this process => position, implement attached and so)
I finally managed to get
gsVehicleReloadFromXML
working (commit https://github.com/JakobTischler/MoreRealisticDLCs/commit/ed930c677b55b069f1419bc4e53cd275b29b2c6a). The problem is, it doesn't seem to show ingame. I know that the (changed) values are set correctly into the vehicle xml (and read and applied byRealisticVehicle:developmentReloadFromXML(xmlFile)
, for example), but visually nothing changes.Does anybody know if I additionally still need to call another function (
loadFinished
or something similar)?Also, how do we get
gsVehicleReloadFromXML
to work with implements (instead of only steerables)?