(NEW RELEASE) NumericHUDv3.oxp
Moderators: winston, another_commander
- CommonSenseOTB
- ---- E L I T E ----
- Posts: 1397
- Joined: Wed May 04, 2011 10:42 am
- Location: Saskatchewan, Canada
Re: (WIP) Numeric Style HUDs(another first!)
First pics of the prototype Numeric HUDv1 showing condition yellow and green. Work is about 90% complete with minor script tweaks and any potential bugfixes to be done.
Numeric HUDv1a by CommonSenseOTB, on Flickr
Numeric HUDv1b by CommonSenseOTB, on Flickr
What do you think?
Many late nights and all my spare time in the last 10 days have resulted in a nearly finished work. In a couple of days I should be ready to post a download link on a wiki page. As this hud has newly created gauges I will require all willing players to playtest this and post the results to this viewtopic. This is gonna be fun!!!
Numeric HUDv1a by CommonSenseOTB, on Flickr
Numeric HUDv1b by CommonSenseOTB, on Flickr
What do you think?
Many late nights and all my spare time in the last 10 days have resulted in a nearly finished work. In a couple of days I should be ready to post a download link on a wiki page. As this hud has newly created gauges I will require all willing players to playtest this and post the results to this viewtopic. This is gonna be fun!!!
Take an idea from one person and twist or modify it in a different way as a return suggestion so another person can see a part of it that can apply to the oxp they are working on.
CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
-
- Quite Grand Sub-Admiral
- Posts: 6682
- Joined: Wed Feb 28, 2007 7:54 am
Re: (WIP) Numeric Style HUDs(another first!)
Very nice, well done man! My only nitpick would be that the numbers seem to be a bit too big for my taste. Any chance of making them somewhat smaller or (even better) configurable in size?
- Killer Wolf
- ---- E L I T E ----
- Posts: 2278
- Joined: Tue Jan 02, 2007 12:38 pm
- CommonSenseOTB
- ---- E L I T E ----
- Posts: 1397
- Joined: Wed May 04, 2011 10:42 am
- Location: Saskatchewan, Canada
Re: (WIP) Numeric Style HUDs(another first!)
Thank you another_commander! You are going to have fun with this. For the time being there will be the one size of number. The method used to make them requires that the the numbers be at least as thick as they are now. In version 2 I will attempt smaller sizes.
Take an idea from one person and twist or modify it in a different way as a return suggestion so another person can see a part of it that can apply to the oxp they are working on.
CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
- CommonSenseOTB
- ---- E L I T E ----
- Posts: 1397
- Joined: Wed May 04, 2011 10:42 am
- Location: Saskatchewan, Canada
Re: (WIP) Numeric Style HUDs(another first!)
You like? Perhaps a future hud style for one of your excellent ships.Killer Wolf wrote:damn!
Take an idea from one person and twist or modify it in a different way as a return suggestion so another person can see a part of it that can apply to the oxp they are working on.
CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
-
- Quite Grand Sub-Admiral
- Posts: 6682
- Joined: Wed Feb 28, 2007 7:54 am
Re: (WIP) Numeric Style HUDs(another first!)
Just saw this: The target range on the HUD in the first screenshot does not agree with the range reported on the reticle. Are you calculating range to the center of the model? It should really be range to the edge of its bounding box.
- CommonSenseOTB
- ---- E L I T E ----
- Posts: 1397
- Joined: Wed May 04, 2011 10:42 am
- Location: Saskatchewan, Canada
Re: (WIP) Numeric Style HUDs(another first!)
Here's the code another _commander.
if(player.ship.target)
{
missionVariables.numericgaugevalue = (player.ship.position.distanceTo(player.ship.target.position) / 1000);
If you can help me improve it to perform better, please. The updating of each gauge is as quick as it can be(0.25 seconds) and I suspected that a slight delay might have been the cause of the discrepancy in range but the value is determined just prior to updating the gauge. However the target reticle range updates constantly so while mine is waiting to update again the target reticle is getting ahead of my gauge. (0.25 seconds) is a long time in which my target range gauge remains static. The purpose of the target range gauge is to give range when the target reticle is off screen so the slight lag in updating will not be noticed much. This kind of gauge has been requested before several times so I decided to include it for testing in version 1. Someone's gonna be happy!
if(player.ship.target)
{
missionVariables.numericgaugevalue = (player.ship.position.distanceTo(player.ship.target.position) / 1000);
If you can help me improve it to perform better, please. The updating of each gauge is as quick as it can be(0.25 seconds) and I suspected that a slight delay might have been the cause of the discrepancy in range but the value is determined just prior to updating the gauge. However the target reticle range updates constantly so while mine is waiting to update again the target reticle is getting ahead of my gauge. (0.25 seconds) is a long time in which my target range gauge remains static. The purpose of the target range gauge is to give range when the target reticle is off screen so the slight lag in updating will not be noticed much. This kind of gauge has been requested before several times so I decided to include it for testing in version 1. Someone's gonna be happy!
Take an idea from one person and twist or modify it in a different way as a return suggestion so another person can see a part of it that can apply to the oxp they are working on.
CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
- Staer9
- ---- E L I T E ----
- Posts: 570
- Joined: Fri Feb 18, 2011 4:53 pm
- Location: Hatfield, Hertfordshire (poor industrial)
Re: (WIP) Numeric Style HUDs(another first!)
Nicely done, however I do agree with another_commander, the gauges are to large.
but if you fix that it would look truely incredible.
but if you fix that it would look truely incredible.
Re: (WIP) Numeric Style HUDs(another first!)
Where's the download, I'd love to play-test it after my exams!
-
- Quite Grand Sub-Admiral
- Posts: 6682
- Joined: Wed Feb 28, 2007 7:54 am
Re: (WIP) Numeric Style HUDs(another first!)
Are you using timers for your updates? If yes, then this is probably not what you would need. The 0.25 seconds update would most likely get in the way of gameplay, because the HUD information should really be updated per frame, as it happens with the standard "analogue" HUD. You may want to have a look at Frame Callbacks (see here for a starting point).CommonSenseOTB wrote:Here's the code another _commander.
if(player.ship.target)
{
missionVariables.numericgaugevalue = (player.ship.position.distanceTo(player.ship.target.position) / 1000);
If you can help me improve it to perform better, please. The updating of each gauge is as quick as it can be(0.25 seconds) and I suspected that a slight delay might have been the cause of the discrepancy in range but the value is determined just prior to updating the gauge. However the target reticle range updates constantly so while mine is waiting to update again the target reticle is getting ahead of my gauge. (0.25 seconds) is a long time in which my target range gauge remains static. The purpose of the target range gauge is to give range when the target reticle is off screen so the slight lag in updating will not be noticed much. This kind of gauge has been requested before several times so I decided to include it for testing in version 1. Someone's gonna be happy!
Regarding the code for calculating distance to the bounding box, it should be something like this:
Code: Select all
missionVariables.numericgaugevalue = (player.ship.target.position.distanceTo(player.ship.position) - player.ship.target.collisionRadius) / 1000;
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
Re: (WIP) Numeric Style HUDs(another first!)
Amazing job - given that not so long ago - such things were considered impossible!
They're a bit overwhelming but as a proof-of-concept - simply stunning.
Well done.
They're a bit overwhelming but as a proof-of-concept - simply stunning.
Well done.
Oolite Life is now revealed hereSelezen wrote:Apparently I was having a DaddyHoggy moment.
- CommonSenseOTB
- ---- E L I T E ----
- Posts: 1397
- Joined: Wed May 04, 2011 10:42 am
- Location: Saskatchewan, Canada
Re: (WIP) Numeric Style HUDs(another first!)
Thank you another_commander. I will use collision radius and I will take a look into frame callbacks.
Thanks DH.
Thanks DH.
Take an idea from one person and twist or modify it in a different way as a return suggestion so another person can see a part of it that can apply to the oxp they are working on.
CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
- CommonSenseOTB
- ---- E L I T E ----
- Posts: 1397
- Joined: Wed May 04, 2011 10:42 am
- Location: Saskatchewan, Canada
Re: (WIP) Numeric Style HUDs(another first!)
another_commander, I couldn't get the code you sent to work.
missionVariables.numericgaugevalue = (player.ship.target.position.distanceTo(player.ship.position) - player.ship.target.collisionRadius) / 1000;
However the following does work perfectly and gives a correct reading as close as a few meters in testing.
missionVariables.numericgaugevalue = ((player.ship.position.distanceTo(player.ship.target.position) - player.ship.target.collisionRadius) / 1000);
As for using a timer the gameplay isn't seriously affected as I use an attacked function to immediately update the gauges as well. I will look into frame callbacks when I get a chance as frame updating for these gauges would be truly stellar!
Once again thanx another_commander for the excellent help!
missionVariables.numericgaugevalue = (player.ship.target.position.distanceTo(player.ship.position) - player.ship.target.collisionRadius) / 1000;
However the following does work perfectly and gives a correct reading as close as a few meters in testing.
missionVariables.numericgaugevalue = ((player.ship.position.distanceTo(player.ship.target.position) - player.ship.target.collisionRadius) / 1000);
As for using a timer the gameplay isn't seriously affected as I use an attacked function to immediately update the gauges as well. I will look into frame callbacks when I get a chance as frame updating for these gauges would be truly stellar!
Once again thanx another_commander for the excellent help!
Take an idea from one person and twist or modify it in a different way as a return suggestion so another person can see a part of it that can apply to the oxp they are working on.
CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
Re: (WIP) Numeric Style HUDs(another first!)
Looks good, CommonSenseOTB .-)
- CommonSenseOTB
- ---- E L I T E ----
- Posts: 1397
- Joined: Wed May 04, 2011 10:42 am
- Location: Saskatchewan, Canada
Re: (WIP) Numeric Style HUDs(another first!)
Thanx Svengali!
another_commander, I must sincerely thankyou for steering me to the Frame Callback script. I have now in front of me a target range readout that updates just as smooth and quick as the target reticle range readout. It's flipping cool!
Unfortunately I had to disable the rest of my script to do it as it was laid out in such a way that it will require a slight rearrangement to allow the whole hud to work the same way. Cut and paste is my best friend.
One concern I have at the moment is bogging down the hud(and the game) by updating too frequently(never thought that would be a problem). If it becomes a problem is there anyway to put a pause in the frame callback or should I simply use a counter in the script to return out of the separate sections before making any calculations or screen changes as in 1 time in 2(for example) I use a return at the beginning of the appropriate sections of script before they are executed.
In any event I will take just a little longer to try to get the whole script working like this with frame callback but if I can do it this hud is gonna rock!!! Yeehaw!
another_commander, I must sincerely thankyou for steering me to the Frame Callback script. I have now in front of me a target range readout that updates just as smooth and quick as the target reticle range readout. It's flipping cool!
Unfortunately I had to disable the rest of my script to do it as it was laid out in such a way that it will require a slight rearrangement to allow the whole hud to work the same way. Cut and paste is my best friend.
One concern I have at the moment is bogging down the hud(and the game) by updating too frequently(never thought that would be a problem). If it becomes a problem is there anyway to put a pause in the frame callback or should I simply use a counter in the script to return out of the separate sections before making any calculations or screen changes as in 1 time in 2(for example) I use a return at the beginning of the appropriate sections of script before they are executed.
In any event I will take just a little longer to try to get the whole script working like this with frame callback but if I can do it this hud is gonna rock!!! Yeehaw!
Take an idea from one person and twist or modify it in a different way as a return suggestion so another person can see a part of it that can apply to the oxp they are working on.
CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs
CommonSense 'Outside-the-Box' Design Studios Ltd.
WIKI+OXPs