

This tool includes console commands to add new content to already explored areas (and more).
Always back up your world before making any changes!
Install on the admin client and on the server (modding guide).
upgrade and use tab to cycle through available options.start to execute and wait until tue operation completes.This mod also adds current coordinates (and zone index) to the minimaps which should help using the commands and setting up the config.
Note: The default base detection is very conservative. Single workbenches, campfires, etc. will exclude a significant area around them, unless configured otherwise.
By default, all admins can execute commands of this mod.
If you wish to restrict this, edit the config file and add Steam IDs to the root users setting (separated by ,). After that only those users can execute commands.
Most commands allow fine-tuning the affected area. Following parameters are available:
biomes=biome1,biome2,...: Only includes given biomes. If not given, all biomes are included. Available options are: "AshLands", "BlackForest", "DeepNorth", "Meadows", "Mistlands", "Mountain", "Ocean", "Plains" and "Swamp".chance=percentage: Makes a single operation to be applied randomly.count=min-max: Filters objects by their amount. Only applies to objects_count.distance=min-max: Short-hand for setting both distances.force: Disables player base detection (same as safeZones=0).level=min-max: Filters objects by their creature level. Only applies to objects_* commands.max=distance or maxDistance=distance: Maximum distance from the center. Meters for pos and adjacent zones for zone.min=distance or minDistance=distance: Minimum distance from the center. Meters for pos and adjacent zones for zone.noEdges: Only include zones that have included biomes in all of its corners. Without the flag, it's enough if just one of the corners is in the included biomes.pos=x,z: Position of the center. If not given, player's position is used. Default distance is all of the map.safeZones=distance: Set safe zone size of major structures (0 to disable). Default value 2 is defined in the config. List of major structures is also defined in the config.start: Automatically executes the command without having to use start. Can be permanently turned on from the config.zone=x,z: Position of the center zone. Can't be used with pos. Default distance is the single zone.Overview of available commands (remember that tab key can be used for autocomplete / cycle through options):
backup: Saves the game with a timestamped file name.biomes_count [precision] [...args]: Counts biomes by sampling points with a given precision (meters). Result is also printed to the player.log file.chests_reset [chest name] [looted] [...item_ids] [...args]: Rerolls contents of a given treasure chest (use tab key to cycle through available treasure chests). Chest name * rerolls all treasure chests. Empty (looted) chests are only rerolled with looted flag. Item ids can be used to detect and prevent rerolling chests which players are using to store items. chance determines how many of the chests are reseted.locations_add [id1,id2,...] [noclearing] [...args]: Adds locations to already explored areas. With noclearing, the location area is not cleared of existing objects. chance determines how many of the locations are added.locations_remove [id1,id2,...] [...args]: Removes locations and prevents new ones from appearing (until a command like genloc or locations_add is used). chance determines how many of the locations are removed.locations_reset [id1,id2,...] [...args]: Resets locations by removing them and then placing them at the same position. Dungeons which have a random rotation will also get a new layout. chance determines how many of the locations are reseted.objects_count [id1,id2,...] [...args]: Counts objects. If no ids given then counts all objects. All objects are listed with the flag all. Result is also printed to the player.log file. Wildcards are also supported.objects_list [id1,id2,...] [...args]: Lists objects showing their position and biome. Result is also printed to the player.log file.objects_remove [id1,id2,...] [...args]: Removes objects. Recommended to use count_objects to check that you don't remove too much.save_disable: Disables world saving. But still a good idea to make backups.save_enable: Enables world saving.start: Most commands don't execute instantly but instead print the zones being affected. This command can be then used to start executing.stop: Stops the current execution and clears any pending command.time_change [seconds]: Changes the world time and updates object timestamps.time_change_day [days]: Changes the world time and updates object timestamps.time_set [seconds]: Sets the world time and updates object timestamps.time_set_day [days]: Sets the world time and updates object timestamps.upgrade [operation] [...args]: Short-hand for using common operations (mainly to add new content).vegetation_add [id1,id2,...] [...args]: Adds vegetation to generated areas. If ids are not given, adds every vegetation. chance directly scales the min and max amounts (bigger values work too).vegetation_reset [id1,id2,...] [...args]: Removes and adds vegetation to generated areas. If ids are not given, resets every vegetation. chance determines how many of the vegetation are removed and directly scales the min and max amounts.verbose: Toggles the verbose mode which prints more information when enabled. Can also be toggled from the config.world_reset [...args]: Resets locations and zones.zones_generate [...args]: Pre-generates areas without having to visit them.zones_reset [...args]: Destroys areas making them ungenerated. These areas will be generated when visited. Can be also used to reduce save file size. chance determines how many of the zones are reseted.zones_restore [...args]: Adds missing zone control objects (responsible for random spawns).Examples:
biomes_count 100 min=5000 pos=0,0: Counts only biomes after 5000 meters from the world center by checking the biom every 100 meters.chests_reset TreasureChest_mountains Amber Coins AmberPearl Ruby Obsidian ArrowFrost OnionSeeds: Rerolls mountain treasure chests which only have naturally occurring items.chests_reset * looted min=1500 pos=0,0: Resets all chests which are 1500 meters away from the world center.locations_remove Meteorite: Removes all flametal ores.locations_reset SunkenCrypt4,Crypt2,Crypt3,Crypt4,MountainCave02,TrollCave02: To regenerate dungeons. Some entraces will randomly rotate which will also randomize the dungeon layout.objects_count Spawner_\*: Counts all creature spawnpoints.objects_count \*\_wall\*\_: Counts all walls structures.objects_list VikingShip,Karve,Raft: Lists coordinates of all ships.objects_remove FirTree chance=33: Removes 33% of Fir Trees.objects_remove StatueCorgi: Removes all corgi statues.objects_remove Spawner_\* max=200: Removes all creature spawnpoints within 200 meters.upgrade mountain_caves: Places mountain caves to already explored areas.upgrade tarpits: Places tar pits to already explored areas.upgrade onions: Rerolls already generated and unlooted mountain chests.upgrade mistlands: Fully regenerates mistlands biomes.vegetation_reset biome=Meadows force: Resets all vegetation in Meadows, including areas with player baseszones_generate: To generate the entire world (takes hours) and then use objects_count command to check how many of each object exists.zones_generate: To generate the entire world (takes hours) and then use objects_remove for modifications.zones_reset biomes=mistlands: Destroying a biome.zones_reset min=5000 pos=0,0: Destroying areas after 5000 meters from the world center.zones_reset zone=3,-3 safeZones=0: Destroy a single zone at indices 3,-3 to fix any local issues.The config can be found in the <GameDirectory>\BepInEx\config\upgrade_world.cfg folder after the first start up.
Filtering options in the config:
Other settings are:
Examples:
Portals in the loaded area won't be automatically disconnected but relogging fixes that.
The map returns the exact biome information. This is slightly different than what the minimap shows as it will show the average biome.
This can result in objects near biome edges showing "wrong" biome because the generation code uses the average biome.
Following data values are updated if their value is not 0:
Affected data values can be configured but recommended to keep them as it is.
v1.19
world_radius to support bigger worlds from Expand World mod.locations_* commands (when no ids are given).world_reset to reset both locations and zones.chests_reset command to work with modded chests.locations_remove.v1.18
locations_* commands not working.v1.17
upgrade command not working.v1.16
objects_count command output.level to the objects_* commands to filter by creature level.count to the objects_count command to filter by object count.all parameter from the objects_count command as obsolete.locations_remove not using filters for unplaced locations.v1.15
zones_restore to add missing zone control objects.locations_add possibly removing the zone control object (which handles random spawns).v1.14
chance parameter to most commands.vegetation_add and vegetation_reset to work with all vegetation when ids are not given.backup command to work with the new save system (always saves to the local folder).v1.13
Thanks for Azumatt for the icon!