Page 1 of 1

Increase god mode's inventory size ?

Posted: Sun Mar 20, 2016 11:01 am
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.

Re: Increase god mode's inventory size ?

Posted: Mon Mar 21, 2016 8:18 am
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).

Re: Increase god mode's inventory size ?

Posted: Tue Mar 22, 2016 9:00 am
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.

Re: Increase god mode's inventory size ?

Posted: Tue Mar 22, 2016 1:12 pm
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

Re: Increase god mode's inventory size ?

Posted: Tue Mar 22, 2016 5:37 pm
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 ;-)

Re: Increase god mode's inventory size ?

Posted: Sat Apr 30, 2016 3:15 am
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

Re: Increase god mode's inventory size ?

Posted: Sat Apr 30, 2016 10:37 am
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.

Re: Increase god mode's inventory size ?

Posted: Sat Apr 30, 2016 1:29 pm
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.

Re: Increase god mode's inventory size ?

Posted: Tue Feb 27, 2018 9:27 pm
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.

Re: Increase god mode's inventory size ?

Posted: Tue Feb 27, 2018 9:53 pm
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]

Re: Increase god mode's inventory size ?

Posted: Sun Aug 16, 2020 2:01 pm
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.