Flight behaviour

Everything related to the code /
Tout ce qui touche au code
Post Reply
BasiC
Posts: 9
Joined: Mon Mar 22, 2010 9:11 am

Flight behaviour

Post by BasiC » Mon Mar 22, 2010 9:25 am

I was wondering if you have now totally mimicked OTA's Flight behaviour.
If you have was it done using lua?

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: Flight behaviour

Post by zuzuf » Mon Mar 22, 2010 5:49 pm

Currently no OTA behavior is simulated with Lua (all mods should run unmodified on TA3D without having to use any Lua magic) even though it's possible to simulate many things with current Lua API.
Flight behavior has been improved a lot (mainly for units like the Arm brawler) but I've rewritten some code related to pathfinding which is not perfect for all units yet.
=>;-D Penguin Powered

BasiC
Posts: 9
Joined: Mon Mar 22, 2010 9:11 am

Re: Flight behaviour

Post by BasiC » Tue Mar 23, 2010 1:35 am

I was hoping its in lua...k NVM ;_:

BasiC
Posts: 9
Joined: Mon Mar 22, 2010 9:11 am

Re: Flight behaviour

Post by BasiC » Fri Apr 23, 2010 6:44 pm

Can you explain how the fighter behaves though?I mean how does it work in the different situations?What is the physics behind it?How can i emulate it?Cause fomr watching videos i still cant really understand how it behaves like it does.

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: Flight behaviour

Post by zuzuf » Fri Apr 23, 2010 7:37 pm

The only thing physically correct here is the plane's orientation : think of a mass attached to the plane like a pendulum.

Except for this, planes aim progressively to their target (enemy, map position or anything that can be a target position) at a given speed (which is set in the unit *.FBI file). Acceleration and speed limits are also set in the FBI file.

Unfortunately I could not reverse engineer plane's movements from OTA so I improvised a bit :).
=>;-D Penguin Powered

BasiC
Posts: 9
Joined: Mon Mar 22, 2010 9:11 am

Re: Flight behaviour

Post by BasiC » Sat Apr 24, 2010 7:29 pm

That's the issue...fighter movement in OTA is very fun...I have been trying to get plains in Spring to move liek that but I am unable to...Either they move correctly or attack correctly but they can't do both like in OTA.
Do you think You'd be able to make a lua version of how plains move in TA3D?

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: Flight behaviour

Post by zuzuf » Sat Apr 24, 2010 7:49 pm

You mean a Lua script that would emulate it ? Yes, I think I could.
=>;-D Penguin Powered

BasiC
Posts: 9
Joined: Mon Mar 22, 2010 9:11 am

Re: Flight behaviour

Post by BasiC » Fri Apr 30, 2010 2:09 am

Can you make it than?

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: Flight behaviour

Post by zuzuf » Fri Apr 30, 2010 7:37 am

What do you want to do with it ? (I need to know which Lua API to use and how the script should be used).
=>;-D Penguin Powered

BasiC
Posts: 9
Joined: Mon Mar 22, 2010 9:11 am

Re: Flight behaviour

Post by BasiC » Fri Apr 30, 2010 6:14 pm

I want to use it in Spring...I know Spring is sort of a rival project but I wont forget to mention everywhere its from TA3d if you write this XD

Also in what way is it different from the original TA flight behavior?

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: Flight behaviour

Post by zuzuf » Fri Apr 30, 2010 6:42 pm

BasiC wrote:I want to use it in Spring...
I don't know much about Spring scripting. Is there some documentation about it somewhere ?
BasiC wrote:Also in what way is it different from the original TA flight behavior?
That's a good question, if I knew it precisely it would not be different at all :lol: . There is some physics to simulate part of it (mainly angles), TA3D uses velocity/acceleration parameters the way OTA does (at least I think OTA works the same way here). For the rest I don't know how OTA works, I don't know how OTA computes planes altitude when landing/taking off (TA3D simulates a follower system, difference between plane altitude and targeted altitude decreases exponentially with time), how planes anticipate variations of ground height or how trajectories are planned.
=>;-D Penguin Powered


User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: Flight behaviour

Post by zuzuf » Sun May 02, 2010 11:13 am

Interesting, I've read a bit the Lua documentation, it seems to have the required functions. I may try to write this script, but not this week since I'll be a bit busy :P
=>;-D Penguin Powered

User avatar
Balthazar
Moderator
Posts: 2055
Joined: Wed Nov 01, 2006 4:31 pm
Location: Russian Federation
Contact:

Re: Flight behaviour

Post by Balthazar » Sun May 02, 2010 12:36 pm

zuzuf wrote:Interesting, I've read a bit the Lua documentation, it seems to have the required functions. I may try to write this script, but not this week since I'll be a bit busy :P
It`ll be great, if we`ll get a fine planes behaviour.

BasiC
Posts: 9
Joined: Mon Mar 22, 2010 9:11 am

Re: Flight behaviour

Post by BasiC » Mon May 10, 2010 1:55 pm

Any news?

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: Flight behaviour

Post by zuzuf » Tue May 11, 2010 11:07 am

I am still busy ... but I am going to have a few days off soon :D
=>;-D Penguin Powered

BasiC
Posts: 9
Joined: Mon Mar 22, 2010 9:11 am

Re: Flight behaviour

Post by BasiC » Sun Jun 20, 2010 12:55 pm

boop

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: Flight behaviour

Post by zuzuf » Sun Jun 20, 2010 3:16 pm

Well, I really don't have time to work on that right now. I won't have time before I finish my exams (1 week and an half left :( ) ...
=>;-D Penguin Powered

Post Reply

Who is online

Users browsing this forum: No registered users and 36 guests