guidanceSteering icon indicating copy to clipboard operation
guidanceSteering copied to clipboard

[BUG] GPS module appears in a different vehicle after restart.

Open SimonVolden opened this issue 2 years ago • 7 comments

Describe the bug After starting the game again I noticed that some vehicles I had GPS on, didnt have it, while others that I had not bought GPS had. For example; I had bought GPS for a couple of fendts, and when I started the game again I had GPS on a raptor 300 (forest mulcher) and a Rottne H21D (forest machine).

To Reproduce Not really sure how to reproduce as it just happened, but sometimes when I restart the game, the GPS switches vehicles. I have quite a lot of vehicles on my savegame if that may cause the issue.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows 10
  • FS patch version 1.1.1.0

SimonVolden avatar Dec 12 '21 12:12 SimonVolden

Are you running the dev version from github?

stijnwop avatar Dec 13 '21 16:12 stijnwop

Are you running the dev version from github?

No, just the one from the in-game modhub.

SimonVolden avatar Dec 13 '21 16:12 SimonVolden

same problem

Padm59 avatar Dec 16 '21 09:12 Padm59

Me too, GPS moved from my combine to my truck, but seems to now be deterministic in that it no longer "moves" in subsequent game restarts. I checked the globalPositioningSystem keys in my vehicles.xml and they are on the correct vehicles there, so the issue must be when loading, not when persisting.

Kwarf avatar Dec 16 '21 12:12 Kwarf

Well I need a clear reproduction steps else it's a guessing game..

stijnwop avatar Dec 16 '21 16:12 stijnwop

getting this error not sure what it about when seeding the fps goes the crap ounce i unticked it seeding worked fine =D:/mods_for_fs22/mods/FS22_guidanceSteering/src/vehicles/GlobalPositioningSystem.lua (573) : printCallstack dataS/scripts/specialization/SpecializationUtil.lua (19) dataS/scripts/vehicles/Vehicle.lua (1873) : raiseEvent dataS/scripts/network/NetworkNode.lua (112) : update dataS/scripts/network/Server.lua (59) : updateActiveObjects dataS/scripts/BaseMission.lua (1180) : update dataS/scripts/FSBaseMission.lua (2006) : update dataS/scripts/missions/mission00.lua (582) : update dataS/scripts/main.lua (1323) : update

ctig2015 avatar Dec 17 '21 00:12 ctig2015

On my end GPS was removed from a tractor entirely. It worked before patch 1.2.0.0.

  1. Save the game
  2. Stop the server
  3. Start the server
  4. GPS is gone from owned vehicle

Additional context: With the new stone bug (cluttered in the northern part of Haut-Beyleron) I copied the 'densityMap_stones.gdm' from a local savegame to our multiplayer savegame. Should be unrelated though as I made a backup before this and even with the backup the GPS is gone.

EDIT: When checking the vehicles.xml every vehicle has <configuration name="globalPositioningSystem" id="1"> and <boughtConfiguration name="globalPositioningSystem id="1"> in it

Additional context for EDIT:

  1. I disabled the mod for testing and checked the vehicles.xml and everything from the GPS mod was gone.
  2. I re-enabled the mod and the vehicles.xml still had the same entries as before.
  3. I bought GPS for one tractor again
  4. I checked the vehicles.xml and now every vehicle has a globalPositioningSystem with id=1 and boughtConfiguration. Only the tractor I newly bought the GPS for has two entries (one with id=1, the other with id=2). Only the newly bought GPS has an additional FS22_guidanceSteering entry in it, thus making the GPS usable
  5. When a vehicle has at least id=2 it seems to be saved across server restarts / shutdown.

EDIT 2: I found the GPS in my Lizard S-710 and Meridian TL 12-39 conveyor belts (although I only bought 1 GPS system in total). Even after manually deleting the entries for the conveyor belts and loading the savegame afterwards they got GPS injected somehow. I couldn't find any other configuration where this info would be saved, but it's always those two vehicles in my testing setup. The conveyor belt problem could be caused by #290

Phil7789 avatar Dec 18 '21 13:12 Phil7789