Modding the pirates

I searched 7 pages but, alas, I did not find what I was looking for.

 

I know I saw somewhere that someone modded the pirates to have cap ships, yet when I change everything and mod in a ship, worth 1 credit, 1 slot, 1 build time.... they don't build it.

Changed .str, changed player.entity, no crashes, no dumps, no output errors.

I even kept the mesh and weps and all that and made it a frig/cruiser and made all the appropriate changes.

 

Still, no ship. What am I doing wrong?

18,337 views 7 replies
Reply #1 Top

Pirates don't build.

They just start out with certain ships.

 

You'll have to change the ships that they start with. (Maby in the map file?)

 

Reply #2 Top

they buy ships for raids

Reply #3 Top

Quoting EvilTesla-RG, reply 1
Pirates don't build.

They just start out with certain ships.

 

You'll have to change the ships that they start with. (Maby in the map file?)

Yeah its in GalSecDef.

 

Reply #4 Top

Under GameInfo folder the file "Gameplay.constants"

I changed this. To get my pirates raids harder. You can borrow tweak what ever. I don't care. I hope this helps in what you are trying to do...


        pirateRaidComposition:0
            requiredShipCount 0
            randomShipCount 4
            randomShip
                type "CAPITALSHIP_TECHBATTLESHIP"
                weight 1
            randomShip
                type "FrigatePirateMedium"
                weight 2
            randomShip
                type "FrigatePirateHeavy"
                weight 1
            randomShip
                type "CAPITALSHIP_TECHBATTLESHIP"
                weight 1
        pirateRaidComposition:1
            requiredShipCount 0
            randomShipCount 5
            randomShip
                type "CAPITALSHIP_PSIBATTLESHIP"
                weight 1
            randomShip
                type "FrigatePirateMedium"
                weight 10
            randomShip
                type "FrigatePirateHeavy"
                weight 2
            randomShip
                type "CAPITALSHIP_PHASESIEGE"
                weight 2
            randomShip
                type "FrigatePirateSiege"
                weight 3
        pirateRaidComposition:2
            requiredShipCount 0
            randomShipCount 5
            randomShip
                type "CAPITALSHIP_TECHSIEGE"
                weight 2
            randomShip
                type "FrigatePirateMedium"
                weight 8
            randomShip
                type "FrigatePirateHeavy"
                weight 5
            randomShip
                type "FrigatePirateAntiFighter"
                weight 3
            randomShip
                type "FrigatePirateSiege"
                weight 5
        pirateRaidComposition:3
            requiredShipCount 0
            randomShipCount 4
            randomShip
                type "CAPITALSHIP_PSIBATTLEPSIONIC"
                weight 2
            randomShip
                type "FrigatePirateHeavy"
                weight 7
            randomShip
                type "CAPITALSHIP_TECHBATTLESHIP"
                weight 2
            randomShip
                type "FrigatePirateSiege"
                weight 6                
        pirateRaidComposition:4
            requiredShipCount 0
            randomShipCount 4
            randomShip
                type "CAPITALSHIP_PHASESIEGE"
                weight 2
            randomShip
                type "CAPITALSHIP_PHASEBATTLESHIP"
                weight 2
            randomShip
                type "FrigatePirateAntiFighter"
                weight 7
            randomShip
                type "FrigatePirateSiege"
                weight 9


 

 

Reply #5 Top

Or iif you want to change the pirate base. Do this under the folder "GameInfo" and file "GalaxyScenarioDef.galaxyScenarioDef". If you add anything make sure to change the "items" to higher number. So if you add 7 new items it would be "items 85"...

Is that what you wanted?...

 


    templateName "Template:PirateBase"
    subTemplates 0
    groups 1
        group
            condition
                type "Always"
                param ""
            owner "Pirate"
            colonizeChance 1
            items 78
                item "Pirate:Frigate:Heavy"
                item "Pirate:Frigate:Heavy"
                item "Pirate:Frigate:Heavy"
                item "Pirate:Frigate:Heavy"
                item "Pirate:Frigate:Heavy"
                item "Pirate:Frigate:Heavy"
                item "Pirate:Frigate:Heavy"
                item "Pirate:Frigate:Heavy"
                item "Pirate:Frigate:Heavy"
                item "Pirate:Frigate:Heavy"
                item "Pirate:Frigate:Heavy"
                item "Pirate:Frigate:Heavy"
                item "Pirate:Frigate:Heavy"
                item "Pirate:Frigate:Heavy"
                item "Pirate:Module:GaussDefense"
                item "Psi:Module:HangarDefense"
                item "Phase:Module:HangarDefense"
                item "Tech:Module:HangarDefense"
                item "Psi:Module:HangarDefense"
                item "Phase:Module:HangarDefense"
                item "Tech:Module:HangarDefense"
                item "Psi:Module:HangarDefense"
                item "Phase:Module:HangarDefense"
                item "Tech:Module:HangarDefense"
                item "Tech:Module:HangarDefense"
                item "Pirate:Frigate:AntiFighter"
                item "Pirate:Frigate:AntiFighter"
                item "Pirate:Frigate:AntiFighter"
                item "Pirate:Frigate:AntiFighter"
                item "Pirate:Frigate:AntiFighter"
                item "Pirate:Frigate:AntiFighter"
                item "Pirate:Frigate:AntiFighter"
                item "Pirate:Frigate:AntiFighter"
                item "Pirate:Frigate:AntiFighter"
                item "Pirate:Frigate:Medium"
                item "Pirate:Frigate:Medium"
                item "Pirate:Frigate:Medium"
                item "Pirate:Frigate:Medium"
                item "Pirate:Frigate:Medium"
                item "Pirate:Frigate:Medium"   
                item "Phase:Module:MissileDefense"       
                item "Psi:Module:BeamDefense"
                item "Tech:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"       
                item "Phase:Module:MissileDefense"
                item "Psi:Module:BeamDefense"
                item "Tech:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"       
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"
                item "Phase:Module:MissileDefense"
                item "Psi:Module:BeamDefense"
                item "Tech:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"
                item "Tech:CapitalShip:Siege"
                item "Tech:CapitalShip:Siege"
                item "Psi:CapitalShip:BattlePsionic"
                item "Phase:CapitalShip:Siege"
                item "Phase:CapitalShip:BattleShip"
                item "Tech:CapitalShip:BattleShip"
                item "Psi:CapitalShip:BattleShip"
                item "Phase:Module:RepairPlatform"
                item "Psi:Module:CultureCenter"
                item "Psi:CapitalShip:BattlePsionic"
                item "Phase:CapitalShip:Siege"
                item "Phase:CapitalShip:BattleShip"
                item "Tech:CapitalShip:BattleShip"
                item "Psi:CapitalShip:BattleShip"
                item "Phase:Module:RepairPlatform"
                item "Tech:Module:RepairPlatform"


Reply #6 Top

exactly what I was looking for on both counts, thanks!

 

edit: so I modded the galsecdef file and changed all the appropriate numbers and now I get output errors about not finding NPCs and crap, you get this?

 

Failed to create NPC player! RaceName not found.

Design Name:
Race Name:

 

EDIT 2: fixed it, i'm an idiot

 

although this was pretty funny:

randomShipCount exceeds the maximum allowed. 6 requested but only 5 allowed. If a larger number is needed bug a programmer!

 

let's bug em!

Reply #7 Top

here's a question:

Pirate:Frigate:Heavy

 

How do I work my own ships into here? I don't understand how this system works.

The pirates will build my ships for raids but it won't let me put them into the base.