Research to increas psionic surge/desintegrator

I recently tried to create researches that increase the damage of the Advent and Vasari Starbases unique weapons. While - after a lot of trying, experimenting and learning - I finally managed to get the new research for the advent into the game without it crashing, it still doesn't increase the damage.

Now for a more detailed describtion of what I did:

I copied RESEARCHSUBJECT_WEAPONDAMAGE_TECHBEAM0.entity, renamed it into RESEARCHSUBJECT_WEAPONDAMAGE_SPIRITBLADE0.entity and replaced the "BEAM" entry in linkedWeaponClass with "SPIRITBLADE" (as it can be found in PsiStarbase.entity).

Then I changed the window location into an empty spot in the Advent Techtree, put according new lines into Psi_player.entity and entity.manifest and made new entries in the English.str.

The research shows up in the right spot, has the correct name and can be researched, but instead of increasing only the damage of the Psionic Surge, it increases the damage of all weapons. Not just the ones of the Starbase, but also the ones on beam platforms and ships.

Anyone know why the game does that, and how to make the research only increase the damage of the psi surge?

5,218 views 3 replies
Reply #1 Top

Can you paste the entire research file?

Reply #2 Top

my guess (this is including info from another thread) that when you converted the file to bin the convertdata could not process 'spiritblade' value and replaced it with 'invalid' weapon type which affects all weapons for the race.

harpo

 

Reply #3 Top

I found the problem....

Since I just copy/pasted the word Spiritblade from somewhere, I didn't check wether it was spelled correctly, but apprerently the source from which I copied it was misspelled as Spritblade.

Every line I wrote myself I checked three times, but since I just copied that one word from somewhere else I didn't check that. Now that it is spelled correctly, it's working as supposed, both for the Advent and Vasari Starbases.

In case you are still interrested in seeing the research file, here it is (in case you wonder about the high cost and 4 levels, I made it to fit into Mad Science). The Vasari one is pretty much the same but instead of SPIRITBLADE it has the CHAOSBOLT as linkedWeaponClass.

TXT
entityType "ResearchSubject"
hudIcon "HUDICON_RESEARCHSUBJECT_WEAPONIGNORESHIELDS_PHASEMISSILE1"
smallHudIcon "HUDICON_RESEARCHSUBJECT_WEAPONIGNORESHIELDS_PHASEMISSILE1"
infoCardIcon ""
NameStringID "IDS_RESEARCHSUBJECT_WEAPONDAMAGE_SPIRITBLADE0_NAME"
DescriptionStringID "IDS_RESEARCHSUBJECT_WEAPONDAMAGE_SPIRITBLADE0_DESCRIPTION"
researchWindowLocation
    block 0
    pos [ 0 , 8 ]
ResearchField "Defense"
Prerequisites
    NumResearchPrerequisites 0
MinimumArtifactLevel -1
BaseUpgradeTime 50.000000
PerLevelUpgradeTime 5.000000
BaseCost
    credits 1200.000000
    metal 200.000000
    crystal 325.000000
PerLevelCostIncrease
    credits 100.000000
    metal 25.000000
    crystal 25.000000
Tier 2
onlyWorksIfTierLabsExist FALSE
MaxNumResearchLevels 4
priority 1.000000
researchBoolModifiers 0
researchFloatModifiers 1
researchModifier
    modifierType "WeaponDamageAdjustment"
    baseValue 0.000000
    perLevelValue 0.050000
    linkedWeaponClass "SPIRITBLADE"
artifactPicture ""