tobymao / 18xx

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

[18ESP] error thrown after Skip Companies step/game does not load #11335

Open kepakiano opened 1 week ago

kepakiano commented 1 week ago

Steps to reproduce:

The game doesn't progress and there's an error in the console: "Uncaught name: undefined method `name' for nil".

Stack trace:

Caused by: Object { … }
[deps.js:1:5979](https://18xx.games/assets/deps.js)
    ne https://18xx.games/assets/deps.js:1
    Opal.modules["corelib/error"]/< https://18xx.games/assets/deps.js:4
    D https://18xx.games/assets/deps.js:4
    E https://18xx.games/assets/deps.js:1
    m https://18xx.games/assets/g_18_esp.js:6
    yield1 https://18xx.games/assets/deps.js:1
    a https://18xx.games/assets/deps.js:15
    hash_each https://18xx.games/assets/deps.js:1
    a https://18xx.games/assets/deps.js:15
    send2 https://18xx.games/assets/deps.js:1
    send https://18xx.games/assets/deps.js:1
    Opal.modules["engine/game/g_18_esp/step/buy_carriage_or_company"]/< https://18xx.games/assets/g_18_esp.js:6
    Opal.modules["view/game/special_buy"]/< https://18xx.games/assets/main.js:66
    Opal.modules["snabberb/component"]/< https://18xx.games/assets/deps.js:32
    Opal.modules["view/game/round/operating"]/< https://18xx.games/assets/main.js:66
    Opal.modules["snabberb/component"]/< https://18xx.games/assets/deps.js:32
    Opal.modules["view/game_page"]/< https://18xx.games/assets/main.js:67
    Opal.modules["view/game_page"]/< https://18xx.games/assets/main.js:67
    Opal.modules["view/game_page"]/< https://18xx.games/assets/main.js:67
    Opal.modules["snabberb/component"]/< https://18xx.games/assets/deps.js:32
    app https://18xx.games/assets/main.js:3
    app https://18xx.games/assets/main.js:3
    app https://18xx.games/assets/main.js:3
    Opal.modules["snabberb/component"]/< https://18xx.games/assets/deps.js:32
    Opal.modules["snabberb/component"]/</< https://18xx.games/assets/deps.js:32
    (Async: FrameRequestCallback)
    Opal.modules["snabberb/component"]/< https://18xx.games/assets/deps.js:32
    Opal.modules["snabberb/component"]/< https://18xx.games/assets/deps.js:32
    Opal.modules["view/game/actionable"]/< https://18xx.games/assets/main.js:65
    _ https://18xx.games/assets/main.js:66
    Q https://18xx.games/assets/deps.js:32
    R https://18xx.games/assets/deps.js:32
    te https://18xx.games/assets/deps.js:32
kepakiano commented 1 week ago

Update: The game has now progressed to the "Skip Companies" step and does not load anymore, the console logs the same error as reported above.