Non playable race super colony

I am trying to setup up a colony with multiple artifacts and 4 or 5 crystal locations, in galaxy forge. The trade off for the goods would, be that it  would be protected by a few capital ships. I want it to be like a common colony produced by the in game editor with some simple upgrades. So did I just miss the simple setup or is there something a bit more complex I have to do. I can setup the starting ships resource of a player just not the non race AI ships.

 

Thanks for you help

11,344 views 9 replies
Reply #1 Top

i do believe the neutral ships are in the GalaxyScenarioDef.galaxyScenarioDef, you would have to probly make a new planet type and have them just on that particular planet though. unless you wanted several planets guarded by capital ships.

 

planetItemsTemplate
    templateName "Template:LocalMilitiaVeryWeak"
    subTemplates 0
    groups 2
        group
            condition
                type "PlanetOwnerIsMilitia"
                param ""
            owner "PlanetOwner"
            colonizeChance 0
            items 6
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Light"
                item "Tech:Module:CrystalExtractor"
                item "Tech:Module:MetalExtractor"
                item "Tech:Module:GaussDefense"
        group
            condition
                type "NoPlanetOwner"
                param ""
            owner "RandomMilitia"
            colonizeChance 0
            items 2
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Siege"

is an example of the template in that file that affects what is at a given planet altho its just a segment and not the fill ting so some information is missing.

Reply #2 Top

Is it possible to make my own template file that would load from that screen. an example would be Template:LocalMilitiaSpecial

Also what settings do you use to get the plant pre-colonized by the militia? Always, noowner, make a player called Militia? Not sure I get the ships but it is an empty planet no structures in orbit.

 

Reply #3 Top

orbitBodyType   
    typeName "MagneticCloud"
    entityDefName "PlanetMagneticCloud"
    defaultTemplateName ""                               
orbitBodyType
    typeName "Wormhole"
    entityDefName "PlanetWormhole"

that is the actual orbital body type (like urban, terran, etc) that holds the mesh.

planetItemTypeCount 97
planetItemType
    designName "Phase:Module:Cannon"
    entityDefName "PLANETMODULE_PHASEORBITALCANNON"
planetItemType
    designName "Phase:Module:CapitalShipFactory"
    entityDefName "PLANETMODULE_PHASEORBITALCAPITALSHIPFACTORY"
planetItemType
    designName "Phase:Module:CombatLab"
    entityDefName "PLANETMODULE_PHASEORBITALCOMBATLABORATORY"

list all planet moduals/ships that can possible be in the orbit of a planet.

planetItemsTemplateCount 25
planetItemsTemplate
    templateName "Empty"
    subTemplates 0
    groups 0       
planetItemsTemplate
    templateName "Template:DefaultHomePlanetSetup"
    subTemplates 0
    groups 3
        group
            condition
                type "PlanetOwnerIsRace"
                param "Tech"
            owner "PlanetOwner"
            colonizeChance 1
            items 3
                item "Tech:Module:FrigateFactory"
                item "Tech:Frigate:Constructor"
                item "Tech:Frigate:Constructor"
        group
            condition
                type "PlanetOwnerIsRace"
                param "Psi"
            owner "PlanetOwner"
            colonizeChance 1
            items 3       
                item "Psi:Module:FrigateFactory"
                item "Psi:Frigate:Constructor"
                item "Psi:Frigate:Constructor"
        group
            condition
                type "PlanetOwnerIsRace"
                param "Phase"
            owner "PlanetOwner"
            colonizeChance 1
            items 3
                item "Phase:Module:FrigateFactory"
                item "Phase:Frigate:Constructor"
                item "Phase:Frigate:Constructor"
planetItemsTemplate
    templateName "Template:DefaultStart_Terran"
    subTemplates 2
        template "Template:DefaultHomePlanetSetup"
        template "Template:LocalMilitia_Terran"
    groups 0
planetItemsTemplate
    templateName "Template:DefaultStart_Desert"
    subTemplates 2
        template "Template:DefaultHomePlanetSetup"
        template "Template:LocalMilitia_Desert"
    groups 0
planetItemsTemplate
    templateName "Template:DefaultStart_Volcanic"
    subTemplates 2
        template "Template:DefaultHomePlanetSetup"
        template "Template:LocalMilitia_Volcanic"
    groups 0
planetItemsTemplate
    templateName "Template:DefaultStart_Asteroid"
    subTemplates 2       
        template "Template:DefaultHomePlanetSetup"
        template "Template:LocalMilitia_Asteroid"
    groups 0
planetItemsTemplate
    templateName "Template:DefaultStart_DeadAsteroid"
    subTemplates 1
        template "Template:LocalMilitia_DeadAsteroid"
    groups 0
planetItemsTemplate
    templateName "Template:DefaultStart_GasGiant"
    subTemplates 1
        template "Template:LocalMilitia_GasGiant"
    groups 0
planetItemsTemplate
    templateName "Template:DefaultStart_PlasmaStorm"
    subTemplates 1
        template "Template:LocalMilitia_PlasmaStorm"
    groups 0
planetItemsTemplate
    templateName "Template:DefaultStart_Ice"
    subTemplates 2
        template "Template:DefaultHomePlanetSetup"
        template "Template:LocalMilitia_Ice"
    groups 0
planetItemsTemplate
    templateName "Template:LightStart"
    subTemplates 2
        template "Template:DefaultHomePlanetSetup"
        template "Template:LocalMilitiaMedium"
    groups 3
        group
            condition
                type "PlanetOwnerIsRace"
                param "Tech"
            owner "PlanetOwner"
            colonizeChance 1
            items 5
                item "Tech:Frigate:Scout"
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Light"
        group
            condition
                type "PlanetOwnerIsRace"
                param "Psi"
            owner "PlanetOwner"
            colonizeChance 1
            items 6
                item "Psi:Frigate:Scout"
                item "Psi:Frigate:Light"
                item "Psi:Frigate:Light"
                item "Psi:Frigate:Light"
                item "Psi:Frigate:Light"
                item "Psi:Frigate:Light"
        group
            condition
                type "PlanetOwnerIsRace"
                param "Phase"
            owner "PlanetOwner"
            colonizeChance 1
            items 4
                item "Phase:Frigate:Scout"
                item "Phase:Frigate:Light"
                item "Phase:Frigate:Light"
                item "Phase:Frigate:Light"
planetItemsTemplate
    templateName "Template:LocalMilitiaVeryWeak"
    subTemplates 0
    groups 2
        group
            condition
                type "PlanetOwnerIsMilitia"
                param ""
            owner "PlanetOwner"
            colonizeChance 0
            items 6
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Light"
                item "Tech:Module:CrystalExtractor"
                item "Tech:Module:MetalExtractor"
                item "Tech:Module:GaussDefense"
        group
            condition
                type "NoPlanetOwner"
                param ""
            owner "RandomMilitia"
            colonizeChance 0
            items 2
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Siege"
planetItemsTemplate
    templateName "Template:LocalMilitiaVeryWeakUncolonizable"
    subTemplates 0
    groups 1
        group
            condition
                type "Always"
                param ""
            owner "Pirate"
            colonizeChance 1
            items 2
                item "Pirate:Frigate:Scout"
                item "Pirate:Frigate:AntiFighter"
planetItemsTemplate
    templateName "Template:LocalMilitiaWeak"
    subTemplates 0
    groups 5
        group
            condition
                type "PlanetOwnerIsMilitia"
                param ""
            owner "PlanetOwner"
            colonizeChance 0
            items 6
                item "Tech:Frigate:Light"
                item "Tech:Frigate:AntiFighter"
                item "Tech:Frigate:Siege"
                item "Tech:Module:GuassDefense"
                item "Tech:Module:MetalExtractor"
                item "Tech:Module:CrystalExtractor"
        group
            condition
                type "PlanetOwnerIsMilitiaWithChance"
                param ".5"
            owner "PlanetOwner"
            colonizeChance 0
            items 4
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Light"   
                item "Tech:Frigate:Light"   
                item "Tech:Frigate:AntiFighter"   
        group
            condition
                type "PlanetOwnerIsMilitiaWithChance"
                param ".5"
            owner "PlanetOwner"
            colonizeChance 0
            items 3
                item "Tech:Module:GuassDefense"
                item "Tech:Module:GuassDefense"                           
                item "Tech:Module:GuassDefense"                           
        group
            condition
                type "NoPlanetOwner"
                param ""
            owner "RandomMilitia"
            colonizeChance 0
            items 3
                item "Tech:Frigate:Light"
                item "Tech:Frigate:AntiFighter"
                item "Tech:Frigate:Siege"
        group
            condition
                type "NoPlanetOwnerWithChance"
                param ".5"
            owner "RandomMilitia"
            colonizeChance 0
            items 2
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Light"
planetItemsTemplate
    templateName "Template:LocalMilitiaMedium"
    subTemplates 0
    groups 6
        group
            condition
                type "PlanetOwnerIsMilitia"
                param ""
            owner "PlanetOwner"
            colonizeChance 0
            items 10
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Light"
                item "Tech:Frigate:AntiFighter"
                item "Tech:Frigate:Siege"
                item "Tech:Module:GaussDefense"
                item "Tech:Module:GaussDefense"
                item "Tech:Module:GaussDefense"
                item "Tech:Module:HangarDefense"
                item "Tech:Module:CrystalExtractor"
                item "Tech:Module:MetalExtractor"
        group
            condition
                type "PlanetOwnerIsMilitiaWithChance"
                param ".5"
            owner "PlanetOwner"
            colonizeChance 0
            items 5
                item "Tech:Frigate:LongRange"
                item "Tech:Frigate:LongRange"
                item "Tech:Frigate:AntiFighter"
                item "Tech:Module:GaussDefense"
                item "Tech:Module:GaussDefense"               
        group
            condition
                type "PlanetOwnerIsMilitiaWithChance"
                param ".5"
            owner "PlanetOwner"
            colonizeChance 0
            items 4
                item "Tech:Frigate:Siege"
                item "Tech:Frigate:Siege"
                item "Tech:Frigate:AntiFighter"   
                item "Tech:Module:HangarDefense"               
        group
            condition
                type "NoPlanetOwner"
                param ""
            owner "RandomMilitia"
            colonizeChance 0
            items 4
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Light"
                item "Tech:Frigate:AntiFighter"
                item "Tech:Frigate:Siege"
        group
            condition
                type "NoPlanetOwnerWithChance"
                param ".5"
            owner "RandomMilitia"
            colonizeChance 0
            items 3
                item "Tech:Frigate:LongRange"
                item "Tech:Frigate:LongRange"
                item "Tech:Frigate:AntiFighter"
        group
            condition
                type "NoPlanetOwnerWithChance"
                param ".5"
            owner "RandomMilitia"
            colonizeChance 0
            items 3
                item "Tech:Frigate:Siege"
                item "Tech:Frigate:Siege"
                item "Tech:Frigate:AntiFighter"
planetItemsTemplate
    templateName "Template:LocalMilitiaStrong"
    subTemplates 0
    groups 10
        group
            condition
                type "PlanetOwnerIsMilitia"
                param ""
            owner "PlanetOwner"
            colonizeChance 0
            items 10
                item "Tech:Frigate:Light"
                item "Tech:Frigate:LongRange"
                item "Tech:Frigate:AntiFighter"
                item "Tech:Frigate:Heavy"
                item "Tech:Frigate:Heavy"
                item "Tech:Module:GaussDefense"       
                item "Tech:Module:GaussDefense"                                                       
                item "Tech:Module:HangarDefense"       
                item "Tech:Module:MetalExtractor"                                                       
                item "Tech:Module:MetalExtractor"                                                       
        group
            condition
                type "PlanetOwnerIsMilitiaWithChance"
                param "0.3"
            owner "PlanetOwner"
            colonizeChance 0
            items 5
                item "Tech:Frigate:LongRange"
                item "Tech:Frigate:LongRange"
                item "Tech:Frigate:Heavy"
                item "Tech:Module:GaussDefense"                       
                item "Tech:Module:HangarDefense"                       
        group
            condition
                type "PlanetOwnerIsMilitiaWithChance"
                param "0.3"
            owner "PlanetOwner"
            colonizeChance 0
            items 8
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Heavy"
                item "Tech:Module:HangarDefense"                       
        group
            condition
                type "PlanetOwnerIsMilitiaWithChance"
                param "0.3"
            owner "PlanetOwner"
            colonizeChance 0
            items 5
                item "Tech:Frigate:AntiFighter"
                item "Tech:Frigate:AntiFighter"
                item "Tech:Frigate:AntiFighter"
                item "Tech:Frigate:Heavy"
                item "Tech:Module:GaussDefense"                       
        group
            condition
                type "PlanetOwnerIsMilitiaWithChance"
                param "0.3"
            owner "PlanetOwner"
            colonizeChance 0
            items 5
                item "Tech:Frigate:Siege"
                item "Tech:Frigate:Siege"
                item "Tech:Frigate:Heavy"
                item "Tech:Frigate:Heavy"
                item "Tech:Module:HangarDefense"                   
        group
            condition
                type "NoPlanetOwner"
                param ""
            owner "RandomMilitia"
            colonizeChance 0
            items 5
                item "Tech:Frigate:Light"
                item "Tech:Frigate:LongRange"
                item "Tech:Frigate:AntiFighter"
                item "Tech:Frigate:Heavy"
                item "Tech:Frigate:Siege"
        group
            condition
                type "NoPlanetOwnerWithChance"
                param "0.3"
            owner "RandomMilitia"
            colonizeChance 0
            items 3
                item "Tech:Frigate:Light"
                item "Tech:Frigate:LongRange"
                item "Tech:Frigate:LongRange"
        group
            condition
                type "NoPlanetOwnerWithChance"
                param "0.3"
            owner "RandomMilitia"
            colonizeChance 0
            items 5
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Siege"
                item "Tech:Frigate:Siege"
        group
            condition
                type "NoPlanetOwnerWithChance"
                param "0.3"
            owner "RandomMilitia"
            colonizeChance 0
            items 4
                item "Tech:Frigate:AntiFighter"
                item "Tech:Frigate:AntiFighter"
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Heavy"
        group
            condition
                type "NoPlanetOwnerWithChance"
                param "0.3"
            owner "RandomMilitia"
            colonizeChance 0
            items 4
                item "Tech:Frigate:AntiFighter"
                item "Tech:Frigate:Light"
                item "Tech:Frigate:Siege"
                item "Tech:Frigate:Heavy"
planetItemsTemplate
    templateName "Template:LocalMilitia_Terran"
    subTemplates 1
        template "Template:LocalMilitiaStrong"
    groups 0       
planetItemsTemplate
    templateName "Template:LocalMilitia_Desert"
    subTemplates 1
        template "Template:LocalMilitiaStrong"
    groups 0
planetItemsTemplate
    templateName "Template:LocalMilitia_Volcanic"
    subTemplates 1
        template "Template:LocalMilitiaMedium"
    groups 0
planetItemsTemplate
    templateName "Template:LocalMilitia_Asteroid"
    subTemplates 1
        template "Template:LocalMilitiaVeryWeak"
    groups 0
planetItemsTemplate
    templateName "Template:LocalMilitia_DeadAsteroid"
    subTemplates 1
        template "Template:LocalMilitiaVeryWeak"
    groups 0
planetItemsTemplate
    templateName "Template:LocalMilitia_GasGiant"
    subTemplates 1
        template "Template:LocalMilitiaVeryWeakUncolonizable"
    groups 0
planetItemsTemplate
    templateName "Template:LocalMilitia_PlasmaStorm"
    subTemplates 1
        template "Template:LocalMilitiaVeryWeakUncolonizable"
    groups 0
planetItemsTemplate
    templateName "Template:LocalMilitia_Ice"
    subTemplates 1
        template "Template:LocalMilitiaMedium"
    groups 0
planetItemsTemplate
    templateName "Template:PirateBase"
    subTemplates 0
    groups 1
        group
            condition
                type "Always"
                param ""
            owner "Pirate"
            colonizeChance 1
            items 52
                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:Frigate:Scout"
                item "Pirate:Frigate:Siege"
                item "Pirate:Frigate:Siege"
                item "Pirate:Frigate:Siege"
                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 "Pirate:Module:GaussDefense"       
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"       
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"       
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"
                item "Pirate:Module:GaussDefense"

 

is all the current planet loadouts. it is posible to add in new templates to this. just make sure you have the new items listed throught the entire file. (if you make a new planet, make sure its in the planet template), if you add new custom ships, make sure you add them to the modual/ship template, as for the actually combining them, its easy to do, just make sure you list the right numbers (as you see, there is a number of templates for each section, as well as the number of items in each template). as for the new player part, you could try compying something like the pirates but that would require quite a bit more than just modifying this single file and its a little out of my league.

 

 

 

+1 Loading…
Reply #4 Top

Ok I think I have at lest some direction now. I’m really just trying to make planet hard to capture but worth it. It sounds like it won’t be too hard. Thank you.

Reply #5 Top

lol looks can be decieveing my friend, this will take hours and hours of work to pull off properly. best to ask if you have any other concerns, there are moders out there who have been doing this a lot longer than i. most of the stuf i know im a bit rusty on since its been a long time sicne ive made a actualy complete mod (altho i making my own mods again, because i find its fun). but ya, if your lucky someone like Annatar11 or DANMAN3712 will help you, who have started moding around the same time as i but have stuck at it when i stoped playing sins.

Reply #6 Top

I guess an easy way to explain it is i want to be able to in forge add the template that i built: "Template:LocalMilitiaSuper"

I want it A: colonize the planet with militia or pirates
B: Add a group of stations
C: Added a group of ships

 This shouldn't be that hard but every time i edit the GalaxyScenarioDef.galaxyScenarioDef, forge won't open and crashes is there a giud to editing it?

 

Reply #7 Top

i dont use galixt forge unfornately. but ya, make sure you didnt mess up any of the lines. keep in mind, in the galixy file, there is a number to each entity you add (be it planets, ships, anything of the sort) make sure you didnt miss type anything also, the smalles little error can cause that to crash. as for getting new content into galixy forge, if i remember corectly its add the GalaxyScenarioDef.galaxyScenarioDef to the galixy forge foldure (for anything more detailed someone elce would have to answer)

Reply #8 Top

for ading a group of ships to a particular template you would do this

planetItemsTemplate
    templateName "Template:LocalMilitiaStrong"
    subTemplates 0
    groups 10  <----- make sure that all numbers like these are all the same as the number of 
  "groups" or what ever it is that you edit are the same. also, make sure there are no spaces.

     group                                           
            condition
                type "PlanetOwnerIsMilitia"
                param ""
            owner "PlanetOwner"
            colonizeChance 0
            items 10  <----- make sure this is the same number as the total ammount of ships
                item "Tech:Frigate:Light"
                item "Tech:Frigate:LongRange"
                item "Tech:Frigate:AntiFighter"   <----- add the ship or station here, keep in mind these

are buildings and not planets.
                item "Tech:Frigate:Heavy"       <---- add multiple for a bigger group   
                item "Tech:Frigate:Heavy"
                item "Tech:Module:GaussDefense"       
                item "Tech:Module:GaussDefense"                                                       
                item "Tech:Module:HangarDefense"        <--- example of a modual (ie, a station)
                item "Tech:Module:MetalExtractor"                                                       
                item "Tech:Module:MetalExtractor"   

 

planetItemTypeCount 97  <----this is the number of current objects (wich you can choose from for planets)
planetItemType
    designName "Phase:Module:Cannon"   <---- the description of the .entity file(altho im not sure exactly how it works)
    entityDefName "PLANETMODULE_PHASEORBITALCANNON"  <----- is the .entity file that you want to add

as far as the pirate/milita goes, that depends on who you make the owner. im not 100% sure about adding in new planets, you can inquire DANMAN3712 about it since he took over the planet mod. Im sure if you pm him he wouldnt mind helping out further.

                                                   

Reply #9 Top

thanks for all your help!