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

NML erroring out when compiling #180

Closed
GreyfurWolf opened this issue Jan 6, 2021 · 1 comment
Closed

NML erroring out when compiling #180

GreyfurWolf opened this issue Jan 6, 2021 · 1 comment

Comments

@GreyfurWolf
Copy link

NMLC under Win 10 on 64bit machine errors out with the below text:

"C:\NML>nmlc CSBusSetN4.5.5.nml
nmlc ERROR: nmlc: An internal error has occurred:
nmlc-version: 0.5.0
Error: (IndexError) "pop from empty list".
Command: ['nmlc', 'CSBusSetN4.5.5.nml']
Location: File "nml\actions\action4.py", line 170, in get_string_action4s"

I have tried multiple versions, all do the same.

Link to NML file and lang files for review if needed:
https://www.dropbox.com/sh/r3coo1l9zw9wxn2/AAAXmVNYmRtnzJiZ2cEj7REua?dl=0

@glx22
Copy link
Contributor

glx22 commented Jan 6, 2021

This error happens because you defined too many return strings (the limit is 1024).
But the message could be more friendly.

BTW looking at the nml file, you may run out of ids for switches at some point (just a supposition, not really checked), as you define all the switches ahead of their use in items.

glx22 added a commit to glx22/nml that referenced this issue Jan 6, 2021
glx22 added a commit to glx22/nml that referenced this issue Jan 6, 2021
glx22 added a commit to glx22/nml that referenced this issue Jan 21, 2021
@glx22 glx22 closed this as completed in 3ea1d89 Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants