Skip to content

Commit

Permalink
fix for batch file
Browse files Browse the repository at this point in the history
  • Loading branch information
insomnious committed Jul 9, 2024
1 parent 4047d8f commit c800fae
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 15 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Common Changelog](https://common-changelog.org/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 1.0.1 - 2024-07-09

- Fixed batch file for whitespace in folder paths

## 1.0.0 - 2024-07-09

- Initial release
4 changes: 2 additions & 2 deletions DecompressedSaveFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public struct Plugin
public string CreationId { get; set; }
[JsonIgnore] public ushort FlagsSize { get; set; }
[JsonIgnore] public byte[] Flags { get; set; }
[JsonIgnore] public byte AchievementCompatible { get; set; }
[JsonIgnore] public byte AchievementFriendly { get; set; }
}

[JsonSourceGenerationOptions(WriteIndented = true)]
Expand Down Expand Up @@ -215,7 +215,7 @@ private Plugin ReadPlugin(BinaryReader br)

plugin.FlagsSize = br.ReadUInt16();
plugin.Flags = br.ReadBytes(plugin.FlagsSize);
plugin.AchievementCompatible = br.ReadByte();
plugin.AchievementFriendly = br.ReadByte();

_logger.Info($"{plugin.PluginName} is a normal plugin ({plugin.CreationName}).");
return plugin;
Expand Down
2 changes: 1 addition & 1 deletion Launch.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
echo The full path of the file is: %1

REM Run the command line application with the file path as an argument
%~dp0StarfieldSaveTool.exe %1 --output-json-file --output-raw-file
"%~dp0StarfieldSaveTool.exe" %1 --output-json-file --output-raw-file

REM Pause the output to keep the command prompt open
pause
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Rest of file has not been worked out yet.
|--------------------|------------|-----------------------------------------------------------------------------------|
| version | `uint` | Engine version? This is `27`, Fallout 4 was `11`. |
| saveVersion | `byte` | Save file format version. Currently `122` |
| saveNumber | `uint` | Index of save ingame |
| saveNumber | `uint` | Incremented by 1 each time overwritten |
| playerNameSize | `ushort` | Size of player name string |
| playerName | `string` | Player Name |
| playerLevel | `uint` | Player Level |
Expand Down
17 changes: 17 additions & 0 deletions Research.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@


## Flags

Non-Creations

`80 A7 58 DD 91 01`
`A0 9C 9B 6A 95 02`

Creations

`38 B9 36 FC 52 02`
`68 AD 36 FC 52 02`
`A0 D1 69 03 0E 02`
`70 7F 03 29 92 01`
`20 1F 01 29 92 01`
`D0 B6 3D 74 95 02`
12 changes: 1 addition & 11 deletions SFS-decompressed.bt
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ typedef struct {
char creationId[creationIdSize];
ushort flagsSize;
byte flags[flagsSize];
byte achivementCompatible;
byte achivementFriendly;

Printf("%s is a plugin\n", pluginName);

Expand All @@ -107,16 +107,6 @@ typedef struct {

} PLUGIN;

typedef struct {
ushort pluginNameSize;
char pluginName[pluginNameSize];
ushort creationIdSize;
char creationId[creationIdSize];
byte unknown[9];
Printf("%s is creation\n", pluginName);

} CREATION;

typedef struct {
byte unknown0;
byte count0;
Expand Down
Binary file added assets/starfield save tool.psd
Binary file not shown.

0 comments on commit c800fae

Please sign in to comment.