Jump to content

how to reduce crafting time of concrete mix?


darchon

Recommended Posts

I see what you're trying to do, since it looks like it's  set to craft at a default speed. The best workaround I think of offhand would be to add some kind of  new turbo ConcreteMix recipe by copying the existing recipe and just multiplying  both the output and ingredients by say 10 or 100 for a similar increase in speed. It's not very granular, but when you're making mix, you're probably looking to do 6000 at one shot instead of 17.

 


<recipe name="resourceConcreteMix" count="100" craft_area="cementMixer" tags="cementMixerCrafting">
	<ingredient name="resourceCrushedSand" count="100"/>
	<ingredient name="resourceRockSmall" count="100"/>
	<ingredient name="resourceCement" count="100"/>
</recipe>

 

Link to comment
Share on other sites

Below is a part of crafting recipe for 9mm ammo bundle. It has a craft time in it.

 

<recipe name="ammoBundle9mmBulletBall" count="1" craft_time="240" craft_area="workbench" tags="learnable,workbenchCrafting">

 

 

You can try adding the craft time to the concrete mix like below to see if that works. If not just change it back.

You should be able to adjust the crafting time by changing the 240 to something smaller. That number may be seconds.


<recipe name="resourceConcreteMix" count="1"  craft_time="240" craft_area="cementMixer" tags="cementMixerCrafting">

 

 

 

EDIT: Gouki, your post popped up as I was typing lol you ninja.

Link to comment
Share on other sites

thanks Cranberry Monster, why didnt i think of that? 😆

 

and thanks Gouki and Gamida, great idea except i couldn't make this xpath version of your idea work, does this look right?

<append xpath="/recipes/recipe[@name='resourceConcreteMix']/@craft_time">0.01</append>

interestingly enough editing the original recipes.xml works but i dont want to be messing around with the original xml as making changes in mod versions is cleaner.

Link to comment
Share on other sites

I am a bit shaky in the modding department so not sure how to make it a modlet but and interested if someone else has the answer. I would like to know myself and am sure then it can be used to adjust craft time of other items.

 

I too rather have a modlet made than edit the original if I can.

Link to comment
Share on other sites

I have finished the mod, if you are interested here is the code.

This deletes the recipe and puts it back but with the crafting time at 4 seconds (original 13 seconds), you can change it according to your criteria.
Regards

 

<Gouki>

    <remove xpath="/recipes/recipe[@name='resourceConcreteMix']"/>
    
    
    <append xpath="/recipes">
    
        <recipe name="resourceConcreteMix" count="1" craft_time="4" craft_area="cementMixer" tags="cementMixerCrafting">
            <ingredient name="resourceCrushedSand" count="1"/>
            <ingredient name="resourceRockSmall" count="1"/>
            <ingredient name="resourceCement" count="1"/>
        </recipe>
        
    </append>

</Gouki>

 

 

A19.2_2020-11-24_12-42-25.jpg

Link to comment
Share on other sites

  • 2 weeks later...
On 11/24/2020 at 8:54 PM, Gouki said:

I have finished the mod, if you are interested here is the code.

This deletes the recipe and puts it back but with the crafting time at 4 seconds (original 13 seconds), you can change it according to your criteria.
Regards

 

<Gouki>

    <remove xpath="/recipes/recipe[@name='resourceConcreteMix']"/>
    
    
    <append xpath="/recipes">
    
        <recipe name="resourceConcreteMix" count="1" craft_time="4" craft_area="cementMixer" tags="cementMixerCrafting">
            <ingredient name="resourceCrushedSand" count="1"/>
            <ingredient name="resourceRockSmall" count="1"/>
            <ingredient name="resourceCement" count="1"/>
        </recipe>
        
    </append>

</Gouki>

 

 

A19.2_2020-11-24_12-42-25.jpg

Your way is amateurish. My way is professional and better:

<setattribute xpath="//recipe[@name='resourceConcreteMix']" name="craft_time">200</setattribute>

 

Link to comment
Share on other sites

On 12/9/2020 at 10:57 AM, CrazyAluminum said:

Your way is amateurish. My way is professional and better:


<setattribute xpath="//recipe[@name='resourceConcreteMix']" name="craft_time">200</setattribute>

 

 

A 'cleaner' way i would say CrazyAluminium   .....  there are multiple ways to accomplish the same goal in Xpath so if it works it works whatever but not amateurish just different.

 

Ragsy !!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...