kanesoban
3rd Sep 07, 8:45 AM
Helo
I'm trying to make the Hiigaran minelayer able to build one from two possible subsystems. As you can imagine, it dosen't works.
Here's what i've done so far:
-I added a new Hardpoint with HardED to hgn_minelayer.hod for the subsystem slot. I basically copied the hgn_carrier's "Generic 1" hardpoint. The only difference is, that since i don't want the subsystem to be visible i made Generic 1's position x=0 y=0 z=0.
- I dont want any other ship to be able to build these two subsystems, so i created a new buildfamily in family.lua called "Hgn_mine".
- I created the .subs files for the two new subsystems. Basically i copied another subsystem's .subs file, but i changed Buildfamily to "Mine_hgn". The two new subsystems are called "hgn_anticapshipmine.subs" and "hgn_antifightermine.subs"
- I added this line to hgn_minelayer.ship:
addAbility(NewShipType, "CanBuildShips", 1, "Mine_Hgn", "SubSystemModule")
And this line too:
StartShipHardPointConfig(NewShipType, "Generic 1", "HardpointGeneric1", "System", "Generic", "Destroyable", "", "Hgn_Anticapshipmine", "Hgn_Antifightermine")
- Finally i created the necessary directories, placed the files in them, and put the whole thing in /data/
And of course added -overrideBigFile to the shortcut.
I tried this out. The minelayer has a buildmenu for subsystems, but its empty. In the right bottom corner it is visible, that the minelayer has an empty module slot.
Now, anybody has any ideas what is wrong?
I'm trying to make the Hiigaran minelayer able to build one from two possible subsystems. As you can imagine, it dosen't works.
Here's what i've done so far:
-I added a new Hardpoint with HardED to hgn_minelayer.hod for the subsystem slot. I basically copied the hgn_carrier's "Generic 1" hardpoint. The only difference is, that since i don't want the subsystem to be visible i made Generic 1's position x=0 y=0 z=0.
- I dont want any other ship to be able to build these two subsystems, so i created a new buildfamily in family.lua called "Hgn_mine".
- I created the .subs files for the two new subsystems. Basically i copied another subsystem's .subs file, but i changed Buildfamily to "Mine_hgn". The two new subsystems are called "hgn_anticapshipmine.subs" and "hgn_antifightermine.subs"
- I added this line to hgn_minelayer.ship:
addAbility(NewShipType, "CanBuildShips", 1, "Mine_Hgn", "SubSystemModule")
And this line too:
StartShipHardPointConfig(NewShipType, "Generic 1", "HardpointGeneric1", "System", "Generic", "Destroyable", "", "Hgn_Anticapshipmine", "Hgn_Antifightermine")
- Finally i created the necessary directories, placed the files in them, and put the whole thing in /data/
And of course added -overrideBigFile to the shortcut.
I tried this out. The minelayer has a buildmenu for subsystems, but its empty. In the right bottom corner it is visible, that the minelayer has an empty module slot.
Now, anybody has any ideas what is wrong?