Page 1 of 1

No Character Logistic Slots?

Posted: Thu Nov 19, 2015 2:49 am
by monkeyballs1622
Hello, I have researched all the way to Character Logistic Slots 4, but I don't have any character logistic slots. Is it because I am in sandbox mode? Is there any way to fix this?

Re: No Character Logistic Slots?

Posted: Thu Nov 19, 2015 8:36 am
by prg
monkeyballs1622 wrote:Hello, I have researched all the way to Character Logistic Slots 4, but I don't have any character logistic slots. Is it because I am in sandbox mode? Is there any way to fix this?
Yes, you can only have character logistic slots if you have a character. If you create a character and attach your player to it, the slots will show up.

Code: Select all

/c game.local_player.character=game.local_player.surface.create_entity{name="player", position={0,0}, force="player"}
(Maybe use F5 to find a better position and not spawn in a lake.)

Re: No Character Logistic Slots?

Posted: Thu Nov 19, 2015 6:33 pm
by monkeyballs1622
Yes, you can only have character logistic slots if you have a character. If you create a character and attach your player to it, the slots will show up.

Code: Select all

/c game.local_player.character=game.local_player.surface.create_entity{name="player", position={0,0}, force="player"}
Excellent! Thank you. This made all my inventory disappear, but that's ok. Is there now a way to revert back to "God mode"?

I prefer playing in sandbox just so I can move around easier and not have to deal with the character's range limitations for placing objects, but it would be nice to switch back and forth for playing around with things like weapons and character logistic slots.

Re: No Character Logistic Slots?

Posted: Thu Nov 19, 2015 7:45 pm
by daniel34
This will "leave" the player body and enable god mode (inventory stays with the body):

Code: Select all

/c game.player.character = nil
This will "reenter" the body and give you the inventory of the player back (highlight the player with the mouse and enter):

Code: Select all

/c game.player.character = game.player.selected

Re: No Character Logistic Slots?

Posted: Thu Nov 19, 2015 7:50 pm
by prg
Stand in a convenient location so you won't get eaten by biters, then run

Code: Select all

/c game.local_player.character=nil
To reattach to that character, point the mouse at it and run

Code: Select all

/c game.local_player.character=game.local_player.selected
The character will keep its inventory, but seems like you'll lose the godmode inventory on every switch, so put your stuff in a chest first.

... and daniel34 was faster this time.

Re: No Character Logistic Slots?

Posted: Thu Nov 19, 2015 8:14 pm
by monkeyballs1622
Yes!

Thank you to the both of you, exactly what I was looking for.