Need help with Custom Character


StorytellerOfTheDead

Recommended Posts

Hello,

I'll admit right off the bat that I'm VERY new to modding any game at all, but I've got a character that I wanted to mod into Don't Starve to play as them. I followed the tutorials on Klei's website as closely as I was able, and had finished with all the .lua's and .tex's and was working on editing the character sprite so I was going to launch the game and try to play as the character to see how it looked.

 

At first there was an issue with the mod crashing, the error report being that it was looking for an asset with an improper name in the Bigportraits.

 

The character's name is Rahk'Shaan, but I couldn't use the apostraphe in the .lua files without it breaking the quotes, so in the .lua's I changed it to Rahk_Shaan and did the same with all the file names. However, from what I can tell, the game has it looking for files named Rahk'Shaan, even after I went into the .lua's and changed it to use the asset Rahk_Shaan.xml or .tex or what have you. I changed them to have the apostraphe, and the game crashed again, saying this time that it was looking for Rahk_Shaan names, with the underscore, just flipping back and forth between the two. I thought that somewhere in the .lua's I must have left it as Rahk'Shaan, but I don't think I've done that anywhere that it would matter.

 

At this point, frustrated as I was, I made copies of all the files the game was looking for both name versions of, so that both Rahk_Shaan and Rahk'Shaan existed in all of the cases. I booted up the game, enabled the mod, and it took me back to the main menu screen like everything was working fine. I pressed play, but I couldn't click on any of the World slots - it didn't register that I had even moused over them. I tried to relaunch the game but it crashed without even giving an error report. I deleted all the copies and it's still crashing without even an error report. I'm not sure how to fix this, so I'm going to leave it up to modders more skilled than myself. It won't let me attach any of the files that would actually do any good, so I suppose telling me what to do would have to do. 

 

Also it would be nice if I could make some custom character quotes, like what they say upon examination of different objects or in different events, but I'm not quite sure how to. Any help with that would be very appreciated as well. I'm also looking to make him have special abilities that make his health regenerate automatically, make him lose sanity slower, and I'm trying to make an item that's a set of bracelets that will work like an alchemy engine / science machine in that he'll be able to have all recipes available to prototype/build when he's wearing it. 

 

Thanks very much!

Link to comment
Share on other sites

Dang that's a lot of engagement O_O

 

Read about the error log and how to access it.

 

As a rule of thumb, always use lower case characters for coding names. The prefab name must be lower case, and the files should be too (Linux doesn't take kind on upper case, I think).

 

As for the perks, try to get things sorted out first. You need a solid foundation to build on.

Most code can be seen in other character mods. Don't be afraid of copying snippets (for entire files or assets you should ask the author and credit them as well).

 

EDIT: Also you may be interested in the API docs (wordpress).

 

Please feel free to ask on these forums should something make no sense to you.

Link to comment
Share on other sites

Okay, so thanks to Mobbstar, I was able to get slightly farther in the process. I can apply the mod without the game crashing now. However, I went in to start a new game. I was able to select the character and generate a new world but after the loading screen the game went black and after a while simply exited. There was no error report generated, so I've no idea what's going wrong or how to fix it. The only change is that I've created a custom speech file now, but I don't think that should be crashing the game when it tries to load. I'm thinking (and again I'm new to this so I don't know) that it might be a texture problem?

Link to comment
Share on other sites

I've also just discovered that the game is exporting files for Wilson, Sample Dude (which is the template I used to create the custom character) and Rahk'Shaan. I'm pretty sure that's what's causing the crash, but I don't know what's causing it. As far as I know, in Modmain it only says to use the Rahk'Shaan files.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.