Stellaris

Stellaris

88 ratings
Introduction to Modding Stellaris: Lesson 1 - Making your first (empire) mod
By cbshing
This is an introductory modding guide to help you share your empires through creating a Stellaris mod. By the end of this guide you will have created a mod and published your empire.
   
Award
Favorite
Favorited
Unfavorite
Introduction
Modding Stellaris is an easy and often a fun way to share your stories with your friends and the greater Stellaris community. Hello, my name is cbshing, creator of workshop mods such as Tomb World Start Systems and Cockroaches of Earth and an active modder since June 2017. For this lesson we will learn to share your Stellaris empires through creating and publishing a Stellaris mod. I look forward to seeing what stories you will share!

Objective
By the end of this lesson you will be able to do the following:
  • Create and share your Stellaris empire(s).

Prerequisite
This lesson assumes that you have no prior Stellaris modding experience, but does expect you know the following:
  • Able to use a file browsing software (e.g. Windows Explorer)
  • Able to use a text editor (e.g. Notepad, but another text editor is preferable)

Compatibility
This lesson is created in Stellaris version 1.8.3 and in the Windows 10 environment. The information here should be timeless and translatable to other OS environments. If not let me know. I'll try to keep it up to date as much as possible.
Creating your Empire mod
For this section we will step through on how to share your empire through creating a Stellaris mod. As an example, I will create a mod to share the first Stellaris country I made: the Cormathani Directorate, a nation of peaceful reptilian interstellar explorers.

1.0 Setting up your Mod
  1. Open your Stellaris game launcher and click on the Mods tab. In the top right of the launcher click on the Mod tools button (highlighted in red).
  2. Click on the Create Mod button on the top left.
  3. On the following mod creation screen, you need to enter the following information to be able to create a mod.
    • Available Mods is where you put the name of your mod. It will match the Steam Workshop name. Since we are making an empire mod I suggest you name your mod with the name of your empire you want to share. I will call my mod "Cormathani Directorate".
    • Directory is the name of the folder your mod will exist on your computer. I suggest you follow @oriramikad suggestion in the Making Your First Mod: A Guide For Primitives guide, or you could use the following example of "insert_empire_name". For example, I will call the Directory "cormathanidirectorate".
    • Supported version is the patch your mod is compatible for. No changes are needed here.
    • Tags are ways potential subscribers could search for your mod. I suggest using the "species" tag for an empire mod.
  4. Once you have filled out all the information above, click the "Create Mod" button.
2.0 Making an Empire mod
  1. Open your file browser software and go to "...\Documents\Paradox Interactive\Stellaris" or wherever you may have stored your Stellaris game files.
  2. Open the "mod" folder ("...\Documents\Paradox Interactive\Stellaris\mod") and look for the name of the directory you just created.
  3. Open your mod and create a new folder called "prescripted_countries".
  4. Go back to the Stellaris game files directory ("...\Documents\Paradox Interactive\Stellaris") and copy the file called "user_empire_designs.txt".
    WARNING: DO NOT CUT AND PASTE THE FILE. THIS WILL DELETE ALL OF YOUR CUSTOM EMPIRES.
  5. Paste the file "user_empire_designs.txt" into the "prescripted_countries" folder you just created. and rename it to match your mod. For example, you can call the file "insert_empire_name". In the image below I renamed the file to be "cormanthani_directorate_empire".
  6. Open the file using your text editor and delete everything except for the empire you want to share. Save the changes.
3.0 Testing your Mod
  1. Open your Stellaris game launcher and click on the Mods tab. Highlight your mod to activate it. Hit the "Play" button to start the game.
  2. Once your game loads your "mod" empire will appear at the bottom of the list of prescripted empires. You can select it and start a new game with your empire.
CONGRATULATIONS, you have made a mod!
Uploading to Steam
For this section we will step through on how to upload the mod you just created to the Steam Workshop.

1.0 Adding a Thumbnail
  1. Select an image that you want to use to represent your mod. I cropped a screenshot of my empire flag and species.
    • Note: The image should be smaller than 1MB and preferably square.

  2. Add the thumbnail image to your mod's directory.
  3. Go back to the overall mod directory and search for the text file that matches the name of your mod and ends in the .mod file extension. The file is highlighted by the red box in the following image.
  4. Open the file .mod file and add the following line of code to your file:
    picture = "insert_file_name_thumbnail.filetype"
  5. Save and close the file.

2.0 Uploading your mod to Steam
  1. Open your Stellaris game launcher and click on the Mods tab. In the top right of the launcher click on the Mod tools button (highlighted in red).
  2. Click on the Upload Mod button on the top left.
  3. On the right interface scroll until you find your mod. Click to highlight your mod.
  4. Click the Fetch Info button. White text should appear above that button that reads "Mod does not exist on Steam. Will create a new mod.", which means your mod has never been uploaded to the Steam Workshop. If you had previously uploaded your mod, this button will have Stellaris search the workshop for your mod id so you could update your existing mod.
  5. Click the Upload button on the bottom right. This will upload your mod to the Steam Workshop. If all goes well you should see text says "Mod uploaded okay".

CONGRATULATIONS, you have shared your Empire mod on Steam!
Now add a description and upload images. If you used any dlc only content or mod content while making your mod, be sure to give those authors credit by adding Required Items or Required DLC.

3.0 Updating your mod's version
  1. In the event you find your mod has the dreaded red exclamation next to it (such as the symbol marked by the magenta box), it means your mod is outdated.
  2. Go to the mod directory and search for the text file that matches the name of your mod and ends in the .mod file extension. The file is highlighted by the red box in the following image.
  3. Open the file .mod file and update the following line of code:
    supported_version= "current_version_number"
  4. Save and close the file.
  5. Follow the steps in part 2.0 of this section making sure you do use the Fetch Info button. Since you have already uploaded the mod the following text will appear " ".
  6. Click the Upload button on the bottom right. This will update your mod on the Steam Workshop.
Conclusion
Now that you have successfully uploaded a mod to the Steam Workshop, you are probably thinking "That was easy!". And you'd be correct in thinking so! The Paradox developers made modding Stellaris very easy, so don't hesitate to share your stories with the world!

Thank you for reading this guide. I hope to bring to you a series of modding guides so that more mods can be introduced to the Steam Workshop and more people can have fun while playing Stellaris!

If you're interested, you can find the mod created in this example at the following link on the Steam Workshop:
Cormathani Directorate

Stay tuned for Lesson 2 - Mod Structures, Localisation, and Custom Start Messages

If you've shared an empire in the Steam Workshop using this guide, please leave a link in the comments below. I'd love to see your stories!
References
I used the following guides as reference in making this guide.
25 Comments
ARK7 3 Dec, 2020 @ 5:24am 
Fixed it, thay now correctly open with notepad++ instead of moves and TV.
ARK7 2 Dec, 2020 @ 8:36am 
For some reason everything within the mods folder is a folder containing my mod, my mod, and 8 other things. All of these are unknown files with a blue box with a play button on top and a blue diagonal line above the box. Any idea what I did incorrect?
Flying Scorpion 31 Oct, 2020 @ 4:45pm 
Worked like a charm! Ready for lesson 2!
hubertkenobi 24 Mar, 2020 @ 1:21am 
I can't upload the thumbnail for some reason... I did exactly what you said on the tut.
Big_Bluntz 21 Jul, 2019 @ 6:14am 
How come no one posts on how to make a ship mod for stellaris, i've been looking for hours and nothing
Positive Rat 4 Jun, 2019 @ 11:31am 
I want to make a mod that is based off of the marvel universe, with empires like the Cree, Nova Core, Asguard, and also have different species like rayjack, aaskavarian, cree, and also the endgame crisis faction would be thanos.
Gimmi 22 Oct, 2018 @ 9:49am 
Thank you, no problem for the late! :)
cbshing  [author] 21 Oct, 2018 @ 1:26pm 
Hi Gimmi, apologies I didn't reply to you right away. Stuff is just going on in my life. Glad having Notepad++ worked. I'm not sure why some folks have problems with it and other don't. Also, neat you got your mods on the Workshop! Congrats.
Gimmi 12 Oct, 2018 @ 9:00am 
EDIT: I fixed the problem, that seems to be caused by the notepad (don't know how :/)
I simply downloaded Notepad++, followed your tutorial again, and now my mod works! ;)