Babyforce Posted May 6, 2015 Share Posted May 6, 2015 Hello, i'm very new to modding and i need your help. I've followed many tutorials on how to make a Don't Starve item such as this one http://forums.kleientertainment.com/topic/27341-tutorial-the-artists-guide-to-characteritem-modding/ or this one but i didn't help me. I've made an "item.zip" with "build.zip" modified (From Charcoals one) with a hex editor and i modified the "atlas-0.tex" with a 64x64 icon. I've added the .xml and .tex files into the right folder "/images/inventoryimages/" as well. I've also taken the prefabs of charcoal to help me a bit (Because i absolutely don't know how to code). Finally, i tried making it craftable with some scripts i've found on some mods. Result : Either the game crash immediatly or ignore the mod and i'm still unable to test it. I've modified a mod to see if i can replace the textures but only the one on the crafting tab is showing. If i put it on the ground, it's invisible. I've also tried to modify the script to see if i can make it burnable in a firepit but no. I've spent 5 hours searching a way to make it work and i've searched on Internet some tutorials for that but nothing came out. I'm very sorry to ask you if a post like mine exist. I've found nothing. Can anyone help me ? Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/ Share on other sites More sharing options...
Developer PeterA Posted May 6, 2015 Developer Share Posted May 6, 2015 Hey @Babyforce, the first step to figuring out what went wrong is to look at your log.txt file, and post that here so that people can provide assistance. This file is located at C:\Users\<username>\Documents\Klei\DoNotStarveTogether\log.txt Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635033 Share on other sites More sharing options...
Babyforce Posted May 6, 2015 Author Share Posted May 6, 2015 Hi @PeterA, I've found the log.txt but there is too much infos inside : I've played many times after that and i don't know what i should take. Moreover, i've tested so much different time different codes and pictures that i don't know which one i should take. I'm going to erase what i've done to do it again. Then i would put the text of the log.txt (Cleaned before) if it can help you. But i'm keeping the actual log.txt, in case of you need it. Thanks for the fast reply and i hope you can help me. Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635054 Share on other sites More sharing options...
Developer PeterA Posted May 6, 2015 Developer Share Posted May 6, 2015 @Babyforce, okay, next time the game crashes due to your mod. Post the log.txt and we'll take a look. Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635106 Share on other sites More sharing options...
Babyforce Posted May 7, 2015 Author Share Posted May 7, 2015 Hi PeterA, i've made the mod again, and my game crashed. Here the log.txt. I hope you can help me, i don't understand anything. Thanks in advance.log.txt Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635223 Share on other sites More sharing options...
Kzisor Posted May 7, 2015 Share Posted May 7, 2015 @Babyforce, you should really upload the code/mod you're working on so others can look at it and determine if something is wrong. Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635226 Share on other sites More sharing options...
Babyforce Posted May 7, 2015 Author Share Posted May 7, 2015 Hi @Kzisor, I can upload the mode if it can help you. But since I don't even know what I should type, the code may be something which mean nothing. Here uploaded. I tried using code from some mods I found on the workshop and the "apiexamples" found on this website but anything went wrong. Thanks for your reply and thanks in advance for your help.fuel_test.zip Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635229 Share on other sites More sharing options...
Kzisor Posted May 7, 2015 Share Posted May 7, 2015 @Babyforce, I cannot even extract the lua files which you are using; I think that is the issue is that they are not readable. Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635236 Share on other sites More sharing options...
Babyforce Posted May 7, 2015 Author Share Posted May 7, 2015 @Kzisor It's strange, I can read them. Do you want the code separately or only the code file ? Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635238 Share on other sites More sharing options...
Kzisor Posted May 7, 2015 Share Posted May 7, 2015 @Babyforce, the error which you are receiving: [00:00:04]: Assert failure 'datasize + mReadHead <= mBufferLength' at c:\jenkins\workspace\jobs\DontStarveTogether_Release_Windows_MakeSteamPackage\workspace\source\util/reader.h(28): Trace follows... This indicates that something is wrong when the files are being read, so even though you are able to read them the game isn't able to read them. This sometimes happens when the files get corrupted when you save them. It is my recommendation that you create a new .txt file and rename the extension to .lua before ever editing the file. This should ensure that you get a proper .lua file. Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635244 Share on other sites More sharing options...
Babyforce Posted May 7, 2015 Author Share Posted May 7, 2015 @Kzisor I've just made new .lua files and I copied the code but still same error message. What should I do ? Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635247 Share on other sites More sharing options...
Kzisor Posted May 7, 2015 Share Posted May 7, 2015 @Babyforce, answer the following questions so we can get a better understanding around the issue. What operating system are you using?What text editor are you using? This could be an issue with either the text editing software you're using or the operating system you're using. More than likely it's the text editing software you're using. Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635249 Share on other sites More sharing options...
Babyforce Posted May 7, 2015 Author Share Posted May 7, 2015 @Kzisor I'm using Windows 8.1 basic 64bit and my text editor is Notepad++. Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635250 Share on other sites More sharing options...
Kzisor Posted May 7, 2015 Share Posted May 7, 2015 (edited) @Babyforce, I've never used Windows 8.1 basic; only Ultimate. Try posting the actual code from the .lua files and I will see what happens on my end. That is about the only other thing I really have to offer because the reality is I couldn't open or extract any of the .lua files in the .zip you sent me which means they are either corrupt or saved incorrectly. Edit:I was able to extract your animation file, whenever I went to decompile it with krane it said it was corrupted. It looks like your animation file is corrupted, but what is more troubling is that I couldn't actually access the .lua files with WinRar I had to use 7Zip to extract them (thanks to PeterA for letting me know how to extract them.) Edited May 7, 2015 by Kzisor Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635259 Share on other sites More sharing options...
Babyforce Posted May 7, 2015 Author Share Posted May 7, 2015 (edited) @Kzisor Here the "modmain.lua" file, "modinfo.lua" and the prefab. I hope you can open them. Edit : So you can now open the .lua files ? I'm sorry for the issue, i'm using 7zip and didn't know that the compression format wasn't read by Winrar. And for the animation files, i've made exactly what they said in their tutorials so I don't know what happened.modmain.luamodinfo.luafuel_drop.lua Edited May 7, 2015 by Babyforce Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635285 Share on other sites More sharing options...
DarkXero Posted May 8, 2015 Share Posted May 8, 2015 *Fuel Drop.zip Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635443 Share on other sites More sharing options...
Babyforce Posted May 8, 2015 Author Share Posted May 8, 2015 Thanks @DarkXero for the .zip. The code seems to be better now. But do anyone now why this message is always here :[00:00:16]: Assert failure 'datasize + mReadHead <= mBufferLength' at c:\jenkins\workspace\jobs\DontStarveTogether_Release_Windows_MakeSteamPackage\workspace\source\util/reader.h(28): Trace follows...@Kzisor said that the "anim.zip" may be corrupted but I don't know why and how. I've followed 2 tutorials talking about that but this didn't help me. Why creating a mod is so hard and complicated ? I hope you can help me, I'm stuck. Thanks in advance. Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635566 Share on other sites More sharing options...
DarkXero Posted May 8, 2015 Share Posted May 8, 2015 @Babyforce, post the anims. Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635582 Share on other sites More sharing options...
Babyforce Posted May 8, 2015 Author Share Posted May 8, 2015 @DarkXero Here it is.anim.zip Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635591 Share on other sites More sharing options...
DarkXero Posted May 8, 2015 Share Posted May 8, 2015 (edited) @Babyforce,Your build file has a weird atlas-0.tex.Yï, that .Yï shouldn't be there.Check in your project if it's using that atlas. Same applies to charcoal, in the anim, there is a charcoal.Yï. You sure everything is saved fine? Repeat the tutorial's steps, make sure you didn't load a template inside a zip or something, that you loaded the pngs or scmls or the correct thing. Edited May 8, 2015 by DarkXero Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635596 Share on other sites More sharing options...
Babyforce Posted May 8, 2015 Author Share Posted May 8, 2015 @DarkXero Modified again. Remade the .zip. The "build.bin" has been modified with the "Matt's Build Renamer" and the "atlas-0.tex" has been remade with the charcoal resolution "128*64" instead of "64*64" (Converted with TEX Tool) and still the same error message. I've used original .zip to do it so it is not a problem about this. What should I do ? Sorry for taking your time and thanks in advance.fuel_drop.zip Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635608 Share on other sites More sharing options...
DarkXero Posted May 8, 2015 Share Posted May 8, 2015 (edited) @Babyforce, The good news is that the last zip doesn't crash my game and actually loads.The bad news is that when I decompile it, there is a missing name so it gets something else assigned.When I open the build with notepad, I see " " before the charcoal thing, so that's probably why the name is wrong? Tell me the tutorial you followed so I follow it too. Edited May 8, 2015 by DarkXero Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635636 Share on other sites More sharing options...
Babyforce Posted May 8, 2015 Author Share Posted May 8, 2015 @DarkXero I've followed this one : http://forums.kleientertainment.com/topic/27341-tutorial-the-artists-guide-to-characteritem-modding/ But I find it a bit confused. Maybe because of my English level. Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635650 Share on other sites More sharing options...
DarkXero Posted May 9, 2015 Share Posted May 9, 2015 @Babyforce, alright, what about the exported files? Like the png for the drop. Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-635775 Share on other sites More sharing options...
Babyforce Posted May 9, 2015 Author Share Posted May 9, 2015 @DarkXero I've taken a picture on Internet, modified it on Paint.net and converted it with the tool with all default parameters. Here the PNG of the "anim.zip" : It's a PNG. I think nothing is wrong with it. Link to comment https://forums.kleientertainment.com/forums/topic/53581-help-add-a-new-fuel-item/#findComment-636013 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