Skip to content

Commit 591ad87

Browse files
authored
Merge pull request #18 from theFisher86/master
Pathfinder update
2 parents 1a6c980 + 44b251c commit 591ad87

File tree

108 files changed

+2415
-1119
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+2415
-1119
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,5 +255,3 @@ paket-files/
255255
# CodeRush
256256
.cr/
257257
/MBINCompilerTests/app.config
258-
output.txt
259-
MBINCompiler/Properties/app.manifest

MBIN.txt

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
GCDEBUGOPTIONS.GLOBAL.MBIN
2+
GCGAMEPLAYGLOBALS.GLOBAL.MBIN
3+
GCSKYGLOBALS.GLOBALS.MBIN
4+
GCUIGLOBALS.GLOBAL.MBIN
5+
6+
LANGUAGE:
7+
NMS_DIAGLOG.MBIN
8+
9+
METADATA->ENGINESETTINGS:
10+
TKGRAPHICSSETTINGS.MBIN
11+
TKGRAPHICSSETTINGSPS4.MBIN
12+
13+
METADATA->GAMESTATE:
14+
DEFAULTSAVEDATA.MBIN https://i.gyazo.com/8593f4a73143200932c487903afea5c7.png
15+
DEFAULTSAVEDDATACREATIVE.MBIN https://i.gyazo.com/10c8d0fd93ab9b0005c65fb789731310.png
16+
17+
METADATA->PROJECTILES:
18+
PROJECTILETABLE.MBIN https://i.gyazo.com/1bb2eb47310d9e3ab0a205d241d604f9.png
19+
20+
METADATA->REALITY->TABLES:
21+
BASEBUILDINGTABLE.MBIN (NO ERROR, NOTHING HAPPENS WHEN DRAGGED ONTO MBIN)
22+
COSTTABLE.MBIN https://i.gyazo.com/e446b7aaaeffd931259fb1ad65c8ff53.png
23+
NMS_DIALOG_GCALIENPUZZLETABLE.MBIN https://i.gyazo.com/c355fcc18d334e1eb65897d8f5b8be52.png
24+
NMS_REALITY_GCTECHNOLOGYTABLE.MBIN https://i.gyazo.com/d8062a97c3c8e1e83c084b7b51125a7f.png
25+
REWARDTABLE.MBIN https://i.gyazo.com/390ee605726856d7cd6f5c2a4c0688e4.png
26+
27+
METADATA->REALITY:
28+
DEFAULTREALITY.MBIN https://i.gyazo.com/7fadb0a62bdaedcdac2903b364fe76f6.png
29+
30+
METADATA->SIMULATION->ENVIRONMENT:
31+
SELECTABLEOBJECTTABLE.MBIN https://i.gyazo.com/d416a28771411a94254a2501acf2d1d8.png
32+
33+
METADATA->SIMULATION->SCANNING:
34+
SCANEVENTTABLEMISSIONS.MBIN https://i.gyazo.com/a1fdd8a3cc1d332e0582c35e9151bcf3.png
35+
SCANEVENTTABLEPLANET.MBIN https://i.gyazo.com/118ccbda3029e37a44a44c10eb11b93d.png
36+
SCANEVENTTABLETUTORIAL https://i.gyazo.com/107d1b99e0d4dc9e709e405745a12317.png
37+
38+
METADATA->SIMULATION->SCENE:
39+
EXPERIENCESPAWNTABLE.MBIN https://i.gyazo.com/d3aa7767b51e96894ccb11b0dff8d409.png
40+
41+
METADATA->SIMULATION->SOLARSYSTEM->BIOMES->BARREN:
42+
BARRENBIOME.MBIN https://i.gyazo.com/3bafc3f02e6a7561f868ba45cadc07f7.png
43+
BARRENOBJECTSDEAD.MBIN https://i.gyazo.com/e1f8d4b8fb1b208d015381eb1403b8c2.png
44+
BARRENOBJECTSFULL.MBIN
45+
BARRENOBJECTSLOW.MBIN
46+
BARRENOBJECTSMID.MBIN
47+
48+
METADATA->SIMULATION->SOLARSYSTEM->BIOMES->CAVE:
49+
CAVESBIOMEDEAD.MBIN
50+
CAVEBIOMEFULL.MBIN
51+
CAVEBIOMEMID.MBIN
52+
53+
METADATA->SIMULATION->SOLARSYSTEM->BIOMES->DEAD:
54+
DEADBIOME.MBIN
55+
DEADOBJECTSDEAD.MBIN
56+
57+
METADATA->SIMULATION->SOLARSYSTEM->BIOMES->FROZEN:
58+
FROZENBIOME.MBIN
59+
FROZENOBJECTSDEAD.MBIN
60+
FROZENOBJECTSFULL.MBIN
61+
FROZENOBJECTSSLOW.MBIN
62+
FULLOBJECTSMID.MBIN
63+
64+
METADATA->SIMULATION->SOLARSYSTEM->BIOMES->LUSH:
65+
(ALL OF THE FILES ARE BROKEN EXCEPT FOR LUCHCOLOURPALLETES.MBIN)
66+
67+
METADATA->SIMULATION->SOLARSYSTEM->BIOMES->OBJECTS->BEACH:
68+
FULL.MBIN
69+
70+
METADATA->SIMULATION->SOLARSYSTEM->BIOMES->OBJECTS->CRYSTALS:
71+
(ALL OF THEM)
72+
73+
METADATA->SIMULATION->SOLARSYSTEM->BIOMES->OBJECTS->LEVELONEOBJECTS:
74+
FULL.MBIN
75+
FULLSAFE.MBIN
76+
77+
METADATA->SIMULATION->SOLARSYSTEM->BIOMES->OBJECTS->MOUNTAIN:
78+
FULL.MBIN
79+
80+
METADATA->SIMULATION->SOLARSYSTEM->BIOMES->OBJECTS->PLANT:
81+
(ALL OF THEM)
82+
83+
METADATA->SIMULATION->SOLARSYSTEM->BIOMES->OBJECTS->RARE:
84+
(ALL OF THEM)
85+
86+
METADATA->SIMULATION->SOLARSYSTEM->BIOMES->OBJECTS->ROCK:
87+
(ALL OF THEM)
88+
89+
METADATA->SIMULATION->SOLARSYSTEM->BIOMES->PLACEMENTVALUES:
90+
SPAWNDENSITYLIST.MBIN
91+
92+
METADATA->SIMULATION->SOLARSYSTEM->BIOMES->RADIOACTIVE:
93+
(ALL OF THEM EXCEPT RADIOCOLOURPALETTE.MBIN)
94+
95+
METADATA->SIMULATION->SOLARSYSTEM->BIOMES->SCORCHED:
96+
(ALL OF THEM EXCEPT SCORCHEDCOLOURPALETTE.MBIN)
97+
98+
METADATA->SIMULATION->SOLARSYSTEM->BIOMES->TOXIC:
99+
(ALL OF THEM EXCEPT TOXICCOLOURPALETTE.MBIN)
100+
101+
METADATA->SIMULATION->SOLARSYSTEM->BIOMES->UNDERWATER:
102+
(ALL OF THEM)
103+
104+
METADATA->SIMULATION->SOLARSYSTEM->BIOMES:
105+
BIOMEFILENAMES.MBIN
106+
107+
METADATA->SIMULATION->SOLARSYSTEM:
108+
VOXELGENERATORSETTINGS.MBIN
109+

MBINCompiler/EXmlFile.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static string WriteTemplate(NMSTemplate template)
8282
using (var xmlTextWriter = XmlWriter.Create(stringWriter, xmlSettings))
8383
{
8484
string ver = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
85-
xmlTextWriter.WriteComment(String.Format("File created using MBINCompiler version ({0})", ver.Substring(0, ver.Length - 2)));
85+
//xmlTextWriter.WriteComment(String.Format("File created using MBINCompiler version ({0})", ver.Substring(0, ver.Length - 2)));
8686
var data = template.SerializeEXml(false);
8787
Serializer.Serialize(xmlTextWriter, data, Namespaces);
8888
xmlTextWriter.Flush();

MBINCompiler/MBINCompiler.csproj

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,33 @@
5252
<Compile Include="Models\EXmlBase.cs" />
5353
<Compile Include="Models\EXmlData.cs" />
5454
<Compile Include="Models\EXmlProperty.cs" />
55+
<Compile Include="Models\Structs\GcBlockListPersistence.cs" />
56+
<Compile Include="Models\Structs\GcBlockedMessage.cs" />
57+
<Compile Include="Models\Structs\GcNGuiActionData.cs" />
58+
<Compile Include="Models\Structs\GcDeprecatedAssetsTable.cs" />
59+
<Compile Include="Models\Structs\GcCloudProperties.cs" />
60+
<Compile Include="Models\Structs\TkNGuiRectanglePulseEffect.cs" />
61+
<Compile Include="Models\Structs\GcPhotoModeSettings.cs" />
62+
<Compile Include="Models\Structs\GcPhotoModeAdjustData.cs" />
5563
<Compile Include="Models\Structs\GcAtlasDiscoveryMetadata.cs" />
5664
<Compile Include="Models\Structs\GcAtlasDiscoveryData.cs" />
5765
<Compile Include="Models\Structs\GcAtlasRecvVoxel.cs" />
5866
<Compile Include="Models\Structs\GcAtmosphereList.cs" />
5967
<Compile Include="Models\Structs\GcAudioWwiseRTPCs.cs" />
68+
<Compile Include="Models\Structs\GcAmbientModeCameras.cs" />
69+
<Compile Include="Models\Structs\GcTracerData.cs" />
70+
<Compile Include="Models\Structs\GcBlockedUser.cs" />
71+
<Compile Include="Models\Structs\GcVehicleCheckpointComponentData.cs" />
72+
<Compile Include="Models\Structs\GcVehicleGarageComponentData.cs" />
73+
<Compile Include="Models\Structs\GcTechnologyAttachmentComponentData.cs" />
74+
<Compile Include="Models\Structs\GcVehicleType.cs" />
75+
<Compile Include="Models\Structs\GcCameraAmbientSpecialData.cs" />
76+
<Compile Include="Models\Structs\GcCameraAmbientSpaceData.cs" />
77+
<Compile Include="Models\Structs\GcCameraAmbientBuildingData.cs" />
78+
<Compile Include="Models\Structs\GcVehicleComponentData.cs" />
79+
<Compile Include="Models\Structs\GcVehicleScanTableEntry.cs" />
80+
<Compile Include="Models\Structs\GcVehicleScanTable.cs" />
81+
<Compile Include="Models\Structs\GcVehicleData.cs" />
6082
<Compile Include="Models\Structs\GcGalaxyAudioSetupData.cs" />
6183
<Compile Include="Models\Structs\GcCreatureLegIKComponentData.cs" />
6284
<Compile Include="Models\Structs\GcGalaxyRenderAnostreakData.cs" />
@@ -65,12 +87,21 @@
6587
<Compile Include="Models\Structs\GcGalaxyCameraData.cs" />
6688
<Compile Include="Models\Structs\GcGalaxyWaypointTypes.cs" />
6789
<Compile Include="Models\Structs\GcInteractionBufferType.cs" />
90+
<Compile Include="Models\Structs\GcInventoryClass.cs" />
91+
<Compile Include="Models\Structs\GcInventoryBaseStatEntry.cs" />
92+
<Compile Include="Models\Structs\GcInventorySpecialSlot.cs" />
93+
<Compile Include="Models\Structs\GcMissionConditionMissionCompleted.cs" />
94+
<Compile Include="Models\Structs\GcInventorySpecialSlotType.cs" />
95+
<Compile Include="Models\Structs\GcDiscoveryOwner.cs" />
6896
<Compile Include="Models\Structs\GcPlayerComponentData.cs" />
97+
<Compile Include="Models\Structs\GcPurchaseableBuildingBlueprints.cs" />
98+
<Compile Include="Models\Structs\GcPlayerOwnershipData.cs" />
6999
<Compile Include="Models\Structs\GcFoliageComponentData.cs" />
70100
<Compile Include="Models\Structs\GcMessageCrime.cs" />
71101
<Compile Include="Models\Structs\GcAtlasMessage.cs" />
72102
<Compile Include="Models\Structs\GcCreatureGroups.cs" />
73103
<Compile Include="Models\Structs\GcMiningComponentData.cs" />
104+
<Compile Include="Models\Structs\GcRewardSpecificProductRecipeFromList.cs" />
74105
<Compile Include="Models\Structs\GcRobotLaserData.cs" />
75106
<Compile Include="Models\Structs\GcNPCWorkerData.cs" />
76107
<Compile Include="Models\Structs\GcPersistentBase.cs" />
@@ -81,6 +112,7 @@
81112
<Compile Include="Models\Structs\GcSolarSystemEventWarpOut.cs" />
82113
<Compile Include="Models\Structs\GcSolarSystemEventWarpIn.cs" />
83114
<Compile Include="Models\Structs\GcSpaceshipGlobals.cs" />
115+
<Compile Include="Models\Structs\GcInventoryBaseStatBonus.cs" />
84116
<Compile Include="Models\Structs\GcTeleportEndpoint.cs" />
85117
<Compile Include="Models\Structs\GcBuildingDistribution.cs" />
86118
<Compile Include="Models\Structs\GcGameMode.cs" />
@@ -123,6 +155,7 @@
123155
<Compile Include="Models\Structs\TkInstanceWindComponentData.cs" />
124156
<Compile Include="Models\Structs\GcGalaxyVoxelAttributesData.cs" />
125157
<Compile Include="Models\Structs\TkListedPaletteTexture.cs" />
158+
<Compile Include="Models\Structs\TkNoiseSuperPrimitiveData.cs" />
126159
<Compile Include="Models\Structs\TkProceduralModelList.cs" />
127160
<Compile Include="Models\Structs\TkRandomComponentData.cs" />
128161
<Compile Include="Models\Structs\TkVolumeTriggerType.cs" />
@@ -646,6 +679,7 @@
646679
<Compile Include="Models\Structs\TkVoxelGeneratorRegionData.cs" />
647680
<Compile Include="Models\Structs\TkVoxelGeneratorSettingsArray.cs" />
648681
<Compile Include="Models\Structs\TkVoxelGeneratorSettingsElement.cs" />
682+
<Compile Include="Models\Structs\GcVehicleGlobals.cs" />
649683
<Compile Include="Models\Structs\Unfinished\GcAISpaceshipGlobals.cs" />
650684
<Compile Include="Models\Structs\Unfinished\GcCameraGlobals.cs" />
651685
<Compile Include="Models\Structs\Unfinished\GcGalaxyGlobals_old.cs" />
@@ -676,13 +710,19 @@
676710
<Compile Include="Models\Structs\GcFlyingSnakeData.cs" />
677711
<Compile Include="Models\Structs\GcGalaxyStarAnomaly.cs" />
678712
<Compile Include="Models\Structs\GcCameraAerialViewData.cs" />
679-
<Compile Include="Models\Structs\Unused\GcCameraSpawnSetupData.cs" />
680-
<Compile Include="Models\Structs\Unused\GcPlayerSpaceshipAim.cs" />
713+
<Compile Include="Models\Structs\GcCameraSpawnSetupData.cs" />
714+
<Compile Include="Models\Structs\GcExperienceTimers.cs" />
715+
<Compile Include="Models\Structs\GcPlayerSpaceshipAim.cs" />
681716
<Compile Include="Models\Structs\GcPlayerSpaceshipWarpData.cs" />
682-
<Compile Include="Models\Structs\Unused\GcPlayerStickData.cs" />
683-
<Compile Include="Models\Structs\Unused\GcResourceCollectEffect.cs" />
684-
<Compile Include="Models\Structs\Unused\GcSpaceshipTravelData.cs" />
685-
<Compile Include="Models\Structs\Unused\GcTerrainOverlyColours.cs" />
717+
<Compile Include="Models\Structs\GcPlayerStickData.cs" />
718+
<Compile Include="Models\Structs\GcResourceCollectEffect.cs" />
719+
<Compile Include="Models\Structs\GcSkyProperties.cs" />
720+
<Compile Include="Models\Structs\GcSpaceshipTravelData.cs" />
721+
<Compile Include="Models\Structs\GcTerrainOverlyColours.cs" />
722+
<Compile Include="Models\Structs\GcAudio3PointDopplerData.cs" />
723+
<Compile Include="Models\Structs\GcAudioNPCDoppler.cs" />
724+
<Compile Include="Models\Structs\Unused\GcBoidData.cs" />
725+
<Compile Include="Models\Structs\GcGeneratedShipCounts.cs" />
686726
<Compile Include="Models\Structs\VariableSizeString.cs" />
687727
<Compile Include="Models\Structs\Vector2f.cs" />
688728
<Compile Include="Models\Structs\Vector3i.cs" />

MBINCompiler/Models/MBINHeader.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,13 @@ public void SetDefaults()
3030
Magic = 0xCCCCCCCC;
3131
Version = 2500;
3232

33-
// these two values aren't checked, so we can set them to whatever we like
34-
//BuildDateTime = 0x706D6F434E49424D;
35-
//TemplateGUID = 0x302E3172656C69;
33+
// set the 0x10 bytes to be the MBINCompiler version
3634
string ver = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
3735
Tag = String.Format("MBINCver{0}", ver.Substring(0, ver.Length - 2));
3836

3937
TemplateName = string.Empty;
40-
Padding58 = ulong.Parse($"{DateTime.Now:yyyyMMddhhmm}"); // may as well make use of this field too
38+
Padding58 = 0;
39+
//Padding58 = ulong.Parse($"{DateTime.Now:yyyyMMddhhmm}"); // may as well make use of this field too
4140
}
4241
}
4342
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
using System.Collections.Generic;
2+
3+
namespace MBINCompiler.Models.Structs
4+
{
5+
public class GcAmbientModeCameras : NMSTemplate // size: 0x30
6+
{
7+
public List<GcCameraAmbientBuildingData> BuildingCameraAnimations;
8+
public List<GcCameraAmbientSpaceData> SpaceCameraAnimations;
9+
public List<GcCameraAmbientSpecialData> SpecialCameraAnimations;
10+
}
11+
}

MBINCompiler/Models/Structs/GcAsteroidGeneratorAssignment.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
{
33
public class GcAsteroidGeneratorAssignment : NMSTemplate // 0x48 bytes
44
{
5-
public int PlanetIndex;
6-
public GcSolarSystemLocatorChoice Locator;
7-
public GcSeed Seed;
8-
public int AsteroidCount;
5+
/* 0x00 */ public int PlanetIndex;
6+
/* 0x04 */ public GcSolarSystemLocatorChoice Locator;
7+
/* 0x30 */ public GcSeed Seed;
8+
/* 0x40 */ public int AsteroidCount;
99

1010
[NMS(Size = 4, Ignore = true)]
1111
public byte[] Padding44;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace MBINCompiler.Models.Structs
2+
{
3+
public class GcAudio3PointDopplerData : NMSTemplate
4+
{
5+
/* 0x0 */ public float Front;
6+
/* 0x4 */ public float Mid;
7+
/* 0x8 */ public float Rear;
8+
}
9+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace MBINCompiler.Models.Structs
2+
{
3+
public class GcAudioNPCDoppler : NMSTemplate // pretty certain this is used somehow in the GcAudioGlobals
4+
{
5+
/* 0x000 */ public float Config;//List<GcAudioNPCDoppler> Config;
6+
}
7+
}

MBINCompiler/Models/Structs/GcBaseBuildingEntry.cs

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ public class GcBaseBuildingEntry : NMSTemplate
2020
/* 0x0AC */ public int PlanetLimit;
2121
/* 0x0B0 */ public int RegionLimit;
2222

23-
[NMS(Size = 2, Ignore = false)]
23+
[NMS(Size = 3, Ignore = false)]
2424
/* 0x0B4 */ public int[] PerBaseLimits;
25-
/* 0x0BC */ public float CollisionRadiusFactor;
26-
/* 0x0C0 */ public bool CheckCollision;
27-
/* 0x0C1 */ public bool CollidesWithPlayer;
28-
/* 0x0C2 */ public bool CanPlaceOnItself;
29-
[NMS(Size = 5, Ignore = true)]
30-
/* 0x0C3 */ public byte[] PaddingC3;
25+
/* 0x0C0 */ public float CollisionRadiusFactor;
26+
/* 0x0C4 */ public bool CheckCollision;
27+
/* 0x0C5 */ public bool CollidesWithPlayer;
28+
/* 0x0C6 */ public bool CanPlaceOnItself;
29+
[NMS(Size = 1, Ignore = true)]
30+
/* 0x0C7 */ public byte[] PaddingC3;
3131

3232
[NMS(Size = 0x10)]
3333
/* 0x0C8 */ public string Group;
@@ -44,7 +44,15 @@ public class GcBaseBuildingEntry : NMSTemplate
4444
[NMS(Size = 0x20)]
4545
/* 0x0F0 */ public string Hint;
4646
/* 0x110 */ public bool RemoveGrass;
47-
[NMS(Size = 7, Ignore = true)]
48-
/* 0x114 */ public byte[] Padding114;
47+
/* 0x111 */ public bool RemoveIfNoNeighbours;
48+
/* 0x112 */ public bool ForceCheckPlayerInside;
49+
50+
/* 0x114 */ public float PlayerInsideRadiusFactor;
51+
/* 0x118 */ public bool CanChangeColour;
52+
/* 0x119 */ public bool CanChangeMaterial;
53+
54+
55+
[NMS(Size = 6, Ignore = true)]
56+
/* 0x120 */ public byte[] Padding120;
4957
}
5058
}

0 commit comments

Comments
 (0)