I simply entered the command
Code: Select all
/c local inv = game.create_inventory(16) local invs = game.get_script_inventories() game.print(invs[1])
What happened?
It only returns
, which does not align with the return value described in your API documentation.nil
What did you do next?
I entered the command
Code: Select all
/c local inv = game.create_inventory(16) local invs = game.get_script_inventories(inv.mod_owner) game.print(invs[1])
What happened?
It only print
Cannot execute command.Error:Unknown mod:core
- What did you expect to happen instead?
Does it happen always, once, or sometimes?
This issue can be reproduced easily by following my steps anytimes.
log-file save-file
Do I need to provide a save file? This issue can be reproduced easily by following my steps in any savegame.
adds
I am a mod developer from China, and my English is not very proficient.