Author Topic: Warp in with fighters docked  (Read 5816 times)

0 Members and 1 Guest are viewing this topic.

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Warp in with fighters docked
Stick the bug in Mantis. Sooner or later I'm going to have to look into the cause with the Basestar anyway so I might as well start now.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Online Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Warp in with fighters docked
Idea: Maybe what's going on is, since fighters were never intended to be able to undock in the first place, perhaps being told to do so screws up their ability to accept future SEXP-induced AI goals.
This is a good theory.  Maybe the goal code never registers the undock goal as complete.  So, it would be hung up on the undock goal forever.

One way you could get around this is by using jettison-cargo-delay on the host ship.  No undocking procedure required, and it's quicker too.

 

Offline Krelus

  • 28
Re: Warp in with fighters docked
Idea: Maybe what's going on is, since fighters were never intended to be able to undock in the first place, perhaps being told to do so screws up their ability to accept future SEXP-induced AI goals.
This is a good theory.  Maybe the goal code never registers the undock goal as complete.  So, it would be hung up on the undock goal forever.

One way you could get around this is by using jettison-cargo-delay on the host ship.  No undocking procedure required, and it's quicker too.

Whoa, I always thought that SEXP just set a ship's cargo to "none." I'll have to check that out.

EDIT: OK, Jettison works much more cleanly. However, it did not remedy the problem. In the process I have discerned the issue's true nature, however.

The problem is caused not by the ai-undock goal, but rather by the nature of how they enter the map. They're designated Beta, Gamma and Delta wings, but they don't show up in the wing monitor and nothing appears in the Wings command menu. As far as the game engine is concerned, their wings do not exist, so giving orders to said wing is rather pointless. Now, back to the problem of the fighters not accepting orders. The problem is, my SEXPs were giving goals to their wings, not each individual fighter. So, basically, this is still doable but you have to give each individual ship its goals and ignore the fact that they're all winged together. Problem solved, works beautifully (even if setting it up is a COLOSSAL pain in the ass).

Since giving goals to twelve fighters is more trouble than it's worth, I highly suggest making excellent use of the "initial orders" menu. So, to sum up:

Have the fighters start disabled and docked to the ship, with initial orders to do whatever you want them to do once they undock.

Have the fighters arrival cues set to 3 seconds after the mothership arrives, no warp effect.

Time events so that once the ship slows almost to a halt, it jettisons its cargo and all the fighters have their engines restored.

Enjoy. There's a slight problem in that each fighter experiences a miniscule bump upon disconnecting, but that's so minor I couldn't possibly care less.


VICTORY IS MINE!!!!!!  :beamz:

Thanks for all your help, folks!
« Last Edit: December 02, 2008, 08:05:45 pm by Krelus »

 

Online Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: Warp in with fighters docked
The problem is caused not by the ai-undock goal, but rather by the nature of how they enter the map. They're designated Beta, Gamma and Delta wings, but they don't show up in the wing monitor and nothing appears in the Wings command menu. As far as the game engine is concerned, their wings do not exist
Ah.  Well, that would be this other bug:
http://scp.indiegames.us/mantis/view.php?id=530

But I'm glad you were able to jury-rig it into working. :)

  

Offline terran_emperor

  • 7 Impossible Requests Before Breakfast
  • 210
  • Kane Live in Death
Re: Warp in with fighters docked
Oh sweet! you are cool. Now if IPA can get this to work for TBP...

*Rubs hands in anticipation*
e = m csarged - Relativity according to Sarge [Red vs Blue]

TRUE SHIVAN

HLP's only Goro Naya (Great Leader) fan


"I really wasn't expecting this much losership"


"Only one thing is impossible for a Vorlon to understand: How to change the IRQ setting in any DOS computer."

HLP Brit

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: Warp in with fighters docked
You are thinking of the raider carrier. But as mentioned above, IPAndrews tried to accomplish this for a long time without success, so we would be as interested in a solution as everybody else :)

I had a solution ready made... but no one ever asked me (it require just a simple table-hack)
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

 

Offline Col. Fishguts

  • voodoo doll
  • 211
Re: Warp in with fighters docked
You are thinking of the raider carrier. But as mentioned above, IPAndrews tried to accomplish this for a long time without success, so we would be as interested in a solution as everybody else :)

I had a solution ready made... but no one ever asked me (it require just a simple table-hack)

Don't tell me, tell IPA :P . I suck at FREDding.
"I don't think that people accept the fact that life doesn't make sense. I think it makes people terribly uncomfortable. It seems like religion and myth were invented against that, trying to make sense out of it." - D. Lynch

Visit The Babylon Project, now also with HTL flavour  ¦ GTB Rhea

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: Warp in with fighters docked
You are thinking of the raider carrier. But as mentioned above, IPAndrews tried to accomplish this for a long time without success, so we would be as interested in a solution as everybody else :)

I had a solution ready made... but no one ever asked me (it require just a simple table-hack)

Don't tell me, tell IPA :P . I suck at FREDding.

I will make a package out of it and add to the "Xmas Presents to TBP Freders"-package
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."