Jump to content

Recommended Posts

In all honesty. I havent got the wildest idea of how to mod this. I can edit the script files easily and change it in the right ".lua file", and gain the desired result. But how to make it into a mod I have no clue. Anyone with any idea?

In "scripts\map\rooms\forest\" you can change under "Pigkingdom" this:

countprefabs= { pighouse = function () return 5 + math.random(4) end,
into 
countprefabs= { pighouse = function () return 10 + math.random(4) end,

That will increase pig houses to 10 instead of 5, but how can I turn this into a working mod?

 

 

  • Like 1

You can edit directly in the game files. When you generate a world the changes will be made.

C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together\data\databundles\scripts.zip

Its an unrecommended solution. Since any update of the game you will lose the changes in the code.

Or create custom biomes through a mod:

 

If I'm wrong, correct me. I'm new to the lua language. 

  • Like 1
6 minutes ago, zVince said:

Text.

Zvince, that's what I was trying to say that ive already figured out how to do. I can't figure out how to actually create a mod though. Editing other peoples mods and editing the game files are easy, but creating something new (mods) is very hard to figure out.

Edited by NamelessName
  • Like 1

So ive figured out how to add 10 permanent pighouses. I also wanted to make sure merm heads spawn as well and I made sure 1 always spawns and 2 on random.
Now I am trying to figure out how to spawn cropcircles (the random berry or carrot farm) properly.


But even though I know how to edit things I still cant figure out how to actually copy paste these changes into a mod. 

13 hours ago, NamelessName said:

So ive figured out how to add 10 permanent pighouses. I also wanted to make sure merm heads spawn as well and I made sure 1 always spawns and 2 on random.
Now I am trying to figure out how to spawn cropcircles (the random berry or carrot farm) properly.


But even though I know how to edit things I still cant figure out how to actually copy paste these changes into a mod. 

So assuming that you know absolutely nothing about creating your own mod, I recommend watching one of the many tutorials as to how to create a """mod""". Any of these tutorials should show you how to set up a modmain.lua & modinfo.lua. once thats all done make a folder called "scripts" and then from there basically just recreate the file path and then add the edited lua file into there. I'm pretty sure it might cause compatibiltiy issues with other mods that edit the pigkingdom thing but honestly i'm in a similar boat as you where I can edit things good but I only know the bare minimum of creating my own stuff. this game doesnt seem to have alot of modding documentation...

  • Thanks 1
14 hours ago, LordNiggle said:

So assuming that you know absolutely nothing about creating your own mod, I recommend watching one of the many tutorials as to how to create a """mod""". Any of these tutorials should show you how to set up a modmain.lua & modinfo.lua. once thats all done make a folder called "scripts" and then from there basically just recreate the file path and then add the edited lua file into there. I'm pretty sure it might cause compatibiltiy issues with other mods that edit the pigkingdom thing but honestly i'm in a similar boat as you where I can edit things good but I only know the bare minimum of creating my own stuff. this game doesnt seem to have alot of modding documentation...

Yes, I am trying to look up similar mods at workshop and add what they have changed. Issue with is that theres usually too many changes in most mods. Hard to understand what to copy from a "multimod". Its a great way to find where to edit in the game files though.

As you said, very few complete "rookie-friendly" tutorials around! Lua is hard to learn.

Edited by NamelessName

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