Skip to content

Commit

Permalink
much more updated
Browse files Browse the repository at this point in the history
... still lot's to go. This should do a fair bit though!!
  • Loading branch information
monkeyman192 committed Aug 14, 2017
1 parent eb3e516 commit 30e8139
Show file tree
Hide file tree
Showing 103 changed files with 1,437 additions and 638 deletions.
13 changes: 5 additions & 8 deletions MBINCompiler/Models/Structs/GcAISpaceshipComponentData.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
namespace MBINCompiler.Models.Structs
{
public class GcAISpaceshipComponentData : NMSTemplate
public class GcAISpaceshipComponentData : NMSTemplate // size: 0x94;
{
/* 0x00 */ public GcAISpaceshipTypes Type;
/* 0x04 */ public GcSpaceshipClasses Class;
/* 0x08 */ public GcPrimaryAxis Axis;
[NMS(Size = 0x10)]
/* 0x10 */ public string Weapon;
[NMS(Size = 0x80)]
/* 0x20 */ public string Hangar;

//[NMS(Size = 4, Ignore = true)] this was in the wrong place, and dunno if it is needed now??
//public byte[] Padding1C;
/* 0x0C */ public TkTextureResource Hangar;
/* 0x90 */ public bool IsSpaceAnomaly;
[NMS(Size = 0x3, Ignore = true)]
/* 0x91 */ public byte[] EndPadding;
}
}
6 changes: 3 additions & 3 deletions MBINCompiler/Models/Structs/GcAISpaceshipManagerData.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
namespace MBINCompiler.Models.Structs
{
public class GcAISpaceshipManagerData : NMSTemplate
public class GcAISpaceshipManagerData : NMSTemplate // size: 0x50
{
[NMS(Size = 6)]
public GcAISpaceshipMappingData[] FactionMapping;
[NMS(Size = 5)]
public GcAISpaceshipModelDataArray[] FactionMapping;
}
}
7 changes: 4 additions & 3 deletions MBINCompiler/Models/Structs/GcAISpaceshipMappingData.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
namespace MBINCompiler.Models.Structs
using System.Collections.Generic;

namespace MBINCompiler.Models.Structs
{
public class GcAISpaceshipMappingData : NMSTemplate
{
[NMS(Size = 3)]
public GcAISpaceshipInstanceData[] ClassMap;
public List<GcAISpaceshipInstanceData> ClassMap;
}
}
10 changes: 10 additions & 0 deletions MBINCompiler/Models/Structs/GcAISpaceshipModelData.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
namespace MBINCompiler.Models.Structs
{
public class GcAISpaceshipModelData : NMSTemplate
{
[NMS(Size = 0x80)]
public string File;
public GcSpaceshipClasses Class;
public GcAISpaceshipRoles AIRole;
}
}
9 changes: 9 additions & 0 deletions MBINCompiler/Models/Structs/GcAISpaceshipModelDataArray.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System.Collections.Generic;

namespace MBINCompiler.Models.Structs
{
public class GcAISpaceshipModelDataArray : NMSTemplate
{
public List<GcAISpaceshipModelData> Spaceships;
}
}
8 changes: 4 additions & 4 deletions MBINCompiler/Models/Structs/GcAISpaceshipPreloadCacheData.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
namespace MBINCompiler.Models.Structs
{
public class GcAISpaceshipPreloadCacheData : NMSTemplate
public class GcAISpaceshipPreloadCacheData : NMSTemplate // size: 0x20
{
public GcAISpaceshipRoles ShipRole;
/* 0x00 */ public GcRealityCommonFactions Faction;
/* 0x04 */ public GcAISpaceshipRoles ShipRole;
/* 0x08 */ public GcSpaceshipClasses ShipClass;
[NMS(Size = 4, Ignore = true)]
public byte[] Padding4;

public GcSeed Seed;
[NMS(Size = 0x100)]
public string AltId;
}
}
20 changes: 20 additions & 0 deletions MBINCompiler/Models/Structs/GcBountySpawnInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
namespace MBINCompiler.Models.Structs
{
public class GcBountySpawnInfo : NMSTemplate // size: 0x188
{
[NMS(Size = 0x10)]
/* 0x000 */ public string Id;
/* 0x010 */ public GcAIShipSpawnData Data;
[NMS(Size = 0x10)]
/* 0x0B8 */ public string AttackData;
/* 0x0C8 */ public TkTextureResource Icon;
[NMS(Size = 0x4, Ignore = true)]
/* 0x14C */ public byte[] Padding14C;
[NMS(Size = 0x20)]
/* 0x150 */ public string Label;
/* 0x170 */ public int Health;
/* 0x174 */ public int LaserDamage;
[NMS(Size = 0x10)]
/* 0x178 */ public string Gun;
}
}
9 changes: 9 additions & 0 deletions MBINCompiler/Models/Structs/GcDebugOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ public string[] RealityModeValues()

[NMS(Size = 0x80)]
/* 0x498 */ public string RealityPresetFile; // 0x80
[NMS(Size = 0x20)]
public string NMSLocale; // for temperature choice?
[NMS(Size = 0x20)]
public string NMSUpdateVersion;
/* 0x49A */ public short RealityGenerationIteration;

[NMS(Size = 0x80)]
Expand Down Expand Up @@ -201,12 +205,16 @@ public string[] ServerEnvValues()
[NMS(Size = 0x20)]
/* 0x869 */ public string OverrideUsernameForDev; // 0x20
/* 0x88C */ public int DiscoveryAutoSyncIntervalSeconds;
[NMS(Size = 0x20)]
public string DummyString;
public int DummyInt;
/* 0x888 */ //public int DiscoveryTrimLimitOverride; // Looks like both these
/* 0x88C */ //public int DiscoveryTrimTriggerOverride; // lines have been removed in exe
/* 0x890 */ public bool EnableSynergy;
[NMS(Size = 0x20)]
/* 0x891 */ public string SynergyServer; // 0x20
/* 0x8B4 */ public int SynergyPort;
public int Something;
/* 0x8B8 */ public int MaxNumDebugMessages;
/* 0x8BC */ public bool PreloadToolbox;
/* 0x8C0 */ public int DebugTextureSize;
Expand Down Expand Up @@ -244,6 +252,7 @@ public string[] ServerEnvValues()
/* 0xC73?*/ public int ForceStarTypeTo; // unused? added
/* 0xC78 */ public bool ForceBiome;
/* 0xC7C?*/ public int ForceBiomeTo; // unused?
public int BadValue;
/* 0xC80 */ public bool ForceBuildingRace;
/* 0xC81?*/ public int ForceBuildingRaceTo; // unused?
/* 0xC88 */ public bool ForceLifeLevel;
Expand Down
4 changes: 2 additions & 2 deletions MBINCompiler/Models/Structs/GcDefaultMissionItemsTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ public class GcDefaultMissionItemsTable : NMSTemplate // size: 0x40
{
public List<GcDefaultMissionSubstance> PrimarySubstances;
public List<GcDefaultMissionSubstance> SecondarySubstances;
public List<GcDefaulMissionProduct> PrimaryProducts;
public List<GcDefaulMissionProduct> SecondaryProducts;
public List<GcDefaultMissionProduct> PrimaryProducts;
public List<GcDefaultMissionProduct> SecondaryProducts;
}
}
7 changes: 7 additions & 0 deletions MBINCompiler/Models/Structs/GcDefaultMissionProduct.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace MBINCompiler.Models.Structs
{
public class GcDefaultMissionProduct : NMSTemplate
{
public gcproducttableEnum Product;
}
}
2 changes: 1 addition & 1 deletion MBINCompiler/Models/Structs/GcExperienceSpawnTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ public class GcExperienceSpawnTable : NMSTemplate // size: 0xD0
public List<GcAIShipSpawnData> SpaceFlybySpawns;
public List<GcAIShipSpawnData> PirateSpawns;
public List<GcAIShipSpawnData> PirateBattleSpawns;
public List<GcAIShipSpawnData> PirateBountySpawns;
public List<GcAIShipSpawnData> PoliceSpawns;
public List<GcAIShipSpawnData> TraderSpawns;
public List<GcAIShipSpawnData> AmbientSpawns;
public List<GcAIShipSpawnData> BattleSpawns;
public List<GcAIShipSpawnData> BattleInitialStandardSpawns;
public List<GcAIShipSpawnData> BattleInitialPirateSpawns;
public List<GcAIShipSpawnData> BattleSecondaryPirateSpawns;
public List<GcBountySpawnInfo> PirateBountySpawns;
}
}
12 changes: 12 additions & 0 deletions MBINCompiler/Models/Structs/GcFactionSelectOptions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
namespace MBINCompiler.Models.Structs
{
public class GcFactionSelectOptions : NMSTemplate
{
public int FactionOption;
public string[] FactionOptionValues()
{
return new[] { "DataDefined", "CurrentMission", "CurrentSystem" };
}
public GcMissionFaction Faction;
}
}
13 changes: 13 additions & 0 deletions MBINCompiler/Models/Structs/GcGalaxySolarSystemOrbitParams.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
namespace MBINCompiler.Models.Structs
{
public class GcGalaxySolarSystemOrbitParams : NMSTemplate // size: 0x1C // used in global?
{
/* 0x00 */ public float FirstOrbitRadiusMin; // 42480000h
/* 0x00 */ public float FirstOrbitRadiusMax; // 42480000h
/* 0x38 */ public float OrbitRadiusOffsetMin; // 42480000h
/* 0x48 */ public float OrbitRadiusOffsetMax; // 42480000h
/* 0x4C */ public float OrbitRotationSpeedMin; // 40A00000h
/* 0x50 */ public float OrbitRotationSpeedMax; // 42480000h
/* 0x54 */ public float OrbitLineWidth; // 3F800000h
}
}
14 changes: 14 additions & 0 deletions MBINCompiler/Models/Structs/GcGalaxySolarSystemParams.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace MBINCompiler.Models.Structs
{
public class GcGalaxySolarSystemParams : NMSTemplate // size: 0x58 // used in global? cf. 0000000140258EAA in 1.30 exe
{
/* 0x00 */ public GcGalaxySolarSystemOrbitParams PlanetParameters;
/* 0x1C */ public GcGalaxySolarSystemOrbitParams MoonParameters;
[NMS(Size = 0x4, EnumValue = new[] { "Large", "Medium", "Small", "Moon" })]
/* 0x38 */ public float[] PlanetRadii;
/* 0x48 */ public float SystemTilt; // 41700000h
/* 0x4C */ public float DefaultDistance; // 41200000h
/* 0x50 */ public float VisitedPlanetAlpha; // 3F800000h
/* 0x54 */ public float NonVisitedPlanetAlpha; // 3ECCCCCDh
}
}
2 changes: 1 addition & 1 deletion MBINCompiler/Models/Structs/GcGalaxyStarAnomaly.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public class GcGalaxyStarAnomaly : NMSTemplate
public int GalaxyStarAnomaly;
public string[] GalaxyStarAnomalyValues()
{
return new[] { "None", "AtlasStation", "BlackHole", "MiniStation" };
return new[] { "None", "AtlasStation", "AtlasStationFinal", "BlackHole", "MiniStation" };
}
}
}
2 changes: 1 addition & 1 deletion MBINCompiler/Models/Structs/GcGenericMissionSequence.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public string[] AutoStartValues()
[NMS(Size = 0x2, Ignore = true)]
/* 0x376 */ public byte[] Padding376;

/* 0x378 */ public List<NMSString0x10> Dialog; // as a dummy, list of something..elements seems to be 0xA40 long??
/* 0x378 */ public List<GcAlienPuzzleEntry> Dialog;
/* 0x388 */ public List<GcScanEventData> ScanEvents;
/* 0x398 */ public List<GcGenericRewardTableEntry> Rewards;
/* 0x3A8 */ public List<GcCostTableEntry> Costs;
Expand Down
12 changes: 5 additions & 7 deletions MBINCompiler/Models/Structs/GcMissionBoardOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,11 @@ namespace MBINCompiler.Models.Structs
{
public class GcMissionBoardOptions : NMSTemplate // size: 0x20
{
public GcMissionType Type;
public GcMissionDifficulty Difficulty;
public int MinRank;
/* 0x00 */ public GcMissionType Type;
/* 0x04 */ public GcMissionDifficulty Difficulty;
/* 0x08 */ public int MinRank;
[NMS(Size = 0x4, Ignore = true)]
public byte[] PaddingC;
public GcMissionFaction Faction; // maybe?
[NMS(Size = 0xC, Ignore = true)]
public byte[] EndPadding; // I think something is a bit wrong... will need to compare with hex
/* 0x0C */ public byte[] PaddingC;
/* 0x10 */ public List<GcMissionFaction> Faction;
}
}
11 changes: 11 additions & 0 deletions MBINCompiler/Models/Structs/GcMissionGalacticPoint.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
namespace MBINCompiler.Models.Structs
{
public class GcMissionGalacticPoint : NMSTemplate // size: 0x4
{
public int GalacticPoint;
public string[] GalacticPointValues()
{
return new[] { "Atlas", "BlackHole" };
}
}
}
2 changes: 1 addition & 1 deletion MBINCompiler/Models/Structs/GcMissionSequenceAudioEvent.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace MBINCompiler.Models.Structs
{
public class GcMissionSequenceAudioEvent : NMSTemplate // size: 0x80
public class GcMissionSequenceAudioEvent : NMSTemplate // size: 0x84
{
public GcAudioWwiseEvents AudioEvent;
[NMS(Size = 0x80)]
Expand Down
13 changes: 7 additions & 6 deletions MBINCompiler/Models/Structs/GcMissionSequenceBuild.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
namespace MBINCompiler.Models.Structs
{
public class GcMissionSequenceBuild : NMSTemplate
public class GcMissionSequenceBuild : NMSTemplate // size: 0x118
{
[NMS(Size = 0x80)]
/* 0x000 */ public string Message;
[NMS(Size = 0x80)]
/* 0x080 */ public string DebugText;
[NMS(Size = 0x10)]
/* 0x100 */ public string Part;
/* 0x110 */ public bool BaseOnly;
/* 0x114 */ public GcPersistentBaseTypes Base;
/* 0x080 */ public string Part;
/* 0x090 */ public GcPersistentBaseTypes Base;
[NMS(Size = 0x80)]
/* 0x094 */ public string DebugText;
[NMS(Size = 0x4, Ignore = true)]
public byte[] EndPadding;
}
}
21 changes: 21 additions & 0 deletions MBINCompiler/Models/Structs/GcMissionSequenceCollectProduct.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
namespace MBINCompiler.Models.Structs
{
public class GcMissionSequenceCollectProduct : NMSTemplate // size: 0x138
{
[NMS(Size = 0x80)]
/* 0x000 */ public string Message;
/* 0x080 */ public GcDefaultMissionProductEnum Default;
/* 0x084 */ public gcproducttableEnum Product;
/* 0x088 */ public int AmountMin;
/* 0x08C */ public int AmountMax;
/* 0x090 */ public bool WaitForSelected;
[NMS(Size = 0x7, Ignore = true)]
/* 0x091 */ public byte[] Padding91;
[NMS(Size = 0x10)]
/* 0x098 */ public string ForBuild;
[NMS(Size = 0x10)]
/* 0x0A0 */ public string ForRepair;
[NMS(Size = 0x80)]
/* 0x0B0 */ public string DebugText;
}
}
21 changes: 21 additions & 0 deletions MBINCompiler/Models/Structs/GcMissionSequenceCollectSubstance.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
namespace MBINCompiler.Models.Structs
{
public class GcMissionSequenceCollectSubstance : NMSTemplate // size: 0x138
{
[NMS(Size = 0x80)]
/* 0x000 */ public string Message;
/* 0x080 */ public GcDefaultMissionSubstanceEnum Default;
/* 0x084 */ public gcsubstancetableEnum Product;
/* 0x088 */ public int AmountMin;
/* 0x08C */ public int AmountMax;
/* 0x090 */ public bool WaitForSelected;
[NMS(Size = 0x7, Ignore = true)]
/* 0x091 */ public byte[] Padding91;
[NMS(Size = 0x10)]
/* 0x098 */ public string ForBuild;
[NMS(Size = 0x10)]
/* 0x0A0 */ public string ForRepair;
[NMS(Size = 0x80)]
/* 0x0B0 */ public string DebugText;
}
}
16 changes: 16 additions & 0 deletions MBINCompiler/Models/Structs/GcMissionSequenceCommunicator.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
namespace MBINCompiler.Models.Structs
{
public class GcMissionSequenceCommunicator : NMSTemplate // size: 0x1B0
{
[NMS(Size = 0x80)]
/* 0x000 */ public string Message;
[NMS(Size = 0x80)]
/* 0x080 */ public string OSTMessage;
/* 0x100 */ public GcPlayerCommunicatorMessage Comms;
/* 0x128 */ public bool AutoOpen;
[NMS(Size = 0x80)]
/* 0x129 */ public string DebugText;
[NMS(Size = 0x7, Ignore = true)]
/* 0x1A9 */ public byte[] EndPadding;
}
}
18 changes: 18 additions & 0 deletions MBINCompiler/Models/Structs/GcMissionSequenceDiscover.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
namespace MBINCompiler.Models.Structs
{
public class GcMissionSequenceDiscover : NMSTemplate // size: 0x110
{
[NMS(Size = 0x80)]
/* 0x000 */ public string Message;
/* 0x080 */ public bool PerPlanet;
/* 0x084 */ public int DiscoverTarget;
public string[] DiscoverTargetValues()
{
return new[] { "Animal", "Vegetable", "Mineral"};
}
/* 0x088 */ public int AmountMin;
/* 0x08C */ public int AmountMax;
[NMS(Size = 0x80)]
/* 0x090 */ public string DebugText;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
namespace MBINCompiler.Models.Structs
{
public class GcMissionSequenceDoMissionsForFaction : NMSTemplate // size: 0x110
{
[NMS(Size = 0x80)]
/* 0x000 */ public string MessageGetToSpace;
/* 0x080 */ public GcFactionSelectOptions SelectFrom;

/* 0x088 */ public int AmountMine;
/* 0x08C */ public int AmountMax;
[NMS(Size = 0x80)]
/* 0x190 */ public string DebugText;
}
}
Loading

0 comments on commit 30e8139

Please sign in to comment.