Difference between revisions of "HPL3/SOMA/Modding/Setup Modding Environment"

From Frictional Wiki
< HPL3‎ | SOMA‎ | Modding
Jump to navigation Jump to search
m (Removed the asset/ prefix in the example lookupdirs.cfg file as its STUPID. also added missing DetailMeshes asset category)
 
(2 intermediate revisions by one other user not shown)
Line 4: Line 4:
  
  
== Setting up the Editors ==
+
==Setting up the Editors==
 
Your mod might have custom assets. In order to make the editors (Level Editor, Model Editor, etc) to load your mod's assets, it needs to be configured into a special mode called "WIP Mod".  
 
Your mod might have custom assets. In order to make the editors (Level Editor, Model Editor, etc) to load your mod's assets, it needs to be configured into a special mode called "WIP Mod".  
 
{{tip|Even if your mod doesn't have any custom assets, it's a good practice to configure the Level Editor anyway, just so you won't have to deal with it in the future should you decide to add custom assets.}}  
 
{{tip|Even if your mod doesn't have any custom assets, it's a good practice to configure the Level Editor anyway, just so you won't have to deal with it in the future should you decide to add custom assets.}}  
  
=== WIP Mod - Manual Configuration ===
+
===WIP Mod - Manual Configuration===
 +
 
 
#Navigate to <code>My Documents/HPL3</code>. You need to open one of the editors at least once in order to see the HPL3 folder inside your document folder.
 
#Navigate to <code>My Documents/HPL3</code>. You need to open one of the editors at least once in order to see the HPL3 folder inside your document folder.
 
#Inside that folder, create a file called <code>WIPMod.cfg</code>.
 
#Inside that folder, create a file called <code>WIPMod.cfg</code>.
Line 17: Line 18:
 
(Of course, you will have to change the path in order to suit your own location of the mod).
 
(Of course, you will have to change the path in order to suit your own location of the mod).
  
=== WIP Mod - Automatic Configuration ===
+
===WIP Mod - Automatic Configuration===
You can use the [[HPL3/SOMA/Third_Party_Tools/SOMA_Mod_Manager|SOMA Mod Manager]] in order to perform an automatic sync of the editors to your mod, which pretty much does the manual step for you.
+
You can use the [[HPL3/Third Party Tools/HPL3 Mod Manager|HPL3 Mod Manager]] in order to perform an automatic sync of the editors to your mod, which pretty much does the manual step for you.
  
=== Final Step ===
+
===Final Step===
  
{{warning|Currently, this step can to be done only manually. Do not skip it.}}
+
If your mod indeed has custom assets, you need to make sure the editors can add them to their look up list.  
  
If your mod indeed has custom assets, you need to make sure the editors can add them to their look up list.
 
 
#In your mod's folder, create a new folder and name it <code>editor</code>.
 
#In your mod's folder, create a new folder and name it <code>editor</code>.
 
#Inside that folder, create a file called <code>lookupdirs.cfg</code>.
 
#Inside that folder, create a file called <code>lookupdirs.cfg</code>.
Line 34: Line 34:
 
#*<code>Particles</code>
 
#*<code>Particles</code>
 
#*<code>Sounds</code>
 
#*<code>Sounds</code>
 +
#*<code>DetailMeshes</code>
  
 
Example file:
 
Example file:
 
<syntaxhighlight lang="xml">
 
<syntaxhighlight lang="xml">
 
<Directories>
 
<Directories>
<Dir Category="StaticObjects" Path="assets/static_objects" />
+
<Dir Category="StaticObjects" Path="static_objects/" />
<Dir Category="Entities" Path="assets/entities" />
+
<Dir Category="Entities" Path="entities/" />
<Dir Category="Billboards" Path="assets/billboards" />
+
<Dir Category="Billboards" Path="billboards/" />
<Dir Category="Particles" Path="assets/particles" />
+
<Dir Category="Particles" Path="particles/" />
<Dir Category="Sounds" Path="assets/sounds" />
+
<Dir Category="Sounds" Path="sounds/" />
 
</Directories>
 
</Directories>
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 17:54, 8 May 2024

In order to have a smooth modding development experience, SOMA is needed to be configured into proper development environment.

Note icon.png Each section described in this article can either be configured manually (creating or editing the files yourself) or to be configured automatically, using the SOMA Mod Manager application.


Setting up the Editors

Your mod might have custom assets. In order to make the editors (Level Editor, Model Editor, etc) to load your mod's assets, it needs to be configured into a special mode called "WIP Mod".

Icon tip.png Tip: Even if your mod doesn't have any custom assets, it's a good practice to configure the Level Editor anyway, just so you won't have to deal with it in the future should you decide to add custom assets.

WIP Mod - Manual Configuration

  1. Navigate to My Documents/HPL3. You need to open one of the editors at least once in order to see the HPL3 folder inside your document folder.
  2. Inside that folder, create a file called WIPMod.cfg.
  3. Paste the following into the file, and save:
<WIPmod Path="Full_Path_To_Mod/entry.hpc" />

(Of course, you will have to change the path in order to suit your own location of the mod).

WIP Mod - Automatic Configuration

You can use the HPL3 Mod Manager in order to perform an automatic sync of the editors to your mod, which pretty much does the manual step for you.

Final Step

If your mod indeed has custom assets, you need to make sure the editors can add them to their look up list.

  1. In your mod's folder, create a new folder and name it editor.
  2. Inside that folder, create a file called lookupdirs.cfg.
  3. Create a new <Directories> xml tag inside the file.
  4. Add a list of directories which include your custom assets. The directory has to be associated with a category. The allowed categories are:
    • StaticObjects
    • Entities
    • Billboards
    • Particles
    • Sounds
    • DetailMeshes

Example file:

<Directories>
	<Dir Category="StaticObjects" Path="static_objects/" />
	<Dir Category="Entities" Path="entities/" />
	<Dir Category="Billboards" Path="billboards/" />
	<Dir Category="Particles" Path="particles/" />
	<Dir Category="Sounds" Path="sounds/" />
</Directories>

If all the above is done correctly, a (Working on mod) text should appear on the title bar of HPL3 editors when run.