From what you've mentioned this looks very nice. Making a Pirate mod crossed my mind the other day, but after think about all the different things I'd have to change, I was put off. Got a small addon cooking at the mo instead. Might try this tomorrow when I get a chance.I do have one question though which I'm trying to figure out myself. How did you add new research? I'm pretty sure I covered everything, but could you give a quick list of how you did it? I've added the strings, icons, and the research file itself, but it wouldn't show up. If you can't help I'll post a new thread, but I was hoping you could give me a hand. Cheers.
The research was added like so....
In the player file. (In the GameInfo)
for isntance I have the pirates player file - PlayerPirates.entity
Under the research section I added - entityDefName "RESEARCHSUBJECT_ARTIFACT_GALAXYTRAVELPIRATETWO"
(This is the upgrade Pirate version of the artifact, GalaxyTravel)
Now you open up RESEARCHSUBJECT_ARTIFACT_GALAXYTRAVELPIRATETWO.entity
(I based most of the code on the Artifact version)
Inside you will see things like...
researchWindowLocation
(This is where you want the icon at in the research window) block 1
pos [ 0 , 2 ]
ResearchField "NonCombat"
Prerequisites
(What prereqs you want for it, In this case they need GalaxyTravelPirate to be level 5 to unlock this) NumResearchPrerequisites 1
ResearchPrerequisite
Subject "RESEARCHSUBJECT_ARTIFACT_GALAXYTRAVELPIRATE"
Level 5
MinimumArtifactLevel -1
(I tell it that it needs no artifacts)BaseUpgradeTime 90.000000
(How long we want the upgrade base to be)PerLevelUpgradeTime 15.000000
(Every level add this much time to upgrade)BaseCost
(The cost of the base ugrade) credits 1600.000000
metal 0.000000
crystal 0.000000
PerLevelCostIncrease
(Cost increase per level) credits 600.000000
metal 0.000000
crystal 0.000000
Tier 0
(What tier to make it, by making it 0 it doesn't need but a single research station)onlyWorksIfTierLabsExist FALSE
MaxNumResearchLevels 5
(How many times it can be upgraded)priority 1.000000
researchBoolModifiers 1
(What the research changes)researchModifier
modifierType "AllowGalaxyTravel"
researchFloatModifiers 1
researchModifier
modifierType "HyperspaceBetweenSystemSpeedAdjustment"
baseValue 0.000000
perLevelValue 0.100000
artifactPicture "ArtifactPictureGalaxyTravel"
There really much to it besides modifying the basics. Most of the "custom" code I took here and there around the different files. in the GameInfo folder of the mod if you sort it by date, you can see the ones I modified. Just take a look at them and see how they differ
Rob