Home   Help Search Login Register  

Author Topic: MBHL - User Controlled AI Heli Landings  (Read 1627 times)

0 Members and 1 Guest are viewing this topic.

Fishion

  • Guest
MBHL - User Controlled AI Heli Landings
« on: 21 Feb 2004, 18:58:25 »
Hiho

This is a little demo mission for a script.

It is clearly EARLY BETA

Basically what it does, you as a player pilot a heli, this scripts records where
you heli is and in what direction it looks and what you veolcity is,
and then put's it out in a text field, so you can cut and paste and put it directly into a SQS file, which when started lets the Helo follow you flightpath

That's why it's called MBHL - More beautiful helicopter Landings
not very modest I know  ::)

How to use:
Radio 1 is record
Radio 2 is showing the data
Radio 6 is playback of a sample I took

However, this script has a few bugs or better issues to be solved:

1) The text is given via a Editfield. Flashpoint doesn't seem to allow
a forced line in multiline Editfield mode. So I dpn't have any way
to put a linebreak into the script,
wouldn't bad since you can put command behind each other with the ;
but the waiting command ( ~ ) need a single line to work.
Because of that you have to replace the FSH_BREAK string with
a linebreak  
???

2) Somehow the amout of data is very limited, no idea how to get around that, or what is causing exactly that.
but OFP WILL CRASH to the Desktop, if you record too much  
:'(
Please note: the jumping of the Helicopter in the demo.sqs is due to the big time
intervalls (which I had to make so I could record that without a crash)

3) The AI-pilot always want to do strange stuff, don't know what to do, like
going back to a different height, eventhough I use flyinheight
 :-[

any help is appreciated

-Fishion
« Last Edit: 22 Feb 2004, 00:52:14 by Fishion »

Homefry31464

  • Guest
Re:MBHL - User Controlled AI Heli Landings
« Reply #1 on: 21 Feb 2004, 21:02:24 »
I'll be sure to check it out when I get home.  For your second problem, can there be overflow errors??  Maybe that's what is causing it.

EDIT:  For number three, is there a way to disable the AI for a certain unit, or will it disable all the AI controlled units.
« Last Edit: 21 Feb 2004, 21:04:27 by Homefry »

Fishion

  • Guest
Re:MBHL - User Controlled AI Heli Landings
« Reply #2 on: 21 Feb 2004, 21:14:49 »
Quote
I'll be sure to check it out when I get home.  For your second problem, can there be overflow errors??  Maybe that's what is causing it.

It's almost certainly an overflow error, however it ain't good if you have only
about 2 seconds worth of recording time.
In the end it looks like we have to find a better way to make an output
than with the Editfields. Somehow there's a limit, either a limit of the
edit filed (most likely) or of the window.
Both come down to the fact that this method of output isn't quite good
enough.
Just using the raw data might extend the Recording time somewhat, the
but needs more external processing to create the script.

Quote
EDIT:  For number three, is there a way to disable the AI for a certain unit, or will it disable all the AI controlled units.

It helps (just a little) bit if you disable the AI of the PILOT (not the Helo).
That means for a mission you need a extra pilot to put into the Helo during
the landing phase.

-Fishion
« Last Edit: 21 Feb 2004, 21:20:30 by Fishion »

Homefry31464

  • Guest
Re:MBHL - User Controlled AI Heli Landings
« Reply #3 on: 22 Feb 2004, 00:01:59 »
You didn't put a link, so I can't try it out.  Did you use vektorboson's idea, I don't know anything about scripting, but maybe this will help you.

ctrlSetText [ IDC_OF_YOUR_EDIT, format["%1", YOUR_ARRAY] ]

Fishion

  • Guest
Re:MBHL - User Controlled AI Heli Landings
« Reply #4 on: 22 Feb 2004, 00:54:21 »
Uppps musta have gone AWOL, when I modified my first post.
Sorry for the trouble, look at the first post it's there again  :o

-Fishion