Starfare is a real time strategy game with a Space/Sci-Fi scenario. The game is about capturing Asteroids and holding them to gain resources and bring down the enemies. The tricky thing is that the Asteroids may not always be static. There are 12 missions with a (hopefully) exciting background story as well as the possibility to create custom games. A nasty AI will accompany or fight against you. You can play as one of four factions which can be picked by yourself in a custom game, or which is predefined in a campaign. All of them have different properties and advantages. A maximum of 64 players allows you to witness gigantic battles with like 24 different units.

Post tutorial Report RSS Basic mod setup

Every mod will have the same basics and needs the same setup to run. That will be described in this tutorial.

Posted by on - Intermediate Starting a mod

Checklist

Getting started

To start, you'll need a name for your mod, I'll name mine My Awesome Mod. Now that you have a name, you can set up the folder structure:

  1. Find the assets directory and create a new folder without spaces or special characters. Mine would be assets/myawesomemod.
  2. In the directory you created, create a new, empty text file and name it import.txt.

Explanation of import.txt

You can skip this if you are not interested in technical details.
When Starfare is started, it attempts to load textures, sounds, meshes and so on. By default, the game looks for any loadable resources in assets/base unless you tell the game that you want to run a mod. If that is the case, the game simply looks for resources in assets/myawesomemod. But if you only want to add a campaign level, the game would only load your campaign script but no sounds, no ships, nothing.So the import.txt file tells the game what else to load aside from the files in your mod directory. The file is read line-wise. Each line should either be the path of a file to load, or an entire directory to load.

Importing necessary assets

The game absolutely requires some specific assets to be loaded. If you don't plan on modifying these, your import.txt for your mod should contain this:

base/images
base/meshes/minimap.png
base/meshes/skybox.jpg
base/meshes/ambient.png
base/meshes/cloudlayer.png
base/meshes/overlay_radon.png
base/meshes/overlay_silicea.png
base/meshes/asteroid.x
base/effects
base/strings
base/sfx

This will make the game load the standard interface textures and even sounds but no units or campaign levels.

Starting the game with a mod

Create either a .bat file or a shortcut (Batch files are preferred if you actually want to distribute your mod) to start Starfare.exe with two parameters:

starfare.exe -basedir -myawesomemod

Remember to enter your mod's folder name as second parameter.

Good luck & Have fun modding!

Post comment Comments
AdiJager
AdiJager - - 165 comments

and what is with the animations like turrets?

Reply Good karma Bad karma+2 votes
ZaPx64 Author
ZaPx64 - - 65 comments

Hm, I should post another tutorial on the details, eh? ;)
The blue box on the top of the unit is actually a turret (without a proper mesh loaded..)
If you want animated turrets, check out the scripting KB here: Starfare.eu

Reply Good karma+2 votes
mapayne
mapayne - - 621 comments

Whats the ideal model poly counts for creating custom ships??

Reply Good karma Bad karma+1 vote
ZaPx64 Author
ZaPx64 - - 65 comments

I'm using not more than 500 per ship but I'm not really a professional 3d artist. The game can take 65k vertices per model but that's not recommendable ;)

Reply Good karma+1 vote
Galacticruler
Galacticruler - - 1,053 comments

does the -basedir have to be a file path or just leave it alone?

Reply Good karma Bad karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: