Toggle Player


Jump between the 3rd and 4th dimension with the press of a button!

Content
7 years ago
0.15
10
Cheats
Owner:
shirtandtieler
Source:
N/A
Homepage:
N/A
License:
GNU GPLv3
Created:
7 years ago
Latest Version:
1.3.0 (7 years ago)
Factorio version:
0.15
Downloaded by:
10 users

Description

A simple, but useful mod that gives you a single button (in the top gui) to toggle between playing with and without a character.

As removing the character also clears your inventory, this mod will compensate by saving and restoring your inventory. Note that any items added while playing in god mode will carry over to your restored inventory when you switch back. And in case there's not enough room, enough wooden chests will spawn that will hold the excess (with a priority given to your player's original items).

Changelog

v. 1.3.0

  • Overhaul and rewrite of code for improved readability and future accessibility
  • Now saves your armor, blueprints, and blueprint books, along with the content of your logistic and auto-trash slots
  • The mod should work for all players on a server - however since I don't run or mod any servers ^^^or ^^^have ^^^any ^^^factorio ^^^friends ^^^to ^^^test ^^^it ^^^for ^^^me, I'll need someone to let me know.
  • Temporarily disabled the overflow-into-a-chest feature (when switching from god to character) due to excessive bugs related to it
    > As a precaution, you should dump your inventory in a chest before switching to god mode.
    > Though, in case you forget and your items are seemingly deleted, rest assured that they are still stored in the mod's global "excess" table, and will be dumped into chests when this feature is re-enabled.
  • Switched the license from MIT to GNU GPLv3

Planned features/fixes

  • Fix the overflow protection feature
  • Compensate for a character's inventory bonuses from their armor
  • Provide a toggle for whether to enable 'cheat' mode while in god mode (thanks to vmkillerh for the suggestion)