Jump to content

Need help with making a recipe


Recommended Posts

I want Maxwell is able to craft nightmare fuel in cost of his sanity but when I write ingredients for recipe game crashes,and i don't know what to do.

Here is my recipe    
AddRecipe("nightmarefuel",
       {
           Ingredient(CHARACTER_INGREDIENT.SANITY, 1), 
       },
       CUSTOM_RECIPETABS.SHADOW,
       TECH.NONE,
       nil,
       nil,
       nil,
       nil,
       "shadowmagic")

Pls,help me

Link to comment
Share on other sites

Hello and welcome to the world of DS / DST modding :)

Since you are new, I would strongly recommend reading the newcomer post. It has a bunch of information which should ease your entry into this beast that is modding for these games. Particularly the debugging advice is priceless.

Since you're adding a recipe and are not using the GLOBAL variable anywhere, I'll assume your error is that you're missing these lines above your call to AddRecipe call.

local CUSTOM_RECIPETABS = GLOBAL.CUSTOM_RECIPETABS
local Ingredient = GLOBAL.Ingredient
local TECH = GLOBAL.TECH

 

Link to comment
Share on other sites

On 05.09.2019 at 3:31 AM, Ultroman said:

Hello and welcome to the world of DS / DST modding :)

Since you are new, I would strongly recommend reading the newcomer post. It has a bunch of information which should ease your entry into this beast that is modding for these games. Particularly the debugging advice is priceless.

Since you're adding a recipe and are not using the GLOBAL variable anywhere, I'll assume your error is that you're missing these lines above your call to AddRecipe call.


local CUSTOM_RECIPETABS = GLOBAL.CUSTOM_RECIPETABS
local Ingredient = GLOBAL.Ingredient
local TECH = GLOBAL.TECH

 

Thanks for the advice.But i've written these strings.The problem is CHARACTER_INGREDIENT.SANITY, 1,i think,depending on crash logs

client_log.txt

Link to comment
Share on other sites

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
 Share

×
  • Create New...