Placing militia on a map in galaxy forge

  I've come across posts like this https://forums.sinsofasolarempire.com/339832 which suggest changing the ScenarioDef file in order to create a new player to give units to.  However, I've also seen people mention that they can place asteroids using the entity editor in the Galaxy Forge editor.  I've tried using the "entity" feature to  place units to act as militia, but no units show up when I select them.

 

 Also, is it possible to use two templates for a planet, or will it not work?  I've tried it myself, and had some issues, but I'm wondering if that's what everyone's experience with it is.

 

 

 

 

17,242 views 9 replies
Reply #1 Top

Keep in mind the date, sometimes a lot of things change since 2009. ;) Here's one of my more concise explanations from years ago.

Quoting GoaFan77, reply 12
Sadly militia cannot be easily be added to maps because for some reason GalaxyForge doesn't have the "RandomMilitia" or "Pirate" owners, but here is what I do if I don't want to make a template, and will work for all mods.

1. Make the map as I normally would. Then for each planet that you want to have custom militia on, remember the names of that planet and make your militia fleet under "NoOwner"

2. Save the map, then find its folder and open it in Notepad. Search for the planet name and you should find a list under it of all the objects you added to it. Change it from "NoOwner" to "RandomMilitia" or "Pirate".

3. Save the editted notepad file, start Sins and they should be present.

This is best if you have a couple of planets you want to give customized militia to or if every planet is going to have a unique setup. If you are going to have  a lot of planets with the same set up then templates are the way to go.

Also remember to uncheck the "Use Default Template" option if you don't want the normal militia to appear.

 

Reply #2 Top

 

I've unchecked the "Use Default Template" option for different planets depending on what I want.  For planets that are already owned, this isn't an issue (after I figured a few things out), but for unowned planets, I'm not sure how to get militia into there.

No units appear when I try using my own templates on unowned planets.

 

 

Reply #3 Top

Quoting mascan, reply 2
 

I've unchecked the "Use Default Template" option for different planets depending on what I want.  For planets that are already owned, this isn't an issue (after I figured a few things out), but for unowned planets, I'm not sure how to get militia into there.

No units appear when I try using my own templates on unowned planets.
 

FYI I've used templates maybe once, so I can't tell you anything about them. What I usually do is edit each planet with groups. No matter what though you'll have to edit the map in notepad after you've done everything you can in Galaxy Forged to get them to appear on unowned planets, as in previous post. The only difference is if you're using a templates you'll search for the template name instead of the planet name.

Reply #4 Top

 

Okay, I'm working with Notepad++ right now, and the templates and groups don't go well together. Do I create another player with the name "RandomMilitia" or some other name in the file when the players are being declared?  Other than "IsNormalPlayer" and the player names, what parameters should I adjust?

 

 

 

Reply #5 Top

Quoting mascan, reply 5
Okay, I'm working with Notepad++ right now, and the templates and groups don't go well together. Do I create another player with the name "RandomMilitia" or some other name in the file when the players are being declared? Other than "IsNormalPlayer" and the player names, what parameters should I adjust?

No, you just put "RandomMilitia" into the owner line, and set the parameter to "Always". The name RandomMilitia is already known to the game, you don't need to make a new player. That's already defined for you else where.

Here's one of my maps with a ton of customized militia if you want a reference with groups (assuming you have Rebellion). I don't remember if I used templates or not, but you should get a group working before you try templates.

+1 Loading…
Reply #6 Top

Thanks, I'll take a look at it.

Reply #7 Top

Well, that helped, although it turned out I had some empty lines in my galaxy file which neither the game nor galaxy forge likes.

Reply #8 Top

Soon as I put RandomMilitia as the owner, it crashes when loading the map in the game.  Is there some things that aren't allowed such as trade ports or other structures?

Reply #9 Top

Quoting MCBmaestro, reply 9
Soon as I put RandomMilitia as the owner, it crashes when loading the map in the game. Is there some things that aren't allowed such as trade ports or other structures?

You cannot add structures to uncolonized planets for some reason. If you're going to add structures, you need to make sure the planet is owned by the player who will be getting the structures. The easiest way to do this is right below the owner line in notepad, you should see something like "ColonizeChance". Set this to 1.0, and the militia or whoever will own the planet and the structures should spawn.