Tutorial; NewShip - HWRM/KarosGraveyard GitHub Wiki

How to Create a New Ship by Hiigaran|SF (BlueTech on Relic Forums)

This tutorial shows how to create a completely new ship, instead of replacing an existing one. For this tutorial, we will be making a new scout, called the "Super Scout". The Super Scout will not have any new abilities, but they can be added later.

1. Create the new ship

First extract the .big files to a folder on the desktop. If you do not have a .BIG extractor, get one. Later extract ship\hgn_scout\hgn_scout.hod to the data\ship\hgn_scout folder on your desktop. Then open up data\ship and find the folder named hgn_scout. Copy this folder and rename the new one to be hgn_superscout. Then open the new folder and rename all the files from hgn_scout to hgn_superscout. Make sure that the files and the folder name are exactly the same. Now open up hgn_superscout.ship in Notepad or Textpad (not Wordpad) and change the line NewShipType.displayedName = "$1500" to NewShipType.displayedName = "Super Scout". This is the name of the ship that will appear in the game.

2. Add the ship to the Build Manager

Navigate back to data and open up scripts\building and research\hiigaran. Open build.lua. scroll down to the bottom and add the following before the last }.
Note: if you don't add the ship to the build manager, the production modules will not work if it is a production ship. --Mikali

{
Type = Ship,
ThingToBuild = "Hgn_SuperScout",
RequiredResearch = "",
RequiredShipSubSystems = "",
DisplayPriority = 11,
DisplayedName = "Super Scout",
Description = "<b>Description:</b> Normal scout copied for a tutorial. \n\n<b>Prerequisites:</b> None.",
},

3. Fix the Display Icon

If you put this into the game right now, the display icon in the build manager and the taskbar would be some derilect. To fix this, open up ship\icons\shipicons.lua. Scroll down to the bottom and add Hgn_SuperScout = Hgn_Scout.

4. Put it all in the game

If you have not already done so, create a new shortcut to Homeworld 2 on your desktop. Right-click on it and click Properties. In the target line, add -overrideBigfile. Now copy all the contents of data (the one on your desktop) to homeworld2\data. Now double-click on the new Homeworld 2 shortcut. There will be a new fighter in the build manager called Super Scout.

Discussion:

Related Pages

Tutorials

Comments

Page Status

Updated Formatting? Initial
Updated for HWRM? Initial