I hope this is the right place to post. I signed up just yesterday. Anyways i did a quick search and found a few guides (and tried guides first at a HW2 wiki site) But i am still having issues with modifying a subsystem.
This is the modified subsystem i am trying to add to the ship (its a customized battlecruiser. I am new to modding so i am still just playing around...for example the BC has 1mil HP xP but it's turning out to be quite fun so i want to try and mod more than just multiplayer maps, new ships and build menus.)
Here is the new Subsystem, Hgn_KaabiIonBeamTurretCode:StartShipHardPointConfig(NewShipType, "Weapon IonBeam 1", "Hardpoint_IonBeam1", "Weapon", "Innate", "Damageable", "Hgn_KaabiIonBeamTurret", "", "", "", "", "", "", "", "") StartShipHardPointConfig(NewShipType, "Weapon IonBeam 2", "Hardpoint_IonBeam2", "Weapon", "Innate", "Damageable", "Hgn_KaabiIonBeamTurret", "", "", "", "", "", "", "", "")
As you can see i have only changed the name, description, HP and file path to the weapon.
And finally, here is the weapon.Code:NewSubSystemType = StartSubSystemConfig() NewSubSystemType.displayedName = "Super Ion Cannon" NewSubSystemType.sobDescription = "Enhanced Ion Cannons Designed for Kaabi's Flagship." NewSubSystemType.tacticalIcon = "hexagon" NewSubSystemType.tacticalIconMinSize = 0.0035 NewSubSystemType.tacticalIconMinFadeSize = 0.0045 NewSubSystemType.tacticalIconMaxFadeSize = 0.008 NewSubSystemType.groupMergeSize = 0.001 NewSubSystemType.mouseOverMinFadeSize = 0.045 NewSubSystemType.mouseOverMaxFadeSize = 0.1 NewSubSystemType.maxhealth = 250000 NewSubSystemType.regentime = 250 NewSubSystemType.nlips = 0 NewSubSystemType.nlipsRange = 0 NewSubSystemType.nlipsFar = 0 NewSubSystemType.nlipsFarRange = 0 NewSubSystemType.meshRenderLimit = 0.004 NewSubSystemType.minimumZoomFactor = 0.68 NewSubSystemType.selectionLimit = 5000 NewSubSystemType.preciseATILimit = 5000 NewSubSystemType.selectionPriority = 37.5 NewSubSystemType.type = "Weapon" NewSubSystemType.typeString = "BCIonBeamTurret" NewSubSystemType.collateralDamage = 100 NewSubSystemType.inactiveTimeAfterDamage = 90 NewSubSystemType.activateHealthPercentage = 0.1 NewSubSystemType.costToBuild = 500 NewSubSystemType.timeToBuild = 35 NewSubSystemType.isResearch = 0 NewSubSystemType.visible = 1 LoadHODFile(NewSubSystemType, 1) NewSubSystemType.BuildFamily = "SubSystem_Hgn" NewSubSystemType.AttackFamily = "SubSystem" NewSubSystemType.DockFamily = "CantDock" NewSubSystemType.DisplayFamily = "SubSystemModule" NewSubSystemType.ArmourFamily = "SubSystemArmour" StartSubSystemWeaponConfig(NewSubSystemType, "Hgn_KaabiTurretedIonCannon", "Weapon_IonCan1", "Weapon_IonCan1")
Problem is, the game still crashes x.xCode:StartWeaponConfig(NewWeaponType, "AnimatedTurret", "InstantHit", "IonBeam_bc", "Normal", 0, 6000, 0, 6, 2, 0, 20, 0, 1, 15, 0, 0, 1, 1, 20, 20, 0.1, "Normal", 1, 0, 2000) AddWeaponResult(NewWeaponType, "Hit", "DamageHealth", "Target", 15000, 15000, "") AddWeaponResult(NewWeaponType, "Hit", "Push", "Target", -100, -100, "") setPenetration(NewWeaponType, 100, 1, { PlanetKillerArmour = 0, }, { SubSystemArmour = 0.3, }, { MediumArmour = 0.5, }) setAccuracy(NewWeaponType, 1, { Fighter = 0, }, { Corvette = 0, }, { munition = 0, }) setAngles(NewWeaponType, 20, -180, 180, -4, 60) setMiscValues(NewWeaponType, 0, 1) addAnimTurretSound(NewWeaponType, "Data:Sound/SFX/ETG/SPECIAL/SPECIAL_ABILITIES_TURRET_ON")
after 6 hours of guessing and trying to find files im missing, renaming files, ect...i think im about to give up for now ><
if someone notices anything wrong please let me know!


