Skip to content

Commit

Permalink
Fix GcSolarGenerationGlobals + recheck template against exe
Browse files Browse the repository at this point in the history
  • Loading branch information
emoose committed Sep 6, 2016
1 parent 64d1a23 commit fcf75de
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
5 changes: 3 additions & 2 deletions MBINCompiler/Models/NMSTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ public int GetDataSize()
var addt = new List<Tuple<long, object>>();
int addtIdx = 0;

PrintToDebug = !PrintToDebug;
var prevPTD = PrintToDebug;
PrintToDebug = false;
AppendToWriter(bw, ref addt, ref addtIdx, GetType());
PrintToDebug = !PrintToDebug;
PrintToDebug = prevPTD;

return ms.ToArray().Length;
}
Expand Down
19 changes: 10 additions & 9 deletions MBINCompiler/Models/Structs/Unfinished/GcSolarGenerationGlobals.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,21 @@
public class GcSolarGenerationGlobals : NMSTemplate
{
public bool Unknown0;
[NMS(Size = 0xF)]
public byte[] Unknown1;

[NMS(Size = 0xF, Ignore = true)]
public byte[] Padding1;

public float Unknown10;
public float Unknown14;
public float Unknown18; // unused?
public float Unknown1C; // unused?

public float minPlanetDistance;
public float maxPlanetDistance;
public float Unknown28; // unused? // changed bool to float
public int Unknown2c; // unused? non-float?
public float MinPlanetDistance;
public float MaxPlanetDistance;
public bool Unknown28; // unused?
public float Unknown2C; // unused?

public float Unknown30; // changed bool to float
public bool Unknown30;
public float Unknown34; // unused?
public float Unknown38; // unused?
public float Unknown3C; // qword?
Expand All @@ -37,7 +38,7 @@ public class GcSolarGenerationGlobals : NMSTemplate
public float Unknown6C;

public float Unknown70;
public uint Unknown74; // changed bool to uint
public bool Unknown74;
public float Unknown78;
public float Unknown7C;

Expand Down Expand Up @@ -96,7 +97,7 @@ public class GcSolarGenerationGlobals : NMSTemplate
public float Unknown130;

[NMS(Size = 0x6)]
public Vector3i Unknown134;
public Vector3i[] Unknown134;

public int Unknown17C;
}
Expand Down

0 comments on commit fcf75de

Please sign in to comment.