Page 1 of 1

[0.17.21] NPE scenario crash upon loading campaign

Posted: Fri Mar 29, 2019 5:49 am
by lvl
Just tried loading the NPE campaign for the first time in .17.
As soon as I click on Arrival and then Play I get the following error:

The scenario level caused a non-recoverable error.
Please report this error to the scenario author.

Error while running event level::on_game_created_from_scenario (ID 119)
A script command already exists with the name: spawn
stack traceback:
__base__/lualib/npe/scenario-commands.lua:213: in function 'on_load'
__base__/lualib/npe/main.lua:87: in function 'on_game_created_or_loaded'
__base__/lualib/npe/main.lua:124: in function '?'
__base__/lualib/event_handler.lua:7: in function <__base__/lualib/event_handler.lua:4>
stack traceback:
[C]: in function 'add_command'
__base__/lualib/npe/scenario-commands.lua:213: in function 'on_load'
__base__/lualib/npe/main.lua:87: in function 'on_game_created_or_loaded'
__base__/lualib/npe/main.lua:124: in function '?'
__base__/lualib/event_handler.lua:7: in function <__base__/lualib/event_handler.lua:4>

Re: [0.17.21] NPE scenario crash upon loading campaign

Posted: Fri Apr 12, 2019 12:02 pm
by wheybags
Ok, this is a result of the scenario adding a command "/spawn". Unfortunately, some mod you are using also added such a command, so there is a conflict.
The next version of the game will have this command disabled, but for now you can just not use your mods.
Thanks for the report!