officialpinq Posted March 4, 2017 Share Posted March 4, 2017 so basically I've been trying so hard to make a mod I finally made one but now it gives me an ERROR here is all the code local RECIPETABS = GLOBAL.RECIPETABS local Ingredient = GLOBAL.Ingredient local Recipe = GLOBAL.Recipe local TECH = GLOBAL.TECH local STRINGS = GLOBAL.STRINGS AddRecipe("mandrake", {Ingredient("livinglog", 1), Ingredient("carrot", 2), RECIPETABS.FOOD, TECH.SCIENCE_ONE) STRINGS.RECIPE_DESC.MANDRAKE = "a Living Plant." AddRecipe("wormlight", {Ingredient("lightbulb", 2), Ingredient("berries", 1), RECIPETABS.FOOD, TECH.SCIENCE_ONE) STRINGS.RECIPE_DESC.WORMLIGHT = "hmm? a Glowing Vegetable?" AddRecipe("gears", {Ingredient("rope", 1), Ingredient("flint", 2),Ingredient("goldnugget", 1), RECIPETABS.SCIENCE, TECH.SCIENCE_ONE) STRINGS.RECIPE_DESC.GEARS = "Clink! Clank!" AddRecipe("livinglog", {Ingredient("livinglog", 1), Ingredient("nightmarefuel", 1), RECIPETABS.REFINE, TECH.SCIENCE_ONE) STRINGS.RECIPE_DESC.LIVINGLOG = "Avada Kedavra! *poof* a Magical Stump!" AddRecipe("houndstooth", {Ingredient("stinger", 2), Ingredient("boneshard", 1), RECIPETABS.REFINE, TECH.SCIENCE_ONE) STRINGS.RECIPE_DESC.HOUNDSTOOTH = "Pesky ol' teeth!" AddRecipe("meat", {Ingredient("smallmeat", 2), RECIPETABS.FOOD, TECH.SCIENCE_ONE) STRINGS.RECIPE_DESC.MEAT = "Don't? err Starve I guess!" AddRecipe("nightmarefuel", {Ingredient("spoiled_food", 4), RECIPETABS.MAGIC, TECH.SCIENCE_ONE) STRINGS.RECIPE_DESC.NIGHTMAREFUEL = "Witchcraft, I assume?!" AddRecipe("steelwool", {Ingredient("transistor", 2), Ingredient("beefalowool", 4), {Ingredient("rope", 1), RECIPETABS.REFINE, TECH.SCIENCE_TWO) STRINGS.RECIPE_DESC.STEELWOOL = "no moe mama mucus! Hallelujah" AddRecipe("armorruins", {Ingredient("thulecite_pieces", 16), Ingredient("armorwood", 1), {Ingredient("rope", 2), RECIPETABS.FIGHT, TECH.SCIENCE_TWO) STRINGS.RECIPE_DESC.ARMORRUINS = "nifty piece of armor, eh?" AddRecipe("butter", {Ingredient("butterflywings", 2), Ingredient("honey", 2), RECIPETABS.FOOD, TECH.SCIENCE_TWO) STRINGS.RECIPE_DESC.BUTTER = "Butter, is a necessity!" that is modmain.lua name = "CraftPlus" description = "Crafting has never been better!" author = "SaltMouth" version = "1.0.0" forumthread = "" -- This lets other players know if your mod is out of date, update it to match the current version in the game api_version = 10 -- Can specify a custom icon for this mod! icon_atlas = "" icon = "" -- Specify compatibility with the game! dont_starve_compatible = true reign_of_giants_compatible = true dst_compatible = true all_clients_require_mod = true that is modinfo.lua I've placed it inside of a folder and I called the folder _craftplus if someone can resolve my issue that would be amazing Link to comment https://forums.kleientertainment.com/forums/topic/75362-ive-come-across-an-error-and-i-need-help/ Share on other sites More sharing options...
Amalleus Posted March 4, 2017 Share Posted March 4, 2017 no good formattin and no crash log. sorry. for formatting use "code" <> sign. and log.txt is in documents/klei/dontstarve/ Link to comment https://forums.kleientertainment.com/forums/topic/75362-ive-come-across-an-error-and-i-need-help/#findComment-877481 Share on other sites More sharing options...
officialpinq Posted March 4, 2017 Author Share Posted March 4, 2017 4 hours ago, Amalleus said: no good formattin and no crash log. sorry. for formatting use "code" <> sign. and log.txt is in documents/klei/dontstarve/ I couldn't find the log but I took a screenshot http://prntscr.com/efxnxq Link to comment https://forums.kleientertainment.com/forums/topic/75362-ive-come-across-an-error-and-i-need-help/#findComment-877572 Share on other sites More sharing options...
Amalleus Posted March 4, 2017 Share Posted March 4, 2017 so check all your { and }. it must be beginning { and closing }. error log says that you lost closing } on line 7. since formatting is weird i can't normally read this code Link to comment https://forums.kleientertainment.com/forums/topic/75362-ive-come-across-an-error-and-i-need-help/#findComment-877580 Share on other sites More sharing options...
CarlZalph Posted March 4, 2017 Share Posted March 4, 2017 AddRecipe("mandrake", {Ingredient("livinglog", 1), Ingredient("carrot", 2)}, RECIPETABS.FOOD, TECH.SCIENCE_ONE) Do this for each recipe you forgot to close the table for. Link to comment https://forums.kleientertainment.com/forums/topic/75362-ive-come-across-an-error-and-i-need-help/#findComment-877612 Share on other sites More sharing options...
officialpinq Posted March 4, 2017 Author Share Posted March 4, 2017 (edited) 1 hour ago, Amalleus said: so check all your { and }. it must be beginning { and closing }. error log says that you lost closing } on line 7. since formatting is weird i can't normally read this code 13 minutes ago, CarlZalph said: AddRecipe("mandrake", {Ingredient("livinglog", 1), Ingredient("carrot", 2)}, RECIPETABS.FOOD, TECH.SCIENCE_ONE) Do this for each recipe you forgot to close the table for. Thank you so much! I'll see if this works and make an edit if I get an error or if It works EDIT: come across another error http://prntscr.com/efyvw9 Edited March 4, 2017 by officialpinq Link to comment https://forums.kleientertainment.com/forums/topic/75362-ive-come-across-an-error-and-i-need-help/#findComment-877616 Share on other sites More sharing options...
Amalleus Posted March 5, 2017 Share Posted March 5, 2017 19 hours ago, officialpinq said: Thank you so much! I'll see if this works and make an edit if I get an error or if It works EDIT: come across another error http://prntscr.com/efyvw9 it is not another error. it is same error but on 21 line. can't you really read it? Link to comment https://forums.kleientertainment.com/forums/topic/75362-ive-come-across-an-error-and-i-need-help/#findComment-877952 Share on other sites More sharing options...
officialpinq Posted March 5, 2017 Author Share Posted March 5, 2017 2 hours ago, Amalleus said: it is not another error. it is same error but on 21 line. can't you really read it? don't worry it's already fixed I forgot to edit the error but it wasn't what you were thinking it was I had to change the entire code because add recipe didn't work so I did this: local mandrake = GLOBAL.Recipe("mandrake", {Ingredient("livinglog", 1), Ingredient("carrot", 2) }, RECIPETABS.FOOD, TECH.SCIENCE_ONE) Link to comment https://forums.kleientertainment.com/forums/topic/75362-ive-come-across-an-error-and-i-need-help/#findComment-877987 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