Author Topic: freding an eject?  (Read 5021 times)

0 Members and 1 Guest are viewing this topic.

Offline festivefire

  • 25
  • I love the smell of napalm in the morning!
    • Minecraft
Is it possible to script an custom key command that will spawn a viper pilot outside of your vessel and switch it to the player vessel, for ejects in missions?
Digital Fire

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
Sure is. key-pressed to capture key input, change-ship to change player ship to viper pilot, ship-create to re-create your viper that you just switched from.
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 

Offline festivefire

  • 25
  • I love the smell of napalm in the morning!
    • Minecraft
cool, thanks! time to fred! if i can get a test eject working that i like, ill upload it.
Digital Fire

 

Offline festivefire

  • 25
  • I love the smell of napalm in the morning!
    • Minecraft
actual i just realized i can dock a seat inside the cockpit of hte viper, so is there a way to change which active ship is the player? that way i can just switch focus to the seat and undock it with an upwards velocity. i kinda think this would look better than if you changed the ship to a ejected seat and spawned a new viper.
Digital Fire

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
There is no way to do that.

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
The change-ship-class idea Matth proposed will work wonderfully though!

 

Offline festivefire

  • 25
  • I love the smell of napalm in the morning!
    • Minecraft
i will build matth's, but i would like to try both if the other is possible.
Digital Fire

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
It isn't.

 

Offline festivefire

  • 25
  • I love the smell of napalm in the morning!
    • Minecraft
IDEA! i can just dock a new viper to the pilot after changing the player to a pilot so it looks like you are shooting out of the cockpit
Digital Fire

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
If you're FREDding ejection as a mission specific plot point, what you're doing so far sounds great. If you want to include the ability to eject in all your missions, read this to see why we didn't do it.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline festivefire

  • 25
  • I love the smell of napalm in the morning!
    • Minecraft
i already read that thread and i get why you didnt' include it, but i think i am only going to unlock the key control if your craft goes critical, and you still die if an evac raptor doesn't pick you up before mission end. you can also still fail the mission if your wingmen can't complete enough objectives, so its not an instant mission win.
Digital Fire

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Just wanted to make sure you knew the potential pitfalls. Have fun.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline festivefire

  • 25
  • I love the smell of napalm in the morning!
    • Minecraft
thank you, i will  :)
EDIT: i am having trouble with the name of the new viper. any time i try to save the mission i get an error telling me that the name of the viper is causing a problem, however the mission runs fine as long as you run it in debug mode. does FRED not realize i am creating a new ship and just assume the ship name doesn't exist?

the event:


the error:


EDIT: changed the photos to imgur links, they should work now.
« Last Edit: November 02, 2012, 10:35:27 am by festivefire »
Digital Fire

 

Offline MatthTheGeek

  • Captain Obvious
  • 212
  • Frenchie McFrenchface
I don't see neither the event nor the error. Can you post a debug log ?
People are stupid, therefore anything popular is at best suspicious.

Mod management tools     -     Wiki stuff!     -     Help us help you

666maslo666: Releasing a finished product is not a good thing! It is a modern fad.

SpardaSon21: it seems like you exist in a permanent state of half-joking misanthropy

Axem: when you put it like that, i sound like an insane person

bigchunk1: it's not retarded it's american!
bigchunk1: ...

batwota: steele's maneuvering for the coup de gras
MatthTheGeek: you mispelled grâce
Awaesaar: grace
batwota: oh right :P
Darius: ah!
Darius: yes, i like that
MatthTheGeek: the way you just spelled it it means fat
Awaesaar: +accent I forgot how to keyboard
MatthTheGeek: or grease
Darius: the killing fat!
Axem: jabba does the coup de gras
MatthTheGeek: XD
Axem: bring me solo and a cookie

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
The site you've uploaded it to won't give us permission to view the images.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline festivefire

  • 25
  • I love the smell of napalm in the morning!
    • Minecraft
Sorry I will fix that when I get home.
EDIT: fixed it during Spanish class.
« Last Edit: November 02, 2012, 10:36:04 am by festivefire »
Digital Fire

 

Offline festivefire

  • 25
  • I love the smell of napalm in the morning!
    • Minecraft
bump. still need some help please.
Digital Fire

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
I'm guessing FRED doesn't like the name containing Alpha 1. Do you have to use that name?
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline festivefire

  • 25
  • I love the smell of napalm in the morning!
    • Minecraft
no, ill try just using splash1, to signify a crashed or abandoned viper.
EDIT: nope, that didn't work, now i get the same error for splash1
EDIT again:
this is the error i get when i run the mission ingame, if this helps anyboy:
Code: [Select]
Invalid point.

In sexpression: ( when
   ( key-pressed "\" )
   ( change-ship-class
      "Viper Pilot"
      "Alpha 1"
   )
   ( ship-create
      "splash1"
      "Viper Mark VII"
      0
      0
      0
   )
   ( set-object-position
      "splash1"
      ( get-object-x "Alpha 1" )
      ( - ( get-object-y "Alpha 1" ) 5 )
      ( get-object-z "Alpha 1" )
   )
   ( set-object-speed-y "Alpha 1" 25 )
)
(Error appears to be: splash1)
KERNELBASE.dll! ReleaseMutex + 91 bytes
kernel32.dll! WaitForSingleObjectEx + 67 bytes
kernel32.dll! WaitForSingleObject + 18 bytes
FS2_Open_Diaspora_R1.exe! <no symbol>
FS2_Open_Diaspora_R1.exe! <no symbol>
i did run it in debug, but the event.log only  said mission loaded, so the mission runs fine, it just doesn't want to load the event.
« Last Edit: November 03, 2012, 11:43:40 am by festivefire »
Digital Fire

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
If you ship-create a ship I believe you'll need to store its name as a var or argument, then reference that var or argument rather than the name directly.