tobymao / 18xx

A platform for playing 18xx games online!
https://18xx.games
Other
298 stars 185 forks source link

[1866] Undefined method 'price' for nil #11349

Open cheesinglee opened 1 week ago

cheesinglee commented 1 week ago

https://18xx.games/game/183649

Get a red banner with the above error message when trying to sell shares after phase 5 in 1866 CES.

Reading the other issue with this error message #9844 suggests that it has something to do with the major nationals that are not in the game.

I also noticed that the game allowed me to place the C tile in Brussels with one leg pointing into the unplayable area. Could somebody with authoritative rules knowledge confirm whether this is a bug?

haoma119 commented 1 week ago

https://18xx.games/game/183649 1866: Phase 5 - Operating Round 5 - SBB Buy a 5 train At this point, KHS's stock price is 0, and then KHS closes like PRU, HAN, and other stocks that are marked as 0 but are not actually companies with 0 stock prices. This resulted in the removal of all KHS stocks and the inability to recreate KHS. I think this bug may have caused subsequent stock sales actions to have bugs, and the fundamental bug may lie in the bug related to companies with zero stock prices when the game was changed to Phase 5