Jump to content

Recommended Posts

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

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.

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

@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.

@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.

@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 by Kzisor

@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.lua

modinfo.lua

fuel_drop.lua

Edited by Babyforce

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.

@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 by DarkXero

@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

@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 by DarkXero

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...