Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1862] Game 197315, unable to lay russet tile #798 #11604

Open
craw-daddy opened this issue Mar 5, 2025 · 2 comments
Open

[1862] Game 197315, unable to lay russet tile #798 #11604

craw-daddy opened this issue Mar 5, 2025 · 2 comments
Labels
1862 bug Prevents game from being played correctly

Comments

@craw-daddy
Copy link

What's your Game ID?

Game 197315

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

How to Reproduce the Bug?

(Posting this on behalf of player Helixandra, as she does not have a github account.)

OR 6.1
WVR operating
Place tile #798 on G6, click tick to confirm, error message pops up on a pink banner at top of screen. Tile not placed. (see screenshot)
Error message: “Undefined method ‘name’ for nil”
Placing other tiles works fine.

Image

Which Browser / Platform?
Safari on iOS

@craw-daddy
Copy link
Author

Remark: We have since moved on from the move above (to keep the game going), but this possible error should still be triaged and fixed if necessary.

@ollybh
Copy link
Collaborator

ollybh commented Mar 6, 2025

WVR's track step in OR6.1 is action 648. The error backtrace is:

deps.js:1563:35:in `klass.method_missing_stub': undefined method `name' for nil (NoMethodError)
g_1862.js:5698:26:in `$$4'
deps.js:1715:14:in `Object.yield1'
deps.js:10000:26:in `$$17'
deps.js:1715:14:in `undefined'
deps.js:14046:9:in `Array.$$each'
deps.js:1958:17:in `Object.send2'
deps.js:1946:17:in `undefined'
deps.js:9994:7:in `Array.$$detect'
deps.js:1958:17:in `Object.send2'
deps.js:1946:17:in `Object.send'
deps.js:2228:19:in `Array.wrapped'
deps.js:1958:17:in `Object.send2'
deps.js:1946:17:in `undefined'
g_1862.js:5695:31:in `klass.$$update_tile_lists'
main.js:34715:16:in `klass.$$lay_tile'
main.js:34630:16:in `klass.$$lay_tile_action'
deps.js:1958:17:in `undefined'
g_1862.js:5646:22:in `klass.$$lay_tile_action'
main.js:34212:16:in `klass.$$process_lay_tile'
deps.js:4602:21:in `klass.$$__send__'
deps.js:1958:17:in `Object.send2'
deps.js:1946:17:in `Object.send'
deps.js:2228:19:in `klass.wrapped'
main.js:24680:16:in `klass.$$process_action'
main.js:7952:24:in `klass.$$process_single_action'
main.js:7894:18:in `klass.$$process_action'
main.js:41612:30:in `klass.$$process_action'
main.js:60290:23:in `klass.$$lay_tile'
main.js:60253:25:in `Object.$$2'
deps.js:27419:13:in `invokeHandler'
deps.js:27433:5:in `handleEvent'
deps.js:27439:5:in `HTMLButtonElement.handler'

@ollybh ollybh added bug Prevents game from being played correctly 1862 and removed needs triage labels Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1862 bug Prevents game from being played correctly
Projects
None yet
Development

No branches or pull requests

2 participants