Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Creating your first mod in 5 minutes

MyNameIsTrez edited this page Jan 15, 2023 · 1 revision

As seen on YouTube

Click this image to be redirected to the YouTube video:

Thumbnail of the YouTube video of this article.

The YouTube tutorial in text form

Start off by opening your game directory.

image

Click the Coalition.rte folder, hit Ctrl + C to copy it and Ctrl + V to paste it, and then rename it with F2 to mymod.rte. The mod's name has to end with ".rte".

image

If you now open the game you'll see the error message "mymod.rte does not specify a supported Cortex Command version, so it is not compatible with this version of Cortex Command".

rte-aborted

This error means that the mod didn't specify which game version it is for, and in my case it should be specifying Pre-Release 4.0, but in your case this will be different. So, remember what it says right here for you.

To edit the mod so it includes the game version, we're going to go to the website "vscode.dev".

image

Open the folder of the mod.

select-mod-folder

Open Index.ini, which is where the game will start looking at your mod, and this is also where you give the game general information about your mod.

index

Add the line "SupportedGameVersion = Pre-Release 4.0" in my case, but again, this will be different for you. Hit Ctrl + S to save it.

supported-game-version

If you now boot game, you can hit space to skip the intro.

Go into one of the scenarios and you'll see two copies of Coalition in the buy menu.

two-coalition-factions

The bottom one is yours, so we're going to edit it so it isn't a simple copy.

Start off by changing the ModuleName and the Description. Hit Ctrl + S to save it.

image

Now we're going to do something fun, like changing one of the weapons to be very very overpowered.

Open UberCannon.ini.

ubercannon

There's a whole load of text here, but you can minimize it all by just hitting Ctrl + K and then Ctrl + 0. Now you can open the lines like they're folders by clicking the arrows next to the line numbers.

image

Go down to RateOfFire and bump it up, and set ReloadTime to 0. Hit Ctrl + S.

image

If you want you can expand the lines again with Ctrl + K, Ctrl + J, but it isn't necessary. You can close the file.

And now we're going to replace all references of coalition.rte with mymod.rte.

replace

And in order to let the game boot straight into a scenario you can open the Settings.ini file by clicking on Open File.

open-settings

And then selecting Settings.ini, found in the Base.rte folder.

image

If you scroll down a bit you'll see "Default Activity Settings". LaunchIntoActivity is 0; we're going to set that to 1. Hit Ctrl + S to save it.

The DefaultActivityType, DefaultActivityName and DefaultSceneName can be customized, but I've chosen to launch into Ketanot Hills in Skirmish Defense.

image

If we now open the game we'll be booted right into the scenario and you'll see "MYMOD" - "This is my first mod!" in the build menu.

image

And now you get to play with your mod's Uber Cannon of doom!

wiki-screenshot

So now you've made your first mod, and of course it's still pretty much a copy of the Coalition, but that's fine.

You could start removing files, you could start adding files, it's all basically just down to INI.

You don't need to learn Lua. Lua is just for the advanced stuff. INI is pretty much the bread and butter of the game.

And once you want to start spriting you'll want to probably use GIMP, for which you can follow this tutorial of mine.

If you need any help you can visit the Discord server, and good luck, and have fun!