Neutral Starbases

Is there any way to make a starbase Neutral, so that it can be placed in neutral wells, and be capturable by the CaptureNeutralEntity ability?

6,862 views 9 replies
Reply #1 Top

It is possible yes, got the code guru for Distant Stars (a great mod) working on its actually workings

Reply #2 Top

Well, if you could let me know how it's done, I'd be really appreciative... It's integral to our mod...

Reply #3 Top

You can change the number/types of frigates that are spawned when the game starts.  I don't remember where this infromation is but you can add starbase constructors and the neutrals will build them.

Reply #5 Top

Well, first you'll need to get the starbase to spawn in a gravity well. I believe this is done by making a new constructor ship with a make starbase ability that is free and set to always autocast. I'm not sure how to make it capturable though.

Reply #6 Top

Should be able to give it an ability that applies "CanBeCaptured" to itself.

Reply #7 Top

Ok I've not actually had chance to test this as of yet but as far as im aware it should be doable, I've been doing similar things in the Distant Stars mod, and this one an idea I had toyed with introducing at a later date.

First things first, you'll need to create:

- A new Frigate class vessel to spawn the ship from, or atleast a copy and paste of an old frigate
- The new frigate needs a new ability, lets call it "AbilityNeutralStarbaseSpawner" for now
- The new ability must auto cast upon the ships spawning in a neutral gravity well, so i'd suggest setting the skill to passive so it can't not spawn the starbase.
- Now comes the tricky part: If the starbase is causing a minidump in this form its due to it not being "owned" and it will need to be spawned for a race, specifically you'll need to add in a new "sub-race" or use an existing sub-race referenced within the GalaxyScenarioDef file (near the bottom)
- If you're still encountering issues like this (you shouldnt do due to starbases being able to be spawned in any gravity well), the ownership isnt taking effect and will need the planet/neutral sector to be owned by the same sub-race your obviously spawning it for
- To make the starbase capturable you'll need to add a buff to it (or edit a buff, i'd suggest creating a new Destabilize Hyperspace ability and adding in the captureable tag to it (duplicate the previous and add in a new buff)) depending on how you want to do this you can either make it a one time capture, permanent capture, or a timed window where it is re-capturable. You could also make the capturing ability "channeled", your choice :)

Also a big important note here: The starbases are very very fickle in spawning for specific races, so make sure the race that owns the starbase spawner, is referencing the correct sub-race, for example dont go trying to spawn a Vasari Starbase via the ability (starBaseType "StarBasePhase") and reference the TECH sub-race, this will I can almost guarantee cause an instant-minidump.

Hope this helps, oh and dont forget to add the appropriate files in to the manifests.

Reply #8 Top

But I can't say, make sure a starbase is in neutral territory on startup, fuctioning EXACTLY like neutral extractors?

Reply #9 Top

I was working on a mod with a friend and we had neutral, capturable starbases spawn in neutral systems at the start of the game.  Depending upon the starbase you create, it can be pretty nasty.  The upgrades will reset when the starbase is taken and anyone can capture it at anytime, just like the extractors.  Also, if the costs are set to 0, the neutrals should upgrade it.