- Home-
- Fallout 4-
- Programs for Fallout 4-
- Savegame Script Editor - Console Version

Savegame Script Editor - Console Version
About This Mod
Fallout 4 uses the same scripting engine as Skyrim (Papyrus). Script data is written to your save in the same way.
This tool allows you to view script data inside a save, edit variable values, remove script instances from a save, end stuck threads, and more. This is the successor to my Skyrim tool.
This is a console application, meaning you will have to enter all commands in the cmd window (or you can use predefined batch files). In fact, the first console version was made two weeks after the game's release, and all the while I was trying to fix and polish the GUI wrapper, but I'm having a hard time and I don't know how soon it will be completed.
WARNING: the console version will NOT backup for you. That's your job.
Why do I need this?
- GECK is not out yet, but if you are going to create a script mode for FO4, you can already study how the existing game scripts are interrelated and plan your modification beforehand.
- You can see which scripts are running in the background (threads will be presented at the bottom of the output).
- You can gently interrupt a stuck script if it goes into an infinite loop [Make sure you understand the nature of the problem]. Rare case involving errors inside logic. There have been no real incidents so far.
- You can carefully change the specific script variable [Make sure you understand the nature of the problem].
Cases where you MUST NOT use this app:
- You do NOT want to use this tool as an attempt to "increase performance" or for any other abstract reason. Any editing of the save without knowledge of the nature of the problem will lead to a disastrous result.
- You DO NOT need it to "clean" FO4 saves in the traditional way, as (1) there are no script mods to delete yet, (2) I have never heard of any major problems associated with scripts in FO4.
There were a lot of reports that the game could not load the save (like "Broken saves, Fallout 4"), but make no mistake - these problems are NOT related to scripts (I personally checked). Just in case, I provided a "clean up" batch file. There are likely to be no orphans in your saves (if any, please provide a save sample for review).
In general, I hope that the tool will be useful to scripters and I do not think that it has any value for the general user.
How to use?
Copy the Fallout4 savegame (*.fos) file to the program folder.
Each edit operation WILL record changes to the savegame you provide. So make a backup copy of this save.
Open a command prompt (Program folder -> CTRL+ right click -> Open a command window here)
1) How to get the contents of the save:
PapyrusDataTransfer.exe -show Save.fos > ScriptRelatedContent.txt
2) How to change a script variable, Example:
PapyrusDataTransfer.exe -setvariable Save.fos 1 -filter "[and], ::MeleeEnabled_var ([variable_name]), ( FireFightStall_MasterScript ( [script_name] ), [and], 198a1a ( [ref_id] )"
After loading and saving the game, the value of this variable should be stored in all subsequent saves (until it is changed by the script itself or by any other script). You can verify the value of a variable by obtaining its contents using the show command.
Pointer variables must be associated with another script, they are also just integers, so they can be set in the same way (copy the ScriptID of the target instance).
3) How to remove script from save, example:
PapyrusDataTransfer.exe -remove Save.fos -filter "( FireFightStall_MasterScript ( [script_name] ), [and], 198a1a ( [ref_id] )".
After loading a new save, if the associated object (to which the script was linked) still exists in the world, the game must recreate the script with the default values (the same engine behavior as in Skyrim).
4) How to terminate threads (active running functions).
PapyrusDataTransfer.exe -terminate Save.fos -filter "Default2StateActivator ( [script_name] )"
If the function was started at the time of the save creation, its bytecode will be written to the save itself (as it was in Skyrim). The tool allows you to replace this bytecode with Nop (NoOperation) values, which allows you to unleash infinite loops or calls.
Save Game Structure
The structure of Fallout4 is different from Skyrim (several changes in the general structure, new tables in the Papyrus section, new object attributes, etc.). There are also new data types in the language itself. For example, you can now define your own structures and create them dynamically.
The tool is backwards compatible with Skyrim saves.
Huge thanks to AlexanderBlade for the link to the opcode for Fallout 4.
Similar Mods/Addons
Texture of pork with beans1Programs for Fallout 4Fallout 4
Heinz beans are now available in the wasteland.101
ULG - Ultra Low Graphics mod1Programs for Fallout 4Fallout 4
For the Java utility to work, the latest Java distribution must be installed. It allows...1201
trampling1Programs for Fallout 4Fallout 4
This change allows you to chew: - Radtarakan. - Crow rat...100
Sit down1Programs for Fallout 4Fallout 4
To get into the game better Don't eat breakfast standing up. Sit down. It is more ef...100
Automatron caravan fixes1Programs for Fallout 4Fallout 4
Fixed an issue that occurred before Automatron started when approaching the intersection where Jacks...100
Automatic savingallPrograms for Fallout 4Fallout 4
This mode allows you to set an automatic save timer at a given interval. You can currently set the f...000
HUD Plus Plus1Programs for Fallout 4Fallout 4
The mode adds several UI widgets to the HUD, displaying detailed information about items marked with...100
Fallout 4 String PatcherallPrograms for Fallout 4Fallout 4
Command Line Utility to Fix STRINGS Files600
Fixed a bug with legendary drops1Programs for Fallout 4Fallout 4
Fixed a bug where legendary enemies could not be created and the legendary loot could not fall....000
Additions for Diamond City1Programs for Fallout 4Fallout 4
Construction of new buildings and awnings on the empty grounds of Diamond City Stadium. High perform...000
Weightless junk and other items1Programs for Fallout 4Fallout 4
This mode reduces/reduces the weight of various elements and fully adjusts according to your choice...200
Fallout Performance MonitorallPrograms for Fallout 4Fallout 4
Fallout Performance Monitor is a utility for tracking the usage of Fallout 4 system resources, depen...000
Enabling disk cache1Programs for Fallout 4Fallout 4
The F4SE plugin for Fallout 4 uses the operating system's disk cache for I/O and reduces disk access...300
Complex suppliers1Programs for Fallout 4Fallout 4
As you know from Skyrim and other games, many merchants have limitations. They can't sell everything...000
Fallout 4 Recovery ToolallPrograms for Fallout 4Fallout 4
A simple GUI tool to create files that contain console commands that you can run from the console in...000
DLL loader (native mod)allPrograms for Fallout 4Fallout 4
This is the bootloader required for my DLL mods.InstallationExtract and place d3d11.dll in the game...100
Alternative launcher for Fallout 4allPrograms for Fallout 4Fallout 4
This launcher allows you to edit the default launcher values and currently some custom settings, it...300
MSM accelerator1Programs for Fallout 4Fallout 4
MCM makes boot time almost instantaneous. MCM reduces the menu load time from second...500
Craftable Power Armor Frame1Programs for Fallout 4Fallout 4
Allow the creation of heavy armor frames. - Remove the vanilla books of the heavy ar...300
Manager ENB FXAA SweetFXallPrograms for Fallout 4Fallout 4
This application can remove all known ENB, FXAA, ReShade, and SweetFX configuration files from your...000