Author Topic: The reprobator's fred noobsih question emporium  (Read 12409 times)

0 Members and 1 Guest are viewing this topic.

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
Re: The reprobator's fred noobsih question emporium
I'll try thinking about something for the last part and get back if something comes up ^^
el hombre vicio...

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: The reprobator's fred noobsih question emporium
Quote
Key-reset (Training operator)
Marks the specified default key as having not been pressed, so key-pressed will be false until the player presses it again.  See key-pressed help for more information about what a default key is.
Note that this sexp will not work properly in repeating events.  Use key-reset-multiple if this is to be called multiple times in one event.

I would at the very least start there. :p
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 
Re: The reprobator's fred noobsih question emporium
Thanks you i have at least one mistake less in my sexp!  :nod:

But after correction, nothing happen when i press 'd' and within 500 m with the ship :)
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: The reprobator's fred noobsih question emporium
I'm still fairly certain that the player ship can't be told to dock even under AI control.

 
Re: The reprobator's fred noobsih question emporium
Code: [Select]
#Events ;! 1 total

$Formula: ( when
   ( has-time-elapsed 5 )
   ( change-ship-class
      "Tf-Litebdock"
      "alpha 1"
   )
   ( player-use-ai )
   ( add-goal
      "alpha 1"
      ( ai-dock
         "GTT Argo 2"
         "Docking Point"
         "front docking bay"
         89
      )
   )
)
+Name: Dock
+Repeat Count: 1
+Interval: 1
+Team: 0

That worked this way (after 5 seconds the AI take control of the ship and dock with the desired docking point of the friendly ship named Argo)
Don't bother the dockpoint name as "Gtt argo2" is in fact a orion ship .
I change the ship class to load a copy of the originals player ship for this mission that have special entry to allow it to dock.

The part that do not work in my sexp is the distance + key pressed trigger, i have try with just key pressed without checking distance and that did not worked either.
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: The reprobator's fred noobsih question emporium
Actually I see at least two other possible causes for this

1) Don't use U and D. IIRC they don't actually do anything ingame. Which means they won't do anything for key pressed/key reset either.
2) Repeating key-pressed/key-reset-multiple are one of the very rare occasions where use of every-time instead of repeating when may be warranted. It's been a long time since I tested it but last time I did I found that the results of using the two were very, very different depending on which key I mapped them too.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 
Re: The reprobator's fred noobsih question emporium
 :yes: i'll try that tomorrow evening, it's getting late here, but thanks for your help!
so may bind those key to function rarely used in freespace2 option?
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: The reprobator's fred noobsih question emporium
As I recall "U" is used to target next unscanned target.
As for unused keys, I use backward target cycling keys, of course if I cannot use "1", "2", "3" and "4" keys, which are useless in singleplayer (they are used for controlling messages in multi).

 
Re: The reprobator's fred noobsih question emporium
Ok i made the change :
Every time instead of when and "n" to dock and "j" to undock
For now, it dock without problem (when the ai do not try to pass through the hull of the ship to dock with.... ai...  :lol:
but that work, i think by adding a subsystem at the dock point location to the ships were you want to dock would allow closer distance and allow to use distance subsystem.

In the other hand the second part of the script didn't work, when i press "j" the ai do not give me back my ship  :nervous:

I guess i ll have to find another key.
This time it"s time to sleep thank you all!


 
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
Re: The reprobator's fred noobsih question emporium
In the other hand the second part of the script didn't work, when i press "j" the ai do not give me back my ship  :nervous:

I just did a simple sexp to release the control using key "1" to engage IA control and "3" to disengage and it worked perfectly... when did you press the release IA control key? when your fighter was already docked with the orion or while in flight? cause that might be the problem.
el hombre vicio...

  
Re: The reprobator's fred noobsih question emporium
while in flight , i was wondering too :
Why do we have to use 2 key?
I mean if we use the same key, that should work either as the conditions is : distance/variable the key could work like a switch?
« Last Edit: July 17, 2009, 12:33:02 am by Reprobator »
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
Re: The reprobator's fred noobsih question emporium
while in flight , i was wondering too :
Why do we have to use 2 key?
I mean if we use the same key, that should work either as the conditions is : distance/variable the key could work like a switch?
Only the switching variable would be needed to know what to do.
The distance does only restrict the sexp from firing anywere accidentally, you can polish this even more giving a message while docking or while approaching docking distance and all those blings that might make it look like a more complex feature.
el hombre vicio...

 
Re: The reprobator's fred noobsih question emporium
that's sure, but I'll debug it and keep it rather simple to use it as a template for other missions  ;)
That Give me the idea that having a sort of sexp sequence library we could feed on the wiki  :confused:
may be quite usefull for fredders win time while making they're mission and help the community to have more varied custom mission/campaign (note that i do not complain on the quality level of campaign and mission , i never missed one and mostly love them all  ;7 )
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline Dragon

  • Citation needed
  • 212
  • The sky is the limit.
Re: The reprobator's fred noobsih question emporium
I have WIP cloaknig system (nearly done) based on SEXPs and working capship piloting SEXP set, I can share them if you want.

 
Re: The reprobator's fred noobsih question emporium
i will polish the docking sexp and share it too  :)
the idea would be that if someone find a way to improve the sexp he can modify the article of the sexp (would require some sort of validation anyway)
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline Rodo

  • Custom tittle
  • 212
  • stargazer
    • Steam
Re: The reprobator's fred noobsih question emporium
good idea... like a wiki article with the most commonly used (and hard to come up with) sexps, go and post this on the wiki section of the forum, it will most likely be supported by most of the members.
el hombre vicio...

 
Re: The reprobator's fred noobsih question emporium
Ok , well i won't be able to post now as i must get back to work  :(

I'm gonna write the post tomorrow morning

Edit :
Just posted here :
http://www.hard-light.net/forums/index.php/topic,64473.0.html
« Last Edit: July 17, 2009, 09:23:27 am by Reprobator »
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: The reprobator's fred noobsih question emporium
good idea... like a wiki article with the most commonly used (and hard to come up with) sexps, go and post this on the wiki section of the forum, it will most likely be supported by most of the members.

Sounds a bit like my cookbook. If someone wants to nick that and expand it on the wiki, be my guest.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 
Re: The reprobator's fred noobsih question emporium
agree it'll fit well the idea with few adaptation  :)
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1

 
Re: The reprobator's fred noobsih question emporium
Hi, i've been away a while cause i"ve been sick (anyway that s not the right place to talk about my life  :nervous: )
I"ve give up with the key that give back control to the player, i change my sexp with a "has docked delay" and player not use ai
it result like , u press button to dock, once you have docked, you keep docked as long as you don't touch control, if you do so, you'll have full control of the ship, i prefer that way it feel more natural. the ai do what you asked and then get back to sleep.

I'm actually on another thing, i m playing with cinematics, i'm making a mission where you see a carrier jumping in, then i d like to show some fighter taking off that carrier, i have no problem when the carrier is already there at the beginning of the mission, fighters take off with no problem, but i won't if the carrier has jumped in at the beginning.
I rade sometime ago there use to have solution for that but i can't find that; so if someone have it in his mind or a link in his bookmark, it'll make me more than happy  :)
$Formula: ( every-time
   ( has-time-elapsed "0" )
   ( Do-Nothing
   )
   ( send-message
      "#Dalek"
      "High"
      "Pro-crasti-nate"
   )
   )
)
+Name: Procratination
+Repeat Count: 99999999999
+Interval: 1