smcameron / space-nerds-in-space

Multi-player spaceship bridge simulator game. Captain your starship through adventures with your friends. See https://smcameron.github.io/space-nerds-in-space
GNU General Public License v2.0
728 stars 72 forks source link

[royal-wedding] cargo is not emptied when it should #296

Open MCMic opened 3 years ago

MCMic commented 3 years ago

In the bad ending of royal wedding mission, the cargo was not empied.

I received the payment, which means check_player_cargo did return true, but collect_player_cargo somehow failed because the manifest still showed the mission cargo after mission end.

smcameron commented 3 years ago

Ok, I think this commit should fix it:

A couple other related commits:

MCMic commented 3 years ago

We played the mission and it crashed after docking at sb-29. We tried again and same crash. Most likely when the prince is supposed to come aboard.

I tested it a few days ago and it worked, so I think it is related to those fixes.

smcameron commented 3 years ago

What crashes? snis_server? or just the Lua script?

Anything in snis_server_log.txt?

MCMic commented 3 years ago

snis_server crashes. I think snis_server.default.log was overwritten because we relaunched it. I had to delete the lock file by hand to do so.

MCMic commented 3 years ago

Hum, I tried editing the script to trigger the board_prince function at start and nothing crashes. I will have to do the mission again to see if I can reproduce the crash or if it was specific to something in our setup.

MCMic commented 3 years ago

I cannot reproduce the crash on a single computer.

Things that might play a role:

  1. We had 6 clients with the 6 stations
  2. The sound server was not the main screen/server but one of the clients (engeneering I think)
  3. I cannot remember the TTS situation, not all stations had it I guess
  4. We took some time to reach the starbase, but the second time not that much and it still crashed.
  5. The Comms station had a faulty ethernet cable and was sometimes offline.
smcameron commented 3 years ago

Ok, thanks.