(NEW RELEASE) NumericHUDv3.oxp

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Zireael
---- E L I T E ----
---- E L I T E ----
Posts: 1396
Joined: Tue Nov 09, 2010 1:44 pm

Re: (NEW RELEASE) NumericHUDv3.oxp

Post by Zireael »

An aside: NumHUD v3 is one of my must-have OXPs.
Ganelon
---- E L I T E ----
---- E L I T E ----
Posts: 534
Joined: Fri Jul 02, 2010 11:45 am
Location: Around Rabiarce or Lasoce

Re: (NEW RELEASE) NumericHUDv3.oxp

Post by Ganelon »

Splendid work, V3 is quite impressive! I am just collecting up OXPs to outfit my new copy of Oolite after a rather long hiatus, and this was one of the very first I came looking for. I hoped it was updated, but didn't expect this degree of evolution. Trim, sleek and very functional.
Sleep? Who needs sleep? Got game. No need sleep.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: (NEW RELEASE) NumericHUDv3.oxp

Post by Cody »

Hey Ganelon... good to see you back again. Tip: get Randon Ship Names and Escort Formations.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
Ganelon
---- E L I T E ----
---- E L I T E ----
Posts: 534
Joined: Fri Jul 02, 2010 11:45 am
Location: Around Rabiarce or Lasoce

Re: (NEW RELEASE) NumericHUDv3.oxp

Post by Ganelon »

Thanks El Viejo. I already grabbed Random Ship Names and it is a cool addition. Escort Formations, you say? I'll check it out.
Sleep? Who needs sleep? Got game. No need sleep.
User avatar
CommonSenseOTB
---- E L I T E ----
---- E L I T E ----
Posts: 1397
Joined: Wed May 04, 2011 10:42 am
Location: Saskatchewan, Canada

Re: (NEW RELEASE) NumericHUDv3.oxp

Post by CommonSenseOTB »

Ganelon wrote:
Splendid work, V3 is quite impressive! I am just collecting up OXPs to outfit my new copy of Oolite after a rather long hiatus, and this was one of the very first I came looking for. I hoped it was updated, but didn't expect this degree of evolution. Trim, sleek and very functional.
Thanx Ganelon. :D

Expect more improvements. V3.1 will have some code improvements. Version 4 will be for use with 1.77(currently trunk only) and use text for the numbers. This could get interesting. :)
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
User avatar
Tichy
---- E L I T E ----
---- E L I T E ----
Posts: 345
Joined: Wed Jul 11, 2012 5:48 pm

Re: (NEW RELEASE) NumericHUDv3.oxp

Post by Tichy »

I like to view the fuel level when buying equipment, so I modified numerichudv3computerequip.plist to show it.

Image

If someone are interested, this is how I changed the code:

Code: Select all

//Author: CommonSenseOTB(thinking outside-the-box for your playing enjoyment and the improvement of oolite)
//Completed: June 13, 2011 original release v1
//Completed: April 21, 2012 v3
//NumericHUDv3.oxp is the current version
//Licensed under Creative Commons: attribution, non-commercial, sharealike with clauses - see readme.txt

{

        dials                   = //these are drawn, in order, after the legends
        (   
                {       // missile display, x and y give the location, the x-spacing is given by spacing, the size defines the icon size
                        height          = 12; 
                        selector        = "drawMissileDisplay:";
                        spacing         = 16; 
                        width           = 12; 
                        x               = -90;
                        y               = 65; 
                        y_origin        = -1; 
                },  
                {       // ship's clock, x and y give the location, the size defines the character size
                        height          = 20; 
                        selector        = "drawClock:";
                        width           = 20; 
                        x               = -240;
                        y               = 70; 
                        y_origin        = -1; 
                },  
                {       // just draws a surround 2 units around the selected size, you could also use drawGreenSurround:
                        height          = 14; 
                        selector        = "drawYellowSurround:";
                        width           = 80; 
                        x               = -62;
                        y               = 33; 
                        y_origin        = -1; 
                },  
                {       // fuel bar 
                        height          = 14; 
                        selector        = "drawFuelBar:";
                        width           = 80; 
                        x               = -62;
                        y               = 33; 
                        y_origin        = -1; 
                },  
                {       // fps counter, x and y give the location, the size defines the character size
                        height          = 18; 
                        selector        = "drawFPSInfoCounter:";
                        width           = 18; 
                        x               = -300;
                        y               = -20;
                        y_origin        = 1;
                }   
        );  
    
        legends         = // these are drawn, in order, before the dials, add any other images you want here
        (   
                {   
                        text            = "MISSILE RACK";
                        x               = -240;
                        y               = 45; 
                        height          = 20; 
                        width           = 20; 
                        y_origin        = -1; 
                },  
                {   
                        text            = "FUEL";
                        x               = -240;
                        y               = 20; 
                        height          = 20; 
                        width           = 20; 
                        y_origin        = -1; 
                }   
        );    
        overall_alpha   = 0.75;
        message_gui = { 
                  width          = 620;
                  height         = 72; 
                  x                  = 0;
                  y              = -75;
                  row_height = 18; 
                  };  
}
User avatar
Rese249er
---- E L I T E ----
---- E L I T E ----
Posts: 647
Joined: Thu Jun 07, 2012 2:19 pm
Location: Well, I WAS in G3...

Re: (NEW RELEASE) NumericHUDv3.oxp

Post by Rese249er »

Was wondering: could the distanceTo features of Aad-HUD be implemented with NumericHUD?
Got all turned around, lost my nav connection... Where am I now?
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: (NEW RELEASE) NumericHUDv3.oxp

Post by Diziet Sma »

Rese249er wrote:
Was wondering: could the distanceTo features of Aad-HUD be implemented with NumericHUD?
Should be fairly easy. I went with adding the basic original version to my Talkative Compass script.js file, days ago.

Code: Select all

//distance to object
if (mode != "COMPASS_MODE_BASIC") {
           dist = (player.ship.position.distanceTo(whom) - whom.collisionRadius)/1000;
           player.consoleMessage(dist.toFixed(3)+" Klicks");
}
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
Rese249er
---- E L I T E ----
---- E L I T E ----
Posts: 647
Joined: Thu Jun 07, 2012 2:19 pm
Location: Well, I WAS in G3...

Re: (NEW RELEASE) NumericHUDv3.oxp

Post by Rese249er »

I was thinking more in line with integrating it into the HUD like the rest instead of just like Talkative SC...
Got all turned around, lost my nav connection... Where am I now?
User avatar
CommonSenseOTB
---- E L I T E ----
---- E L I T E ----
Posts: 1397
Joined: Wed May 04, 2011 10:42 am
Location: Saskatchewan, Canada

Re: (NEW RELEASE) NumericHUDv3.oxp

Post by CommonSenseOTB »

Rese249er wrote:
Was wondering: could the distanceTo features of Aad-HUD be implemented with NumericHUD?
Perhaps, I'll put it on the list of things to look at.
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
User avatar
Captain Beatnik
Deadly
Deadly
Posts: 154
Joined: Sun Feb 27, 2011 10:15 pm
Location: Eastern Bavaria (Average Agricultural Confederacy)

Re: (NEW RELEASE) NumericHUDv3.oxp

Post by Captain Beatnik »

CommonSenseOTB wrote:
The big improvement in number design came about as I was experimenting with the selector drawStatusLight and experimenting with its' dimensions led me to discover that if one dimension was under 4 that you would actually get a grey line drawn instead of the status light. So any hud could use this technique to draw equipment icons, animated crosshairs, custom bar gauges both straight and curved, custom number or letter animations, etc, etc.
Somehow I must have read over this information previously . This will indeed come in handy when designing a new hud. Thanks, CSOTB! :D
I love deadlines. I like the whooshing sound they make as they fly by. (Douglas Adams, 1952 - 2001)
You have to try the impossible to achieve the possible. (Emil Sinclair, 1877 - 1962)
User avatar
CommonSenseOTB
---- E L I T E ----
---- E L I T E ----
Posts: 1397
Joined: Wed May 04, 2011 10:42 am
Location: Saskatchewan, Canada

Re: (NEW RELEASE) NumericHUDv3.oxp

Post by CommonSenseOTB »

Captain Beatnik wrote:
CommonSenseOTB wrote:
The big improvement in number design came about as I was experimenting with the selector drawStatusLight and experimenting with its' dimensions led me to discover that if one dimension was under 4 that you would actually get a grey line drawn instead of the status light. So any hud could use this technique to draw equipment icons, animated crosshairs, custom bar gauges both straight and curved, custom number or letter animations, etc, etc.
Somehow I must have read over this information previously . This will indeed come in handy when designing a new hud. Thanks, CSOTB! :D
This was mentioned with you in mind, actually. I was hoping to eventually see one of your huds with this method for your equipment icons, guage markings, etc. And your welcome. :)
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
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: (NEW RELEASE) NumericHUDv3.oxp

Post by Diziet Sma »

CommonSenseOTB wrote:
the PPR guage in them not only gives the Proportion of Planetary Radius for your altitude but comes on ahead of the planetary mass lock so you can steer around it while remaining on torus-drive.
And that's a feature I both love and make extensive use of! Many thanks for adding it! 8)
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
toltesi
Average
Average
Posts: 9
Joined: Thu Mar 14, 2013 7:43 pm

Re: (NEW RELEASE) NumericHUDv3.oxp

Post by toltesi »

NumericHUDv3.oxp seems to block MarketObserver2.2.oxp . I am running 1.77. Any help would be appreciated.
toltesi
Average
Average
Posts: 9
Joined: Thu Mar 14, 2013 7:43 pm

Re: (NEW RELEASE) NumericHUDv3.oxp

Post by toltesi »

toltesi wrote:
NumericHUDv3.oxp seems to block MarketObserver2.2.oxp . I am running 1.77. Any help would be appreciated.
This has been fixed by the new version of MarketObserver: 2.2.1.

Thanks so much!
Post Reply