revienne Posted October 30, 2019 Share Posted October 30, 2019 (edited) how to create simple world without all?)) i want only one turf under me and void around even without water from RoT Edited October 30, 2019 by revienne Link to comment https://forums.kleientertainment.com/forums/topic/113164-void-worldgen/ Share on other sites More sharing options...
Serpens Posted October 30, 2019 Share Posted October 30, 2019 (edited) you can start with this code in modworldgenmain: AddLevelPreInitAny(function(level) level.tasks = {"your custom task that is very tiny"} level.numoptionaltasks = 0 -- empty everything else level.optionaltasks = {} level.set_pieces = {} level.required_setpieces = {} level.numrandom_set_pieces = 0 level.random_set_pieces = {} level.required_prefabs = {"spawnpoint_master"} -- your task has to include a spawnpoint_master. yes write it into your custom task code level.overrides.has_ocean = false -- this will remove the ocean level.overrides.world_size = "small" end) This will overwrite every level (the worldsetting presets) to use this worldgeneration. You still have to create your own task that you put into level.tasks. I dont know if it is really possible to make it only one tile big, I doubt so, but you can try to make it as small as possible. See scripts/map/tasks/forest.lua for examples how to create tasks. There you see that you most likely will also need a room... I dont have much knowledge how these work, and if we also need to add some room choices within the AddLevelPreInit above, no clue. But I would try to make a custom task, that has LOCKS.NONE and KEYS.NONE, no entrance_room and only a single room choice, which will be your custom room. See scripts\map\rooms\forest folder for examples on how to create rooms. I have no clue where you define the size of a room/task. So that is all I know, you have to find out the rest by yourself with studying game files and try/error Edited October 30, 2019 by Serpens Link to comment https://forums.kleientertainment.com/forums/topic/113164-void-worldgen/#findComment-1278751 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now