Making spawn frigate - unknown error

What on earth does this mean:

Assert @ c:\gs\entrenchment\CodeSource\Engine/DataStructures/DynamicVector.h(172)

i >= 0

 

I`m trying to implement an Imperial Gunboat as a create frigate ability.

the ability works, but something is wrong with the actual gunboat.entity file. I get the above error on ability activation.

 

Currently i`m using some basic abilities on the gunboat, but i intend to implement ion torpedos so that a carrier can deploy gunboats to a neighbouring system, disable a capitalship and then launch the main attack.

 

UPDATE:

I can add that it is not possible to convert the gunboat.entity. While dev.exe is not picking up on anything when i load the game, the conversion software is obviously noticing something wrong.

 

Below is the gunboat.entity file (proof of concept- not the intended product)

TXT
entityType "Frigate"
defaultAutoAttackRange "None"
defaultAutoAttackOn TRUE
prefersToFocusFire TRUE
usesFighterAttack FALSE
autoJoinFleetDefault TRUE
canBomb FALSE
typeCount 1
frigateRoleType "Light"
statCountType "FrigateSpawnedByAbility"
mainViewIcon "MAINVIEWICON_FRIGATE_TURRETCOMBAT"
picture "PICTURE_FRIGATE_TURRETCOMBAT"
nameStringID "IDS_SQUAD_IMPASSAULTGUNBOAT_NAME"
descStringID "IDS_SQUAD_IMPASSAULTGUNBOAT_DESC"
counterDescriptionStringID "IDS_COUNTERDESC_FIGHTER_BOMBER"
basePrice
    credits 0.000000
    metal 0.000000
    crystal 0.000000
slotCount 1.000000
BuildTime 1.000000
hasLevels TRUE
ExperiencePointsForDestroying
    Level:0 20.000000
    Level:1 30.000000
    Level:2 40.000000
MaxHullPoints
    Level:0 750.000000
    Level:1 1000.000000
    Level:2 1250.000000
MaxShieldPoints
    Level:0 120.000000
    Level:1 140.000000
    Level:2 160.000000
HullPointRestoreRate
    Level:0 1.000000
    Level:1 1.000000
    Level:2 1.000000
ShieldPointRestoreRate
    Level:0 1.000000
    Level:1 1.000000
    Level:2 1.000000
BaseArmorPoints
    Level:0 3.000000
    Level:1 4.000000
    Level:2 5.000000
maxMitigation
    Level:0 0.600000
    Level:1 0.600000
    Level:2 0.600000
Prerequisites
    NumResearchPrerequisites 0
numRandomDebrisLarge 0
numRandomDebrisSmall 7
numSpecificDebris 0
armorType "Light"
hudIcon "HUDICON_SQUADTECHBOMBER"
smallHudIcon "HUDICONSMALL_SQUADTECHBOMBER"
infoCardIcon ""
minZoomDistanceMult 1.500000
NumWeapons 2
Weapon
    WeaponType "Projectile"
    damageEnums
        AttackType "ANTIVERYLIGHT"
        DamageAffectType "AFFECTS_SHIELDS_AND_HULL"
        DamageApplyType "BACKLOADED"
        DamageType "ENERGY"
        WeaponClassType "LASERTECH"
    DamagePerBank:FRONT 1.000000
    DamagePerBank:BACK 0.000000
    DamagePerBank:LEFT 0.000000
    DamagePerBank:RIGHT 0.000000
    Range 6000.000000
    PreBuffCooldownTime 3.000000
    CanFireAtFighter TRUE
    SynchronizedTargeting FALSE
    PointStaggerDelay 0.200000
    TravelSpeed 4500.000000
    Duration 0.000000
    fireConstraintType "CanAlwaysFire"
    WeaponEffects
        weaponType "Projectile"
        burstCount 3
        burstDelay 0.100000
        muzzleEffectName "Weapon_TechSupportAutoCannonLight_Muzzle"
        muzzleSoundMinRespawnTime 1.000000
        muzzleSounds
            soundCount 2
            sound "WEAPON_EMPIRE_BLASTER_MUZZLE"
            sound "WEAPON_EMPIRE_BLASTER_MUZZLE_ALT"
        hitEffectName "WEAPON_LASER_HIT"
        hitHullEffectSounds
            soundCount 1
            sound "WEAPONIMPACT_PHYSICALLIGHT_HITHULL"
        hitShieldsEffectSounds
            soundCount 1
            sound "WEAPONIMPACT_GENERICLIGHT_HITSHIELDS"
        projectileTravelEffectName "WEAPON_GREEN_BLASTER_TRAVEL"
Weapon
    WeaponType "Missile"
    damageEnums
        AttackType "ANTIVERYHEAVY"
        DamageAffectType "AFFECTS_SHIELDS_AND_HULL"
        DamageApplyType "BACKLOADED"
        DamageType "PHYSICAL"
        WeaponClassType "PHASEMISSILE"
    DamagePerBank:FRONT 50.000000
    DamagePerBank:BACK 0.000000
    DamagePerBank:LEFT 0.000000
    DamagePerBank:RIGHT 0.000000
    Range 3000.000000
    PreBuffCooldownTime 30.000000
    CanFireAtFighter FALSE
    SynchronizedTargeting FALSE
    PointStaggerDelay 0.200000
    TravelSpeed 1000.000000
    Duration 0.000000
    fireConstraintType "CanAlwaysFire"
    WeaponEffects
        weaponType "Missile"
        burstCount 1
        burstDelay 0.000000
        muzzleEffectName "Weapon_PhaseSupportMissileMedium_Muzzle"
        muzzleSoundMinRespawnTime 0.100000
        muzzleSounds
            soundCount 1
            sound "TORPEDO_LAUNCH_H"
        hitEffectName "PROTONTORPEDO"
        hitHullEffectSounds
            soundCount 1
            sound "EXP_REBEL_FIGHTER_3.ogg"
        hitShieldsEffectSounds
            soundCount 2
            sound "EXP_REBEL_FIGHTER_1.ogg"
            sound "EXP_REBEL_FIGHTER_2.ogg"
        missileTravelEffectName "Weapon_PhaseSupportMissileMedium_Travel"
        missileStartTurningDistance 10.000000
        missileSlowTurnRate 10.141593
        missileMaxSlowTurnTime 1.000000
m_weaponIndexForRange 0
firingAlignmentType "Default"
TargetCountPerBank:FRONT 1
TargetCountPerBank:BACK 0
TargetCountPerBank:LEFT 0
TargetCountPerBank:RIGHT 0
canOnlyTargetStructures FALSE
hasWeaponLevels TRUE
weaponDamageMult
    Level:0 1.000000
    Level:1 1.200000
    Level:2 1.400000
weaponCooldownMult
    Level:0 1.000000
    Level:1 0.900000
    Level:2 0.800000
mass 2000.000000
ShieldMeshName "Shield_FrigateTurretCombat"
renderShield TRUE
maxAccelerationLinear 750.000000
maxAccelerationStrafe 200.000000
maxDecelerationLinear 2000.000000
maxAccelerationAngular 300.000000
maxDecelerationAngular 450.000000
maxSpeedLinear 1500.000000
maxRollRate 60.000000
maxRollAngle 89.000000
squadTypeEntityDef:0 ""
squadAntiMatterCost:0 0.000000
squadTypeEntityDef:1 ""
squadAntiMatterCost:1 0.000000
squadTypeEntityDef:2 ""
squadAntiMatterCost:2 0.000000
squadTypeEntityDef:3 ""
squadAntiMatterCost:3 0.000000
maxNumCommandPoints 0
NumSoundsFor:ONATTACKORDERISSUED 2
SoundID "CAPITALSHIP_TECHCARRIER_ONATTACKORDERISSUED_0"
SoundID "CAPITALSHIP_TECHCARRIER_ONATTACKORDERISSUED_1"
NumSoundsFor:ONCREATION 0
NumSoundsFor:ONGENERALORDERISSUED 0
NumSoundsFor:ONSELECTED 1
SoundID "CAPITALSHIP_TECHCARRIER_ONSELECTED_0"
NumSoundsFor:ONSTARTPHASEJUMP 0
MeshNameInfoCount 1
MeshNameInfo
    meshName "BOMBER_IMPASSAULTGUNBOAT"
    criteriaType "None"
meshNameIncreasedEffectName ""
meshNameDecreasedEffectName ""
exhaustParticleSystemName "EXHAUSTVSMALL"
ExplosionName "Fighter1"
exhaustTrailTextureName "EXHAUSTTRAILDIM"
exhaustTrailWidth 0.500000
HyperspaceChargingSoundID "HYPERSPACE_CHARGEUP"
HyperspaceTravelSoundID "HYPERSPACE_TRAVEL"
EngineSoundID "ENGINE_TECHCAPITALSHIP"
ability:0 "AbilitySabotageAntiMatter"
ability:1 "AbilityWarpScramble"
ability:2 "AbilityStasisWebifier"
ability:3 ""
ability:4 ""
MaxAntiMatter 300.000000
AntiMatterRestoreRate 0.500000
cargoType "Invalid"
maxCargoCapacity 0.000000
formationRank 0
minShadow 0.000000
maxShadow 0.500000

5,284 views 4 replies
Reply #1 Top

Assert @ c:\gs\entrenchment\CodeSource\Engine/DataStructures/DynamicVector.h(172)

You placed / instead of \ after Engine.

Reply #2 Top

what you`re saying doesn`t make any sense.

 

The error message is computer generated- what you`re commenting is not something i wrote, but a software interpretation of something i did wrong..

 

I need to know what that interpretation means..

Reply #3 Top

It means you have a negative value somewhere in something associated with this where it isn't allowed.  Where exactly?  Good question.

Reply #4 Top

Somehow i made it work.. No idea how..

 

I moved the ability and the gunboat.entity from my test mod to the main mod- updated all pics and texture files and it worked.

 

Need to balance it properly and insert the intended abilities, but it works great.