Jump to content

Recommended Posts

Hello,

 

Recently I got into the idea of creating my own character. So I found several tutorials on how to do this and followed them the best I could, and... I have come up with an issue.

 

As of right now, I have only managed to create a skin for the character. But, after enabling the mod, the character's portrait doesn't show up, as if the mod was never there. I'm not sure what to do at this point, I have looked for several hours trying to figure out where I could have done something wrong, but I believe that I followed all of the steps correctly. I created a portrait for the character, replaced all the "wod"s with the character's name, "monty". If anything, I think the problem may be somewhere in there. But I am completely new to this, so I haven't figured anything out yet.

 

Any help would be appreciated.

 

I am sorry in advance if there already is a post with the same issue, I was unable to find any.

 

Thanks!

Edited by jimmeh57

When I enable the monty mod, I get a bunch of lua script errors. Are you enabling the mod through the mods menu? If so it should tell you as soon as you try enabling your mod what the problem is.

Okay, so I did what you said, and I fixed several errors, but I am stuck at one. It says: Could not find an asset matching images/selectscreen_portraits/monty_silho.tex in any of the search paths. I don't believe that I ever had a _silho.tex file, and its not anywhere in my recycle bin.

  • Developer

Okay, so I did what you said, and I fixed several errors, but I am stuck at one. It says: Could not find an asset matching images/selectscreen_portraits/monty_silho.tex in any of the search paths. I don't believe that I ever had a _silho.tex file, and its not anywhere in my recycle bin.

That asset is being told to load on line 12 of modmain.lua.  Also if I may suggest, you should try using an ide such as Sublime which should help you track down these errors much quicker.

 

In fact, you inspired me to write a guide on Scripting with Sublime :).

That asset is being told to load on line 12 of modmain.lua.  Also if I may suggest, you should try using an ide such as Sublime which should help you track down these errors much quicker.

 

In fact, you inspired me to write a guide on Scripting with Sublime :-).

Alright, so I managed to install Sublime, which is very helpful I must add, and I resolved several issues. But now I came up with another problem. Every time I enable the mod, the game crashes.

There should be a log file which tells you why it's crashing.  You can find it under 'My Documents/Klei/DoNotStarve/log.txt'.

Okay, so I went into the log file, and came up with this:

 

Could not load texture ../mods/monty/images/selectscreen_portraits/wod_silho.tex

 

Now, the thing is, I have this file, just that it is named monty_silho.tex.. along with the rest of the files ( all of them originally called "wod" are now "monty"). I already used the build renamer program, changing wod to monty, so I thought that I wouldn't come up with this problem. Is there a way to fix this?

Chances are you didn't change the name inside the xml file itself.

<Atlas><Texture filename="wod_silho.tex" /><Elements><Element name="wod_silho.tex" u1="0.00265957446809" u2="0.997340425532" v1="0.00176056338028" v2="0.99823943662" /></Elements></Atlas>

You need to open up your monty_silho.xml file and change the refences.

Chances are you didn't change the name inside the xml file itself.

<Atlas><Texture filename="wod_silho.tex" /><Elements><Element name="wod_silho.tex" u1="0.00265957446809" u2="0.997340425532" v1="0.00176056338028" v2="0.99823943662" /></Elements></Atlas>

You need to open up your monty_silho.xml file and change the refences.

Wow, I did this, and it works! Thanks a lot, both to you and Cheerio, I would never have figured this out otherwise.

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