Page 2 of 2
Re: How to give a custom weapon to a custom enemy ship?
Posted: Wed Dec 24, 2014 12:27 pm
by R4V3-0N
Proud American Engi wrote:kartoFlane wrote:Well, like I said, you simply do it the same way you do it for player ships, so...
Code: Select all
<weaponList count="2" missiles="#">
<weapon name="WEAPON_1" />
<weapon name="WEAPON_2" />
</weaponList>
It may or may not work like that anymore -- as I said, I've tested this before the AE update.
I cant XML edit so I always use superluminal...
Well this guy tought you how to XML edit it in. Didn;t you say "Teach me" earlier?
Re: How to give a custom weapon to a custom enemy ship?
Posted: Wed Dec 24, 2014 4:15 pm
by kartoFlane
Oh well, it's a good point nonetheless, it made me notice that I didn't add that option to the editor...
Anyway, xml is all text, really. You can open .xml files with basic Notepad and make the changes you need, and save the file.
Re: How to give a custom weapon to a custom enemy ship?
Posted: Wed Dec 31, 2014 6:52 pm
by Abs
kartoFlane wrote:Well, like I said, you simply do it the same way you do it for player ships, so...
Code: Select all
<weaponList count="2" missiles="#">
<weapon name="WEAPON_1" />
<weapon name="WEAPON_2" />
</weaponList>
It may or may not work like that anymore -- as I said, I've tested this before the AE update.
Well, I finally got to the point where I can try this, and here are my results:
Working:
Code: Select all
<blueprintList name="KLINGON_WEAPONS">
<name>K_DISRUPTORS</name>
</blueprintList>
<shipBlueprint ....>
<weaponList missiles="20" count="2" load="KLINGON_WEAPONS" />
</shipBlueprint>
Not working:
Code: Select all
<shipBlueprint ....>
<weaponList missiles="20" count="2" />
<weapon name="K_DISRUPTORS" />
<weapon name="K_DISRUPTORS" />
</weaponList>
</shipBlueprint>
Abs
Re: How to give a custom weapon to a custom enemy ship?
Posted: Thu Jan 01, 2015 1:03 am
by RAD-82
Abs wrote:Not working:
Code: Select all
<shipBlueprint ....>
<weaponList missiles="20" count="2" />
<weapon name="K_DISRUPTORS" />
<weapon name="K_DISRUPTORS" />
</weaponList>
</shipBlueprint>
That's not working because you have an error in there; an extra slash closing the weaponList before the weapons are loaded. This method does work when error-free. It is what the default Rebel Rigger that the games uses does.
Code: Select all
<!---- Crash protection default ship blueprint. DO NOT REMOVE -->
<shipBlueprint name="DEFAULT" layout="rebel_squat" img="rebel_squat">
<class>Rebel Rigger</class>
<systemList>
<pilot power="1" room="0"/>
<oxygen power="1" room="2"/>
<shields power="2" room="4"/>
<engines power="2" room="7"/>
<weapons power="3" room="6"/>
<drones power="4" room="1"/>
</systemList>
<droneList count="2" drones="4">
<drone name="DEFENSE_1"/>
<drone name="DEFENSE_1"/>
</droneList>
<weaponList count="2" missiles="10">
<weapon name="LASER_HEAVY_1"/>
<weapon name="LASER_BURST_1"/>
</weaponList>
<health amount="10"/>
<maxPower amount ="15"/>
<crewCount amount = "3" class="human"/>
</ship>
</ship>? Well, the game does have some errors that it is capable of overlooking.

Re: How to give a custom weapon to a custom enemy ship?
Posted: Thu Jan 01, 2015 8:25 am
by Abs
Sunuvabeach. You're probably right! That extra slash indicates that it's a solo tag, and the game won't look for the actual closing tag. That explains why it kept on loading a Rebel Rigger. It's a good thing I posted my code, so that I could have the errors of my ways shown to me.

Thanks RAD-82!
Abs