[MOD 0.15.29+] Creative Mode 0.3.12 - Infinite resources

Topics and discussion about specific mods
Post Reply
Airat9000
Smart Inserter
Smart Inserter
Posts: 1314
Joined: Fri Mar 28, 2014 12:32 am
Contact:

Re: [MOD 0.15.29+] Creative Mode 0.3.12 - Infinite resources

Post by Airat9000 » Sat Mar 09, 2019 9:10 am

17.9 bug
2019-03-09_12-04-45.png
2019-03-09_12-04-45.png (767.43 KiB) Viewed 575 times
and old game lost in recipes 17.9 in menu

Maddhawk
Long Handed Inserter
Long Handed Inserter
Posts: 94
Joined: Sat May 05, 2018 6:53 am
Contact:

Re: [MOD 0.15.29+] Creative Mode 0.3.12 - Infinite resources

Post by Maddhawk » Mon Mar 11, 2019 10:27 pm

Glad to see this is being kept updated. Particularly since the new built in editor is lacking in tools for testing and tweaking blueprints.

iceman11a
Burner Inserter
Burner Inserter
Posts: 8
Joined: Thu Jun 08, 2017 8:54 am
Contact:

Re: Error using mod

Post by iceman11a » Sun Mar 17, 2019 2:38 am

I had to create a new world and I'm using the creative mod. and I got a crash pointed at this mod. I attached a screen shot. hoping you can get this fixed soon. I can't play until it's fix. Unless I disable it.
Attachments
Screenshot_23.png
Screenshot_23.png (634.76 KiB) Viewed 476 times

Zanostra
Long Handed Inserter
Long Handed Inserter
Posts: 59
Joined: Mon Apr 03, 2017 8:03 pm
Contact:

Re: [MOD 0.15.29+] Creative Mode 0.3.12 - Infinite resources

Post by Zanostra » Sat Apr 27, 2019 8:55 pm

the 'creative tools' tab in the crafting menu disappears when you save and load.
particularly when you load a save where you use the 'sync mods with save' button and 'Creative Mod' is disactivated.
when after that you load the game where creative mod was in use, you have to sync mods with save again to activate it again.
then when the save is loaded, the 'creative tools' tab is gone.
but you can still use every creative construct, but the only way I know of getting them is with the item picker tool ( pressing 'Q' when mouse hover ) to duplicate existing entities, because you can't craft them anymore from the corresponding menu.

when disabling Creative Mod in the mod portal to manually sync your mods with another save-game, play it, and enable it again by manually sync your mods back to match the Creative Mod save-game again, nothing is wrong and the creative tab still exists.

steps to reproduce:
needed: 2 savegames, one with creative mod enabled, and one without.

1 - play creative savegame ( tab creative tools is working. )
2 - go to menu, load game.
3 - select savegame without creative mod.
4 - press 'sync mods with save'
5 - after restart and loading go to menu, load game.
6 - select savegame with creative mod.
7 - press 'sync mods with save'
8 - after restart and loading the creative tools tab is gone.

Bazinga
Burner Inserter
Burner Inserter
Posts: 5
Joined: Tue Mar 12, 2019 6:55 pm
Contact:

The mod Creative Mod caused a non-recoverable error.

Post by Bazinga » Thu May 02, 2019 9:15 pm

Update: Thanks to Qon!
Replacing defines.inventory.player_... with defines.inventory.character_... in the cheats.lua worked.

---

The mod Creative Mod caused a non-recoverable error.
Please report this error to the mod author.

Error while running event creative-mod::on_tick (ID 0)
real number expected got nil.
stack traceback:
__creative-mod__/scripts/cheats.lua:2516: in function 'get_inventory_or_slot_count_function'
__creative-mod__/scripts/cheats.lua:2608: in function 'apply_slot_cheat_to_players'
__creative-mod__/scripts/cheats.lua:2695: in function 'tick'
__creative-mod__/scripts/events.lua:177: in function <__creative-mod__/scripts/events.lua:146>
stack traceback:
[C]: in function 'get_inventory'
__creative-mod__/scripts/cheats.lua:2516: in function 'get_inventory_or_slot_count_function'
__creative-mod__/scripts/cheats.lua:2608: in function 'apply_slot_cheat_to_players'
__creative-mod__/scripts/cheats.lua:2695: in function 'tick'
__creative-mod__/scripts/events.lua:177: in function <__creative-mod__/scripts/events.lua:146>

Creative Mod 1.1.1
Factorio 0.17.35

savegame: https://www.sendspace.com/file/p6zf58
Last edited by Bazinga on Fri May 03, 2019 3:34 pm, edited 1 time in total.

nexx
Manual Inserter
Manual Inserter
Posts: 1
Joined: Fri May 03, 2019 12:16 pm
Contact:

Re: [MOD 0.15.29+] Creative Mode 0.3.12 - Infinite resources

Post by nexx » Fri May 03, 2019 12:21 pm

Fatal crash after updating factorio (on steam+linux) to 0.17.35 and CreativeMod to 1.1.1 today. Worked normal yesterday with 0.17.34 + 1.0.4.
Attachments
crash_creativemod.png
crash_creativemod.png (132.96 KiB) Viewed 243 times

Qon
Smart Inserter
Smart Inserter
Posts: 1234
Joined: Thu Mar 17, 2016 6:27 am
Contact:

Re: [MOD 0.15.29+] Creative Mode 0.3.12 - Infinite resources

Post by Qon » Fri May 03, 2019 1:59 pm

Replacing

Code: Select all

defines.inventory.player_
with

Code: Select all

defines.inventory.character_
solves the issues. 3 instances in scripts/cheats.lua

malventano
Fast Inserter
Fast Inserter
Posts: 244
Joined: Thu Apr 27, 2017 4:31 pm
Contact:

Re: [MOD 0.15.29+] Creative Mode 0.3.12 - Infinite resources

Post by malventano » Fri May 03, 2019 6:55 pm

Qon wrote:
Fri May 03, 2019 1:59 pm
Replacing

Code: Select all

defines.inventory.player_
with

Code: Select all

defines.inventory.character_
solves the issues. 3 instances in scripts/cheats.lua
This thread in the mod discussion suggests more changes are needed?
*edit* disregard, I believe your changes encompass those changes.
*edit edit* With these changes only, it appears that the magic wand can still remove the player character (shift to god mode) even if 'don't remove player characters' is checked.
Allyn Malventano
---
Want to improve fluid flow between pumps / across longer distances? Try my Manifolds mod.

Qon
Smart Inserter
Smart Inserter
Posts: 1234
Joined: Thu Mar 17, 2016 6:27 am
Contact:

Re: [MOD 0.15.29+] Creative Mode 0.3.12 - Infinite resources

Post by Qon » Fri May 03, 2019 9:21 pm

New version of CM is out by the maintainer so just update via the in-game mod manager to get latest version (and remove any modified versions of CM from the mod folder if you have them).

sniderthanyou
Inserter
Inserter
Posts: 20
Joined: Tue Jul 05, 2016 11:43 am
Contact:

Re: [MOD 0.15.29+] Creative Mode 0.3.12 - Infinite resources

Post by sniderthanyou » Mon May 27, 2019 1:33 pm

Is it possible to use the 0.17 upgrade planner with CM-specific items? Like mass-replacing steel chests with void chests, for example.

Quax
Inserter
Inserter
Posts: 47
Joined: Mon Mar 14, 2016 7:57 am
Contact:

Re: [MOD 0.15.29+] Creative Mode 0.3.12 - Infinite resources

Post by Quax » Wed Jun 05, 2019 6:03 pm

Heloo, I'm running Factorio version 0.16.51, and the mod installer tells me there is no version of this mod available? So is this mod not ready for 0.16?

dgw
Fast Inserter
Fast Inserter
Posts: 183
Joined: Tue Apr 12, 2016 7:06 pm
Contact:

Re: [MOD 0.15.29+] Creative Mode 0.3.12 - Infinite resources

Post by dgw » Wed Jun 05, 2019 6:17 pm

"Creative Mode" only has downloads available for 0.17.

In 0.16, you can use "Creative Mode (Fix for 0.16)", an unofficial tweak of the mod to work in 0.16. Just be aware that you'll need to migrate back to the official release if you want to play your save in 0.17 later.

(There's also an older "Creative Mode" that only has releases for 0.13 – 0.15. This mod has had several maintainers over the years, and they haven't always handed off maintenance responsibilities in the cleanest way.)

spinba11
Inserter
Inserter
Posts: 49
Joined: Mon Mar 07, 2016 9:07 pm
Contact:

Re: [MOD 0.15.29+] Creative Mode 0.3.12 - Infinite resources

Post by spinba11 » Fri Jun 07, 2019 9:40 pm

Has anyone else lost the icon in the top left corner? It was there in .45 but it’s not in .46 and . 47.

Qon
Smart Inserter
Smart Inserter
Posts: 1234
Joined: Thu Mar 17, 2016 6:27 am
Contact:

Re: [MOD 0.15.29+] Creative Mode 0.3.12 - Infinite resources

Post by Qon » Sat Jun 08, 2019 12:46 am

Yes. I've lost it before. Just start a new world and play with it until it disappears again...
Might be possible to disable CM, re-save your world, enable CM and re-save your world again to make CM think you added CM for the first time again. But you will lose all CM cheat entities that you have built since they can't exist without the mod.

spinba11
Inserter
Inserter
Posts: 49
Joined: Mon Mar 07, 2016 9:07 pm
Contact:

Re: [MOD 0.15.29+] Creative Mode 0.3.12 - Infinite resources

Post by spinba11 » Sat Jun 08, 2019 9:32 am

I’m unwilling to start a new map, I’ve done what you’ve suggested on my testing map and on the menu that comes up when you first load it it says you can use a command to enable it if you press no. Any idea what the command is?

User avatar
MasterBuilder
Filter Inserter
Filter Inserter
Posts: 292
Joined: Sun Nov 23, 2014 1:22 am
Contact:

Re: [MOD 0.15.29+] Creative Mode 0.3.12 - Infinite resources

Post by MasterBuilder » Sat Jun 08, 2019 3:00 pm

spinba11 wrote:
Sat Jun 08, 2019 9:32 am
I’m unwilling to start a new map, I’ve done what you’ve suggested on my testing map and on the menu that comes up when you first load it it says you can use a command to enable it if you press no. Any idea what the command is?
In the zip: scripts/gui-menu.lua:

Code: Select all

-- Creates or destroys the Creative Mode main menu button for the given player according to the current state of Creative Mode and also the player's access rights.
-- Returns whether the button exists. If false is returned, it means the whole Creative Menu is removed for such player.
function gui_menu.create_or_destroy_main_menu_open_button_for_player(player)

-- Creates or destroys the Creative Mode main menu button for all players according to the current state of Creative Mode.
function gui_menu.create_or_destroy_main_menu_open_button_for_all_players()

-- Destroys the Creative Mode main menu for the given player if it is already opened.
function gui_menu.destroy_main_menu_for_player(player)
There are more in that file but my guess is one of these will work. Just make sure you have a backup first.
Give a man fire and he'll be warm for a day. Set a man on fire and he'll be warm for the rest of his life.

spinba11
Inserter
Inserter
Posts: 49
Joined: Mon Mar 07, 2016 9:07 pm
Contact:

Re: [MOD 0.15.29+] Creative Mode 0.3.12 - Infinite resources

Post by spinba11 » Sat Jun 08, 2019 3:32 pm

Ive tried them all but it’s not working I’m guessing I’m doing something wrong as I hardly touch commands.

Post Reply

Return to “Mods”

Who is online

Users browsing this forum: ducktype