Description

Ever wanted to make a weapon reposition addon like many before? Were you also offput by the idea of adjusting every single sight the gun has available? Well, not anymore.

Preview
HUD Offsets Editor
Post comment Comments
viking896
viking896 - - 202 comments

Finally we have it! Thanks alot, this saves so much time and frustration ;)

Reply Good karma Bad karma+2 votes
Guest
Guest - - 690,459 comments

INCREDIBLE

Reply Good karma Bad karma+1 vote
Timo2024
Timo2024 - - 65 comments

Awesome work dude got an alert on github for this pull/merge on github thank you lucy as well now in the mod exe's

Reply Good karma Bad karma+2 votes
BadaBoom_0325
BadaBoom_0325 - - 571 comments

Jesus Christ, finally easy work for EFT-like guns and gunslinger for Old World! God, those iron sights are were pain in the *** due to their stupid tilts.

Reply Good karma Bad karma+3 votes
DaimeneX Author
DaimeneX - - 854 comments

Currently trying to figure out why the offsets aren't applying to devices and pda. If anything this is on the executable side of things, so when it's fixed you'll just have to update demonized exe's

Reply Good karma+2 votes
DaimeneX Author
DaimeneX - - 854 comments

For those interested, it's been figured out, once again with Lucy's help!
Next pull request should appear on Github soon

Update: Pull Request is pending

Reply Good karma+1 vote
ElCaz4dor
ElCaz4dor - - 193 comments

This is a marvel.

Reply Good karma Bad karma+2 votes
aorushome
aorushome - - 221 comments

Thank you so much, finally able to fix these stupid hud_fov values from bas guns without having to go through adjustment hell.

Reply Good karma Bad karma+3 votes
LegionaryHunter
LegionaryHunter - - 21 comments

Absolute kino mod

Reply Good karma Bad karma+2 votes
Gyvi_fack
Gyvi_fack - - 10 comments

how to activate the editor?

Reply Good karma Bad karma+1 vote
DaimeneX Author
DaimeneX - - 854 comments

To activate the editor you have to have debug mode on and tap F7

Reply Good karma+1 vote
Rage4556
Rage4556 - - 67 comments

The base orientation axis are swapped, I.E. moving the mouse up and down moves it left and right, then vice versa.

Reply Good karma Bad karma+1 vote
DaimeneX Author
DaimeneX - - 854 comments

Already found a fix for it. Gonna upload it in a bit

Reply Good karma+2 votes
Rage4556
Rage4556 - - 67 comments

Much appreciated! Kudos for getting this done!

Reply Good karma Bad karma+1 vote
andtheherois
andtheherois - - 10 comments

was this fix ever uploaded? I redownloaded today and still have flipped adjustment axis for alt rotation

Reply Good karma Bad karma+1 vote
Ryan_Gosling2411
Ryan_Gosling2411 - - 108 comments

how to save changes without going into the weapon config?

Reply Good karma Bad karma+1 vote
DaimeneX Author
DaimeneX - - 854 comments

Unfortunately due to how the game handles things the easiest way to do this is to save the files to a debug file named cache_dbg.ltx as the draggable hud editor does.
It'll be located in [AnomalyFolder]/gamedata/configs and will contain all changes you made after clicking apply in the menu.

You'll want to find lines similar to this
[detector_advanced_hud]
base_hud_offset_pos = 0.093655, 0.004414, 0
base_hud_offset_pos_16x9 = 0.093655, 0.004414, 0
base_hud_offset_rot = -0.085972, -0.389962, 0.110292
base_hud_offset_rot_16x9 = -0.085972, -0.389962, 0.110292

Considering this requires custom exes from demonized, after you're done with adjusting you just copy every line containing "_hud" to a new ltx file. It needs to have "mod_system_" at the start for the game to recognize it as a dltx file if I remember correctly. The rest of the name is up to you.
After pasting the edited _hud files you created, make sure to add an exclamation mark (!) before every opening bracket. It will then look like this
![detector_advanced_hud]
base_hud_offset_pos = 0.093655, 0.004414, 0
base_hud_offset_pos_16x9 = 0.093655, 0.004414, 0
base_hud_offset_rot = -0.085972, -0.389962, 0.110292
base_hud_offset_rot_16x9 = -0.085972, -0.389962, 0.110292

That tells the game to overwrite those values for that specific entry created for that specific weapon or device. It's a much cleaner method than overwriting the files themselves.

Reply Good karma+1 vote
L4U6H1N6-LUN4T1C
L4U6H1N6-LUN4T1C - - 1,171 comments

awesome work!
is it possible to do something similar like the draggable hud but for icon placement? so that attachments, such as scopes, silencers or grenade Launchers are easier to place.
thanks!

Reply Good karma Bad karma+2 votes
Guest
Guest - - 690,459 comments

that would be really awesome

Reply Good karma Bad karma+1 vote
DaimeneX Author
DaimeneX - - 854 comments

Unfortunately that is beyond my skills. I don't think there are even editors for the UI elements in base game. 😅
It's tedious I know, but I do believe you can use "Reload system ltx" and then click the "reload game" buttons in debug menu which should apply the new values. I used that when tweaking a minimap mod once.

Reply Good karma+1 vote
TomasaurusREKT
TomasaurusREKT - - 331 comments

Does this work for lowered weapon position? Alt aim?

If not, would be cool to see added!

Reply Good karma Bad karma+1 vote
DaimeneX Author
DaimeneX - - 854 comments

Draggable Hud Editor already supports alt aim and lowered position adjustements. Since this mod only adds additional support for newly added base hud offsets it also includes base changes from draggable hud since that mod is required ;)
Just toggle lowered position and adjust the lowered variables in the debug menu.
For alt aim, you'll want to tap V when aiming to toggle between main and alt aim. Debug Mode allows all weapons to use alt aim, regardless of settings

Reply Good karma+1 vote
MarkVini6226
MarkVini6226 - - 92 comments

Hey man, your mod is awesome. Will help me alot. But Does this also work if the weapon in question have a custom hud? I'm trying to fix a bug that happens when I'm using private reposition with PPP.

Reply Good karma Bad karma+1 vote
Private_Pirate
Private_Pirate - - 178 comments

Hey! I Just read your comment. I will probably make a patch for PPP, just sayin'. :)

Reply Good karma Bad karma+1 vote
MarkVini6226
MarkVini6226 - - 92 comments

Oh man, thank you very much. You're awesome. I totally forgot that you were already making a patch for it. By the way, I'm the guest who commented a while ago about reporting this bug. And you replied, saying you would make a patch, but my ADHD a$$ made me forget it ¯\_(ツ)_/¯. Anyway, thanks for the support. I wish the best for you.

Reply Good karma Bad karma+1 vote
DaimeneX Author
DaimeneX - - 854 comments

I've been making a personal reposition after making this mod public and PPP seems to work fine.

Reply Good karma+1 vote
Private_Pirate
Private_Pirate - - 178 comments

While working on my addon I had the same idea but didn't know how to implement this. Now it's here. Great work!

Reply Good karma Bad karma+1 vote
Jamescorella
Jamescorella - - 116 comments

it was working previously but now i get this when i get into the hud editor F7. Any ideas?

FATAL ERROR

[error]Expression : xml_doc.NavigateToNode(path,index)
[error]Function : CUIXmlInit::Init3tButton
[error]File : D:\a\xray-monolith\xray-monolith\src\xrGame\ui\UIXmlInit.cpp
[error]Line : 360
[error]Description : XML node not found
[error]Argument 0 : dbg_wpn_hud_editor:btn_third_person
[error]Argument 1 : ui\ui_debug_launcher_16.xml

stack trace:

! [LUA] 0 : [C ] Init3tButton
! [LUA] 1 : [Lua] .../anomaly/bin/..\gamedata\scripts\ui_debug_wpn_hud.script(309) : InitControls
! [LUA] 2 : [Lua] .../anomaly/bin/..\gamedata\scripts\ui_debug_wpn_hud.script(240) :
! [LUA] 3 : [C ] WpnHudEditor
! [LUA] 4 : [Lua] .../anomaly/bin/..\gamedata\scripts\ui_debug_wpn_hud.script(152) : start
! [LUA] 5 : [Lua] ...anomaly/bin/..\gamedata\scripts\ui_debug_launcher.script(455) : exec
! [LUA] 6 : [Lua] ...anomaly/bin/..\gamedata\scripts\ui_debug_launcher.script(849) : Execute
! [LUA] 7 : [Lua] ...anomaly/bin/..\gamedata\scripts\ui_debug_launcher.script(860) : OnList
! [LUA] 8 : [Lua] ...anomaly/bin/..\gamedata\scripts\ui_debug_launcher.script(873) :

Reply Good karma Bad karma+1 vote
DaimeneX Author
DaimeneX - - 854 comments

Missing required mod. Install draggable hud and let this mod overwrite it

Reply Good karma+1 vote
Jamescorella
Jamescorella - - 116 comments

Thank you! Also I wanted to ask if you happen to have any advice on what numbers I should be around when trying to fix this position? when I aim with the AKs74u BaS with Kobra sights.

Is there any reference I should be using?
Reddit.com

Reply Good karma Bad karma+1 vote
DaimeneX Author
DaimeneX - - 854 comments

Sounds like you'll have to take the weapon into debug menu with the sight on, then adjust from there. Since most sight variants have unique aim offsets it shouldn't affect anything else.

Reply Good karma+1 vote
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: