Help!!! My HUD is messed up on different aspect ratios!

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
trevor0402
Posts: 94
Joined: Thu Aug 01, 2013 7:47 am

Help!!! My HUD is messed up on different aspect ratios!

Post by trevor0402 »

Here it is in 4:3.
Image
Here it is in 16:9.
Image

Heres my SBARINFO
Spoiler:
User avatar
TheMightyHeracross
Posts: 2100
Joined: Sun Aug 18, 2013 9:41 am
Location: Philadelphia, PA

Re: Help!!! My HUD is messed up on different aspect ratios!

Post by TheMightyHeracross »

Add a "resolution" keyword, and set the resolution you want to keep it on.
For example, the modified BTSX HUD I used for Lifelong Strife had this line of code:

Code: Select all

Resolution 1280, 1024;
This makes it always appear the way it would if it were on 1280x1024, which is a high-resolution 4:3 ratio.[/s]
IGNORE ALL, THIS IS WRONG.
Last edited by TheMightyHeracross on Wed Oct 30, 2013 6:47 pm, edited 1 time in total.
Immortal Destroyer
Posts: 133
Joined: Sat Oct 26, 2013 1:34 pm
Location: That's a very interesting Question.

Re: Help!!! My HUD is messed up on different aspect ratios!

Post by Immortal Destroyer »

You need to give us also the Resolution of your Screen; We need to know his maximum levels, to find what's the Best aspect ratio for you.
Immortal Destroyer
Posts: 133
Joined: Sat Oct 26, 2013 1:34 pm
Location: That's a very interesting Question.

Re: Help!!! My HUD is messed up on different aspect ratios!

Post by Immortal Destroyer »

TheMightyHeracross wrote:Add a "resolution" keyword, and set the resolution you want to keep it on.
For example, the modified BTSX HUD I used for Lifelong Strife had this line of code:

Code: Select all

Resolution 1280, 1024;
This makes it always appear the way it would if it were on 1280x1024, which is a high-resolution 4:3 ratio.
What the Hell!
I just post the same thing :/
User avatar
TheMightyHeracross
Posts: 2100
Joined: Sun Aug 18, 2013 9:41 am
Location: Philadelphia, PA

Re: Help!!! My HUD is messed up on different aspect ratios!

Post by TheMightyHeracross »

No you didn't.
First of all, I posted before you.
Second of all, I told him what to add to his SBARINFO lump, which was different from what you said.
Immortal Destroyer
Posts: 133
Joined: Sat Oct 26, 2013 1:34 pm
Location: That's a very interesting Question.

Re: Help!!! My HUD is messed up on different aspect ratios!

Post by Immortal Destroyer »

TheMightyHeracross wrote:No you didn't.
First of all, I posted before you.
Second of all, I told him what to add to his SBARINFO lump, which was different from what you said.
Image
And third of all, you get off from the Subject.
User avatar
trevor0402
Posts: 94
Joined: Thu Aug 01, 2013 7:47 am

Re: Help!!! My HUD is messed up on different aspect ratios!

Post by trevor0402 »

Um it did not work the bullet icon is still moving the wrong way it is supposed to look like this.
Image
User avatar
TheMightyHeracross
Posts: 2100
Joined: Sun Aug 18, 2013 9:41 am
Location: Philadelphia, PA

Re: Help!!! My HUD is messed up on different aspect ratios!

Post by TheMightyHeracross »

Just played your mod. I'm going to assume it was made for 800x600?
I set it to 800x600, and the HUD looked good.
If so, pur 800, 600 instead of 1280, 1024.
And if it's not that amount, replace it with whatever resolution it works on.
User avatar
trevor0402
Posts: 94
Joined: Thu Aug 01, 2013 7:47 am

Re: Help!!! My HUD is messed up on different aspect ratios!

Post by trevor0402 »

the problem probably is the IsSelected things for each of my weapons i dont know how to keep the icons in the same place as my max resoluion 1768 x 992
User avatar
TheMightyHeracross
Posts: 2100
Joined: Sun Aug 18, 2013 9:41 am
Location: Philadelphia, PA

Re: Help!!! My HUD is messed up on different aspect ratios!

Post by TheMightyHeracross »

Oh. You got a high resolution, more than my computer supports.
Say, check your HUD icons' offsets. Are they all at 0,0? (I mean the sprite offsets in SLADE, not the coordinates in SBARINFO.)
User avatar
TheDarkArchon
Posts: 7656
Joined: Sat Aug 07, 2004 5:14 am
Location: Some cold place

Re: Help!!! My HUD is messed up on different aspect ratios!

Post by TheDarkArchon »

Uh, Trevor, you do know that the ammoicon1 command exists in SBARINFO to display icons for different ammo types instead of having to do it on a per-weapon basis, right? Also, the co-ordinates for the DrawImage calls are in the lower left corner, suggesting that you are using image offsets to put it to the right corner, instead of doing it the proper way by using negative x and y co-ordinates (See this image for more details on how fullscreenoffset co-ordinates in SBARINFO works.
User avatar
leileilol
Posts: 4449
Joined: Sun May 30, 2004 10:16 am
Preferred Pronouns: She/Her
Location: GNU/Hell

Re: Help!!! My HUD is messed up on different aspect ratios!

Post by leileilol »

TheMightyHeracross wrote:1280x1024, which is a high-resolution 4:3 ratio.
1280x1024 is 5:4, actually. The 4:3 one is 1280x960 (320x240 times 4).
User avatar
TheMightyHeracross
Posts: 2100
Joined: Sun Aug 18, 2013 9:41 am
Location: Philadelphia, PA

Re: Help!!! My HUD is messed up on different aspect ratios!

Post by TheMightyHeracross »

What, it is??
Welp, time to delete yet another nonsense post.
Locked

Return to “Editing (Archive)”