Windows The ingredient storage service does not work on dedicated servers.

K_3_F_1_R

Refugee
Version
2.5b24
Platform
Windows
There is a recipe for this craft in the vanilla version.
<recipe name="ammo9mmBulletBall" count="1" craft_area="workbench" tags="workbenchCrafting">
<ingredient name="resourceBulletTip" count="1"/>
<ingredient name="resourceGunPowder" count="1"/>
<ingredient name="resourceBulletCasing" count="1"/>
</recipe>
If you add more variations of this recipe, but change the ingredients.
<recipe name="ammoBundle9mmBulletBall" count="1" craft_time="240" craft_area="workbench" tags="learnable,workbenchCrafting">
<ingredient name="resourceBulletTip" count="80"/>
<ingredient name="resourceGunPowder" count="80"/>
<ingredient name="resourceCoal" count="80"/>
</recipe>

<recipe name="ammoBundle9mmBulletBall" count="1" craft_time="240" craft_area="workbench" tags="learnable,workbenchCrafting">
<ingredient name="resourceBulletTip" count="80"/>
<ingredient name="resourceGunPowder" count="80"/>
<ingredient name="resourceScrapLead" count="80"/>
</recipe>
And it turns out that the wrong return of items is working.
You need to start crafting an item. Exit the Workbench. Cancel the craft. And you will receive the items from a different recipe, specifically those listed in the first one.

1767008221010.png
 
Reproduction Steps
You need to start crafting an item. Exit the Workbench. Cancel the craft. And you will receive the items from a different recipe, specifically those listed in the first one.
Link to Logs
https://pastebin.com/sxqBhPpR
Link to Screenshot/Video
https://youtu.be/xy335Ss6jaM
Hello k_3_f_1_r,

Thank you for your report. It sounds like the issue you may be experiencing here has to do more with modding and how the vanilla game logic works when it comes to recipes and refund.

Since the additional recipes have the same name as the vanilla version of the bullets, I have a feeling that the vanilla logic is being called upon for the return of those recipes so it is giving back the vanilla recipe in return.

I did a quick test where I copied the vanilla recipe, renamed it to include the letters Alt (as in alternate) at the end, and then changed the recipe to include coal. When I did that and cancelled the craft, I received the appropriate items on cancel.

This is how it works at the moment. I am unable to speak about further mod support since I do not have that knowledge at this time.

Thanks,
Dollie
 
Hello k_3_f_1_r,

Thank you for your report. It sounds like the issue you may be experiencing here has to do more with modding and how the vanilla game logic works when it comes to recipes and refund.

Since the additional recipes have the same name as the vanilla version of the bullets, I have a feeling that the vanilla logic is being called upon for the return of those recipes so it is giving back the vanilla recipe in return.

I did a quick test where I copied the vanilla recipe, renamed it to include the letters Alt (as in alternate) at the end, and then changed the recipe to include coal. When I did that and cancelled the craft, I received the appropriate items on cancel.

This is how it works at the moment. I am unable to speak about further mod support since I do not have that knowledge at this time.

Thanks,
Dollie
Yes, that's correct. If we use different recipe names, say, RECIPE and RECIPE1, then this manipulation will work fine.

But the issue here is precisely that we have RECIPE and RECIPE again, but with different required resources. When performing the manipulation in the local version of the game, everything goes smoothly, and all spent resources are returned.
HOWEVER,
When performing the action on dedicated servers, everything happens exactly the same way, but *in reverse*, and the result is as shown in the mail. The ingredients returned are not the ones that were spent when analyzing similar recipes. I tried adding some exclusion manipulations in the logic (adding a tag), but it yielded no result.
If this is not a bug in the operation on dedicated servers or something else, then is there any advice on how to make it work on dedicated servers?
 
Hello k_3_f_1_r,

Let me look further into this, as I did not look at anything on the dedicated server since it wasn't mentioned in the first post. I looked at the recipe for single player. I'll get back to you with additional information once I have taken a look.

Regards,
Dollie
 
Back
Top