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

If there are 10 rooms in the list the tool fails #92

Closed
BlackRam-oss opened this issue Jan 15, 2024 · 1 comment · Fixed by #93
Closed

If there are 10 rooms in the list the tool fails #92

BlackRam-oss opened this issue Jan 15, 2024 · 1 comment · Fixed by #93
Assignees
Labels
bug Something isn't working

Comments

@BlackRam-oss
Copy link
Collaborator

If there are 10 rooms in the list the tool fails.

The error starts from : use room_button(room, cur_room, i, there_are_ch)
https://github.com/DRincs-Productions/NQTR-System/blob/main/game/nqtr_screens/screens_nqtr.rpy#L38

log.txt
Captura_de_tela_2024-01-11_060742

@BlackRam-oss BlackRam-oss added the bug Something isn't working label Jan 15, 2024
@BlackRam-oss BlackRam-oss self-assigned this Jan 15, 2024
@BlackRam-oss
Copy link
Collaborator Author

BlackRam-oss commented Jan 15, 2024

https://f95zone.to/threads/renpy-code-support.188956/#post-12707938

The code appears to be assigning a shortcut key based upon the number of rooms - so you'll notice if you press the numbers 1-9 it may highlight a room based upon this. Obviously there is no key on the keyboard with the number 10 or above so it is throwing an error.

Under game\nqtr_screens\screens_nqtr_component.rpy there is the following code:

key str(i) action [
SetVariable('prev_room', cur_room),
SetVariable('cur_room', room),
Call("after_return_from_room_navigation", label_name_to_call = "change_room"),
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant