Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Discuss and distribute tools and methods for modding. Moderator - Grognak
User avatar
NarnKar
Posts: 778
Joined: Thu Jun 19, 2014 4:24 pm

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby NarnKar » Sun Sep 27, 2015 7:52 am

Chrono Vortex wrote:I'm not sure what causes a ship to actually use those effects though, maybe the name in the blueprints?


Hardcoded in the blueprints. For example, if you overrode the Kestrel A, but your new ship was named <ship_ID>SHIP_NAME</ship_ID>, it wouldn't use engine effects. They're hardcoded to PLAYER_SHIP_HARD and PLAYER_SHIP_FED.
User avatar
kartoFlane
Posts: 1488
Joined: Mon Jan 14, 2013 10:20 pm

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby kartoFlane » Sun Sep 27, 2015 11:27 am

NarnKar wrote:
Chrono Vortex wrote:I'm not sure what causes a ship to actually use those effects though, maybe the name in the blueprints?


Hardcoded in the blueprints. For example, if you overrode the Kestrel A, but your new ship was named <ship_ID>SHIP_NAME</ship_ID>, it wouldn't use engine effects. They're hardcoded to PLAYER_SHIP_HARD and PLAYER_SHIP_FED.

Small correction: they're hardcoded to the .txt layout files' names, not the blueprint names themselves (if I recall correctly)
It is possible to tell the Kestrel to use a differently named layout file name, and use kestral.txt for your own ship, with custom engine jet graphics... I think.
Superluminal2 - a ship editor for FTL
zaphod_
Posts: 15
Joined: Thu Apr 30, 2015 10:08 pm

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby zaphod_ » Mon Sep 28, 2015 5:37 pm

I have an enemy ship (made in Superluminal2) that refuses to spawn with any weapons. Weapon lists do not work (custom or vanilla). Manually giving it weaponry also fails.

Code: Select all

<shipBlueprint name="REBEL_STEALTH" layout="rebel_stealthship" img="rebel_stealthship">
   <class>Rebel Stealthship</class>
   <minSector>1</minSector>
   <maxSector>2</maxSector>
   <systemList>
      <cloaking power="2" max="2" room="1" start="true" />
      <doors power="2" max="2" room="4" start="true" />
      <drones power="3" max="3" room="7" start="true" />
      <engines power="3" max="5" room="2" start="true" />
      <medbay power="1" max="1" room="8" start="true" />
      <oxygen power="1" max="2" room="3" start="true" />
      <pilot power="2" max="2" room="0" start="true" />
      <shields power="2" max="2" room="5" start="true" />
      <weapons power="3" max="4" room="6" start="true" />
   </systemList>
   <weaponSlots>4</weaponSlots>
   <droneSlots>2</droneSlots>
   <weaponList missiles="15" load="STEALTH_WEAPONS"/>
   <droneList drones="6" count="2">
      <drone name="BATTLE" />
      <drone name="REPAIR" />
   </droneList>
   <health amount="7" />
   <maxPower amount="16" />
   <crewCount amount="3" max="5" class="human" />
   <boardingAI>sabotage</boardingAI>
   <aug name="CLOAK_FIRE" />
</shipBlueprint>

Can anyone lend me a hand?
User avatar
kartoFlane
Posts: 1488
Joined: Mon Jan 14, 2013 10:20 pm

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby kartoFlane » Mon Sep 28, 2015 5:58 pm

You forgot to set the weapon count. This value specifies how many weapons your ship spawns with. It defaults to 0, hence your ship has no weapons.
Superluminal2 - a ship editor for FTL
zaphod_
Posts: 15
Joined: Thu Apr 30, 2015 10:08 pm

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby zaphod_ » Mon Sep 28, 2015 6:01 pm

kartoFlane wrote:You forgot to set the weapon count. This value specifies how many weapons your ship spawns with. It defaults to 0, hence your ship has no weapons.

Lifesaver. Thank you.
EDIT: Where do I set that count?
User avatar
RAD-82
Posts: 796
Joined: Sat Nov 09, 2013 12:16 am

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby RAD-82 » Mon Sep 28, 2015 9:37 pm

Lightwavers wrote:I copy pasted all the events with numbers

<choice req="ROCK_ARMOR_2" hidden="true">
<choice req="ADV_SCANNERS_2" hidden="true">
<choice req="ENERGY_SHIELD_2" hidden="true">

Certainly shouldn't add numbers to those.

<event>
<modifyPursuit amount="1"/>
</event>
<event load="WORMHOLE_COLLECTION_2"/>

I see you still doubling events in a few places like this, but I'm pretty sure this would just prevent the modifyPursuit from happening.

<event>
<text>A mantis ship emerges from the wormhole, and immediately decides that destroying your ship will be the best course of action.</text>
<ship load="MANTIS_FIGHT" hostile="true"/>
<event/> <-- remove
</event>

Still have an event in an event. That needs to be removed.

There is so much there to look at that I didn't do a very detailed look examination. If these errors above still don't fix your problems, I'd suggest starting over and add a little bit at a time, testing to see if it works before adding more.
Image
Junkyard has FTL mods, mostly ships and a few other things.
User avatar
stylesrj
Posts: 3644
Joined: Tue Jul 08, 2014 7:54 am

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby stylesrj » Mon Sep 28, 2015 10:50 pm

Is it possible to have an event where you can navigate out of a hazard? So let's say you get caught in an asteroid field, can there be an augment or event where you fly into a clearer part of space? Or you navigate out of that pulsar? Because I've seen hazards stack (the asteroid field & solar flare is beautiful) and an ASB can switch targets mid-game.

And if it's possible, can there be an outcome of a plasma storm where you get full reactor power yet the enemy still is penalised or vice-versa?
FearTheBlaziken
Posts: 46
Joined: Mon Feb 23, 2015 6:25 am

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby FearTheBlaziken » Tue Sep 29, 2015 2:23 am

Is it possible to make a Beam Weapon that doesn't do damage until all of the enemy's shields are gone?
Example - Damage: 4 Shield Piercing: -5 (Negative Levels exist in CE for Scatter Lasers)

Also Is it possible to make a Charge Flak?
Image

Given what I've done while others were not active, I can now say that I've polished the Polish Kit. Release coming soon, but not from me.
User avatar
stylesrj
Posts: 3644
Joined: Tue Jul 08, 2014 7:54 am

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby stylesrj » Tue Sep 29, 2015 3:05 am

FearTheBlaziken wrote:Is it possible to make a Beam Weapon that doesn't do damage until all of the enemy's shields are gone?
Example - Damage: 4 Shield Piercing: -5 (Negative Levels exist in CE for Scatter Lasers)


Yup. You put it in the negatives and that laser will only do damage on lack of shields. I haven't tested this myself but one of my ships (The Etwahl) has it.

Also Is it possible to make a Charge Flak?


Yes it's possible. The Arwing by Gencool sort of does that with the Twin Lasers. Shoots like Flak, can hold charges and it cools down quicker with each shot.
User avatar
kartoFlane
Posts: 1488
Joined: Mon Jan 14, 2013 10:20 pm

Re: Questions here: an inquiry thread! [Updated Sep 15th, 2014]

Postby kartoFlane » Tue Sep 29, 2015 9:33 am

zaphod_ wrote:
kartoFlane wrote:You forgot to set the weapon count. This value specifies how many weapons your ship spawns with. It defaults to 0, hence your ship has no weapons.

Lifesaver. Thank you.
EDIT: Where do I set that count?

Hm. Odd. Weapon count should default to number of weapon slots you have set. No idea why it didn't work there, it worked just now when I tested it. Oh well, just add a count="4" attribute to your <weaponList> tag, and that'll fix it:

Code: Select all

<weaponList missiles="15" count="4" load="STEALTH_WEAPONS" />
Superluminal2 - a ship editor for FTL