Get an error when attempting to add things to bobinserters

Place to get help with not working mods / modding interface.
Sesame_Slayer
Burner Inserter
Burner Inserter
Posts: 14
Joined: Wed Aug 10, 2022 10:12 pm
Contact:

Get an error when attempting to add things to bobinserters

Post 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 55 times
The control.lua file:
control.lua
(2.58 KiB) Downloaded 52 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 51 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 45 times
technology-changes.lua
(668 Bytes) Downloaded 42 times
Last edited by Sesame_Slayer on Wed Aug 17, 2022 2:35 am, edited 2 times in total.
Half the time, I'm half asleep.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3716
Joined: Tue May 13, 2014 11:06 am
Contact:

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

Post 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.
Sesame_Slayer
Burner Inserter
Burner Inserter
Posts: 14
Joined: Wed Aug 10, 2022 10:12 pm
Contact:

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

Post 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.
Half the time, I'm half asleep.
Post Reply

Return to “Modding help”