PirateJoe Posted March 13, 2017 Share Posted March 13, 2017 (edited) So i've been working on this mod, that adds a Blood Bag, and ive taken a few snippets of coding from pre existing mods, replacing coding and removing things i dont need, and i thought everything was as it should be, until i loaded it up. The log file says its an issue with the /anim files as it used to be a '/anim/bladder.zip' and after replacing the art and rebuilding it, it still believes it to be a 'bladder.zip' if someone could take a look at the log and maybe the mod itself, and let me know what the problem is i would appreciate it! Thank you ;v; EDIT: Updating log and modfiles for help on tab icon/on ground image UPDATE: Managed to get the mod to work in general but the on-ground image is the only odd part, being distorted and such. Updated mod attached Bloodbag.zip Edited March 15, 2017 by PirateJoe Link to comment Share on other sites More sharing options...
PirateJoe Posted March 14, 2017 Author Share Posted March 14, 2017 (edited) If anyone's still looking around the threads i would really appreciate some help, thanks ;v; EDIT: Ive managed to get the mod to load, but there is no recipe tab icon, and it's invisible on the ground! Im really close but if someone could help me with what coding to use to add these two things that would be very nice <3 Edited March 14, 2017 by PirateJoe Link to comment Share on other sites More sharing options...
PanAzej Posted March 14, 2017 Share Posted March 14, 2017 (edited) 2 hours ago, PirateJoe said: If anyone's still looking around the threads i would really appreciate some help, thanks ;v; EDIT: Ive managed to get the mod to load, but there is no recipe tab icon, and it's invisible on the ground! Im really close but if someone could help me with what coding to use to add these two things that would be very nice <3 You're missing: inst.AnimState:SetBank("bladder") In your prefab. Doesn't change the fact that the item doesn't work... Well, rather, it works in a really weird way. I doubt it was your intention. Nevermind, it works properly. You're missing another line in your prefab: inst.components.inventoryitem.imagename = "bloodbag" And the graphics themselves are buggy and stuff. You could just make a brand new build, it's not that hard. Make a new folder called "exported" in your mod directory and a new custom folder in it with your *.png file inside, open Spriter and make a new Spriter project (*.scml) in that folder. Now you only need to put your graphic into the Spriter (the horizontal line is the ground level). Then save your project, run autocompiler, and voila, you got a brand new, working build in your anim folder. The name of your *.scml is the name of the build, while: Edited March 14, 2017 by PanAzej Link to comment Share on other sites More sharing options...
Touctoot Posted March 14, 2017 Share Posted March 14, 2017 (edited) m Edited February 13, 2021 by Touctoot Link to comment Share on other sites More sharing options...
PanAzej Posted March 14, 2017 Share Posted March 14, 2017 Just now, Pimster said: Just so ask, @PanAzej, when I complied it I didn't get the .bin files, is that normal? Nope, that's not normal. I don't have a clue how that could happen... Link to comment Share on other sites More sharing options...
PanAzej Posted March 15, 2017 Share Posted March 15, 2017 Okay, since I can't send a file in a PM, here's what you were doing wrong: --- You need to put your "exported" folder in your mod directory. Aka: C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together Beta\mods\[bloodbag_mod_folder]\exported\bloodbag Yes, I was talking about the on-ground image. That's what we're trying to make here. --- You were also missing an "Assets" table in your modmain, as well as images in AddRecipe: Assets = { Asset("ATLAS", "images/inventoryimages/bloodbag.xml"), Asset("IMAGE", "images/inventoryimages/bloodbag.tex"), } if default then AddRecipe("bloodbag", {Ingredient("mosquito", 4), Ingredient("rope", 1), Ingredient("silk", 2) }, RECIPETABS.SURVIVAL, TECH.SCIENCE_TWO, nil, nil, nil, 1, nil, "images/inventoryimages/bloodbag.xml", "bloodbag.tex") elseif alt then AddRecipe("bloodbag", {Ingredient("mosquito", 2), Ingredient("silk", 1) }, RECIPETABS.SURVIVAL, TECH.SCIENCE_TWO, nil, nil, nil, 3, nil, "images/inventoryimages/bloodbag.xml", "bloodbag.tex") end --- Here's the fixed version of your mod: Bloodbag.zip --- Link to comment Share on other sites More sharing options...
PirateJoe Posted March 15, 2017 Author Share Posted March 15, 2017 Oh my! Thank you so much PanAzej! You didn't have to fix it yourself but im very grateful for that ;v; Ill save this info for future mods too, and if i get stuck again i hope you wont be too annoyed if i ask for help. 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