Increase god mode's inventory size ?

Place to get help with not working mods / modding interface.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Increase god mode's inventory size ?

Post by binbinhfr »

Hi,

is there a way to increase god mode's inventory size ?
by god mode, I mean when game.player.character = nil ...

thanks.
My mods on the Factorio Mod Portal :geek:

User avatar
Ghoulish
Filter Inserter
Filter Inserter
Posts: 468
Joined: Fri Oct 16, 2015 8:40 am

Re: Increase god mode's inventory size ?

Post by Ghoulish »

There's a mod for this viewtopic.php?f=91&t=5891

I do not know if it works in god mode (I cant see why it wouldn't as it's written by one of the devs).
See the daily™ struggles with my Factory! :D https://www.twitch.tv/repetitivebeats

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: Increase god mode's inventory size ?

Post by binbinhfr »

Ghoulish wrote:There's a mod for this viewtopic.php?f=91&t=5891

I do not know if it works in god mode (I cant see why it wouldn't as it's written by one of the devs).
no, it does not work, it only modifies the real player inventory size.
My mods on the Factorio Mod Portal :geek:

Rseding91
Factorio Staff
Factorio Staff
Posts: 14093
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Increase god mode's inventory size ?

Post by Rseding91 »

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
If you want to get ahold of me I'm almost always on Discord.

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: Increase god mode's inventory size ?

Post by binbinhfr »

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
ha ha, ok, I have my answer ;-)
My mods on the Factorio Mod Portal :geek:

neoc
Long Handed Inserter
Long Handed Inserter
Posts: 83
Joined: Sun Apr 24, 2016 4:31 pm
Contact:

Re: Increase god mode's inventory size ?

Post by neoc »

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
Oh noes :P

Can you give me a hint about where to hack in the binary to change it? :P

orzelek
Smart Inserter
Smart Inserter
Posts: 3921
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: Increase god mode's inventory size ?

Post by orzelek »

neoc wrote:
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
Oh noes :P

Can you give me a hint about where to hack in the binary to change it? :P
You can try using Big Bags mod as alternative.
It increases stack sizes so you can fit more in same space.

neoc
Long Handed Inserter
Long Handed Inserter
Posts: 83
Joined: Sun Apr 24, 2016 4:31 pm
Contact:

Re: Increase god mode's inventory size ?

Post by neoc »

orzelek wrote:You can try using Big Bags mod as alternative.
It increases stack sizes so you can fit more in same space.
Yeah, that would work too. On the other hand that would be cheating regarding chest size ;)
I like to store a lot in chests, it would actually matter for me.

tolomea
Inserter
Inserter
Posts: 34
Joined: Sat Dec 19, 2015 12:49 pm
Contact:

Re: Increase god mode's inventory size ?

Post by tolomea »

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
Can it be accessed from a mod? I'd like have a key binding to empty it.

tolomea
Inserter
Inserter
Posts: 34
Joined: Sat Dec 19, 2015 12:49 pm
Contact:

Re: Increase god mode's inventory size ?

Post by tolomea »

tolomea wrote:
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
Can it be accessed from a mod? I'd like have a key binding to empty it.
Never mind I found it, if anyone else ends up here, it's at player.get_main_inventory() it can be wiped with .clear() and if you are in a keyboard event you can get the player with game.players[event.player_index]

Roy
Inserter
Inserter
Posts: 26
Joined: Tue Jan 31, 2017 4:50 pm
Contact:

Re: Increase god mode's inventory size ?

Post by Roy »

You can set the character_inventory_slots_bonus of the force:

Code: Select all

/c game.player.force.character_inventory_slots_bonus=130
Which will also work in god mode.

Post Reply

Return to “Modding help”