Ipsquiggle

worldgenoverride.lua with the new post-Caves settings

Recommended Posts

Ipsquiggle    5,120

What is new format of worldgenoverride.lua? I mean new options.

You may have already seen this but since you asked... ^^^

  • Like 1

Share this post


Link to post
Share on other sites
Sindex    141

Ipsquiggle 

 

So this seems to works overall. However there is one small problem and it could be a bug. When you go to server details and hit the “view world” button (via the client) it will not show you anything that has been changed. So for instance on my server I turned up chess and merms to the max (as a test). When I get into the server it holds to be true; since I can see merms and chess pieces everywhere. Nevertheless when I exit out of the server and check the world view from the client, it shows that merm and chess pieces are set to default.

 

So anyone who gets in the server and thinks the world is normal, will be in a bit of surprise once they get in it. A friend of mine said he had to create a server map from his client and then ported over that save to his dedicated server to get around this issue.

Edited by Sindex

Share this post


Link to post
Share on other sites
Sephtis    0

Hi,

 

to use the wordlgenovrride.lua you just copy that into dont starve together folder ? 

 

whats the script part do need that too run map ? 

 

regds

Share this post


Link to post
Share on other sites
Ipsquiggle    5,120

So this seems to works overall. However there is one small problem and it could be a bug. When you go to server details and hit the “view world” button (via the client) it will not show you anything that has been changed.

Ah, you're right! I'll have a look into that.

 

Hi,

 

to use the wordlgenovrride.lua you just copy that into dont starve together folder ? 

 

whats the script part do need that too run map ? 

 

regds

This file is simply for dedicated servers, because they don't have a main menu where you can choose world settings. You put this file in your configuration directory (in your documents/home folder) and it will be used for the next generation.

Share this post


Link to post
Share on other sites
Tovath    4

@Ipsquiggle

 

The second half that is a "script" did you make a "worlgenoverride.lua" for it an put it in the scripts folder, or did you name it something else.  I think that is the only thing that is unclear to me.

Share this post


Link to post
Share on other sites
Sephtis    0

Ah, you're right! I'll have a look into that.

 

This file is simply for dedicated servers, because they don't have a main menu where you can choose world settings. You put this file in your configuration directory (in your documents/home folder) and it will be used for the next generation

 

 

 

 

hi, 

 

i can't find the documents / home folder, i have dedicated server from a site, so i put the worldgenoveride.lua in the dont starve together folder and that works with world generation , 

Share this post


Link to post
Share on other sites
Tovath    4

I have this worldgenoverride.lua in the correct folder but get the message

 

ERROR: Failed to load ../worldgenoverride.lua 

 

It is exactly the same as the above first spoiler.  Am I missing something? What is the second spoiler for?

Share this post


Link to post
Share on other sites
Shequan    6

I will reiterate a questions that have been asked above but not answered satisfactorily. Do we need to create a script file in (referenced in the second spoiler) or is adding the worldgenoverride file sufficient to affect world gen settings? If we do need a script file in addition can someone please explain what it does.

Share this post


Link to post
Share on other sites
Screamer21    8

I will reiterate a questions that have been asked above but not answered satisfactorily. Do we need to create a script file in (referenced in the second spoiler) or is adding the worldgenoverride file sufficient to affect world gen settings? If we do need a script file in addition can someone please explain what it does.

 

Im only using worldgenoverride.lua and it works fine, without second spoiler, but I dont have the last comma i

n the first spoiler

 

this is my worldgenoverride.lua

 

return {

override_enabled = true,

misc={

boons="default", --options are "never", "rare", "default", "often", "always"

branching="never", --options are "never", "least", "default", "most"

day="default", --options are "onlyday", "onlydusk", "onlynight", "default", "longday", "longdusk", "longnight"

frograin="rare", --options are "never", "rare", "default", "often", "always"

lightning="default", --options are "never", "rare", "default", "often", "always"

loop="default", --options are "never", "default", "always"

season="default", --options are "onlysummer", "onlywinter", "default", "longsummer", "longwinter", "longboth", "shortboth"

season_start="default", --options are "winter", "summer"

touchstone="default", --options are "never", "rare", "default", "often", "always"

weather="default", --options are "never", "rare", "default", "often", "always"

world_size="huge", --options are "default", "medium", "large", "huge"

wildfires="default" --options are "never", "rare", "default", "often", "always"

},

monsters={ --options are "never", "rare", "default", "often", "always"

bearger="default",

chess="default",

deciduousmonster="default",

deerclops="default",

dragonfly="default",

goosemoose="default",

hounds="default",

houndmound="default",

krampus="default",

liefs="never",

lureplants="rare",

merm="default",

spiders="default",

tentacles="default",

walrus="default",

},

animals={ --options are "never", "rare", "default", "often", "always"

alternatehunt="rare",

angrybees="default",

beefalo="often",

beefaloheat="default",

bees="default",

birds="default",

butterfly="often",

buzzard="default",

catcoon="default",

frogs="default",

hunt="often",

lightninggoat="default",

moles="default",

penguins="default",

perd="often",

pigs="default",

rabbits="often",

mandrake="default",

tallbirds="default"

},

resources={ --options are "never", "rare", "default", "often", "always"

flint="often",

flowers="often",

grass="often",

marshbush="often",

meteorshowers="default",

meteorspawner="default",

reeds="default",

rock="default",

rock_ice="default",

rocks="default",

sapling="default",

trees="default",

tumbleweed="default"

},

unprepared={ --options are "never", "rare", "default", "often", "always"

berrybush="often",

cactus="often",

carrot="often",

mushroom="often"

}

}

Share this post


Link to post
Share on other sites
Shequan    6

Thanks Screamer. I created the .lua with copy/paste from this thread in my DoNotStarveTogether folder (alongside my settings.ini, modoverride.lua, and server_token.txt files) on my rented Citadel Server, but the world setting changes are not being picked up when I create a new world. Can you confirm this is the correct file location?

 

 

Im only using worldgenoverride.lua and it works fine, without second spoiler, but I dont have the last comma i

n the first spoiler

 

this is my worldgenoverride.lua

 

return {
override_enabled = true,
misc={
boons="default", --options are "never", "rare", "default", "often", "always"
branching="never", --options are "never", "least", "default", "most"
day="default", --options are "onlyday", "onlydusk", "onlynight", "default", "longday", "longdusk", "longnight"
frograin="rare", --options are "never", "rare", "default", "often", "always"
lightning="default", --options are "never", "rare", "default", "often", "always"
loop="default", --options are "never", "default", "always"
season="default", --options are "onlysummer", "onlywinter", "default", "longsummer", "longwinter", "longboth", "shortboth"
season_start="default", --options are "winter", "summer"
touchstone="default", --options are "never", "rare", "default", "often", "always"
weather="default", --options are "never", "rare", "default", "often", "always"
world_size="huge", --options are "default", "medium", "large", "huge"
wildfires="default" --options are "never", "rare", "default", "often", "always"
},
monsters={ --options are "never", "rare", "default", "often", "always"
bearger="default",
chess="default",
deciduousmonster="default",
deerclops="default",
dragonfly="default",
goosemoose="default",
hounds="default",
houndmound="default",
krampus="default",
liefs="never",
lureplants="rare",
merm="default",
spiders="default",
tentacles="default",
walrus="default",
},
animals={ --options are "never", "rare", "default", "often", "always"
alternatehunt="rare",
angrybees="default",
beefalo="often",
beefaloheat="default",
bees="default",
birds="default",
butterfly="often",
buzzard="default",
catcoon="default",
frogs="default",
hunt="often",
lightninggoat="default",
moles="default",
penguins="default",
perd="often",
pigs="default",
rabbits="often",
mandrake="default",
tallbirds="default"
},
resources={ --options are "never", "rare", "default", "often", "always"
flint="often",
flowers="often",
grass="often",
marshbush="often",
meteorshowers="default",
meteorspawner="default",
reeds="default",
rock="default",
rock_ice="default",
rocks="default",
sapling="default",
trees="default",
tumbleweed="default"
},
unprepared={ --options are "never", "rare", "default", "often", "always"
berrybush="often",
cactus="often",
carrot="often",
mushroom="often"
}

}

 

Share this post


Link to post
Share on other sites
Screamer21    8

Thanks Screamer. I created the .lua with copy/paste from this thread in my DoNotStarveTogether folder (alongside my settings.ini, modoverride.lua, and server_token.txt files) on my rented Citadel Server, but the world setting changes are not being picked up when I create a new world. Can you confirm this is the correct file location?

 

Did You type "worldgenoverride.lua" ?Im playing my server and client from the same machine, and running it trough steam with custom folder and it works really fine, sorry but i dont know how it works in rented servers, but yes you need to have it on the same floder that setting.ini

Share this post


Link to post
Share on other sites
Ipsquiggle    5,120

I clarified the instructions in the top post a little, does that make more sense to everyone?

@Tovath If you put in an empty override does it still error?

return {} 

Share this post


Link to post
Share on other sites
Tovath    4

I forgot to post I fixed the issue, initially the service I was using didn't have a "worldgenoverride.lua" in their folder, and I had to change the encoding of the file that I created, then redo the space formatting in notepad++ and copy and paste it that way.

 

Once I did that it worked flawlessly.

Edited by Tovath

Share this post


Link to post
Share on other sites
ale2582    2

hello I apologize for the English, but the text is translated with google.Ho posted the question in the wrong section then I realized this tread, so I ask here. Use dedicated server, and edit the file \ worldgenoverride.lua to customize the world. I realize that there are several problems.
For instance, adding more tallbird, they are placed everywhere and not in their biome. I would like to enter more in their biome not everywhere
Also missing some parts of the map, including the forest with trees owned.
How do you solve? thanks

Share this post


Link to post
Share on other sites
Ipsquiggle    5,120

For instance, adding more tallbird, they are placed everywhere and not in their biome. I would like to enter more in their biome not everywhere

This is just how the game works. If you try "edit world" when you start a server from the main game, it will also place things outside of their biomes on the "more" and "lots" settings.

Also missing some parts of the map, including the forest with trees owned.

How do you solve? thanks

I don't understand, sorry. Could you post a screenshot?

Share this post


Link to post
Share on other sites
ale2582    2

I apologize for being late, I had not seen the risposta.quello I mean is, it is the tree that evil does drop wood magico.ho tried to follow the guide but my limit with the English language prevents me from understanding the tutto.sarebbeYou can create a script where I create a world according to my taste? if so, it would be possible to have a file "ready" to be able to understand how to work on the setting to create it?

Share this post


Link to post
Share on other sites
maxiu    1

Hi,

I'm trying to generate a custom world on a dedicated server but keep failing to do so. I have worldgenoverride.lua file in my C:\Users\$username$\Documents\Klei\DoNotStarveTogether folder next to the settings.ini. The contents are copy-pasted directly from the first post (first quote) but they have no effect whatsoever on the world generated, moreover the log file doesn't even mention worldgenoverride.lua no errors or warnings, nothing. This has me very confused, is there something I'm missing?

Share this post


Link to post
Share on other sites
ToNiO55    298

Hi @maxiu,

 

can you watch if your log.txt load your worldgenoverride.lua?

 

On Windows:

/My Documents/Klei/DoNotStarveTogether/log.txt

On Linux:

 ~/.klei/DoNotStarveTogether/log.txt

On Mac OS X:

~/Documents/Klei/DoNotStarveTogether/log.txt

Share this post


Link to post
Share on other sites
maxiu    1

No as I said in my previous post the log doesn't even mention trying to do anything with the file.

Share this post


Link to post
Share on other sites
maxiu    1

Hi, I removed the save folder next to the settings.ini and wolrdgenoverride.lua, started the server and it worked like a charm. Shame it doesn't say anywhere this is necessary and I had to guess.

  • Like 1

Share this post


Link to post
Share on other sites
raclepoulpe    0

Hi !

Thanks for this great job.

When you wrote "Just run this from the game data/scripts folder", how do you do this ?

I paste the second spoiler code in a new file data/scripts/generateWorldGenOverride.lua, changed the mod of this file to 775 like the others, but which executable is able to launch this script ?

Thx.

Share this post


Link to post
Share on other sites

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