codengine-SOTFEdit icon

SOTFEdit

An open-source savegame editor for Sons of The Forest

Last updated a week ago
Total downloads 5785
Total rating 4 
Categories Tools Misc Mods
Dependency string codengine-SOTFEdit-0.11.1
Dependants 0 other mods depend on this mod

This mod requires the following mods to function

codengine-SOTFEdit_Companion-1.0.0 icon
codengine-SOTFEdit_Companion

Companion plugin for SOTFEdit, allows instant teleportation via SOTFEdit or ingame menu and creation of custom POIs for SOTFEdit

Preferred version: 1.0.0

README

SOTFEdit - Sons of The Forest Savegame Editor

Screenshot

Build GitHub release (latest by date) GitHub all releases GitHub

A savegame editor for "Sons of The Forest".

Discord

Disclaimer

This project is in no way or form associated with the developers of the game. It is just a non-commercial fan project, nothing more, nothing less.

Features

  • Edit Player Stats (Strength, MaxHealth, CurrentHealth, Fullness etc.)
  • Move Player to Virginia & Kelvin
  • Edit Game Setup (Game Mode, Spawn Rate, Survival Damage etc.)
  • Edit Inventory (Add/Remove items, change quantities)
  • Edit Armor Data (Add Armor Pieces, change durability)
  • Edit Weather Data (Weather, Seasons...)
  • Edit Game State Data (Playtime, Doors open/closed, Bunkers opened/closed)
  • Edit Storage Data (Unlimited Logs, sticks etc.)
  • Edit Influences of Players towards Kelvin and Virginia
  • Edit NPCs
  • Edit Structures / Blueprints
  • Theme Support
  • Ignite and refuel all fires as well as lowering their fuel drain rate
  • Reset Structural Damage
  • Teleport to and clone World Objects like Glider and Knight V
  • Reset consumed items
  • Modify Virginias equipped items
  • Change Virginias and Kelvins outfits
  • Spawn an army of Virginias and Kelvins
  • Several experiments
  • Revive Virginia & Kelvin
  • Set stats for Virginia & Kelvin
  • Move Kelvin & Virginia to Player or each other
  • Regrow Trees selectively (All, Removed, Half-Chopped, Stumps)
  • Reset containers, crates and pickups in caves and open world
  • Backup changed files automatically
  • ... more features are planned

Download

Requirements

Usage

  • Start the application using SOTFEdit.exe
  • Click on "File" -> "Open Savegame"
  • Select your savegame
  • Edit
  • Save with "File" -> "Save"

Inventory

  • In order to add or remove items, click on the add or remove buttons
  • You can use the other buttons to modify the current count in a convenient way
  • Items that are (currently) not available for the inventory are hidden, but can easily be enabled in data.json
  • When Legs and Arms are added they will default to their cooked variants. The same applies to already existing Arms/Legs when you just increase the count

Storage

  • Only items that are supported by the storages are available. Solar Panels for example can not be stored there
  • The editor will obey the maximum number of items per slot

Armor

Armor protects you from most hazards. However you are still going to drown and die from fall damage.

NPCs

The game groups some enemies into "families". Most likely they won't attack each other and raid the player.

One word about modifying NPCs: Some enemies are in caves/bunkers and have a different GraphMask. When this option is selected (Only in the same area as this actor) only enemies in the same "phase" are edited.

So, if you just want to remove babies in caves, select this option. If you remove all of them, just deselect it.

Spawners: I haven't fully investigated how the game works with those spawners. When you delete them the game will re-create them on the next game save. So this would be one way to increase the number of enemies.

Structures

This tool lets you "almost" finish blueprints, set them to "unfinished" or remove them. Why "almost"? Because it is too complex to convert blueprints to final buildings. So this tool will change the blueprints to require one last item until a blueprint is finished.

The cool thing about this is that you can use it in order to have an easy source for logs for example. Just set some shelters, change them to "almost finished", take them down and all logs will drop to the ground.

Another cool thing is that you can use it to build stuff in caves or bunkers. The process is the same: Just set the blueprints, mark them as "almost finished", take them down and use the resources to build new stuff.

If you want to build larger structures like shelters in a cave or bunker, you have to place a small blueprint first ( like a chair), then change its type and save.

Map

The map combines static information about points-of-interest with dynamic information that are read directly from the savegame. Some positions are missing but they may be added in the future.

Features

  • Show/hide information about 3D Printers, Actors/NPCs, Ammunition, Bunkers, Camps, Cannibal Villages, Caves, Crates, Doors, Helicopters, Generic Information, Items, Lakes, Laptops, Player, Structures, Supplies and Villages
  • Teleport the Player and Followers to Actors/NPCs, the player, Zip Lines, Structures, Caves, Bunkers, Helicopters
  • Remove Zip Lines from the map
  • Spawn Actors/NPCs at target areas

Options

You can enable or disable icons using the "Options" button in the top left corner.

Some important notes regarding the filters:

  • "Show only uncollected items" will show/hide uncollected items including bunkers and caves where they can be found
  • Area - Mainly affects Actors or, in general terms, positions where we have the exact coordinates
  • Requirements - Show/Hide caves, bunkers and items which are accessible/inaccessible

Teleportation

You can only teleport to locations where we have the exact coordinates either from the savegame itself or attached to the POI.

Kelvin and Virginia do not appear underground, so teleportation for them is disabled if the target location is underground.

By default an offset is added to the target location. This is done so that you do not spawn inside an enemy which would catapult you into the sky and most likely kill you. You can adjust the target location using those numbers. X and Z represent the longitute/latitude and Y represents the height.

Spawning

Most enemies can be spawned at all areas. Virginia and Kelvin can only be spawned at the Surface. Please note that if you spawn too many it may have a severe impact on your performance or even crash your game.

Moreover, the game will not spawn all enemies at the same time. If you spawn 200 enemies the game will create ~25 enemies and when they are killed, after some time, the next ~25 enemies will spawn.

Weather

There is one very important thing. If you only change the season, it will be reverted immediately when the game progresses. To fix that, you also have to adjust the played time at "Game State". It is calculated based on the length of the season. Here is an example:

  • Starting Season: Spring
  • Season Length: Long
  • Played Time: 31 Days

The in-game season will be winter, because:

  • Day 0-9 = Spring
  • Day 10-19 = Summer
  • Day 20-29 = Autumn
  • Day 30-39 = Winter

So if you want to change the weather to Summer, you need to adjust the playtime days to something between 10 and 19.

Here is a list of number of days per season per season length setting:

  • Short: ???
  • Default (non-custom games): 5 days
  • Long: 10 days
  • Realistic: 90 days

Reviving

If you want to revive either or both followers, there are some things to consider:

  • If the body is completely missing, the follower will spawn at the players location
  • Make sure to be outside of buildings, else you might glitch into the building sometimes
  • The followers will be at maximum stats and should be friendly towards players
  • They will have the items that you have selected before spawning
  • Virginia is shy as a lamb when she was revived. I haven't tested it thoroughly but to me it appears that you have to regain her trust, like in the beginning of a session. I'm still trying to figure out which setting determines her trust.

Spawning

This feature is quite experimental and allows the duplication of Kelvin and Virginia. It turns out that the game can not spawn, for some reason, more than 5 Virginias. If the value is higher, they would spawn somewhere unreachable.

Kelvin was tested successfully with 20, so this is also the maximum now.

If you want to exceed this maximum, you would have to save, fire up the tool, spawn and load the game again.

Be careful: This feature will most likely kill your performance and may corrupt your savegame.
Make sure to enable backups!  

Troubleshooting

One of the items in inventory is listed as "Unknown"?

  • Please report the ItemId so that I can add it to the list of known items

My game does not work anymore?

  • If you have selected to create backups before saving, you can just delete the old files and restore the files that are suffixed with ".bak*".

I get errors and the application does strange things

I can not change "IsRobbyDead" or "IsVirginiaDead"

  • In order to revive both there is a special button at "Followers" that does the job

Contributing

Feel free to report any unknown items or any feature requests. PRs are also welcome.

Final Words

Big thanks to Gronkh for your many years of "Influenz". Especially without your "The Forest" streams I would have never known anything about that game.

Credits

  • Translations and Corrections
    • Polski: Mortennif
    • German: Hinterix
  • Supporters and Testers: Mortennif, M2THE49, feydrautha01

Attributions

Icons used for items are property of Endnight Games.

POIs and screenshots originate from https://github.com/lmachens/sons-of-the-forest-map who really did a great job to collect all data.

Icons

CHANGELOG

Changelog

v0.11.1

Due to a change in the data model for log, stick, bone and stone holders, older savegames might be incompatible. Please save the game first using the current game version before you use this version of the editor.

Features

  • Added new items: Stone Fireplace Blueprint, Stone (the bigger ones used for constructions)
  • Added support for Hard Survival mode (you can switch around freely if you wish)
  • Added support for changes to the Advanced Log Sled
  • Added Button for storages to apply the current item setup to all storages of the same type

Improvements

  • Renamed "Log Sled" to "Advanced Log Sled"
  • Change data model of log, stick, bone and stone holders to a simplified one

Fixes

  • Fix issue if a game setting bool value is null

v0.11.0

The biggest change by far in this release is the integration directly into the game and displaying the position of the player, Kelvin and Virginia and in Multiplayer-Games - the position of the other players.

Moreover, this also allows the teleportation to any point where we have exact coordinates (x,y,z) ingame without having to leave the game.

All you need is a plugin. You can find the instructions at "Companion -> Setup".

Features

Companion (only works while connected)

  • Added integration with a game mod that allows player, follower and multiplayer live tracking on the map
  • Added live teleportation for the player, Kelvin and Virginia without having to leave the game to any point with exact coordinates (x,y,z)
  • Added Custom POIs with Screenshots that you can create and sync to SOTFEdit via an ingame menu
  • If the connection to the companion is established, there will be a "plug" icon at the titlebar of the map

Map

  • Updated map with new ponds and lakes
  • Added a darker version of the regular map, with more details
  • The selection of POI types will now be saved and restored when you close and reopen the map
  • Added option to follow the player while connected to the Companion (-> titlebar of the map)
  • Added option to keep the map at the foreground so that it can be used like an overlay (-> titlebar of the map)
  • Added Slider at the bottom to control the zoom level

Other

  • Added new option at "Game Setup" which controls if the game pauses while in the inventory
  • Ziplines can now be extended indefinitely and at any distance by clicking one anchor point and then "Add new from here"

Bugfixes

  • Fixed critical bug where ziplines were accidentally removed from the map if structures were modified
  • Complete rewrite of the "Game Setup" tab, which should now work reliably
    • One major change is that if you switch the Game Mode, the "invalid" settings are removed. So, "Custom" to " Peaceful" will also disable enemy spawning for example.
  • Rewrote Zipline Management so that it now works reliably
  • Fixed the tool to "Lit Fires" so that fires will now really burn
  • Fixed teleportation to positions on the raft

Improvements

  • Changed and added new icons to menu items
  • To identify the rotation of the players and followers while connected, the icons now include a small arrow
  • Removed "Hard Survival" and "Creative" Mode for now as it has not been implemented yet
  • The map can now be opened independently of the main window, saving and editing is disabled though while the map is open
  • The map will now zoom and scroll faster
  • The map is not maximized by default anymore
    • If you notice a decrease in performance in games while the map is open, just shrink and maximize the map
  • Removed some buttons from the top left of the map to have less distraction and more room

v0.10.4

Features

  • Update 05 support
  • Updated Cooking Pot (it can be stored on shelves)
  • Added Space Suit
  • Added new outfits for Kelvin and Virginia
  • Added POIs and Screenshots for the new Cooking Pots and Space Suit
  • Added support for Log Sleds and Basic Log Sleds at Structure and Storage Tab

v0.10.3

Bugfixes

  • Fixed player area detection

v0.10.2

Features

  • Added a couple hundred new teleport locations
  • Added hundreds new/fixed item locations
  • Added over one hundred new screenshots
  • All POIs are now assigned to the correct area
  • Added human-readable Actor States (e.g. Sleeping, Hiding in Bushes, Despawned etc.)
  • Added a new splash screen while loading and about window (hope you like it :))
  • Added full-text search on the map

Improvements

  • Lakes will now only show the most important ones
  • Images are now bundled, which should help with performance especially on slower hard drives
  • Assigned correct items for some documents/papers

Bugfixes

  • Fix teleportation at a couple of places
  • Replaced icons for a few weapons on the map with better visible ones

v0.10.1

Bugfixes

  • Fix issue with default actor item

v0.10.0

Features

  • Brand new interactive map
  • Spawn enemies/actors using the map
  • Display zip lines
  • Teleport the player/followers to caves, bunkers, enemies, zip lines
  • Show information about the most important POIs
  • Filter items and bunkers if you have the required items to access or if you have already collected everything

Improvements

  • Some areas have had their performance improved

v0.9.5

Features

  • Added editing of already finished structures (unfinish, almost finish, remove)
  • Regrow trees now as a percent selector, which lets you decide how many trees you want to regrow

Improvements

  • Items in storages should now keep their modules and attachments
  • Added grouping and scroll bars to structure list
  • Added count of stumps/gone/half-chopped to "Regrow Trees" tool

Fixes

  • Fixed error when items with special modules/attachments were stored at storages

v0.9.4

Features

  • Added some more items and icons
  • Ability to modify items of Kelvin (right now Tarp only)

Improvements

  • Player and follower page now have scrollbars on smaller window sizes
  • Player armor ordering is now done properly. There are no more gaps

Fixes

  • Fixed issue that dried/cooked meat, fish etc. was not selectable at inventory and storage tab

v0.9.3

Features

  • Update 04 improvements
  • Added support for cooked/spoiled/dried arms and legs in inventory and storages
    • At inventory, it will add cooked arms/legs by default. Detailed editing may be added in the future
  • Added new action camera
  • Added support for savegame naming
  • Added icons for almost all items

Improvements

  • Influences can now be added on demand if missing
  • All sliders for all influence stats are now always visible, independent if present in the savegame or not
  • Teleporting Player, Followers and NPCs will now consider the area mask
    • Previously, teleporting to locations below or back to the surface was not successful
    • "Move to Player" will now be disabled if the player is not at the surface
  • Unassigned Items at Inventory Page will now only contain items that can be added to the inventory
  • Optimize resource bundling

Fixes

  • Fixed stats resetting if the player did not have a value currently set for a given stat
  • Fixed editing of player stats
  • Fixed editing of rest buff (maximum value here is 1, else the game will overwrite this)

v0.9.2

Features

  • Added multilingual support and translations for german

Fixes

  • Some minor fixes and improvements

v0.9.1

Features

  • Added feature to change a blueprint's type, which allows the convertion of any blueprint to any other inside bunkers and caves

v0.9.0

Features

  • Added a brand new NPC page
  • Added a brand new structures page, which allows you to finish/remove blueprints and as a side effect also lets you build inside bunkers and caves!
  • Added sliders for Fullness, Hydration and Rest Buffs
  • Added ability to change themes
  • Improved backup system. You can now create zip files as backups, which is the default, and have more flexibility in configuring them
  • Added buttons to fill bars for followers
  • Added tool to reset consumed items
  • Added tool to ignite and refuel all fires as well as lowering their fuel drain rate
  • Added tool to reset structural damages
  • Added tool to teleport to and clone world objects like Glider and Knight V
  • Added a red pin to Coordinates which opens a zoomable map and displays their location
  • Added a red pin to Storages which opens a zoomable map and displays their location
  • Add in-app viewer for Readme and Changelog
  • Display changelog if new version is available
  • Added hotkeys to save (CTRL+S) and reload (F5) savegames
  • Added Escape as hotkey to close most windows
  • Added CTRL+Q as hotkey to close the application
  • Added menu option to select the last opened savegame

Improvements

  • Filtering in the inventory panel now happens with a delay, which improves responsiveness
  • Replaced normal message boxes with dialogs that are displayed within the application
  • Improve loading performance
  • Action Buttons on inventory page are now left-aligned
  • All modifications (including reviving) are now only saved when you actually save, which removes the need to reload on things like reviving!
  • Added button on savegame selection to select the default directory
  • Improve responsiveness of some tabs which are resource-intense

Fixes

  • Wall Storages now only show 4 slots (although internally it has 5)
  • Storage manager will now keep the state of fish and meat (cooked meat will stay cooked, dried fish will stay dried)
  • Fixed a bug with player clothing for default outfit

v0.8.5

Fixes

  • Reverted removal of follower stats. It appears that it depends on your game which stats are set
  • Fix reviving of Kelvin and Virginia which is broken since Update 03
  • Teleporting should not launch the player into the air anymore

v0.8.4

Fixes

  • Removed follower stats that were removed in Patch 03
  • Removed sliders from influences that were removed in Patch 03
  • Fix saving of follower stats and influences

v0.8.3

Fixes

  • Fixed a couple of cases where the +/- button did not work properly

v0.8.2

New Features

  • Added support for armor rack
  • Added items that were added in patch 3: light bulb, solar panel, night vision goggles
  • Added some missing items, like small rocks, some documents and blueprints

Fixes

  • Fixed issue when loading savegames saved with Patch 3

v0.8.1

Fixes

  • fixed duplicate items in unassigned window on inventory page after reload

v0.8.0

New Features

  • add Outfit selector on Player page
  • armor: add buttons to remove / set to default durability / set to max durability
  • armor: add buttons to set all armor items to default/max durability
  • inventory: add button to add all items from a category (weapon, ammo etc.)
  • inventory: add button to remove/set item count to max (for all and single)
  • inventory: add max count for items
  • storage: add button to fill all storages
  • storage: add max count for items

Improvements

  • inventory: instead of double click, items are now added and removed from inventory using buttons
  • inventory: new items are now added with their max value by default
  • storage: in the upper "all slots" box, the first available item is now selected by default
  • storage: all items for mannequin and scarecrow are now hidden
  • teleporting will now add a small offset on the Y-Axis to prevent glitching into the ground
  • Some performance improvements

Fixes

  • Golden Armor is now an outfit, removed from Armor Box
  • Remove Creepy Skin from Armor selector
  • Items that can not be stored in inventory/shelves are now disabled

v0.7.1

Improvements

  • bug reports now contain the application version (window + clipboard)
  • you can now load savegames from any location

Fixes

  • fix follower equipment editing
  • savegame selector was not working properly
  • removed "creepy skin" from the armor page

v0.7.0

New Features

  • added settings for enemy spawn
  • added setting for consumable effects damage options
  • added setting for survival damage option
  • added setting for weather change frequency
  • added setting to modify the crash location
  • added settings for various World Object States, e.g. if Bunker Doors are open, events have happened etc.

Improvements

  • merge game setup, game state and weather into one page
  • A window is now displayed on exceptions, giving you an opportunity to easily report the issue

Fixes

  • fixed saving of game settings and game setup
  • Minimum Sentiment Value changed from 0 to -100

v0.6.0

New Features

  • added tools to spawn an army of Kelvins and Virginias (at "Followers")
  • improvements for reviving (e.g. they will now get the items and outfits that you have selected)
  • added feature in menu to restore from oldest/newest backup

Improvements

  • check for update will now notify only once until the next version is released
  • improved loading performance
  • some code beautification, cleanups and refactorings

Fixes

  • fixed deletion of backups

v0.5.2

  • reviving a follower should now also work when the body is completely gone
  • small improvements to followers inventory editing

v0.5.1

  • added tool at "Game State" to reset containers, crates and pickups in caves and open world

v0.5.0

  • add storage editing (unlimited logs, sticks etc.)
  • add selection of Kelvin's and Virginia's outfit
  • add editing of Virginias equipped items
  • add editing of influences that the player / enemies have to your followers (e.g.: "Player" brings "Fear" to her if the value is high)
  • add experiment to reset kill statistics
  • add experiment to reset number of cut trees
  • add experiment so that enemies fear the player (hopefully...)
  • add experiment so that enemies have no fear and are very angry (hopefully...)
  • add experiment to remove all actors and spawn points except for Kelvin and Virginia
  • some cosmetical improvements
  • add menu bar
  • add option to open the currently selected savegame dir in Explorer
  • the window title now changes dynamically after loading
  • backup can now be toggled in menu
  • add option to delete all .bak files in savegame dir
  • add links to all sites where the editor is hosted
  • add update check (checks automatically, can be turned off)
  • move savegame selection to its own window, freeing space
  • in the new savegame selection, the current directory is more prominent
  • Savegames are now grouped by SinglePlayer, Multiplayer or MP_Client
  • A lot of background improvements
  • Removed locks for now, as everything does not need to be synchronized right now
  • Downgrade MVVM Toolkit to 8.0.0 due to compilation issues

v0.4.0

  • add player tab, allowing editing of player stats as well as positioning
  • move armor tab to player tab
  • improve performance of savegame loading, also reducing memory consumption

v0.3.1

  • fix logging of exceptions during savegame loading
  • fix non-uniqueness of savegame parent directories

v0.3.0

  • replace displaying of save-time instead of last-write-time, resolves #2
  • the currently selected savegame now stays selected after saving
  • add follower tab
    • allows changing Kelvin and Virginias stats
    • allows moving Kelvin and Virginia to the player or each other

v0.2.1

  • add detailed options to regrow trees instead of reviving all, resolves

v0.2.0

  • misc fixes
  • add markers for non-inventory items
  • better rendering for numeric columns
  • add weather data page
  • add game state data page

Available versions

Please note that the install buttons only work if you have compatible client software installed, such as the Thunderstore Mod Manager. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2023-5-28 0.11.1 50 Version 0.11.1 Install
2023-5-24 0.11.0 27 Version 0.11.0 Install
2023-5-12 0.10.4 83 Version 0.10.4 Install
2023-5-8 0.10.3 25 Version 0.10.3 Install
2023-5-8 0.10.2 24 Version 0.10.2 Install
2023-5-3 0.10.1 39 Version 0.10.1 Install
2023-5-3 0.10.0 16 Version 0.10.0 Install
2023-4-24 0.9.5 74 Version 0.9.5 Install
2023-4-22 0.9.4 36 Version 0.9.4 Install
2023-4-21 0.9.3 39 Version 0.9.3 Install
2023-4-15 0.9.1 59 Version 0.9.1 Install
2023-4-14 0.9.0 23 Version 0.9.0 Install
2023-4-8 0.8.5 90 Version 0.8.5 Install
2023-4-7 0.8.4 39 Version 0.8.4 Install
2023-4-7 0.8.3 36 Version 0.8.3 Install
2023-4-7 0.8.2 21 Version 0.8.2 Install
2023-4-2 0.8.1 62 Version 0.8.1 Install
2023-3-31 0.8.0 77 Version 0.8.0 Install
2023-3-28 0.7.1 69 Version 0.7.1 Install
2023-3-27 0.7.0 45 Version 0.7.0 Install
2023-3-25 0.6.0 572 Version 0.6.0 Install
2023-3-24 0.5.2 816 Version 0.5.2 Install
2023-3-24 0.5.1 139 Version 0.5.1 Install
2023-3-22 0.5.0 614 Version 0.5.0 Install
2023-3-17 0.4.0 1698 Version 0.4.0 Install
2023-3-16 0.3.1 140 Version 0.3.1 Install
2023-3-16 0.3.0 464 Version 0.3.0 Install
2023-3-15 0.2.1 408 Version 0.2.1 Install