Sandbox mode issue

Place to get help with not working mods / modding interface.
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Sandbox mode issue

Post by bobingabout »

I have been posed with an interesting bug report for my mods.

To have a special "Electronics Assembling Machine" factory, capable of producing only electronic based products, some of which are normally made hand crafting, and others made only by machine, I created 2 new crafting categories.
"electronics-machine", which can only be produced by machines, and is present on the new electronics machine, and added to every machine with the "crafting" catagory. and "electronics", which is also on the new electronics machine, but also added not only to the machines with the "crafting" catagory, but also the player.

Here lies the issue, it is added to the player entity, but Sandbox mode does not have a player entity with a "crafting_categories" tag to add "electronics" to, therefore, in sandbox, you can't craft electronics. it also doesn't allow me to increase the "inventory_size" either.


Does anyone know of any way to add new crafting catagories to the "God" player, or increase it's inventory size in sandbox mode?
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Sandbox mode issue

Post by daniel34 »

Rseding91 wrote:The God Controller inventory size is currently hard coded with a nice note above it in the code that says "to do - move this to a prototype" :P
Source: Increase god mode's inventory size ? [Modding help]
quick links: log file | graphical issues | wiki
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Sandbox mode issue

Post by Adil »

You cant modify a God. :P
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Sandbox mode issue

Post by bobingabout »

I presume the same issue with crafting catagories?
though, might not be a move todo x3
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
Post Reply

Return to “Modding help”