Space Engineers

Space Engineers

143 ratings
ModAdjusterV2
4
2
2
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: Script
File Size
Posted
Updated
1.137 MB
Aug 9, 2023 @ 6:50pm
May 21 @ 1:26am
19 Change Notes ( view )

Subscribe to download
ModAdjusterV2

Description
Framework to allow editing of definitions from other mods (e.g. for balancing) without reuploading.

Check out this helpful guide by Stonelords:
https://steamcommunity.com/sharedfiles/filedetails/?id=3018217687

To use:
  • Create a folder in your mod's Data folder called ModAdjuster
  • Copy the .sbc files for all definitions you wish to modify into this folder
  • Change the file extensions for all these files from .sbc to .xml
  • Create a file in the same folder called ModAdjusterFiles.txt
  • Add the filename for each of your copied definition files to this text file, one per line

Now you can edit the definitions you copied over. Change the values for any fields you want to modify, and delete any fields you don't need to change. ModAdjuster will read these definitions and overwrite the original game definitions with your modified values. Simply set this mod as a dependency to have it automatically added to your world - load order doesn't matter.

Note that there are a few definitions/fields that can't be edited with this tool, see here:
https://github.com/Ash-LikeSnow/ModAdjusterV2/wiki/Inaccessible-Fields

if you are new to modding SE, check out this guide by Digi:
Quick Intro to Space Engineers Modding[github.com]

If you have any questions, requests, or bug reports, please head over to the # mod-adjuster channel in the SE Coresystems discord:
https://discord.gg/8CnW35KsFK



Big thank you to enenra for the thumbnail and usage guidelines, as well as for being a generally awesome person ❤
45 Comments
The_Swack May 20 @ 9:01pm 
@Valkria Freyja yes you can use Mod Adjuster modify Weaponcore weapons.
Mr_Mosey Apr 1 @ 9:19pm 
Does this work with other mod file types? I'm looking to make a few adjustments to the resource convoys in the Escape From Mars mod. The file containing the data for the convoys is a .cs file. Does ModAdjuster let me modify data in those types of files as well as .sbcs?
Valkyria Freyja Jan 31 @ 12:36am 
Can you not use mod adjuster to modify Weaponcore weapons?
martin.andreev92 Jan 13 @ 9:28am 
Also another quick question.

Error: Error during loading session:System.InvalidOperationException: Nullable object must have a value.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at ModAdjusterV2.Definitions.AmmoDefinition.AmmoBasicProperties.Load(MyAmmoDefinition def)
at ModAdjusterV2.Definitions.AmmoDefinition.Load(MyDefinitionBase definitionBase, String path)

when I try to change the ammo def. Tried even with the whole file without any changes and it did not work.
martin.andreev92 Jan 13 @ 9:13am 
Ok, i think I figured it out. The breaks the log inside the \Roaming\SpaceEngineers\Storage\3017795356.sbm_Adjuster. Maybe when my change throws an error, it does not release the lock on the file? As when I delete the logs manually it works.
martin.andreev92 Jan 13 @ 8:58am 
Getting the same error again :(
Error: Error during loading session:System.IO.FileNotFoundException: Unable to find the specified file.
at Sandbox.ModAPI.MyAPIUtilities.VRage.Game.ModAPI.IMyUtilities.ReadFileInLocalStorage(String file, Type callingType)
at ModAdjusterV2.Session.Logs.RenameFileInLocalStorage(String oldName, String newName, Type anyObjectInYourMod)
at ModAdjusterV2.Session.Logs.InitLogs()
at ModAdjusterV2.Session.ModAdjuster.LoadData()

Any idea, what i am doing wrong? if i get an error in my mod even 1 time, then everytime i try to use it I get this error. I saw its related to logs.
martin.andreev92 Jan 12 @ 5:41pm 
Ok, after Windows reboot it is working as expected, Strange.
martin.andreev92 Jan 12 @ 3:42pm 
Hi, I am getting a strange error, when I try to use it. Tried even inside an empty word with only the mod adjuster and i am getting.

2024-01-13 01:38:43.282 - Thread: 1 -> Error: Error during loading session:System.IO.FileNotFoundException: Unable to find the specified file.
at Sandbox.ModAPI.MyAPIUtilities.VRage.Game.ModAPI.IMyUtilities.ReadFileInLocalStorage(String file, Type callingType)
at ModAdjusterV2.Session.Logs.RenameFileInLocalStorage(String oldName, String newName, Type anyObjectInYourMod)
at ModAdjusterV2.Session.Logs.InitLogs()
at ModAdjusterV2.Session.ModAdjuster.LoadData()
at Sandbox.Game.World.MySession.LoadComponent(MySessionComponentBase component)
at Sandbox.Game.World.MySession.LoadDataComponents()
at Sandbox.Game.World.MySession.PrepareBaseSession(MyObjectBuilder_Checkpoint checkpoint, MyObjectBuilder_Sector sector)
Sardaukai Dec 25, 2023 @ 8:41am 
That's normal,
you have to add the vanilla components in addition
Sometimes it replaces the whole parent, sometimes one one entry.
I also have to test a lot
Shinku_Shi Dec 17, 2023 @ 11:42am 
Thank you! figured out, my files were not converting from .sbc to .xml! so it loads everything now! though now i've run into an issue, were it only shows the modded components in the assembler tab and none of the vanilla :/