Jump to content

Recommended Posts

I need help, you see, I'm making my first character mode for DST and I've got everything and I think I have some bugs in the code... maybe in modmain.lua, I've already checked everything... syntex errors etc. but it just crashes when I start a world enabling my character... I don't know if someone would be so kind as to take a look at it and maybe help me fix it... please...

I still haven't finished all the art design and stuff, but I wanted to test the coding first..... so I don't know if someone can and wants to help me by taking a look at it

NOTE:I apologize with my English, but I speak native Spanish hehe ;3

I attach the entire file in a drive link, since I don't know if I did everything wrong or not... https://drive.google.com/drive/folders/1yRK31RkAnhVU4HtPSZm_Qdv_V67lSDog

_Just add a greeting from Mexico..._

Edited by ChrisSnayCj
Link to comment
https://forums.kleientertainment.com/forums/topic/145502-my-character-mod-crashes/
Share on other sites

Hey hey! I downloaded the mod and took a look at the crash log for you.

At first I was going to just talk you through how to fix things, but so many things are causing crashes that I just plain think it will be easier to send you the fixed version. I'll still tell you what caused the problems though so you can avoid them in the future.

snay fixed.zip

As for the problems:

In your character's speech file, on line 12 and 17:

Quote

ACTIONFAIL = "AAHG!! NO PUEDO HACER ESO"

BUILD = "Hora de Construir!!"

There's not supposed to be dialogue here, so the game is getting confused. These lines are supposed to look like this:

Quote

ACTIONFAIL =

BUILD =

Also, line 13 and 40 are missing commas:

Quote

 REPAIR = "Fixeado papu!!"

EMPTY = "Se necesito algo para hacerlo"

Not having commas after your strings will cause a crash, so be very careful when deleting things in the speech file!

____

Another crash was happening because the game was looking for "chrissnaycj_none" and could not find it. It was still named "esctemplate_none", so I changed it.

A bunch of pictures had some messed up names (ending in ".png.png"), so I changed them too.

More crashes were happening due to some spelling or case errors in your lua files, which I've fixed.

______

Finally...

Your "anim" folder was missing! Don't delete that in the future - that's where the final build of your character goes, and the game was crashing because it cannot find it.

Also, you've deleted a bunch of folders and files from the character builds themselves. The autocompiler cannot build your character without these folders and the files inside them. Do not delete them. If you don't want sprites to appear on your character, replace them with the transparent versions in the "chrissnaycj_cleared" folder. I have done that for you!

Your character loads in without crashing now, but their sprites are misalligned because the resolution of some of the canvases does not match the resolution listed in "chrissnaycj.scml". Either open chrissnaycj.scml in a text editor and update the resolutions, or change the resolutions back to the original size. I would do this for you but I've been at this for over an hour and need a break hahaha.

Hopefully this works for you. If not, let me know.

Edited by Chesed
  • Health 1

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