Jump to content

How to replace mapseed


Recommended Posts

There a few ways to do this. Perhaps the easiest is as follows:

1. Use "print(TheWorld.meta.seed)" to find the seed of the world you want to use (yourseed).

2. In the worldgen_main.lua, add the line "SEED = yourseed".

3. To revert a random world, simply delete the added line.

@superfast this is my worlgen_main.lua looks like

 

--local BAD_CONNECT = 219000 -- 
--SEED = 1434760235-- Force roads test level 3
if SEED == nil then
    SEED = os.time()
end

math.randomseed(SEED)

 

it seems "SEED" is already defined. so what do i change or do i replace anyline with "SEED= myseed"?

 

3 hours ago, iamaPotato said:

--local BAD_CONNECT = 219000 -- 
--SEED = 1434760235-- Force roads test level 3
if SEED == nil then
    SEED = os.time()

SEED = 1434760235
end

math.randomseed(SEED)

 

You can add a line in bold like I've done above (assuming "1434760235" is the seed of the world you want). Then just restart the world.

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.

×
  • Create New...