Jump to content

My Mod Suddenly Begins to Crash


Recommended Posts

I made a character mod, and it worked perfectly. Functioned well and everything. I thought I'd give my character, Roger, a custom starting weapon; and unbreakable frying pan that deals .2% less damage than the spear. I found a few guides, and cobbled it together. I put it into testing, when it crashed DS:T.

 

NOTE: Roger was made using Example Character.

 

I've included what I think is causing the issue in the attachments.

modinfo.lua

modmain.lua

roger.lua

rogerpan.lua

Link to comment
Share on other sites

Just paste your crash log. This makes it so modders can easily pinpoint the error rather than skimming through all the files taking a wild guess.

 

Documents/Klei/DoNotStarveTogether/log.txt

 

and either paste it in spoilers or give us the log.txt

 

I probably can't help you but I can skim through it and see the problem. Maybe.

Link to comment
Share on other sites

Did you reenact the crash before sending the log?

 

Well regardless I decided to take a look at your character altogether and I noticed that you're lacking the rogerpan.scml file. This is probably it.

Edited by rons0n
Link to comment
Share on other sites

It must've not compiled correctly; I'm looking at the development folder (the folder that i don't put into the mods folder) and the rogerpan.scml is there.

 

Edit: Wait, where should that rogerpan.scml be located? I browsed the folder, and found it in around two locations.

Edited by SecretCereal
Link to comment
Share on other sites

@SecretCereal

yeah, u are missing the spriterfile for when the pan is on the ground.

the thread i linked was supposed to teach u how to find the logfile and error, but u obviously didnt look into the logfile from after a crash, this would be it:

log.txt

"Could not find an asset matching anim/rogerpan.zip in any of the search paths."

yes, that's because u are missing the rogerpan.scml in your exported folder. for some reason u have a rogerpan.scml in one of your imagefolders, but that wont work in the exported-folder, cause it uses a different image. u will have to create a rogerpan.scml in Roger for DST\exported\rogerpan\ground_rogerpan using the groundimage there.

Link to comment
Share on other sites

@SecretCereal,

why do u keep changing stuff that wasn't broken? the swap_rogerpan was working the version u uploaded before, and for some reason u decide to break it now.^^

and why did u create 2 rogerpan.scml now? they overwrite each other, cause they both compile to anim/rogerpan.scml...

Edited by Seiai
Link to comment
Share on other sites

It was a simple mistake; the thing that's tripping me up is swap_rogerpan. The guide I read, http://forums.kleientertainment.com/topic/29427-tutorial-creating-a-handslot-equippable-item-from-scratch/ , details that there should be two swap_myitem folders. The thing that's getting me is where to put the swap_rogerpan.scml, as i've put it in both and they've both turned up the same result.

 

EDIT: the two problematic things are it not being able to find anim/rogerpan and anim/swap_rogerpan

EDITEDIT: i'm getting nowhere with this, i fix one error only to fix the other to have the other come back

Edited by SecretCereal
Link to comment
Share on other sites

The thing that's getting me is where to put the swap_rogerpan.scml

it really doesnt matter where in the exported folder it is, the game just compiles all scml in the exportedfolder into animfiles. but if u keep moving the scml, it doesnt find the pngs anymore, that u used. open the scml with notpad, u will notice a filelist with folders relative to the scml. and u have completely broken them, by moving them around or renameing images after using images in the spriterfiles.

i'm getting nowhere with this, i fix one error only to fix the other to have the other come back

yeah, cause instead of just fixing that thing i told u to, u mess around with everything else. previously ONLY the roger_pan.scml was missing, and then u decided, to make several, move them around to break the filepath, and also move the swap_pan around to break it...

delete all pan-related scml in the exported folder, decide on a structure for where u put the scml and the images, and then create the scmls there...

also, u can look into your autocompiler log in SteamApps\common\temp, it will probably tell u about the images that are linked in your scmls but that it cant find anymore, in the lines for your pan.

if u cant fix it, attach your mod again.

Edited by Seiai
Link to comment
Share on other sites

@SecretCereal,
u removed the image of the stick without removing it in the spriterfile. u can see the error in the autocompilerlog, that i told u to look into before.
 
this also tells me, that u didnt do it step by step and try if it still works after each step.  : P

Edited by Seiai
Link to comment
Share on other sites

I know I've asked this a million times, but I'm still returning "cannot find anim/roger.zip" errors. But here's the funny part; I have not added files, renamed files, or deleted files. I've only edited .png files to update Roger's artwork. I ran it through the autocompiler, and it's churning out anim errors. I've checked out the .scml and everything seems fine. And I still can't understand the log. I've learned to fix a few errors, but this isn't one of them. I think the issue's with the compiler and for some reason it's not compiling the anim folder.

 

As always, I've included the uncompiled mod and the log.

 

roger is so broken.zip

log.txt

 

 

(This is for the non-frying pan Roger, as I'm still working on that version)

 

 

Link to comment
Share on other sites

Im so full of Rasp berry ice tea right now..Mmmm...

 

 

Anyway you did a copy and paste job of headbase and headbase hat didn't you? They were named exactly the same. Regardless all i did was a quick renaming process on your headbase hat to get them working again.

 

I also worked on your rogerpan thingy. It should work but I didn't put it in your starting inventory.

 

c_give("rogerpan") to see it.

 

 

 

 

 

roger.zip

Edited by rons0n
Link to comment
Share on other sites

Im so full of Rasp berry ice tea right now..Mmmm...

 

 

Anyway you did a copy and paste job of headbase and headbase hat didn't you? They were named exactly the same. Regardless all i did was a quick renaming process on your headbase hat to get them working again.

 

I also worked on your rogerpan thingy. It should work but I didn't put it in your starting inventory.

 

c_give("rogerpan") to see it.

 

I am going to buy you a truck of raspberry ice tea.

Link to comment
Share on other sites

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
 Share

×
  • Create New...