HUD Problem!Hope you can Help

General discussion for players of Oolite.

Moderators: winston, another_commander

User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: HUD Problem!Hope you can Help

Post by Eric Walch »

Back to the topic: Hud problems.

For some reason there was never a hud page in the wiki. I now added one: [wiki]hud.plist[/wiki]

I am not an hud expert so experienced hud designers can probably correct any mistakes I made on that page.
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: HUD Problem!Hope you can Help

Post by Smivs »

That's great news, Eric. Well done and thanks.
Commander Smivs, the friendliest Gourd this side of Riedquat.
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: HUD Problem!Hope you can Help

Post by Cody »

Yes... thanks Eric, very useful.
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!
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: HUD Problem!Hope you can Help

Post by CommonSenseOTB »

Thank you Eric Walch! :D :D :D

You did great! 3 things I didn't know and haven't seen before:

1) n_banks or n_bars for the energy gauge.(This could be really helpful for ships with large energy banks)

2)title for comms log

3)background rgb color for comms log

Some guys were looking for the comms log info in another thread and they'll be very happy for this. Thanx Eric!!! :D
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
Okti
---- E L I T E ----
---- E L I T E ----
Posts: 700
Joined: Sun Sep 26, 2010 1:51 pm
Location: A GH shop, near witchpoint to Oresrati in Galaxy 8

Re: HUD Problem!Hope you can Help

Post by Okti »

Eric Walch wrote:
Back to the topic: Hud problems.

For some reason there was never a hud page in the wiki. I now added one: [wiki]hud.plist[/wiki]

I am not an hud expert so experienced hud designers can probably correct any mistakes I made on that page.
I think that proves, 'Every cloud has a silver lining', thanks Eric :oops:
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: HUD Problem!Hope you can Help

Post by Eric Walch »

CommonSenseOTB wrote:
You did great! 3 things I didn't know and haven't seen before:

1) n_banks or n_bars for the energy gauge.(This could be really helpful for ships with large energy banks)
That one was new to me too. I just noticed this option while writing the page. I thought is was hardcoded to 64 units as maximum per bank, but testing it, the key seems to work correctly as advertised.

I think that for a generic hud it would be bad practice to use that key, but for specific ship-huds with much energy, you can avoid having 20 small banks but create just 5 big banks. (Or an adder with 20 banks with almost no energy per bank)
m4r35n357
---- E L I T E ----
---- E L I T E ----
Posts: 296
Joined: Wed Jan 19, 2011 4:00 pm

Re: HUD Problem!Hope you can Help

Post by m4r35n357 »

Eric Walch wrote:
Back to the topic: Hud problems.

For some reason there was never a hud page in the wiki. I now added one: [wiki]hud.plist[/wiki]

I am not an hud expert so experienced hud designers can probably correct any mistakes I made on that page.
Thanks for putting that up Eric, any chance of getting some info on selectors:

"The selector is a hardcode name." is a little, er, enigmatic ;)
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: HUD Problem!Hope you can Help

Post by CommonSenseOTB »

Eric did a great job. :D I don't know how much more information could be included. The way to learn about how the huds work is to do what I did at the beginning of the year. Take a copy of the hud from the config file of the game and place it in the AddOns folder. You can then mess around with it. Make a change. See what it does. Do that a couple hundred times with all the different adjustments you can make and you will KNOW how it works. It is that simple. Next step is to make your own basic hud to your own specifications. After that it is all downhill from there and gets much easier to the point where instead of making 5 or 10 adjustments to get it right it only takes 2 or 3. Familiarity is the real hurdle. Names of selectors are mostly self explanatory. Mind you, this list is for developers and tinkerers, those who usually read between the lines. Not for the casual user. I don't think the casual user should or even would want to mess around with the hud.plist anyway. Like scripting, it is good to see working examples with all the syntax. Copy what works and make small changes and you really can't go wrong. Just takes a little time and trial and error and you will make huds better than mine. :wink:
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
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: HUD Problem!Hope you can Help

Post by Eric Walch »

CommonSenseOTB wrote:
3 things I didn't know and haven't seen before:

2)title for comms log
I removed that one from the documentation. The other two I had tested and worked okay. I just tested title. It does not work correct. It pushes the whole text one line lower but does not print the title, and now the text also does not fit any used background rectangle.
So, forget this feature.
CommonSenseOTB wrote:
Eric did a great job. :D I don't know how much more information could be included. ......
Take a copy of the hud from the config file of the game and place it in the AddOns folder. You can then mess around with it. ..... :wink:
Thanks CommonSenseOTB and others.
Starting with the default hud is the most sensible approach to do the huds. And that is probably the reason why nobody bothered making a hud page.
There was only the problem of some new features that are not in the default hud, so you might miss them. And also the x_origin etc is not very self explanatory.
User avatar
Killer Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 2279
Joined: Tue Jan 02, 2007 12:38 pm

Re: HUD Problem!Hope you can Help

Post by Killer Wolf »

Cheers bud, that'll be very useful.
i notice the Y values for the GUIs are in quotes, i take it that's a typo.
User avatar
Eric Walch
Slightly Grand Rear Admiral
Slightly Grand Rear Admiral
Posts: 5536
Joined: Sat Jun 16, 2007 3:48 pm
Location: Netherlands

Re: HUD Problem!Hope you can Help

Post by Eric Walch »

Killer Wolf wrote:
i notice the Y values for the GUIs are in quotes, i take it that's a typo.
I just copied them from an existing hud. Using quotes is always good, but not always needed. Quotes become only necessary when the text contains spaces. In this case you can use it both ways.
But, I agree, it is not consistent. Probably because I copied it from different sources.
Post Reply