type = verticle...

Post topics regarding Level Building/Design and Entity Usage with Reality Factory
Post Reply
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

type = verticle...

Post by metal_head »

The health bitmap for the hud is 85x196 and I have a little problem. Until now,the health picture in the hud was modified horiontal,and it's supposed to be Vertical. I wen't to the HUD.ini and set type = horizontal to verticle and when I started the game,the health indicator was just gone :( . why is that happening and what's the solution for this? Nirhis and Skullcrack both use vertical modification,so tha problem has to be in me.

Code: Select all

[health]
type = vertical
indicator = hud\health.bmp
indicatoralpha = hud\a_health.bmp
framex = 10
framey = 400
indicatoroffsetx = 1
indicatoroffsety = 0
indicatorwidth = 160
Also I can't get to show the oxygen element. It's a 128 x 128 image and whatever I do,it just doesn't show.
User avatar
QuestOfDreams
Site Admin
Posts: 1525
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Re: type = verticle...

Post by QuestOfDreams »

you've typed vertical but the value should be verticle as you wrote in the title
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: type = verticle...

Post by metal_head »

oh,I never learned that it's "Verticle" (something in the pronunciation makes me write it "vertical" every time),well...strange, but it's still not working,the hud element doesn't show,it shows when it's horizontal, but not verticle.
User avatar
bernie
RF Moderator
Posts: 1249
Joined: Tue Nov 15, 2005 10:07 am
Location: Ireland

Re: type = verticle...

Post by bernie »

The correct spelling is vertical it is incorrectly spelled in RF.
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: type = verticle...

Post by metal_head »

well,it doesn't work both ways :D
So it's not correctly spelled in RF,phew it's not mine mistake...

now,what could be the source of the problem? maybe something with the positioning?

right now it looks like that (added an extra frame to the element):

Code: Select all

[health]
type = verticle
frame = hud\health_frame.bmp
franeakoha = hu\a_health_frame.bmp
indicator = hud\health.bmp
indicatoralpha = hud\a_health.bmp
framex = 10
framey = 400
indicatoroffsetx = 0
indicatoroffsety = 0
indicatorwidth = 160
and the HUD element just doesn't show up. :(
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Re: type = verticle...

Post by Juutis »

Let me quote QoD from another thread:
It's easy.
All you need is the manual, all you need is the manual,
All you need is the manual, the manual, the manual is all you need.
The manual, manual, manual, manual, manual, manual, manual, manual, manual.
All you need is the manual, all you need is the manual,
All you need is the manual, the manual, the manual is all you need.
(freely adapted from All you need is love :P)
There are 3 different types of attribute display that can be used, verticle, horizontal and numeric. First, a sample of a verticle display.

[mana]
type = verticle
frame = rhud.bmp
framealpha = a_rhud.bmp
indicator = hbar.bmp
indicatoralpha = a_hbar.bmp
framex = -100
framey = 0
indicatoroffsetx = 10
indicatoroffsety = 50
indicatorheight = 32
:roll:
Pain is only psychological.
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: type = verticle...

Post by metal_head »

Yeah,I've read this like a million times,and I still can't figure it out.

why have you highlighted "indicatorheight = 32" in your quote? does this has something to do with my problem? I have a frame,so my indicatorheight is 0 btw.
User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Re: type = verticle...

Post by Juutis »

Because I don't see an 'indicatorheight' in your definition. The element ain't working if you don't have it.

***EDIT***
And you seem to have a little typo there:
franeakoha = hu\a_health_frame.bmp
Pain is only psychological.
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: type = verticle...

Post by metal_head »

yeah,you're right,I have missed it (and I though that it's not important).
User avatar
QuestOfDreams
Site Admin
Posts: 1525
Joined: Sun Jul 03, 2005 11:12 pm
Location: Austria
Contact:

Re: type = verticle...

Post by QuestOfDreams »

horizontal -> width
vertical -> height

pretty logical to me :wink:
User avatar
metal_head
Posts: 1244
Joined: Sat Jan 05, 2008 8:31 pm
Location: Bulgaria,Sofia
Contact:

Re: type = verticle...

Post by metal_head »

Because I don't see an 'indicatorheight' in your definition. The element ain't working if you don't have it.
Well,i never though that this could be the problem,because none of my other HUD elements have indicatorheight and they show.Ok,no matter,it works now and the demo is about to be released!
***EDIT***
And you seem to have a little typo there:

Quote:
franeakoha = hu\a_health_frame.bmp
Yeah I saw it you posted the message,but I didn't remember to fix this in the forums. Curses,that new keyboard is getting on my nerves,will take time till I get used to it. :)
Post Reply