stijnwop / guidanceSteering

Guidance Steering (AutoTrack) for Farming Simulator 22.
381 stars 94 forks source link

[BUG] GPS on loan mission #295

Closed Codra11 closed 1 year ago

Codra11 commented 2 years ago

In multiplayer, if we take a mission with the loan of vehicle, I get these errors there:

Error: Running LUA method 'packetReceived'. C:/Users/Codra11/Documents/My Games/FarmingSimulator2022/mods/FS22_guidanceSteering/src/vehicles/GlobalPositioningSystem.lua:851: attempt to index field 'lineStrategy' (a nil value)

This makes the game unplayable

Is it possible to disable the GPS on the vehicle loan to avoid this error? Is this bug known?

Desktop (please complete the following information):

Thank you for all your time spent on this project.

CoyoteJohn110 commented 2 years ago

Can confirm.

This has happened a lot on our server, sometimes resulting in equipment that becomes completely inaccessible when using contract equipment with AI helpers.

Recognized it was a GS issue when we approach the equipment and it's beeping like crazy, as if GS is being constantly activated and deactivated.

justinkohlenberg commented 2 years ago

Can report that we have the same issue with GPS on our server. Reproducing is simple:

  1. Accept contract with loaned vehicles
  2. Restart server

In our case, at least this vehicle will be almost non-functional, hearing the same kind of beeping sounds as mentioned above. Rarely, this has also happened when just accepting a new contract with loan but not restarting the server. Most of the time though, as long as we don't restart the server while we have loans active, there are no issues with accepting new loans.

As a bandaid fix on our side we shut the server down, disable the gps mod, restart server, complete all contracts and hand them in. Once we have no more loaned vehicles left, we shut the server down once more and re-enable the mod.

stijnwop commented 2 years ago

Are you guys running the modhub version? I fixed an issue that resulted in GPS not being loaded on mission vehicles after a savegame restart, most likely this one is related to that.

Scuba-xx commented 2 years ago

Are you guys running the modhub version? I fixed an issue that resulted in GPS not being loaded on mission vehicles after a savegame restart, most likely this one is related to that.

Is this update pushed to the modhub? I am currently on modhub version 2.0.1.0 and it does this still, the GPS not being loaded after a save game with contract borrowed vehicles.

Thanks :D

Jayshua83 commented 2 years ago

I installed the GPS version on the official modhub onto our Dedi server. We happened to have a contract going at the time and upon first login the harvester started beeping oddly. It also had the header disconnected but as I approached the header I drove thru it like it wasn't there and then it ported to the front of the harvester. There was also a multitude of other oddites that all went away upon removing GPS.

EDIT : That ALL was just massive desync happening from GPS. I have NEVER experience server desync and had no idea how to categorize it! lol

GPS and In Progress Contracts after reloading a save is really BUGGY? No idea what any of this had to do with GPS.

I watched the log for errors/warnings and none were being thrown... :( All in all VERY odd!

Invr4get commented 2 years ago

Are you guys running the modhub version? I fixed an issue that resulted in GPS not being loaded on mission vehicles after a savegame restart, most likely this one is related to that.

They are loaded on mission vehicles. The problem is that the GPS that's on them can be glitched through 4 possible avenues: 1.They're already glitched once they spawn on the shop. You can already hear the GPS beeping as soon as you enter them. (rare)

  1. Gets glitched at random even hours into a misison, (rare) 3.Resetting the vehicle. (I've so far had it happened 3 out of 3 times)
  2. Restarting the game. (Have had it happen 2 out of 2)

Symptoms include (from what I've experienced, and I've only played with it in a dedi server) constant and erratic GPS beeping; a complete desync of the server when inside the vehicle- other players, and moving npcs would just stop and any trailers you're hauling would just rubber-band super hard to the point that you could be halfway through the map with a super long electric cable going back to your trailer. The more time you spend inside the vehicle, the longer it takes for the server to resolve your position, even if you get out of the vehicle, and everything jumps back into place. The worse symptom I've seen of desyincing was as soon as I entered a glitched tractor, my UI disappeared, and my character got teleported all over the map and stuck in midair unable to move; I had to relog to reset myself. The Items that they produce, like the giant square cotton bale, can wind up being stuck up in the air and can't be interacted with; this usually needs a server restart.

justinkohlenberg commented 2 years ago

2022-01-02 20:26 Error: Running LUA method 'packetReceived'. C://gameservers//s1428908//ls2022//gameProfile/mods/FS22_guidanceSteering/src/vehicles/GlobalPositioningSystem.lua:863: attempt to index field 'lineStrategy' (a nil value) 2022-01-02 20:26 Error: Running LUA method 'packetReceived'. C://gameservers//s1428908//ls2022//gameProfile/mods/FS22_guidanceSteering/src/events/StrategyInteractEvent.lua:37: attempt to index field 'lineStrategy' (a nil value) 2022-01-02 20:26 Error: Running LUA method 'packetReceived'. C://gameservers//s1428908//ls2022//gameProfile/mods/FS22_guidanceSteering/src/events/StrategyInteractEvent.lua:37: attempt to index field 'lineStrategy' (a nil value) 2022-01-02 20:26 Error: Running LUA method 'packetReceived'. C://gameservers//s1428908//ls2022//gameProfile/mods/FS22_guidanceSteering/src/vehicles/GlobalPositioningSystem.lua:851: attempt to index field 'lineStrategy' (a nil value) 2022-01-02 20:26 Error: Running LUA method 'packetReceived'. C://gameservers//s1428908//ls2022//gameProfile/mods/FS22_guidanceSteering/src/vehicles/GlobalPositioningSystem.lua:883: attempt to index local 'data' (a nil value) 2022-01-02 20:27 Error: Running LUA method 'packetReceived'. C://gameservers//s1428908//ls2022//gameProfile/mods/FS22_guidanceSteering/src/vehicles/GlobalPositioningSystem.lua:883: attempt to index local 'data' (a nil value) 2022-01-02 20:27 Error: Running LUA method 'packetReceived'. C://gameservers//s1428908//ls2022//gameProfile/mods/FS22_guidanceSteering/src/vehicles/GlobalPositioningSystem.lua:883: attempt to index local 'data' (a nil value) 2022-01-02 20:27 Error: Running LUA method 'packetReceived'. C://gameservers//s1428908//ls2022//gameProfile/mods/FS22_guidanceSteering/src/vehicles/GlobalPositioningSystem.lua:883: attempt to index local 'data' (a nil value) 2022-01-02 20:27 Error: Running LUA method 'packetReceived'. C://gameservers//s1428908//ls2022//gameProfile/mods/FS22_guidanceSteering/src/vehicles/GlobalPositioningSystem.lua:883: attempt to index local 'data' (a nil value) 2022-01-02 20:27 Error: Running LUA method 'packetReceived'. C://gameservers//s1428908//ls2022//gameProfile/mods/FS22_guidanceSteering/src/vehicles/GlobalPositioningSystem.lua:883: attempt to index local 'data' (a nil value) 2022-01-02 20:27 Error: Running LUA method 'packetReceived'. C://gameservers//s1428908//ls2022//gameProfile/mods/FS22_guidanceSteering/src/vehicles/GlobalPositioningSystem.lua:883: attempt to index local 'data' (a nil value) 2022-01-02 20:27 Error: Running LUA method 'packetReceived'. C://gameservers//s1428908//ls2022//gameProfile/mods/FS22_guidanceSteering/src/vehicles/GlobalPositioningSystem.lua:883: attempt to index local 'data' (a nil value) 2022-01-02 20:27 Error: Running LUA method 'packetReceived'. C://gameservers//s1428908//ls2022//gameProfile/mods/FS22_guidanceSteering/src/vehicles/GlobalPositioningSystem.lua:883: attempt to index local 'data' (a nil value)

Some logging I see on the server side when Guidance Steering GPS is going nuts in a loaned machine

Jayshua83 commented 2 years ago

Is this ever going to be fixed? :(

Snickers125 commented 2 years ago

It is already fixed, I used GPS in Dedi MP on a mission vehicle yesterday. Please check your versions, like FS and GPS mod.