Dirty Bomb

Dirty Bomb

68 ratings
How to edit the HUD
By Kirays
Hey there!

Welcome to my first guide.
I will be describing how to edit the HUD in Dirty Bomb.
While it can take a bit to find the correct values, it's not hard once you know how to.

Happy reading! :)
 
Rate  
Favorite
Favorited
Unfavorite
Basic editing
Okay, let's start with the basics.
You'll first want to find the ShooterUI file located at

User\Documents\My Games\UnrealEngine3\ShooterGame\Config

Please make a backup incase you need to revert the changes.

Now, open the file. Don't worry if it looks complicated, you'll want to find one line called

[ShooterGame.SGUIHUDPlayer]

Under that line you are able to find these four things

WeaponAmmoPosition
AbilityCooldownPosition
PlayerHealthPosition
GameWaveTimerPosition

These four lines are the most important.
They say where the ammo, the abilities, the health and the spawn timer are located.
By default the position of the health bar is in the bottom right corner.
Now let's say you want to change the position of your health.
In the PlayerHealthPosition line you can read things like

Align=(V=HA_BOTTOM)

Attach=(H=HA_RIGHT, V=HA_BOTTOM)

PixelOffset=(Y=4)

ShadowOffset=(X=-1, Y=-1))

The first two lines tell you where this specific HUD element is aligned and attached.
As you can tell, the health bar is aligned to the bottom and attached to the bottom right corner.

The PixelOffset line let's you change the exact position of the element.

Now, the first two lines are the most important.
So, how do you change the exact position of an element by using PixelOffset?
Well, first of all, there are two types: Y and X.

Y tells you how high or how low the element is displayed on the screen.
X tells you how far left or right the element is displayed on the screen.

The higher the Y value is, the lower the element is displayed.
The lower the Y value is, the higher the element is displayed.

The higher the X value is, the more to the right the element is displayed.
The lower the X value is, the more to the left the element is displayed.

Okay! That's good to know.
We want to change the position of our health, right?
Let's put it in the center, bottom half of your screen.

We know that the health bar is in the bottom, right corner of the screen.
This is the default line:

PlayerHealthPosition=(Align=(V=HA_BOTTOM), Attach=(H=HA_RIGHT, V=HA_BOTTOM), PixelOffset=(Y=4), ShadowOffset=(X=-1, Y=-1))

Now, how about we change it to this:

PlayerHealthPosition=(Align=(H=HA_CENTER, V=HA_BOTTOM), Attach=(H=HA_CENTER, V=HA_BOTTOM)

So, what did I do there?
Well, first of all I added H=HA_CENTER to the default V=HA_BOTTOM
Now it aligns the health bar to the center bottom.
Then, I changed the attach H=HA_RIGHT to H=HA_CENTER so that it obviously attaches to the center. I don't have to change the ones with bottom as that's what we want.

By changing this, you've made the health bar appear exactly in the middle bottom of your screen. However, we wanted to have it a bit more higher, right?

And at this point the PixelOffset line comes in play.

By default it says Y=4
Earlier I've mentioned that the lower the number is, the higher the element will appear.
Put in a higher number like 150 and change it to your needs!

What do you do if you want the health bar... let's say more to the right of your screen?
In this case you need to add the X value.

PixelOffset=(Y=4)

PixelOffset=Y=4, X=0)

At the moment the X value is zero, the element is at the very right of the screen.
You probably do not want it to have there, though.
Again, experiment by using different values and changing it to your needs.

If you should need it, you can also use the - symbol to use negative numbers.

The reason why downloaded HUD's often look wrong is simply because it was not made for the resolution you are currently using.

This is an example how your HUD could look like at the end:


Remember to check read only in the properties of the file when you are happy with your editing to prevent any loss!
Advanced editing
Let's have a look at the advanced stuff!

How to change the health bar colour of team-mates and enemies

Find the following lines in the ShooterUI:

[ShooterGame.SGUIHUDIFFObjectAlly]
m_PrimaryColor=(R=0,G=150,B=200,A=255)
m_SecondaryColour=(R=255,G=255,B=255,A=255)

[ShooterGame.SGUIHUDIFFObjectEnemy]
m_PrimaryColor=(R=240,G=95,B=65,A=255)

The first part displays the colour of your team-mates while the second part does for your enemies.
It works exactly like when changing the colour of the crosshair in-game.
R stands for red, G stands for green and B stands for blue.
With A you can change the transparency.
Let's say you want a vivid blue for your team-mates and a vivid red for your enemies.
You'd change it like this:

[ShooterGame.SGUIHUDIFFObjectAlly]
m_PrimaryColor=(R=0,G=0,B=255,A=255)
m_SecondaryColour=(R=255,G=255,B=255,A=255)

[ShooterGame.SGUIHUDIFFObjectEnemy]
m_PrimaryColor=(R=255,G=0,B=0,A=255)

255 is the max value you can put in.

Note: I wasn't able to figure out what "m_SecondaryColour" is used for.

Again, remember to check read only in the properties of the data when you are happy with your editing to prevent any loss!
Extra information
This is my HUD.
It features centered health bar, ammo and abilitys position.
Minimap and the other things are not changed.

How to install:

Make a backup of your current ShooterUI and then place mine in its place.

Remember that it's made for 1280 x 720 resolution.
If you are using a different resolution it will look messed up, you'll need to edit.


Have fun! :)

https://www.dropbox.com/s/5xf82n164li2h5z/ShooterUI.ini?dl=0
< >
57 Comments
Argyle.exe Nov 22 @ 12:16pm 
what are the exact numbers for your setup?
PaulAlexFearlessLovePierre Nov 4 @ 1:15am 
:) There's isn't the HUD file changer anymore; most likely a developer found out about your post and and removed it by a patch. They should do that possible by the game options menu.
Stokar Apr 29 @ 12:49pm 
What do i need to change inorder to make the minimap bigger, atm its too small for me to have quick glance without wasting too much time during battle
Kirays  [author] May 15, 2016 @ 2:26am 
Small update.
Removed some useless text and corrected an error.
Kirays  [author] Mar 31, 2016 @ 5:09pm 
@epicdragon2104
I'd rather see them add a working HUD generator tool.
As you have noticed, doing this yourself is incredible annoying and time consuming.
xXIDONTKNOW2104Xx (@ college) Mar 31, 2016 @ 4:09pm 
Darn. Oh well. Hopefully the devs will add it soon.
Kirays  [author] Mar 31, 2016 @ 4:04pm 
@epicdragon2104
Even though I'm sure you've already tried that it will not work.
Basically, once you start Dirty Bomb it saves how the settings were at this point of time.
It doesn't actually recognize any changes you make in the config file itself.
I'm fairly certain the same goes for the graphical settings as well.
xXIDONTKNOW2104Xx (@ college) Mar 31, 2016 @ 12:11pm 
Yeah, that's what I've been doing, will it work to leave the game running, make a change, then start a offline map, go back to the main menu, make a change, start another offline map, rinse and repeat? Imma try that
Kirays  [author] Mar 31, 2016 @ 1:43am 
@epicdragon2104
Unfortunately I'm pretty sure there is no way to preview your changes.
The fastest way to look at a change is to copy one of the commands to start an offline map via the console.

For example:

Switchlevel OBJ_whitechapel

Good luck! :)
xXIDONTKNOW2104Xx (@ college) Mar 30, 2016 @ 6:04pm 
i have a question. i know the basics of how to move things around, but how can i preview them? i'm currently stuck starting and restarting my game every time i make a change. i know in team fortress 2 i could just type "hud_reloadscheme" into the console and it would rescan for my hud and move things around as needed. and it gets REALLY ANNOYING for both me and my friends to restart my entire game just to check a small change i made, then turning off the game, make another tiny change, and need to start my game and send out the notification to every1 that i'm now playing dirty bomb for 30 seconds. any ideas?