NoMansSky:Tutorials/Adding New Buildable Objects: Difference between revisions

From Step Mods | Change The Game
Line 473: Line 473:
Edit the “'''Value'''” value to whatever is prefered.
Edit the “'''Value'''” value to whatever is prefered.


{{Notice Small|text= No Man's Sky hides every 6th entry of this table. If your added entry is hidden in game, create a dummy entry in '''NMS_REALITY_GCPRODUCTTABLE.MBIN''', and reference it in the slot in '''PURCHASEABLEBUILDINGBLUEPRINTS.MBIN''', which would be hidden by the game.}}
{{Notice Small|text= No Man's Sky hides every 6th entry of this table. If your added entry is hidden in game, create a dummy entry in '''NMS_REALITY_GCPRODUCTTABLE.MBIN''', and reference it in the slot in '''PURCHASEABLEBUILDINGBLUEPRINTS.MBIN''', which would be hidden by the game. Currently being checked so may be wrong}}


=== Adding entry into Rewards ===
=== Adding entry into Rewards ===

Revision as of 23:38, August 1, 2020

Template:TOC right

Introduction[edit | edit source]

This article serves as a tutorial to adding new buildable objects. This means that we will create a custom object and make it appear in the build menus. It is possible to add custom models, but for the sake of this tutorial we will make reuse a table object that already exists in-game resources but not normally available to be built.

There are three steps to follow in order to make an object available to build from the build menus:

  1. Adding the buildable object entry in BASEBUILDINGTABLE.MBIN;
  2. Adding the buildable object entry in NMS_REALITY_GCPRODUCTTABLE.MBIN;
  3. Making the buildable object available to acquire in game.

The use of NMS Modding Station is recommended, and shall be used in this article for demonstration when relevant. If you haven't set it up already, make sure you do so as explained in Unpacking Game Assets.

Locating BASEBUILDINGTABLE.MBIN and NMS_REALITY_GCPRODUCTTABLE.MBIN[edit | edit source]

First, these files need to be copied to a Project folder. This can be done manually, however, entire folder structure will be carried over when using NMS Modding Station. If you are not using NMS Modding Station, ensure to manually recreate the folder structure.

  1. Create a new project in NMS Modding Station. Call it whatever you prefer (e.g. TestTable).
  2. From the Unpacked Game Files tab, navigate to METADATA\REALITY\TABLES
  3. Select BASEBUILDINGTABLE.MBIN and NMS_REALITY_GCPRODUCTTABLE.MBIN
  4. Right-click on them and select [Copy to Project Files].

Now that the files are copied to your mod folder, the MBIN files need to be decompiled as outlined in Unpacking Game Assets.

(Step 1) - Adding entry in BASEBUILDINGTABLE.MBIN[edit | edit source]

We are now ready to edit the decompiled files. We will start from BASEBUILDINGTABLE.MBIN (which will now be decompiled as BASEBUILDINGTABLE.exml). The objective is to duplicate the structure from an existing object already present in the exml file, and edit the parameters to create a custom one.

Creating a building entry[edit | edit source]

  1. Open BASEBUILDINGTABLE.exml with the text editor of your choice (Notepad++ is recommended).
  2. Navigate to the Objects nested entry (which should be around line 20)
  3. Select the entire content of the first GcBaseBuildingEntry.xml entry, and then paste it in order to create a duplicate.
    This duplicate will act as the template for our new entry we will use for our custom buildable table.
    The entry should look something like this:

    <Property value="GcBaseBuildingEntry.xml">
      <Property name="ID" value="W_WALL" />
      <Property name="HasProduct" value="True" />
      <Property name="IsTemporary" value="False" />
      <Property name="SnapPoints" value="TkModelResource.xml">
        <Property name="Filename" value="MODELS/PLANETS/BIOMES/COMMON/BUILDINGS/PARTS/BUILDABLEPARTS/BASICPARTS/BASIC_WALL.SCENE.MBIN" />
      </Property>
      <Property name="Model" value="TkModelResource.xml">
        <Property name="Filename" value="MODELS/PLANETS/BIOMES/COMMON/BUILDINGS/PARTS/BUILDABLEPARTS/BASICPARTS/MESHES/WOOD/BASIC_WALL.SCENE.MBIN" />
      </Property>
      <Property name="InactiveModel" value="TkModelResource.xml">
        <Property name="Filename" value="MODELS/PLANETS/BIOMES/COMMON/BUILDINGS/PARTS/BUILDABLEPARTS/BASICPARTS/MESHES/WOOD/BASIC_WALL_LOD.SCENE.MBIN" />
      </Property>
      <Property name="DecorationType" value="GcBaseBuildingObjectDecorationTypes.xml">
        <Property name="BaseBuildingDecorationType" value="Normal" />
      </Property>
      <Property name="IsPlaceable" value="True" />
      <Property name="IsDecoration" value="False" />
      <Property name="IsConnection" value="False" />
      <Property name="PlacementNormalOffset" value="0" />
      <Property name="Biome" value="GcBiomeType.xml">
        <Property name="Biome" value="Lush" />
      </Property>
      <Property name="BuildableOnPlanetBase" value="True" />
      <Property name="BuildableOnSpaceBase" value="False" />
      <Property name="BuildableOnFreighter" value="False" />
      <Property name="BuildableOnPlanet" value="False" />
      <Property name="BuildableOnPlanetWithProduct" value="False" />
      <Property name="BuildableUnderwater" value="True" />
      <Property name="BuildableAboveWater" value="True" />
      <Property name="PlanetLimit" value="0" />
      <Property name="RegionLimit" value="0" />
      <Property name="PlanetBaseLimit" value="0" />
      <Property name="FreighterBaseLimit" value="0" />
      <Property name="CheckPlaceholderCollision" value="True" />
      <Property name="CollisionScale" value="0.75" />
      <Property name="EnableCollision" value="True" />
      <Property name="CanPlaceOnItself" value="True" />
      <Property name="CanRotate3D" value="True" />
      <Property name="CanScale" value="False" />
      <Property name="Groups">
        <Property value="NMSString0x10.xml">
          <Property name="Value" value="BASIC_W" />
        </Property>
      </Property>
      <Property name="StorageContainerIndex" value="-1" />
      <Property name="CanChangeColour" value="True" />
      <Property name="CanChangeMaterial" value="False" />
      <Property name="CanPickUp" value="False" />
      <Property name="ScanRadius" value="0" />
      <Property name="RemovesAttachedDecoration" value="True" />
      <Property name="EditsTerrain" value="False" />
      <Property name="BaseTerrainEditShape" value="Cube" />
      <Property name="TerrainEditBaseYOffset" value="0" />
      <Property name="TerrainEditTopYOffset" value="0" />
      <Property name="TerrainEditBoundsScalar" value="1" />
      <Property name="IsSealed" value="False" />
      <Property name="CloseMenuAfterBuild" value="False" />
      <Property name="LinkGridData" value="GcBaseLinkGridData.xml">
        <Property name="Connection" value="GcBaseLinkGridConnectionData.xml">
          <Property name="Network" value="GcLinkNetworkTypes.xml">
            <Property name="LinkNetworkType" value="Power" />
          </Property>
          <Property name="NetworkSubGroup" value="0" />
          <Property name="NetworkMask" value="0" />
          <Property name="ConnectionDistance" value="0.1" />
          <Property name="UseMinDistance" value="False" />
          <Property name="LinkSocketPositions" />
          <Property name="LinkSocketSubGroups" />
        </Property>
        <Property name="Rate" value="0" />
        <Property name="Storage" value="0" />
        <Property name="DependsOnEnvironment" value="None" />
        <Property name="DependsOnHotspots" value="None" />
        <Property name="DependentConnections" />
      </Property>
      <Property name="GhostsCountOverride" value="2" />
      <Property name="SnappingDistanceOverride" value="0" />
      <Property name="RegionSpawnLOD" value="1" />
    </Property>

Understanding and editing “GcBaseBuildingEntry.xml” entries[edit | edit source]

The xml file has many properties, and we will now describe the most important, or frequently used ones:

  • ID: the ID of the object. Each object should have a unique object ID, the length of this value must not exceed 16 characters, for demonstration, it shall be modified to “TESTTABLE”;
  • SnapPoints:
    • Filename: the file location of the object`s SnapPoints to be added. For this particular case, the location of the object is located at MODELS/PLANETS/BIOMES/COMMON/BUILDINGS/PARTS/BUILDABLEPARTS/DECORATION/TABLE1.SCENE.MBIN, and shall be changed to such; Sometimes the Model Filename and the SnapPoints Filename can be the same
  • Model:
    • Filename: the file location of the object to be added. For this particular case, the location of the object is located at MODELS/PLANETS/BIOMES/COMMON/BUILDINGS/PARTS/BUILDABLEPARTS/DECORATION/TABLE1.SCENE.MBIN, and shall be changed to such;
  • BuildableOnBase, BuildableOnFreighter, BuildableOnPlanet: boolean properties deciding if the object can be built within planetary player base limits, inside the player freighter base, and outside planetary player base limits (a.k.a in the fields);
  • GlobalLimit, SystemLimit, PlanetLimit, RegionLimit: properties restricting the number of this object which can be built in the entire galaxy, one system, one planet, and one “region” (a general area covering a certain amount of distance). A value of 0 refers to an unlimited amount;
  • PlanetBaseLimit, FreighterBaseLimit: properties setting the limit number of this objects which can be built in the planetary player base and in the player freighter. A value of 0 refers to an unlimited amount;
  • CheckCollision: boolean value deciding if the game will also check whether the object can be placed base on scene collision data, rather than just from the mesh itself;
  • Group: property deciding which group the object is put in inside the build menus. For demonstration purposes, the object shall be put in a custom group named ADDIT. We will setup this group in the next step of the tutorial, so keep this name in mind;

After editing your custom entry, it should look something like this:

    <Property value="GcBaseBuildingEntry.xml">
      <Property name="ID" value="TESTTABLE" />
      <Property name="HasProduct" value="True" />
      <Property name="IsTemporary" value="False" />
      <Property name="SnapPoints" value="TkModelResource.xml">
        <Property name="Filename" value="MODELS/PLANETS/BIOMES/COMMON/BUILDINGS/PARTS/BUILDABLEPARTS/DECORATION/TABLE1.SCENE.MBIN" />
      </Property>
      <Property name="Model" value="TkModelResource.xml">
        <Property name="Filename" value="MODELS/PLANETS/BIOMES/COMMON/BUILDINGS/PARTS/BUILDABLEPARTS/DECORATION/TABLE1.SCENE.MBIN" />
      </Property>
      <Property name="InactiveModel" value="TkModelResource.xml">
        <Property name="Filename" value="" />
      </Property>
      <Property name="DecorationType" value="GcBaseBuildingObjectDecorationTypes.xml">
        <Property name="BaseBuildingDecorationType" value="Normal" />
      </Property>
      <Property name="IsPlaceable" value="True" />
      <Property name="IsDecoration" value="False" />
      <Property name="IsConnection" value="False" />
      <Property name="PlacementNormalOffset" value="0" />
      <Property name="Biome" value="GcBiomeType.xml">
        <Property name="Biome" value="Lush" />
      </Property>
      <Property name="BuildableOnPlanetBase" value="True" />
      <Property name="BuildableOnSpaceBase" value="False" />
      <Property name="BuildableOnFreighter" value="True" />
      <Property name="BuildableOnPlanet" value="False" />
      <Property name="BuildableOnPlanetWithProduct" value="False" />
      <Property name="BuildableUnderwater" value="True" />
      <Property name="BuildableAboveWater" value="True" />
      <Property name="PlanetLimit" value="0" />
      <Property name="RegionLimit" value="0" />
      <Property name="PlanetBaseLimit" value="0" />
      <Property name="FreighterBaseLimit" value="0" />
      <Property name="CheckPlaceholderCollision" value="True" />
      <Property name="CollisionScale" value="0.75" />
      <Property name="EnableCollision" value="True" />
      <Property name="CanPlaceOnItself" value="True" />
      <Property name="CanRotate3D" value="True" />
      <Property name="CanScale" value="False" />
      <Property name="Groups">
        <Property value="NMSString0x10.xml">
          <Property name="Value" value="ADDIT" />
        </Property>
      </Property>
      <Property name="StorageContainerIndex" value="-1" />
      <Property name="CanChangeColour" value="True" />
      <Property name="CanChangeMaterial" value="False" />
      <Property name="CanPickUp" value="False" />
      <Property name="ScanRadius" value="0" />
      <Property name="RemovesAttachedDecoration" value="True" />
      <Property name="EditsTerrain" value="False" />
      <Property name="BaseTerrainEditShape" value="Cube" />
      <Property name="TerrainEditBaseYOffset" value="0" />
      <Property name="TerrainEditTopYOffset" value="0" />
      <Property name="TerrainEditBoundsScalar" value="1" />
      <Property name="IsSealed" value="False" />
      <Property name="CloseMenuAfterBuild" value="False" />
      <Property name="LinkGridData" value="GcBaseLinkGridData.xml">
        <Property name="Connection" value="GcBaseLinkGridConnectionData.xml">
          <Property name="Network" value="GcLinkNetworkTypes.xml">
            <Property name="LinkNetworkType" value="Power" />
          </Property>
          <Property name="NetworkSubGroup" value="0" />
          <Property name="NetworkMask" value="0" />
          <Property name="ConnectionDistance" value="0.1" />
          <Property name="UseMinDistance" value="False" />
          <Property name="LinkSocketPositions" />
          <Property name="LinkSocketSubGroups" />
        </Property>
        <Property name="Rate" value="0" />
        <Property name="Storage" value="0" />
        <Property name="DependsOnEnvironment" value="None" />
        <Property name="DependsOnHotspots" value="None" />
        <Property name="DependentConnections" />
      </Property>
      <Property name="GhostsCountOverride" value="2" />
      <Property name="SnappingDistanceOverride" value="0" />
      <Property name="RegionSpawnLOD" value="1" />
    </Property>

Adding a custom group entry[edit | edit source]

So far we have worked with the building entry of the table. Now we will create a custom group that the entry is part of (you should remember that we already assigned a group to it in the previous step!).

In the same exml file, navigate to the “Groups” nested entry. We will now do the same thing as we did before, and duplicate an existing entry to have a skeleton already in place. Copy a “GcBaseBuildingGroup.xml” entry and paste it. The group entry should look something like this:

<Property value="GcBaseBuildingGroup.xml">
  <Property name="ID" value="STRUCTURE" />
  <Property name="ParentGroup" value="" />
  <Property name="Name" value="UI_BUILD_STRUCT_GRP" />
  <Property name="Icon" value="TkTextureResource.xml">
    <Property name="Filename" value="TEXTURES/UI/FRONTEND/ICONS/BUILDABLE/GROUPS/BUILDGROUP.STRUCTURE.DDS" />
  </Property>
</Property>

These are the two most important properties to keep in mind:

  • ID: the ID of the group. This property corresponds to the “Group” property the we declared in the building entry;
  • Name: the name of the group. It can correspond to the language files for translations in different languages, or named in plain text and appearing in the build menu in the language written.

We will edit these two properties to match the building entry. the modified entry should look like this:

<Property value="GcBaseBuildingGroup.xml">
  <Property name="ID" value="ADDIT" />
  <Property name="ParentGroup" value="" />
  <Property name="Name" value="Additional Objects" />
  <Property name="Icon" value="TkTextureResource.xml">
    <Property name="Filename" value="TEXTURES/UI/FRONTEND/ICONS/BUILDABLE/GROUPS/BUILDGROUP.STRUCTURE.DDS" />
  </Property>
</Property>

This concludes the editing phase for BASEBUILDINGTABLE.exml.

(Step 2) - Adding entry in NMS_REALITY_GCPRODUCTTABLE.MBIN[edit | edit source]

We will now go and edit NMS_REALITY_GCPRODUCTTABLE.MBIN in a very similar way. Our goal is to make sure that the buildable object we created in BASEBUILDINGTABLE.exml is correctly referenced in this file. Once again we will duplicate the structure from an existing object already present in the exml file, and edit the parameters to create a custom one.

Creating a building entry[edit | edit source]

Select the entire content of a “GcProductData.xml” entry, and then paste it in order to create a duplicate. This duplicate will act as the template for our new entry we will use for our custom buildable table. It is suggested to copy an entry of an existing buildable object entry, instead of a crafted product, when creating a new buildable object entry for ease of modification. The entry should look something like this:

    <Property value="GcProductData.xml">
      <Property name="Id" value="BUILDTABLE" />
      <Property name="Name" value="BLD_TABLE_NAME" />
      <Property name="NameLower" value="BLD_TABLE_NAME_L" />
      <Property name="Subtitle" value="VariableSizeString.xml">
        <Property name="Value" value="BLD_TABLE_SUBTITLE" />
      </Property>
      <Property name="Description" value="VariableSizeString.xml">
        <Property name="Value" value="BLD_TABLE_DESCRIPTION" />
      </Property>
      <Property name="Hint" value="" />
      <Property name="GroupID" value="" />
      <Property name="DebrisFile" value="TkModelResource.xml">
        <Property name="Filename" value="MODELS/EFFECTS/DEBRIS/TERRAINDEBRIS/TERRAINDEBRIS4.SCENE.MBIN" />
      </Property>
      <Property name="BaseValue" value="1" />
      <Property name="Level" value="0" />
      <Property name="Icon" value="TkModelResource.xml">
        <Property name="Filename" value="TEXTURES/UI/FRONTEND/ICONS/BUILDABLE/BUILDABLE.TABLE001.DDS" />
      </Property>
      <Property name="HeroIcon" value="TkModelResource.xml">
        <Property name="Filename" value="" />
      </Property>
      <Property name="Colour" value="Colour.xml">
        <Property name="R" value="0.172549024" />
        <Property name="G" value="0.4862745" />
        <Property name="B" value="0.623529434" />
        <Property name="A" value="1" />
      </Property>
      <Property name="SubstanceCategory" value="GcRealitySubstanceCategory.xml">
        <Property name="SubstanceCategory" value="BuildingPart" />
      </Property>
      <Property name="Type" value="GcProductCategory.xml">
        <Property name="ProductCategory" value="BuildingPart" />
      </Property>
      <Property name="Rarity" value="GcRarity.xml">
        <Property name="Rarity" value="Common" />
      </Property>
      <Property name="Legality" value="GcLegality.xml">
        <Property name="Legality" value="Legal" />
      </Property>
      <Property name="Consumable" value="False" />
      <Property name="ChargeValue" value="0" />
      <Property name="StackMultiplier" value="0" />
      <Property name="DefaultCraftAmount" value="1" />
      <Property name="CraftAmountStepSize" value="1" />
      <Property name="CraftAmountMultiplier" value="1" />
      <Property name="Requirements">
        <Property value="GcTechnologyRequirement.xml">
          <Property name="ID" value="FUEL2" />
          <Property name="InventoryType" value="GcInventoryType.xml">
            <Property name="InventoryType" value="Substance" />
          </Property>
          <Property name="Amount" value="10" />
        </Property>
      </Property>
      <Property name="AltRequirements" />
      <Property name="Cost" value="GcItemPriceModifiers.xml">
        <Property name="SpaceStationMarkup" value="0" />
        <Property name="LowPriceMod" value="0" />
        <Property name="HighPriceMod" value="0" />
        <Property name="BuyBaseMarkup" value="0" />
        <Property name="BuyMarkupMod" value="0" />
      </Property>
      <Property name="RecipeCost" value="1" />
      <Property name="SpecificChargeOnly" value="False" />
      <Property name="NormalisedValueOnWorld" value="0" />
      <Property name="NormalisedValueOffWorld" value="0" />
      <Property name="TradeCategory" value="GcTradeCategory.xml">
        <Property name="TradingClass" value="None" />
      </Property>
      <Property name="WikiCategory" value="Construction" />
      <Property name="IsCraftable" value="True" />
      <Property name="DeploysInto" value="" />
      <Property name="EconomyInfluenceMultiplier" value="0" />
      <Property name="PinObjeective" value="" />
      <Property name="PinObjeectiveTip" value="" />
      <Property name="CookingIngredient" value="False" />
      <Property name="CookingValue" value="0" />
      <Property name="GoodForSelling" value="False" />
      <Property name="GiveRewardOnSpecialPurchase" value="" />
    </Property>

Understanding “GcProductData.xml” entries[edit | edit source]

The xml file has many properties, and we will now describe the most important, or frequently used ones:

  • ID: ID of the object. It corresponds to the ID entry of the respective object we created in BASEBUILDINGTABLE.MBIN. In our case we will use “TESTTABLE”, following what we did in the previous paragraph;
  • Name, NameLower, Description: Name of the object in all uppercase, normal form, and its description. It can correspond to the language files for translations in different languages, or named in plain text. These are the strings that appears in the build menu;
  • Icon: location of the icon image file. The file must be in DDS format, and must contain an ALL UPPERCASE DDS file extension;
  • SubstanceCategory:
    • SubstanceCategory: the substance category the entry belongs to. As a buildable object, this property should have the value of “BuildingPart”;
  • Category:
    • ProductCategory: the product category the entry belongs to. As a buildable object, this property should also have the value of “BuildingPart”;
  • Requirements: the cost of building the object. Each ingredient should have its separate entry, and a maximum of three types of ingredient can be inputted. Each of these ingredients will have the following properties:
    • ID: refers to the ID of the type of ingredient.
    • InventoryType: refers to the type of substance. It is either “Substance”, generally an element, or “Product”, generally an item;
    • Amount: refers to the number of ingredient required to build the object. The amount must be larger than 0.

Our modified table entry should look something like this:

    <Property value="GcProductData.xml">
      <Property name="Id" value="TESTTABLE" />
      <Property name="Name" value="BLD_TABLE_NAME" />
      <Property name="NameLower" value="BLD_TABLE_NAME_L" />
      <Property name="Subtitle" value="VariableSizeString.xml">
        <Property name="Value" value="BLD_TABLE_SUBTITLE" />
      </Property>
      <Property name="Description" value="VariableSizeString.xml">
        <Property name="Value" value="BLD_TABLE_DESCRIPTION" />
      </Property>
      <Property name="Hint" value="" />
      <Property name="GroupID" value="" />
      <Property name="DebrisFile" value="TkModelResource.xml">
        <Property name="Filename" value="MODELS/EFFECTS/DEBRIS/TERRAINDEBRIS/TERRAINDEBRIS4.SCENE.MBIN" />
      </Property>
      <Property name="BaseValue" value="1" />
      <Property name="Level" value="0" />
      <Property name="Icon" value="TkModelResource.xml">
        <Property name="Filename" value="TEXTURES/UI/FRONTEND/ICONS/BUILDABLE/BUILDABLE.TABLE001.DDS" />
      </Property>
      <Property name="HeroIcon" value="TkModelResource.xml">
        <Property name="Filename" value="" />
      </Property>
      <Property name="Colour" value="Colour.xml">
        <Property name="R" value="0.172549024" />
        <Property name="G" value="0.4862745" />
        <Property name="B" value="0.623529434" />
        <Property name="A" value="1" />
      </Property>
      <Property name="SubstanceCategory" value="GcRealitySubstanceCategory.xml">
        <Property name="SubstanceCategory" value="BuildingPart" />
      </Property>
      <Property name="Type" value="GcProductCategory.xml">
        <Property name="ProductCategory" value="BuildingPart" />
      </Property>
      <Property name="Rarity" value="GcRarity.xml">
        <Property name="Rarity" value="Common" />
      </Property>
      <Property name="Legality" value="GcLegality.xml">
        <Property name="Legality" value="Legal" />
      </Property>
      <Property name="Consumable" value="False" />
      <Property name="ChargeValue" value="0" />
      <Property name="StackMultiplier" value="0" />
      <Property name="DefaultCraftAmount" value="1" />
      <Property name="CraftAmountStepSize" value="1" />
      <Property name="CraftAmountMultiplier" value="1" />
      <Property name="Requirements">
        <Property value="GcTechnologyRequirement.xml">
          <Property name="ID" value="FUEL2" />
          <Property name="InventoryType" value="GcInventoryType.xml">
            <Property name="InventoryType" value="Substance" />
          </Property>
          <Property name="Amount" value="10" />
        </Property>
      </Property>
      <Property name="AltRequirements" />
      <Property name="Cost" value="GcItemPriceModifiers.xml">
        <Property name="SpaceStationMarkup" value="0" />
        <Property name="LowPriceMod" value="0" />
        <Property name="HighPriceMod" value="0" />
        <Property name="BuyBaseMarkup" value="0" />
        <Property name="BuyMarkupMod" value="0" />
      </Property>
      <Property name="RecipeCost" value="1" />
      <Property name="SpecificChargeOnly" value="False" />
      <Property name="NormalisedValueOnWorld" value="0" />
      <Property name="NormalisedValueOffWorld" value="0" />
      <Property name="TradeCategory" value="GcTradeCategory.xml">
        <Property name="TradingClass" value="None" />
      </Property>
      <Property name="WikiCategory" value="Construction" />
      <Property name="IsCraftable" value="True" />
      <Property name="DeploysInto" value="" />
      <Property name="EconomyInfluenceMultiplier" value="0" />
      <Property name="PinObjeective" value="" />
      <Property name="PinObjeectiveTip" value="" />
      <Property name="CookingIngredient" value="False" />
      <Property name="CookingValue" value="0" />
      <Property name="GoodForSelling" value="False" />
      <Property name="GiveRewardOnSpecialPurchase" value="" />
    </Property>

This concludes the editing phase for NMS_REALITY_GCPRODUCTTABLE.exml.

(Step 3) - Making the object available to acquire in game[edit | edit source]

Now that our exml files have been edited correctly, we need to make sure we can actually see our test table in-game. There are multiple ways in which we can include the blueprint of our custom object, and you can use whichever works best for you:

  • Default Save Data: adding the blueprint into DEFAULTSAVEDATA.MBIN and DEFAULTSAVEDATACREATIVE.MBIN. These files are the default save data that is loaded when starting the game. The blueprint will be immediately given to the player;
  • Vendor's List: adding an entry into PURCHASEABLEBUILDINGBLUEPRINTS.MBIN. This will add the blueprint into the vendor’s list in the planetary player base;
  • Rewards: adding the blueprint into REWARDTABLE.MBIN. This will add the blueprint as a reward from interacting with various objects in game, such as dead sentinels, alien conversations, and custom objects.

Adding entry into Default Save Data[edit | edit source]

As we did at the beginning of the tutorial,

  1. Open NMS Modding Station
  2. Locate DEFAULTSAVEDATA.MBIN and DEFAULTSAVEDATACREATIVE.MBIN in METADATA\GAMESTATE
  3. Copy both files to your project location.
  4. Decompile them and open either one of the files.
  5. Search for the nested property “KnownProducts
  6. Copy and paste a “NMSString0x10.xml” entry to create a duplicate.

The entry should look something like this:

<Property value="NMSString0x10.xml">
  <Property name="Value" value="TESTTABLE" />
</Property>

Edit the “Value” value, and copy the entry to the other default save file under the KnownProducts property. In other words, make sure that both files have the same entry.

Adding entry into Vendor's List[edit | edit source]

  1. Navigate to METADATA\REALITY\TABLES to find PURCHASEABLEBUILDINGBLUEPRINTS.MBIN.
  2. Decompile it and open it with your text editor.
  3. Copy and paste a “NMSString0x10.xml” entry.

The entry should look something like this:

<Property value="NMSString0x10.xml">
  <Property name="Value" value="<code>TESTTABLE" />
</Property>

Edit the “Value” value to whatever is prefered.

Template:Notice Small

Adding entry into Rewards[edit | edit source]

(Due to the sophistication and many ways of adding entries into REWARDTABLE.MBIN, new entry should be created.)

Compile the mod[edit | edit source]

Now you have completed all the necessary steps to have your buildable table ready. We now have to compile the mod. For information on how to do it, check here. Template:NMSPageClose