Author Topic: Request: Looping Lock Tone  (Read 3557 times)

0 Members and 1 Guest are viewing this topic.

Offline SeanP

  • 24
Request: Looping Lock Tone
Always catch myself wondering during a dogfight if I still have a missile lock - that little lock-on reticle is just too wimpy to do the job.

Doesn't seem like it should be too difficult to add, but I've seen the horror storys about maintaining the code.

Thanks in advance!

 

Offline aldo_14

  • Gunnery Control
  • 213
Re: Request: Looping Lock Tone
I'd imagine the trick would not be so much adding it, as keeping it optional.  I'd like to see it, though, alongside more audio cues like damage alarms or a *****in' betty effect. (to be fair, I did ask the latter before, and someone agreed to look at it, but I could never really figure out what you'd want as cues; no stall or altitude alarms, after all)

 

Offline Mars

  • I have no originality
  • 211
  • Attempting unreasonable levels of reasonable
Re: Request: Looping Lock Tone
Sounds like a fairly useful feature- don't imagine it would eat up too much proccessing power or memory either.

 

Offline Kaine

  • 27
Re: Request: Looping Lock Tone
good suggestion :) yay for this.

 

Offline neoterran

  • 210
Re: Request: Looping Lock Tone
this might be kind of annoying don't you think ?
Official Taylor Fan Club Member.
Chief Grognard.
"How much code could a coder code if a coder could code code?"

 

Offline SeanP

  • 24
Re: Request: Looping Lock Tone
I used to play X-wing vs TIE Fighter many many moons ago, and from that experience it proved to be a useful tool, having the missile lock loop - remember, you can replace that little dinky beep with a solid tone.  However, as aldo said, it's something that, if implemented, should definitely be made an option, as many will find it annoying.

 

Offline Backslash

  • 29
  • Bring Our Might To Bear
Re: Request: Looping Lock Tone
Good point.  The trick would be to come up with a loopable non-annoying sound effect, preferably subdued.  The X-wing / TIE Fighter solid tone one was simple enough, quiet but unmistakable.

I think I could do the code for this eventually (still some learning to do about the involved sections), but for now let's discuss HOW to keep it optional.  Some table file, perhaps hud_gauges or similar?

Come to think of it, wherever we put this might be a good place to add also a new style of locking reticle, one that stays centered on the brackets but gets smaller on all four sides as it locks, much like Wing Commander.

No promises yet, I've got a lot of other stuff to do :p but it's interesting so I'll take a stab some time.

Oooh, and a super-long-range goal: how about different shaped reticles or lead indicators depending on the weapon selected?  :D  (I'm sure that would be a lot of work, so no guessing when... but wouldn't it be cool?)

 

Offline SeanP

  • 24
Re: Request: Looping Lock Tone
1st point, since XvT is getting on in years (C 1997), the tone is very easily reproducible, and doesn't seem to have any sort of ill effects from any compression, I've posted the wave file here - http://www.wedgenet.us/TGT-LP-2.WAV - Opera users make sure to right-click and save as.  If this is outside of legal rights, feel free to edit out this line.

From this point forward, here's a disclaimer: though I'm trying, I'm afraid I'm not up to speed on where everything hides in FS2SCP or how everything works, so it's quite possible I'll make a completely inane suggestion.

For making it optional, would it be possible to implement the following?:
1. Include three new variables in the player file, for instance, bool looping_lock, string ll_string, and bool ll_override.  The first is pretty self-explanatory.  The second would be a filename inside of a data/sounds folder, which would allow the player to specify any sound he or she would like to use and allows the feature to be used on any ship/weapon which did not have this defined.  The third would allow a weapon or ship entry (depending on the implementation) to override the player-defined sound - which leads to part 2.

2. Create a new variable in either a ship or weapon definition called $looping_tone.  Whether this would call to sounds.tbl or straight to the file is not my decision (and, if my assumptions about the format are correct, it'd be to sounds.tbl).  This would allow mod-makers or whomever pleases to customize the interface even more, but since it works in conjunction with ll_override, the player could revert to his/her sound if he/she found the mod-maker's sound to be less than optimal.

As for the WC thing, I'm sure they'd appreciate that :P  I rather prefer the moving reticle now, as it kind of clues me in as to what I need to try to do to gain lock - or at least I think it does!

For the different reticles and such, speaking from the point of view of someone that can get through helloworld.cpp and not much else, wouldn't it be theoretically possible to define the texture/icon to use and the scale with which to use it from inside the weapon definition in weapons.tbl?  At that point I would think it'd be a relatively minor task of simply switching transparencies appropriately.

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Request: Looping Lock Tone
1. Include three new variables in the player file, for instance, bool looping_lock, string ll_string, and bool ll_override.  The first is pretty self-explanatory.  The second would be a filename inside of a data/sounds folder, which would allow the player to specify any sound he or she would like to use and allows the feature to be used on any ship/weapon which did not have this defined.  The third would allow a weapon or ship entry (depending on the implementation) to override the player-defined sound - which leads to part 2.
Hell no.

2. Create a new variable in either a ship or weapon definition called $looping_tone.  Whether this would call to sounds.tbl or straight to the file is not my decision (and, if my assumptions about the format are correct, it'd be to sounds.tbl).  This would allow mod-makers or whomever pleases to customize the interface even more, but since it works in conjunction with ll_override, the player could revert to his/her sound if he/she found the mod-maker's sound to be less than optimal.
:wtf:

(sorry for the short answers, I hit my constructive criticism quota for the day. ;))


About the only way to do this properly is through sounds.tbl itself.  There is an option to say that a sound is 3d or not, the values being 0, 1 or 2.  Have it be 10, 11 or 12 for the same thing, but looping.  With minor changes to gamesnd.cpp and sound.h this can be easily done and not break anything for backwards compatiblity.  hudlock.cpp would then only need a few minor modifications to play looping or not based on game_snd->looping value status and to manage the looping sound if it is looping.  Rather simple, but I'm not going to do it so don't bother asking.  This kind of stuff is what the rookies are for. :)
« Last Edit: May 05, 2006, 01:32:38 am by taylor »

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Re: Request: Looping Lock Tone
This is perhaps somewhat off-topic, and its not a request for anything specific I have in mind, but to open up an avenue to all mods.  Right now, all missiles supported by FSO are fire-and-forget, be them dumfire, heat or aspect seeking.  It might be useful to have some missiles where you have to keep a full target lock until the missile has hit its target.  It might be of use to TVWP to have missiles with more primitive tracking systems.
The Trivial Psychic Strikes Again!

 

Offline CaptJosh

  • 210
Re: Request: Looping Lock Tone
Missile lock tone...how very...Top Gun.  I like the idea.

"I've got solid tone...Taking the shot...Alpha one, fox two!"
(Kenny Loggins: Danger Zone plays in background)

 :D :nod:
CaptJosh

There are only 10 kinds of people in the world;
those who understand binary and those who don't.

 

Offline Cobra

  • 212
  • Snake on a Cain
    • Skype
    • Steam
    • Twitter
Re: Request: Looping Lock Tone
RIIIIIIDE INTO THE DANGER ZOOOOOONE!

in all seriousness, it should be optional. hardcore gamers like me can tell if we have a lock or not, although the solid tone is a nice touch. :)
To consider the Earth as the only populated world in infinite space is as absurd as to assert that in an entire field of millet, only one grain will grow. - Metrodorus of Chios
I wept. Mysterious forces beyond my ken had reached into my beautiful mission and energized its pilots with inhuman bomb-firing abilities. I could only imagine the GTVA warriors giving a mighty KIAAIIIIIII shout as they worked their triggers, their biceps bulging with sinew after years of Ivan Drago-esque steroid therapy and weight training. - General Battuta

 

Offline Woolie Wool

  • 211
  • Fire main batteries
Re: Request: Looping Lock Tone
This is perhaps somewhat off-topic, and its not a request for anything specific I have in mind, but to open up an avenue to all mods.  Right now, all missiles supported by FSO are fire-and-forget, be them dumfire, heat or aspect seeking.  It might be useful to have some missiles where you have to keep a full target lock until the missile has hit its target.  It might be of use to TVWP to have missiles with more primitive tracking systems.
Why? We already have missiles that can track independent of the aircraft (AIM-120 AMRAAM, AIM-54 Phoenix), so why would the 24th century lack such weapons?
16:46   Quanto   ****, a mosquito somehow managed to bite the side of my palm
16:46   Quanto   it itches like hell
16:46   Woolie   !8ball does Quanto have malaria
16:46   BotenAnna   Woolie: The outlook is good.
16:47   Quanto   D:

"did they use anesthetic when they removed your sense of humor or did you have to weep and struggle like a tiny baby"
--General Battuta

 

Offline neoterran

  • 210
Re: Request: Looping Lock Tone
Well, you have to ask yourself, why would the 24th century require a human to aim lasers at a target either ? Because otherwise it wouldn't be a very fun game.
Official Taylor Fan Club Member.
Chief Grognard.
"How much code could a coder code if a coder could code code?"

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
Re: Request: Looping Lock Tone
1- They have dumbfire weapons too, so why would you have dumbfire weapons if you can equip them with tracking technology?

2- You'd suspect that during the T-V War era, the GTA and PVN probably used weapons with inferior tracking capabilities to say the MX-50 and Interceptor, so a more complicated and less effective target tracking system for missiles would be a good way to simulate the lesser sophistication of weapons for that period.

3- Its a game.
The Trivial Psychic Strikes Again!

 

Offline ARSPR

  • Preys On Mantis
  • 29
Re: Request: Looping Lock Tone
Well, you have to ask yourself, why would the 24th century require a human to aim lasers at a target either ? Because otherwise it wouldn't be a very fun game.

I do agree. "Realistic" combat flight simulators are usually quite boring because you just fire and forget. Old combat flight simulators (I remember old Red Baron) are much funnier. I mean what makes the sim funny is that you have to hunt down enemies. It isn't funny at all if my computer hunts while I watch.

If you want some explanation to make it realistic, you can say that enemies decoy systems are so powerful that it's very difficult to make a lock with computer aid, or something like that.
IF YOU HAVE TROUBLES WITH FS2:
  • Please, please, please, READ and UNDERSTAND the sticky threads in FreeSpace & FreeSpace Open Support board.
    A lot of people are willing to help you, but, as anyone can understand, seeing the very same "issues" repeated again and again can become quite depressing. Please, spend a bit of time trying to solve the issue by yourself.
    (Lobo deserves a monument).
  • Then, if you aren't still able to solve your issue, feel free to ask for help in that same board.
    FYI, most of the troubles are caused by wrong mod installations which lead to either missing data or undesired cross-effects between them. Always follow the mod installation instructions and keep a clean FS2 installation as explained in the sticky threads. Two additional links about how the game handles game data:
  • If you think that you've discovered a bug, mantis it.
    Provide as much info as you can, and try to narrow it down. A lonely "FS2 doesn't work" is not a good report.

Whoever Hanlon was: Never attribute to malice that which can be adequately explained by stupidity.
Albert Einstein: Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe.

Dell Dimension 9200 - Vista 32-bit Ultimate
Core 2 Quad Q6600 @2.4GHz - RAM 2 GB DDR2
nvidia 8800 GTX - Integrated Sigmatel Audio

  

Offline Flaser

  • 210
  • man/fish warsie
Re: Request: Looping Lock Tone
Well, you have to ask yourself, why would the 24th century require a human to aim lasers at a target either ? Because otherwise it wouldn't be a very fun game.

I do agree. "Realistic" combat flight simulators are usually quite boring because you just fire and forget. Old combat flight simulators (I remember old Red Baron) are much funnier. I mean what makes the sim funny is that you have to hunt down enemies. It isn't funny at all if my computer hunts while I watch.

If you want some explanation to make it realistic, you can say that enemies decoy systems are so powerful that it's very difficult to make a lock with computer aid, or something like that.

You never ever had a pair of phantoms bracketing you had you? (....or Eagles to compound the pain)
Realistic jetfighter engagements are far from the simplicity or intensity you depict.

Try Lock-On, it will be an eye opener.
"I was going to become a speed dealer. If one stupid fairytale turns out to be total nonsense, what does the young man do? If you answered, “Wake up and face reality,” you don’t remember what it was like being a young man. You just go to the next entry in the catalogue of lies you can use to destroy your life." - John Dolan