Creative Mod

by jodli

Based on the old Creative Mode mod created by Y.Petremann, then patched by Pac0master, and also the Test Mode mod created by rk84. By enabling Creative Mode in the game, you can access objects that can generate unlimited items, fluid or energy, or nullify them. Perfect for testing purpose or making initial setup for games. Quick patch for 0.16 until an official release - everything should work now. Quick patch for 0.17 until an official release - if ever...

Content
7 days ago
0.17 - 2.0
115K
Cheats

b Crash report

10 months ago

Unfortunately I cannot clearly remember exactly what I did immediately prior. I had been placing some blueprints the switched god mode off (cheats on), and cannot remember if I then did something else or not.

Extract from server log file (this was on a dedicated server):

46169.124 Error MainLoop.cpp:1429: Exception at tick 3530214: The mod Creative Mod (2.0.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event creative-mod::on_gui_click (ID 1)
creative-mod/scripts/util.lua:127: attempt to get length of local 'source_inventory' (a nil value)
stack traceback:
creative-mod/scripts/util.lua:127: in function 'transfer_inventory_contents'
creative-mod/scripts/cheats.lua:821: in function 'apply_to_target_function'
creative-mod/scripts/cheats.lua:2163: in function 'apply_cheat_to_targets'
creative-mod/scripts/gui-menu-cheats.lua:2924: in function 'on_gui_click_in_cheats_menu_toggles'
creative-mod/scripts/gui-menu-cheats.lua:3338: in function 'on_gui_click_in_cheats_menus_gui_data_contents'
creative-mod/scripts/gui-menu-cheats.lua:3379: in function 'on_gui_click'
creative-mod/scripts/gui-menu.lua:322: in function 'on_gui_click'
creative-mod/scripts/gui.lua:295: in function 'on_gui_click'
creative-mod/scripts/events.lua:632: in function '?'
creative-mod/scripts/events.lua:1319: in function <creative-mod/scripts/events.lua:1263>
46169.124 Error ServerMultiplayerManager.cpp:84: MultiplayerManager failed: "The mod Creative Mod (2.0.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event creative-mod::on_gui_click (ID 1)
creative-mod/scripts/util.lua:127: attempt to get length of local 'source_inventory' (a nil value)
stack traceback:
creative-mod/scripts/util.lua:127: in function 'transfer_inventory_contents'
creative-mod/scripts/cheats.lua:821: in function 'apply_to_target_function'
creative-mod/scripts/cheats.lua:2163: in function 'apply_cheat_to_targets'
creative-mod/scripts/gui-menu-cheats.lua:2924: in function 'on_gui_click_in_cheats_menu_toggles'
creative-mod/scripts/gui-menu-cheats.lua:3338: in function 'on_gui_click_in_cheats_menus_gui_data_contents'
creative-mod/scripts/gui-menu-cheats.lua:3379: in function 'on_gui_click'
creative-mod/scripts/gui-menu.lua:322: in function 'on_gui_click'
creative-mod/scripts/gui.lua:295: in function 'on_gui_click'
creative-mod/scripts/events.lua:632: in function '?'
creative-mod/scripts/events.lua:1319: in function <creative-mod/scripts/events.lua:1263>"
46169.125 Info ServerMultiplayerManager.cpp:805: updateTick(3530214) changing state from(InGame) to(Failed)
46169.140 Quitting: multiplayer error.
46170.659 Info ServerMultiplayerManager.cpp:146: Quitting multiplayer connection.
46170.659 Info ServerMultiplayerManager.cpp:805: updateTick(18446744073709551615) changing state from(Failed) to(Closed)
46170.666 Info UDPSocket.cpp:233: Closing socket
46170.667 Info UDPSocket.cpp:263: Socket closed
46170.667 Info UDPSocket.cpp:233: Closing socket
46170.844 Info UDPSocket.cpp:233: Closing socket
46170.845 Info UDPSocket.cpp:263: Socket closed
46170.852 Goodbye

New response