Jump to content

Get rid of world-generated roads


Recommended Posts

invisible or do you want to change worldgeneration to generate no roads at all? I know how to change the worldgeneration:

put in modworldgenmain.lua of your mod this:

if GLOBAL.rawget(GLOBAL, "TheFrontEnd") and GLOBAL.rawget(GLOBAL, "IsInFrontEnd") and GLOBAL.IsInFrontEnd() then return end -- only load to generate the world

AddLevelPreInitAny(function(level)
    if level.overrides~=nil then
        level.overrides.roads = "never"
    end
end)

this will change it for all world presets and all worlds (forest/cave..).

If you are using the GEM API mod from Zarklord, you might need additional code so his mod does not change it back to default, see my Shard RPC thread with him or ask again if you are using his mod and it does not work with caves enabled.

Edited by Serpens
Link to comment
Share on other sites

On 2019-10-03 at 2:32 PM, Warbucks said:

I wish there was a world generation option to disable them :(

I actually accomplished this in Single Player DS. I can’t quite remember the name of the file I edited, but I’ll give you the name as well as instructions on how to disable roads when the parts for my new PC get here (My old 2011 iMac’s GPU died, so I’m building a new PC).

Link to comment
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
 Share

×
×
  • Create New...