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:
The control.lua file:
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.
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:
Get an error when attempting to add things to bobinserters
-
- Burner Inserter
- Posts: 14
- Joined: Wed Aug 10, 2022 10:12 pm
- Contact:
Get an error when attempting to add things to bobinserters
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.
Re: Get an error when attempting to add things to bobinserters
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.
Bob also has a restrictive license, so you need his permission if you want to copy the entire control.lua and edit it.
-
- Burner Inserter
- Posts: 14
- Joined: Wed Aug 10, 2022 10:12 pm
- Contact:
Re: Get an error when attempting to add things to bobinserters
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.
Edit: contacted bob, got permission, will not continue trying to make this.
Half the time, I'm half asleep.