Modding pirates and spawning ships

I have been modding for awhile now and can pretty much create ships and other simple things but I have been looking into modding pirates and having militia spawn units. I know how to change the pirate fleet composition but thats not what I want to do. I want neutral militia planets to spawn units over time and I dont know how to do this even after experimenting for weeks. The code is just so confusing. Could someone explain the details of how the pirate and milita code works and how to mod it, so I can make neutral planets spawn units. After Looking in the forums I see that some modders have figured this out(7 deadly sins and such). Help would be greatly appreciated.

4,923 views 3 replies
Reply #1 Top

The 7DS people probably have this way over me, but i can suggest looking at the gameevents file and in the militia and pirate areas, about 2/3 down the page, you can add the kinds of ships, the frequency of their attacks (for pirates) and the weight of each ship ( i believe this means how many ships each you want)

anyway, after adjusting those just restart the mod and see if those militia numbers increase. If you are talking about having militia actually "own" a planet, im not sure i know how to do this. Perhaps the creation of another race would fullfill this, or it may be going in a direction you prefer not to.

Take care,

-Teal

 

Reply #2 Top

No but galaxy forge can do that when the creation of planet by making that particular planet owner the militia, can be selectable by the toolbox.

 

Pirate raid? or Pirate base?

Pirate raid composition gameplay.constants has to do with this one.

Pirate base are modified via GalaxyScenarioDef.galaxyScenarioDef which they both located in gameinfo folder.

 

Militia are located same in the file of GalaxyScenarioDef.galaxyScenarioDef.

 

Make sure the items number are match with item you add or your game crash.

 

Reply #3 Top

Incase you didn't know, you really can't increase your pirate supply above 300 or it would just crash, or better yet, it just exit without warning, so if you want to increase your pirate fleet i suggest you decrease the supply in which pirate ships use, if you do, don't do 0. or you will get a crash