NEOTOKYO°

NEOTOKYO°

26 ratings
HUD Modification (for customization or multi-monitor setups!)
By ♕ Xunie ♡ and 1 collaborators
This guide explains how to modify the position of each HUD element on the screen.
   
Award
Favorite
Favorited
Unfavorite
PSA: Spread The Word! You too can game like this! CHEAPLY!
To get my multimonitor setup working? I needed to buy an active DisplayPort hub for my videocard. I was able to cheaply buy one second-hand, but others aren't so lucky.
SoftTH allows you to set up multimonitor setups without spending money on active DisplayPort hubs to work around videocard hardware limitations. You too can game like me! cheaply!
My videocard (R9 270X) couldn't draw to the two DVI outs and HDMI out at the same time, however it CAN draw to two DVI ports and the DisplayPort at the same time, but only if there's an active DisplayPort hub available to convert the DisplayPort signal back to a DVI signal. A straight DisplayPort->DVI cable won't work!. This is because your video card has only two RAMDACs and your DisplayPort hub will have the third one you need for your third analog (DVI/VGA) monitor. I am not sure about HDMI monitors and whether you can use a HDMI monitor with two DVI monitors. Please refer to Google and your card manufacturer for that!

If you have a second videocard in your PC and some old screens laying around? You too can enjoy being called a cheater because you're able to spot a guy to your immediate right when walking through a door!
Mix and match AMD and NVidia cards as much as you like! It should work with SoftTH.
DX11 support coming to SoftTH! Linux and Mac support already there! :3
Mind you that the PCI bandwidth required to do this is most likely quite large. If you use SoftTH or tried to use it but it sucked? Drop me a note! I want to hear your story!

What is this guide? And... why?!
This guide explains how to modify the positions of each of the HUD elements in the game. We'll go through positioning each individual hud 'group' and end up with a final product to your liking.

If you're running a multi-monitor setup like me (whether through AMD Eyefinity, NVidia Surround or homebrewed/custom solutions), checking anything other than your compass can be a pain to do and put you a disadvantage. This is where this guide comes in.

By modifying the location of the HUD elements? We're able to instruct the game to draw the HUD elements on your central monitor, or any monitor you'd like.

Pic related, what it looks like originally:

A trained eye may still spot the crosshair's top side being cut off in this image. Fear not! It has been fixed and patched by me and pushBAK uploaded the new stock HudLayout.res on Steam.
How we are gonna do this.
As far as I know... AMD Eyefinity, NVidia Surround, SoftTH and alternatives all work by presenting games with a 'Single Large Screen', a 'pseudo monitor' that (when drawn to) splits the image up between your actual real world monitors.
We're going to modify the position of the HUD elements on this 'pseudo monitor' so they're all rendered on the desired monitor. And if you have triple-head landscape setup like I do? You'll be able to get your HUD nicely centered in the middle of the screen.

NeotokyoSource\scripts\HudLayout.res is a file that describes the position, scale, visibility and other properties of HUD elements in NEOTOKYO. This is the file we will be editing in order to set the correct position of each HUD element.

If you're wondering if this file gets overwritten when a new patch comes out or when you verify the game's local data? You are correct.
However, since Neotokyo is dedgaem and no patch will ever be released again? You can safely edit this file without losing your changes due to a patch or update!
Mind you that it's only saved on the computer you edit it on, the file isn't stored in the 'steam cloud' and thus not updated/shared across all your machines. If you reinstall Windows or the game? Or you verify the game's cache? YOU WILL LOSE THIS FILE.
Needless to say: back this file up before and after you edit it!
Verifying the game's local cache also gets rid of your changes and will reset everything!
This guy knows what's up: https://youtu.be/bKgf5PaBzyg?t=163

Technical details:
Comments are C++ styled. Meaning: anything after // on the same line will be ignored. I also believe comments /* like this */ will work.
I do recommend making comments of your own changes in the file itself, it's always handy!
What do I edit?
This is the screen space coordinate system, as you can see? Increasing an element's xpos moves it to the right. Decreasing it moves it left.
Likewise, ypos moves it down or up if you increment or decrement it respectively.

I do not know which numbers you should use for your display setup. Changing the resolution you use probably means you have to use different values for your version of HudLayout.res.
From what I know? I can't tell you anything other than this: You HAVE to find out the values that work for you through trial and error.
I recommend editing this file in a text editor in the background. Once you have a config save it, and alt-tab to NEOTOKYO type hud_reloadscheme in the console to reload HudLayout.res into the game.
hud_reloadscheme also helps if you can't see your teammate's squad indicators and/or your HUD is buggy for some reason

'xpos' inside of 'NHudHealth' refers to the left-right positioning of the health/camo/aux bar group in the left bottom corner of a standard screen layout.
I had to set xpos from 0 to 570 to get mine to show up perfectly on my monitor.

It seems like 'R' can be used to 'reverse' or set the number to indicate the offset from the right side of the screen instead of the left side. I am not sure if 'r###' and 'R###' have different behavior.
Table of stuff to edit
I will be giving both the default values (as of September, 2015), and the values I use in my setup (4480x1080).
Mind you that I did not have to edit the ypos values in order to neatly center everything on my center monitor.
You can mess around with ypos if you want, nothing's stopping you! :3


class
variable
default value
custom value
NHudHealth
xpos
"0"
"570"
NHudWeapon
xpos
"r203"
"r772"
NHudRoundTimer
xpos
"R70"
"R600"
HudVoiceSelfStatus
xpos
"0"
"570"
HudDeathNotice
xpos
"r640"
"r1250"
HudChat
xpos
"10"
"580"
Caveats
  • I haven't been able to move the squad info box (where you see what squad you're in and which teammates are still alive.)
Let me know if you figure out how...
4 Comments
Zippy 21 Dec, 2016 @ 6:17pm 
Well, I went through a bunch of files. The compass seems to be like the squad info box. I noticed they both load as soon as the game starts, and aren't a part of the normal HUD.
♕ Xunie ♡  [author] 21 Dec, 2016 @ 4:47am 
I'm fairly certain there's a value for that in the .res file, yeah.

You gotta find out which one it is, though.


Report back if you've found it so I can update the guide!
Zippy 20 Dec, 2016 @ 8:36pm 
Is there a way to move the compass?
Reimu Hakurei x3 25 Nov, 2015 @ 7:05pm 
This cured my diabetes, I can finally wear matching socks while petting my oven mints!