Page 1 of 1

Request Mod - Alternative Creative

Posted: Tue Oct 19, 2021 7:41 pm
by ma3xed
Basically want a mod, that allows you to handcraft stuff you have researched with default speed and free of cost. The keyword being default speed, I've tried other creative mods that grant free craft with instant speed, but for my testing needs, I need it to be slow. I have also tried console commands :

/c game.player.force.manual_crafting_speed_modifier=1 (also tried 0.1)

Is it something hard to mod?

Re: Request Mod - Alternative Creative

Posted: Tue Oct 19, 2021 10:12 pm
by mrvn
Depends on how far down the rabbit hole you want to go.

If I want to craft an assembler I need 9 iron plates, 5 iron gear wheels and 3 electronic circuit. Should they just magically appear? Or should it craft those first? Should it "hand smelt" iron ore? Or maybe even "hand mine" iron ore first.

If you just want the final item crafted then "all" you have to do it replace the crafting menu with your own so you can catch the player clicking on something. Then add the item to the crafting queue.

Or you could just give the player one stack of all resources at all times. That's probably good enough to craft anything you would reasonably hand craft in game. Every time an iron plate is removed from the inventory you add one back. Easy enough to script.

Re: Request Mod - Alternative Creative

Posted: Tue Oct 19, 2021 10:23 pm
by kirazy
Pretty sure you can use the creative mod and just disable the instant craft parameter.

Re: Request Mod - Alternative Creative

Posted: Wed Oct 20, 2021 7:07 am
by ma3xed
kirazy wrote: Tue Oct 19, 2021 10:23 pm Pretty sure you can use the creative mod and just disable the instant craft parameter.
Do you think or you know?

Image

Changing speed from 0 to 1 does nothing, still instant. Is it really possible in CE ?

edit Does images from imgur work? screenshot of CE options inside ui

Re: Request Mod - Alternative Creative

Posted: Wed Oct 20, 2021 8:36 am
by mrvn
No, just attach the image to your message and click the "place inline" button.

Re: Request Mod - Alternative Creative

Posted: Wed Oct 20, 2021 9:27 am
by ma3xed
KucNJ4n.jpg
KucNJ4n.jpg (351.05 KiB) Viewed 3495 times
I see, thanks

Re: Request Mod - Alternative Creative

Posted: Wed Oct 20, 2021 9:49 am
by Pi-C
ma3xed wrote: Wed Oct 20, 2021 7:07 am
kirazy wrote: Tue Oct 19, 2021 10:23 pm Pretty sure you can use the creative mod and just disable the instant craft parameter.
Do you think or you know?
creative_mod.png
creative_mod.png (165.59 KiB) Viewed 3492 times
It will work if cheat mode is off.

Re: Request Mod - Alternative Creative

Posted: Wed Oct 20, 2021 10:02 am
by ma3xed
Pi-C wrote: Wed Oct 20, 2021 9:49 am It will work if cheat mode is off.
Yea but then its just default crafting, not free creative one.

Re: Request Mod - Alternative Creative

Posted: Wed Oct 20, 2021 4:24 pm
by kirazy
Hm, if free crafting without modifying recipe prototypes is a function of cheat mode, then there may not be a way to do what you want.

BUT: If you don't mind modifying recipe data, then in data-final-fixes you can just iterate over the recipes and zero out the ingredients. Since you say this is testing only?

Re: Request Mod - Alternative Creative

Posted: Wed Oct 20, 2021 9:10 pm
by mrvn
I think the free/instant crafting cheat just adds the result to the inventory ignoring the recipe. Also ignores it in the crafting menu as all items have an infinity symbol.