SOS. Help With HUD!!!

Game Design, Story, Game Play.
Post Reply
User avatar
Gamemaker
Posts: 266
Joined: Fri Aug 08, 2008 3:00 pm
Location: Estonia
Contact:

SOS. Help With HUD!!!

Post by Gamemaker » Thu Aug 14, 2008 9:16 pm

I really need help. I can't make numeric ammo HUD! Manuals don't help me at all!!!

Please help me!
Dan Valeo and RF manual didn't help me :(
Can someone tell me how to do that Step-By-Step?
P.S. Sorry for my Very-Very bad and ugly English 'cos I'm Estonian :)

User avatar
Juutis
Posts: 1511
Joined: Thu Jan 12, 2006 12:46 pm
Location: Finland

Re: SOS. Help With HUD!!!

Post by Juutis » Thu Aug 14, 2008 9:26 pm

First of all, welcome to the forums.

Secondly, it all is in the manual:
Clip& Magazine Display
In conjunction with weapon reloading it is possible to make the HUD display the amounts left in the clip and the number of clips left, rather than just the amount of ammunition. This change only applies if the currently selected weapon supports clips. If it doesn't, then just the amount of ammunition will be shown.

To make the HUD entry show the amount left in the clip add the line:

style = magazine

to the HUD definition. To make it show the number of clips left add this line:

style = clip

To show both clips and magazine contents at the same time you must use the ~ extension to the HUD entry name and define two different entries. For example, to show magazines and clips for bullets you would make the definitions like this:

[bullet]
type = numeric
style = magazine
framex = -100
framey = 0
indicatoroffsetx = 36
indicatoroffsety = 138
font = 9
width = 3
active = false

[~bullet]
type = numeric
style = clip
framex = -100
framey = 0
indicatoroffsetx = 36
indicatoroffsety = 158
font = 9
width = 3
active = false
Is there some thing in particular you don't understand?
Pain is only psychological.

User avatar
Gamemaker
Posts: 266
Joined: Fri Aug 08, 2008 3:00 pm
Location: Estonia
Contact:

Re: SOS. Help With HUD!!!

Post by Gamemaker » Thu Aug 14, 2008 9:40 pm

I understand everything, but this didn't work :(

hud.ini should be like this, I understand :

style=clip
style=magazine

[bullet]
style=magazine
blahblah etc.

[~bullet}
style=clip
blahblah etc.

User avatar
steven8
Posts: 1487
Joined: Wed Aug 24, 2005 9:08 am
Location: Barberton, OH

Re: SOS. Help With HUD!!!

Post by steven8 » Tue Aug 19, 2008 8:17 am

Hi Gamemaker. Did you get this issue resolved? What was happening? Did nothing show up on the screen, or did it come out wrong? Make sure you have a font #10, which is font = 9, and make sure you have equipped you weapon in the weapon ini, and player ini files.
Steve Dilworth - Resisting change since 1965!

User avatar
Gamemaker
Posts: 266
Joined: Fri Aug 08, 2008 3:00 pm
Location: Estonia
Contact:

Re: SOS. Help With HUD!!!

Post by Gamemaker » Tue Aug 19, 2008 4:25 pm

steven8 wrote:Hi Gamemaker. Did you get this issue resolved? What was happening? Did nothing show up on the screen, or did it come out wrong? Make sure you have a font #10, which is font = 9, and make sure you have equipped you weapon in the weapon ini, and player ini files.
Nothing showed up on screen. All I got was a big headache and I wasted a lot of hours :(
I copied all this script to weapon.ini, but do I have to copy it to player.ini too?

Waiting for answers ;)

User avatar
steven8
Posts: 1487
Joined: Wed Aug 24, 2005 9:08 am
Location: Barberton, OH

Re: SOS. Help With HUD!!!

Post by steven8 » Wed Aug 20, 2008 1:31 pm

I just meant to make sure the player is armed with the weapon and ammo you need in the player.ini file. Also, make sure your weapon supports clips.

Oh, if all that looks cool, set framex and y to like, 10.
Steve Dilworth - Resisting change since 1965!

User avatar
Gamemaker
Posts: 266
Joined: Fri Aug 08, 2008 3:00 pm
Location: Estonia
Contact:

Re: SOS. Help With HUD!!!

Post by Gamemaker » Thu Aug 21, 2008 9:50 pm

steven8 wrote:I just meant to make sure the player is armed with the weapon and ammo you need in the player.ini file. Also, make sure your weapon supports clips.

Oh, if all that looks cool, set framex and y to like, 10.
I used default Reality Factory weapons. When the game starts, the player has ammo. Or do I have to change [Bullet], to this weapon's ammo. Like: [GL_Grenade] etc. ?

User avatar
steven8
Posts: 1487
Joined: Wed Aug 24, 2005 9:08 am
Location: Barberton, OH

Re: SOS. Help With HUD!!!

Post by steven8 » Sat Aug 23, 2008 4:33 am

Your hud ini file will have to have all possible weapon ammunitions in order to show them.
Steve Dilworth - Resisting change since 1965!

User avatar
Gamemaker
Posts: 266
Joined: Fri Aug 08, 2008 3:00 pm
Location: Estonia
Contact:

Re: SOS. Help With HUD!!!

Post by Gamemaker » Sat Aug 23, 2008 9:27 am

steven8 wrote:Your hud ini file will have to have all possible weapon ammunitions in order to show them.
Okay! Thanks for your help. REALLY!! :)

User avatar
steven8
Posts: 1487
Joined: Wed Aug 24, 2005 9:08 am
Location: Barberton, OH

Re: SOS. Help With HUD!!!

Post by steven8 » Sun Aug 24, 2008 1:36 am

Gamemaker wrote:
steven8 wrote:Your hud ini file will have to have all possible weapon ammunitions in order to show them.
Okay! Thanks for your help. REALLY!! :)
You're welcome!
Steve Dilworth - Resisting change since 1965!

Post Reply