NoahBangs89 Posted January 21, 2014 Share Posted January 21, 2014 Dear Users, I am new to this forum, but have worked with mods for a while. I am having trouble creating the eternal torch. I organize all the necessary files like anims, scripts, sounds, etc. And yet, it crashes whenever I enable it and hit ok. I have puzzled at this for an hour or so. Here is the code in my modmain.lualocal STRINGS = GLOBAL.STRINGSlocal Ingredient = GLOBAL.Ingredientlocal RECIPETABS = GLOBAL.RECIPETABSlocal Recipe = GLOBAL.RecipePrefabFiles = { "eternaltorch", "torchfire",}ComponentFiles = {}Assets = { Asset( "IMAGE", "fx/torchfire.tex" ), Asset( "ATLAS", "fx/torchfire.xml" ),}function EternalTorch(player) local recipe_eternaltorch = GLOBAL.Recipe("eternaltorch", {Ingredient("goldnugget", 1), Ingredient("twigs", 1)}, RECIPETABS.LIGHT, {SCIENCE =0} ) recipe_eternaltorch.atlas = "images/eternaltorch.xml"endGLOBAL.STRINGS.NAMES.ETERNALTORCH = "Eternal Torch"GLOBAL.STRINGS.RECIPE_DESC.ETERNALTORCH = "A torch that never burns out."AddSimPostInit(EternalTorch)AddPrefabPostInit("eternaltorch")I have uploaded the files for further examination. Any help? eternaltorch.zip Link to comment https://forums.kleientertainment.com/forums/topic/31055-help-needed-trying-to-create-the-eternal-torch/ Share on other sites More sharing options...
NoahBangs89 Posted January 21, 2014 Author Share Posted January 21, 2014 I forgot to make the purpose of this mod clear. It want it to be a torch that never runs out. Link to comment https://forums.kleientertainment.com/forums/topic/31055-help-needed-trying-to-create-the-eternal-torch/#findComment-406911 Share on other sites More sharing options...
baldr Posted January 22, 2014 Share Posted January 22, 2014 NoahBangs89, fx/torchfire.xml incorrectly refers to data/fx/torchfire.tex as texture file name. Remove "data/" prefix and DS won't fail due to this. Link to comment https://forums.kleientertainment.com/forums/topic/31055-help-needed-trying-to-create-the-eternal-torch/#findComment-407023 Share on other sites More sharing options...
baldr Posted January 22, 2014 Share Posted January 22, 2014 Oops, fx/ has to be removed too. Am I missing "Edit" button? Link to comment https://forums.kleientertainment.com/forums/topic/31055-help-needed-trying-to-create-the-eternal-torch/#findComment-407026 Share on other sites More sharing options...
NoahBangs89 Posted January 22, 2014 Author Share Posted January 22, 2014 baldr, You sir are a saint in diamond robes. A quadrillion thanks. Link to comment https://forums.kleientertainment.com/forums/topic/31055-help-needed-trying-to-create-the-eternal-torch/#findComment-407057 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