Difference between revisions of "NMS:Tutorials/Compiling Mods"

From STEP Modding Wiki
m (Running Mods)
Line 21: Line 21:
  
 
{{Notice Small|text=Be sure to check the PCBANKS folder after each game update as the DISABLEMODS.txt file is often recreated.}}
 
{{Notice Small|text=Be sure to check the PCBANKS folder after each game update as the DISABLEMODS.txt file is often recreated.}}
Now, you can place the .pak files from your downloaded or created mods inside the MODS folder and run the game to enjoy the changes!
+
Now, you can place the .pak files from your downloaded or created mods inside the MODS folder or choose '''Copy in my MODS folder''' right-click option in '''NMS Modding Station''' and run the game to enjoy the changes!
  
 
== Naming Mods ==
 
== Naming Mods ==

Revision as of 20:29, August 10, 2020

BannerLogo
Compiling Mods

Contents

Introduction

When creating your mod, you'll need to remember that the files you modified must have the same exact directory structure as you found them originally. For example, if you modified an MBIN file inside a directory called /METADATA/REALITY/TABLES/, you must preserve the same directory structure. You don't need to copy other files in the same directories if you didn't modify them, as this will only increase the size of your mod.

If you copied the directory into another folder such as "MY MOD", your directory will be /MYMOD/METADATA/REALITY/TABLES/ and so on. However, make sure that MYMOD doesn't contain ANY special characters (e.g. ( ) or [ ]), otherwise NMS Modding Station will NOT pack the mod correctly. This is due to an aspect of PSARCTool built into Modding Station, and applies whether you're using PSARCTool.exe or NMS Modding Station to pack your mods.

Packing Mods

To create your own PSARC archive, or .pak file, configure a projects folder path in NMS Modding Station via the top left Setup Menu\Settings and set all the paths.

If you don't have any project folder yet, you can create one called something like \My Mod Projects\. Within this folder you would place \MYMOD\[duplicated game directory structure].

Once you have the directory structure sorted out and your recompiled MBINs in the appropriate folders (e.g. BASEBUILDINGTABLE.MBIN in \METADATA\REALITY\TABLES), double-click MYMOD folder in the Project tab of NMS Modding Station, right-click within the MYMOD folder, select [Pack Mod], and you'll find yourself with a .pak called MYMOD.pak. However, feel free to name this file anything you like.

Running Mods

To enable mods in No Man's Sky, you first need to execute the following steps :

  1. Go into your No Man's Sky PCBANKS folder
  2. Select the DISABLEMODS.txt file and rename or remove it
  3. Create a new folder and name it "MODS"
Info-Logo.png      Notice:Be sure to check the PCBANKS folder after each game update as the DISABLEMODS.txt file is often recreated.

Now, you can place the .pak files from your downloaded or created mods inside the MODS folder or choose Copy in my MODS folder right-click option in NMS Modding Station and run the game to enjoy the changes!

Naming Mods

It's important to note that mods are run in alphanumerical order, so the mod filename will affect its load order.
Here is a quick order : 0 1 2 3 4 5 6 7 8 9 A a B b .... Z z _
So a mod named "0mod" will load before a mode named "bmod" and a "_mod" will load last. If two mods contain the same file, the file from the last mod will prevail. So a "_mod" will always apply over the others, reason why so many modders used a "_" before their mod names.

Anyway, it's better to notify users in your mod description of what files you've modified. This will ultimately help them to notice if mods could be in conflict and help them sort which mods are in cause. In that case, some tools like AMUMSS can help detecting the mods editing the same files and thus conflicting.