Author Topic: Feature/Sexp Request - Set Mission Max and Min Altitudes  (Read 3569 times)

0 Members and 1 Guest are viewing this topic.

Offline Thaeris

  • Can take his lumps
  • 211
  • Away in Limbo
Feature/Sexp Request - Set Mission Max and Min Altitudes
I'm believing SAFSO will have atmospheric missions eventually, and those missions will have physical ground geometry.

The player has no problem seeing (and in general, avoiding) the ground. The AI does.

Thus, I have a potential solution for the shortcomings of the AI - we introduce a sexp where, unless an override sexp is given to a ship, the ships of a given mission will stay at a minimum distance above the xz(horizontal)-plane, and if necessary, below an altitude. This would mean that if the AI were to fly below the minimum altitude, it would attempt to chage its flight vector after doing so, thus returning to the specified movement area. If the craft would need to land (just as an example), an override flag could be set when the event was ready, and the craft might then follow a path to its required destination (waypoints, for example).

In fact, if we could get a setup similar to the asteroid field bounding box, that would be great! Not only would this be extremely useful for atmospheric mods, it would also serve projects as the RTS mod (if anything is to be done with it), where bounding all directions of the mission region would be necessary. The downside to this approach is that all directions will be limited, not just two sides of a cube. Ultimately, it might just be better to have a single, large parameter declaration sexp for use in the respective mission. Thus, a certain direction may have no distance limitations, or every direction might have a limit.

In terms of operation, I precieve you'd need these elements:

(a.) A "flight vector change" algoritm - As as example, "If the ship is below the minimum altitude, it is in a region which is in the negative normal direction of a given bounding plane. If when doing this, the ship is inverted, that ship will roll so as to put its top direction at some positive component direction in relation to the bounding plane positive normal (this may be a debatable feature - space mods may not need a fighter to go upright after leaving a restricted altitude). The ship will then pull up according to some apprpriate algorithm - this may range from a simple inverse slope algorithm to, should there be a "warning altitude" region and an "absolute altitude" region ("hard deck"), an algorithm which computes the minimum pull out rate. AI profiles should determine how quickly the ship pitches up as well as how much of a percentage higher than the minimum pull-out rate the craft exits the minimum altitude region."

(b.) AI profile change/addition - a least a double value which determines how quickly the ship reacts to a negative altitude region.

I understand this is quite a bit, but I do think it would be very, very useful. Any consideration here would be appreciated. :)
"trolls are clearly social rejects and therefore should be isolated from society, or perhaps impaled."

-Nuke



"Look on the bright side, how many release dates have been given for Doomsday, and it still isn't out yet.

It's the Duke Nukem Forever of prophecies..."


"Jesus saves.

Everyone else takes normal damage.
"

-Flipside

"pirating software is a lesser evil than stealing but its still evil. but since i pride myself for being evil, almost anything is fair game."


"i never understood why women get the creeps so ****ing easily. i mean most serial killers act perfectly normal, until they kill you."


-Nuke

 

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
Re: Feature/Sexp Request - Set Mission Max and Min Altitudes
+1. Sexpinbg this is a mongrel.
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Feature/Sexp Request - Set Mission Max and Min Altitudes
Why is it that everyone tries to shoehorn everything into the SEXP system. Even things that clearly don't belong there. :p
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline Shivan Hunter

  • 210
  • FRED needs lambdas!
Re: Feature/Sexp Request - Set Mission Max and Min Altitudes
because using SEXPs for that stuff is just plain SEXPy

 

Offline The E

  • He's Ebeneezer Goode
  • Moderator
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Feature/Sexp Request - Set Mission Max and Min Altitudes
No, just stupid. If anything, this should be a mission specs thing, or as said previously, defined similar to an asteroid field.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
Re: Feature/Sexp Request - Set Mission Max and Min Altitudes
Well, however it's specifically implemented isn't as important as whether it can be implemented.
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Feature/Sexp Request - Set Mission Max and Min Altitudes
Actually...I think this should be done with existing SEXPs. The Luna mission in War in Heaven has a max altitude limit, as well as a max-distance-from-mission-center limit, and they work pretty well.

EDIT: though I may a bit too optimistic here.
« Last Edit: October 09, 2010, 08:17:52 am by General Battuta »

 

Offline Thaeris

  • Can take his lumps
  • 211
  • Away in Limbo
Re: Feature/Sexp Request - Set Mission Max and Min Altitudes
First off, forgive any ignorance on my part in the initial request - I've not played with FRED2 since 3.6.9; I'm merely trying to suggest a means of getting an atmospheric mission to be viable. Seeing as SEXPs are a direct means of dealing with mission parameters, I figured that would be the place to start.

Again, if we could set up a system of planes (or even multiple systems of planes) which would act as barriers, that would be ideal as it would offer maximum flexibility in terms of design to the mission creator. A bounding box might be more straightforward in terms of simplicity, but it may later have limiting factors which the mission designer could possibly have problems with.
"trolls are clearly social rejects and therefore should be isolated from society, or perhaps impaled."

-Nuke



"Look on the bright side, how many release dates have been given for Doomsday, and it still isn't out yet.

It's the Duke Nukem Forever of prophecies..."


"Jesus saves.

Everyone else takes normal damage.
"

-Flipside

"pirating software is a lesser evil than stealing but its still evil. but since i pride myself for being evil, almost anything is fair game."


"i never understood why women get the creeps so ****ing easily. i mean most serial killers act perfectly normal, until they kill you."


-Nuke

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Feature/Sexp Request - Set Mission Max and Min Altitudes
If all you want to do is keep ships inside a given region, that can be done trivially with existing SEXPs. Behavior at the edges won't be pretty, but it can be done.

 

Offline Thaeris

  • Can take his lumps
  • 211
  • Away in Limbo
Re: Feature/Sexp Request - Set Mission Max and Min Altitudes
I suppose that's a point, but what I'm trying to push is a non-hackish solution which can easily be set up within FRED2. Furthermore, it should be a solution that is reliable and always works.

To prevent any flaming here, if the set-up is so trivial in FRED2, can we have an example of the implementation? Though it may not be the best solution, I'd still like an example.
"trolls are clearly social rejects and therefore should be isolated from society, or perhaps impaled."

-Nuke



"Look on the bright side, how many release dates have been given for Doomsday, and it still isn't out yet.

It's the Duke Nukem Forever of prophecies..."


"Jesus saves.

Everyone else takes normal damage.
"

-Flipside

"pirating software is a lesser evil than stealing but its still evil. but since i pride myself for being evil, almost anything is fair game."


"i never understood why women get the creeps so ****ing easily. i mean most serial killers act perfectly normal, until they kill you."


-Nuke

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Feature/Sexp Request - Set Mission Max and Min Altitudes
I suppose that's a point, but what I'm trying to push is a non-hackish solution which can easily be set up within FRED2. Furthermore, it should be a solution that is reliable and always works.

To prevent any flaming here, if the set-up is so trivial in FRED2, can we have an example of the implementation? Though it may not be the best solution, I'd still like an example.

Yeah, sure. For any ship on the list of arguments, when the ship's Y coordinate is > a certain value, give it a goal to move to the closest of a set of waypoints below the altitude ceiling. Remove the goal when it's say 100m below the Y ceiling again.

It's even easier if your mission space is spherical.

Pretty clean, not...TOO hackish, can easily be set up within FRED2. Maybe not ideal in that you would need to re-apply any critical orders. If a better altitude system can't be set up this will work.

TBP already did missions using large numbers of AI and with a large terrain object, go look at that one Raider Wars mission.

 

Offline Thaeris

  • Can take his lumps
  • 211
  • Away in Limbo
Re: Feature/Sexp Request - Set Mission Max and Min Altitudes
Right - this is good to keep in mind.

However, I'll note that I'm certain JGZinv would like to see this feature for FringeSpace (which might have an arena area, which was seen in Tachyon), and I've got Shadow Gorrath's support for its use in his atmospheric mod.

This is a feature that would be well appreciated.

:)
"trolls are clearly social rejects and therefore should be isolated from society, or perhaps impaled."

-Nuke



"Look on the bright side, how many release dates have been given for Doomsday, and it still isn't out yet.

It's the Duke Nukem Forever of prophecies..."


"Jesus saves.

Everyone else takes normal damage.
"

-Flipside

"pirating software is a lesser evil than stealing but its still evil. but since i pride myself for being evil, almost anything is fair game."


"i never understood why women get the creeps so ****ing easily. i mean most serial killers act perfectly normal, until they kill you."


-Nuke

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Feature/Sexp Request - Set Mission Max and Min Altitudes
Right - this is good to keep in mind.

However, I'll note that I'm certain JGZinv would like to see this feature for FringeSpace (which might have an arena area, which was seen in Tachyon), and I've got Shadow Gorrath's support for its use in his atmospheric mod.

This is a feature that would be well appreciated.

:)

Do you read posts?

Quote from: Battuta the handsome and nigh-omnipotent
If a better altitude system can't be set up this will work.

I'd love a better system as well, but in the meantime you've got stuff to work with. Particularly in a spherical arena-style area the system used on One Perfect Moment is surprisingly functional.

 

Offline Droid803

  • Trusted poster of legit stuff
  • 213
  • /人 ◕ ‿‿ ◕ 人\ Do you want to be a Magical Girl?
    • Skype
    • Steam
Re: Feature/Sexp Request - Set Mission Max and Min Altitudes
Except there's the fact that the AI doesn't really like following waypoint orders when being shot at...and will consequently probably crash into the ground anyway (or they'd be so "afraid" of the ground they probably won't be able to do much short of using long range weapons).

yeah it's pretty clean and easy when it's spherical...but unless you're dogfighting in a crater or something I don't see how that's a good approximation.

It works in One Perfect Moment cause there's absolutely no shooting involved.

It'd be best to set the behavior to a mission spec thing (toggleable I guess), that could be modified with an SEXP for whatever needs.

Yes, I just did it again goddammit.
« Last Edit: October 10, 2010, 12:45:08 am by Droid803 »
(´・ω・`)
=============================================================

 

Offline Quanto

  • 28
  • Permanent Nostalgia Goggles
Re: Feature/Sexp Request - Set Mission Max and Min Altitudes
We really need what Thaeris suggested, the existing system simply isn't enough for what we have in mind. We have more than 1 mission that will be using this (probably 3 or more) and it would really come in handy. A sphere simply will not suffice.
00:41:58 <DarthGeek>: I might do it, I need to build a reputation of someone who doesn't suffer fools
(DarthGeek on: "Relentless")

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Feature/Sexp Request - Set Mission Max and Min Altitudes
Except there's the fact that the AI doesn't really like following waypoint orders when being shot at...and will consequently probably crash into the ground anyway (or they'd be so "afraid" of the ground they probably won't be able to do much short of using long range weapons).

You actually don't need to use waypoints.

Quote
yeah it's pretty clean and easy when it's spherical...but unless you're dogfighting in a crater or something I don't see how that's a good approximation.

Please read posts before replying to them. One of the suggested applications was FringeSpace arenas. Additionally you don't need to be spherical; this should work fine for a ceiling (though a lower bound is going to be a lot harder if it's too close to the deck....)

Quote
It works in One Perfect Moment cause there's absolutely no shooting involved.

Raider Wars pulled something off with shooting. Granted I think AI behavior was a bit wonky, but the mission was playable.

Anyway your criticism is off: it works in One Perfect Moment because it doesn't even apply to the AI (though it...should...)

The point here is not that a better system isn't needed, it's that you have material to work with until then if you need to move forward on your mission design.
« Last Edit: October 10, 2010, 09:11:26 am by General Battuta »

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Feature/Sexp Request - Set Mission Max and Min Altitudes
So I've been putting together a little test mission to demonstrate an altitude ceiling. The biggest problem involved is how unreliable (totally nonfunctional?) ai-remove-goal is. In fact there seems to be some general weirdness going on in the orders system.

 

Offline General Battuta

  • Poe's Law In Action
  • 214
  • i wonder when my postcount will exceed my iq
Re: Feature/Sexp Request - Set Mission Max and Min Altitudes
Okay, here's a mission with an altitude limit for the AI. It works. What needs massaging is the AI behavior after they stall out; they stall for a pretty long time in order to get some distance from the ceiling zone, but I'm not really satisfied with it. Should work with retail assets, if not I am dumb and will lick your scrotal zones.

Bear in mind this is sort of a horrible hack and would ideally be replaced with a way better feature. But it is a nice demonstration of how potent FRED can be.

[attachment deleted by admin]