Jump to content

Recommended Posts

First off, I just want to state that I am new to the modding community on Don't Starve, but not to any of the code itself.

Right now, I'm starting to understand how it works, but I wanted to ask a couple of questions.

 

I am wanting to remodify a current character on the game itself, but at the same time make him a character that you can choose that is separate from the rest (simple example: modifying Wilson with better health, but is not applied on the original character).

 

So how would I pull this off? Do I copy textures over to modded files, or can I just type the path of original charater textures? Would I also have to copy the script(s) involved with it just to modify one value?

 

 

 

EDIT: Oh, and if its not too much trouble, could someone move this to the appropriate section? I just realized I am in the Don't Starve Together section when I need to be in the singleplayer version... Sorry about that.

Edited by mzx987
Link to comment
https://forums.kleientertainment.com/forums/topic/49566-questions-about-modding/
Share on other sites

can I just type the path of original charater textures?
This. You should just have to copy wilson.lua in the prefabs folder (and rename it and a few things inside), put it in scripts/prefabs in your mod, then have a modmain like this: 
PrefabFiles = { 'mycharacter' }AddModCharacter('mycharacter')

Alright. I got a basic template going, but I can't seem to figure out why the mod causes the game to stop working when enabled.

 

It also occasinally switches between that error and a "cannot find bigportrait" Lua error.

 

Did I mess something up here?

Edited by mzx987

@mzx987, Derp, it finds bigportrait and saveslot stuff by prefab name, I think, so you will have to copy those assets.

 

But when the game stops working, there's usually still a helpful crash message in the log file. (Documents/Klei/DoNotStarveTogether/log.txt).

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