JakobTischler / MoreRealisticDLCs

A lua/xml project that adds MoreRealistic to the Farming Simulator DLCs
8 stars 0 forks source link

gsVehicleReloadFromXML #41

Closed JakobTischler closed 10 years ago

JakobTischler commented 10 years ago

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 by RealisticVehicle: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)?

quadural commented 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.

JakobTischler commented 10 years ago

Hm alright. So createWheelShape() is called in Vehicle.load() - which we could maybe simply call again during the reload. Not sure about this, though.

quadural commented 10 years ago

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)