Addidasman Posted September 4, 2019 Share Posted September 4, 2019 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 More sharing options...
Ultroman Posted September 4, 2019 Share Posted September 4, 2019 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 More sharing options...
Addidasman Posted September 6, 2019 Author Share Posted September 6, 2019 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 More sharing options...
Ultroman Posted September 6, 2019 Share Posted September 6, 2019 Then add local CHARACTER_INGREDIENT = GLOBAL.CHARACTER_INGREDIENT Link to comment Share on other sites More sharing options...
Addidasman Posted September 13, 2019 Author Share Posted September 13, 2019 On 07.09.2019 at 3:22 AM, Ultroman said: Then add local CHARACTER_INGREDIENT = GLOBAL.CHARACTER_INGREDIENT And that didn't help.I don't get what game wants from me. Here are modmain.lua and cutted crashlog: client_log — копия.txt modmain.lua Link to comment Share on other sites More sharing options...
Ultroman Posted September 13, 2019 Share Posted September 13, 2019 (edited) Well, it's telling you the problem. On line 10 of your modmain.lua, you have an extra end-parenthesis. Edited September 13, 2019 by Ultroman Link to comment Share on other sites More sharing options...
Addidasman Posted September 14, 2019 Author Share Posted September 14, 2019 I'm so grateful for your help.You are the best Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now