Jump to content

Mods' TECH_INGREDIENT count as normal craft ingredients


ADM
  • Pending

I've been adding a few mod recipes lately that require a new tech ingredient and came across an issue where they aren't actually counted as such but a default ingredient requiring x amount of an item (which doesn't exist so this craft is basically impossible to make) instead of requiring a station tech level :

0-.jpg.fa40c6b1dd7ca1e7324c396c584ca5f3.jpg how it is < > how it should be 1-.jpg.0875413536ec48b210c04ca9edef817d.jpg

The problem seems to be that IsTechIngredient (recipe.lua) will only recognise the TECH_INGREDIENT of the game since recipes load before mods do, is_tech_ingredient will not include further tech ingredients added.


Steps to Reproduce

Recipe will consider TECH_INGREDIENT added later from mods as normal ingredient.

I've linked the log showing all the recipes + a mod ones that include a certain recipe with a tech ing (look for sculpting_material vs cherryruins_material)

Hope this helps.

  • Like 1
  • Wavey 1
  • Big Ups 1



User Feedback


There are no comments to display.



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...