HUD scripting example
Moderators: winston, another_commander
The scripting can be optimised somewhat by using a switch based on the alert condition (as condition 0 is docked). If I get a little time tomorrow I'll throw a quick demo script together for you.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
- JazHaz
- ---- E L I T E ----
- Posts: 2991
- Joined: Tue Sep 22, 2009 11:07 am
- Location: Enfield, Middlesex
- Contact:
Looks great! Didn't realise you had made some new HUDs!Killer Wolf wrote:just to officially announce, you guys fkn RULE!!
ah, that's my new ship kitted out, let's launch and have some fun
JazHaz
Thanks to Gimi, I got an eBook in my inbox tonight (31st May 2014 - Release of Elite Reclamation)!Gimi wrote:Maybe you could start a Kickstarter Campaign to found your £4500 pledge.drew wrote:£4,500 though! <Faints>
Cheers,
Drew.
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
stunning new HUDs!!!
Oolite Life is now revealed hereSelezen wrote:Apparently I was having a DaddyHoggy moment.
- Killer Wolf
- ---- E L I T E ----
- Posts: 2279
- Joined: Tue Jan 02, 2007 12:38 pm
ah, thanks guys
the weedy pics don't really show them off (specially the knackered HUD), i feel. the thinking behind them was that in-flight would use a normal HUD w/ all the info, but in cobat you'd get a combat-specific HUD shouwing only stuff you really need to know, and an enlarged scanner to help fight enemies. there might be a little tweaking going on, maybe try and make some of the bars a little more transparent etc.
dithering over whether to release the OXP now or wait until the next release when more people are likely to have the build that can utilise the new code.
the weedy pics don't really show them off (specially the knackered HUD), i feel. the thinking behind them was that in-flight would use a normal HUD w/ all the info, but in cobat you'd get a combat-specific HUD shouwing only stuff you really need to know, and an enlarged scanner to help fight enemies. there might be a little tweaking going on, maybe try and make some of the bars a little more transparent etc.
dithering over whether to release the OXP now or wait until the next release when more people are likely to have the build that can utilise the new code.
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
Release it! If nothing else it will encourage early adoption of the new version!!!Killer Wolf wrote:ah, thanks guys
the weedy pics don't really show them off (specially the knackered HUD), i feel. the thinking behind them was that in-flight would use a normal HUD w/ all the info, but in cobat you'd get a combat-specific HUD shouwing only stuff you really need to know, and an enlarged scanner to help fight enemies. there might be a little tweaking going on, maybe try and make some of the bars a little more transparent etc.
dithering over whether to release the OXP now or wait until the next release when more people are likely to have the build that can utilise the new code.
Oolite Life is now revealed hereSelezen wrote:Apparently I was having a DaddyHoggy moment.
- Diziet Sma
- ---- E L I T E ----
- Posts: 6312
- Joined: Mon Apr 06, 2009 12:20 pm
- Location: Aboard the Pitviper S.E. "Blackwidow"
- Disembodied
- Jedi Spam Assassin
- Posts: 6885
- Joined: Thu Jul 12, 2007 10:54 pm
- Location: Carter's Snort
- Lestradae
- ---- E L I T E ----
- Posts: 3095
- Joined: Tue Apr 17, 2007 10:30 pm
- Location: Vienna, Austria
..
This!Disembodied wrote:... seriously good stuff there. This has got the potential to really enhance the gameplay, I think. A major step forward in immersion as well as offering new tactical options. ...
I say, release it! Great idea!
And even contains a believeable solution for "broken HUDs" (if you treat cockpits as equipment, something I cobbled together for my personal use - for now).
All thumbs up from here!
KW, I can only repeat what the others have said: great stuff!
It'd be a real blast if you released it now, but if you don't, at least we have these excellent pictures to look at!
It'd be a real blast if you released it now, but if you don't, at least we have these excellent pictures to look at!
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
- Killer Wolf
- ---- E L I T E ----
- Posts: 2279
- Joined: Tue Jan 02, 2007 12:38 pm
- ClymAngus
- ---- E L I T E ----
- Posts: 2514
- Joined: Tue Jul 08, 2008 12:31 am
- Location: London England
- Contact:
Wow, this is the kind of thing I was trying to do with the medusa hud (in an everything in the one window kind of way), out of interest how many different states could you hang a hud off? I'm thinking a scooping hud if cargo is selected (basically a massive resizing of the scanner for locating cargo) and is there a problem when it comes to auto switching if you have too many (ie can you override one if another perametre is met, an AND OR statement?)
With this coding hanging off the back end this could seriously revolutionise future artistic hud design.
A weapons strength drag and drop version would be heartily applauded.
With this coding hanging off the back end this could seriously revolutionise future artistic hud design.
A weapons strength drag and drop version would be heartily applauded.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Any JS handler can be used as a trigger for changing HUDs. It's all up to you, really. The target-cargo-switch-to-scoopHUD scenario is entirely plausible in trunk. You can also use any conditional expression to decide which exact HUD you would like to autoswitch to and you can even pick one at random from a pool of HUDs if you feel like it.ClymAngus wrote:out of interest how many different states could you hang a hud off? I'm thinking a scooping hud if cargo is selected (basically a massive resizing of the scanner for locating cargo) and is there a problem when it comes to auto switching if you have too many (ie can you override one if another perametre is met, an AND OR statement?)
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
yes, following is tested to work:another_commander wrote:The target-cargo-switch-to-scoopHUD scenario is entirely plausible in trunk.
Code: Select all
this.shipTargetAcquired = function (target)
{
if (target.isCargo) log(this.name, "Targeted: "+target);
}
UPS-Courier & DeepSpacePirates & others at the box and some older versions