Page 1 of 1

Get an error when attempting to add things to bobinserters

Posted: Tue Aug 16, 2022 10:44 pm
by Sesame_Slayer
Somewhere in the control file, something makes me get this error message:
__BobInserters-Early-T2-Research__/control.lua:1: attempt to index global 'bobmods' (a nil value)
stack traceback:
__BobInserters-Early-T2-Research__/control.lua:1: in main chunk
What could be causing this? I know it is the control.lua file, as all its contents were added in the latest version of the mod, and the mod worked before then.

The entirety of the mod files:
BobInserters-Early-T2-Research_0.1.8.zip
(271.17 KiB) Downloaded 52 times
The control.lua file:
control.lua
(2.58 KiB) Downloaded 51 times
Edit:
I realize that I need to also attach the bob inserters file, as my code makes no sense otherwise. please make note I am new to modding.
bobinserters_1.1.5.zip
(150.8 KiB) Downloaded 50 times


Edit 2:
my intent with this is to add 2 more levels to the long inserters technology, and move the 2nd level back to logistics 2, which I have already done.

The technology files:
technology.lua
(1.37 KiB) Downloaded 44 times
technology-changes.lua
(668 Bytes) Downloaded 41 times

Re: Get an error when attempting to add things to bobinserters

Posted: Wed Aug 17, 2022 1:03 am
by DaveMcW
Unlike data.lua, control.lua is sandboxed. You can't interact with the control.lua of other mods.

Bob also has a restrictive license, so you need his permission if you want to copy the entire control.lua and edit it.

Re: Get an error when attempting to add things to bobinserters

Posted: Wed Aug 17, 2022 2:25 am
by Sesame_Slayer
What should I do then? Contact bob to ask for permission, and also ask how I could add new technology to the list? I've replaced the mod files with an empty folder, just in case. I have not copied the control folder, instead just tried to see how it worked, and added some (annoying to make) tables in the way i think bob implemented them.

Edit: contacted bob, got permission, will not continue trying to make this.