-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't set crosshair position #2543
Comments
yes why removed `? |
@ramnes |
I know you can set the crosshair position here, but it doesn't get saved (edit: it does apply but it's not persistent across maps), hence the issue. If you meant to answer to @b00nji comment, I guess it was about the config cvars (c.f. the Discord discussion). |
Is your cg_althud set to the right HUD you changed the positions in? |
|
Discussed in the Discord screenshot above |
There is an etconfig.cfg in profiles folder and one in base legacy folder, did you check both? |
|
So what if you manually set cg_althud in the config to your HUD? |
actually, with
|
but there is no mention of the crosshair position (edit: for this profile) in the
|
in the parent, there's something:
|
Complete file: hud.dat.json Also visible here{
"version": 3,
"huds": [{
"name": "1",
"components": {
"compass": {
"rect": {
"x": 49,
"y": -19,
"w": 84,
"h": 84
},
"style": 14,
"anchor": 6,
"parent": {
"anchor": 6,
"component": null
}
},
"staminabar": {
"style": 3157,
"mainColor": "ffffffff",
"secondaryColor": "ffffffff"
},
"breathbar": {
"style": 3157,
"mainColor": "ffffffff",
"secondaryColor": "ffffffff"
},
"healthbar": {
"rect": {
"x": -24,
"y": -20,
"w": 12,
"h": 72
},
"style": 3157,
"mainColor": "ffffffff",
"secondaryColor": "ffffffff",
"anchor": 4,
"parent": {
"anchor": 4,
"component": null
}
},
"weaponchargebar": {
"style": 3093,
"mainColor": "ffffffff",
"secondaryColor": "ffffffff"
},
"healthtext": {
"rect": {
"x": -41,
"y": -62,
"w": 57,
"h": 14
},
"anchor": 4,
"parent": {
"anchor": 4,
"component": null
}
},
"xptext": {
"rect": {
"x": 24,
"y": -2,
"w": 57,
"h": 14
},
"anchor": 6,
"parent": {
"anchor": 6,
"component": null
}
},
"ranktext": {
"rect": {
"x": 30,
"y": -14,
"w": 57,
"h": 14
},
"visible": true,
"anchor": 6,
"parent": {
"anchor": 6,
"component": null
}
},
"statsdisplay": {
"rect": {
"x": 24,
"y": -20,
"w": 14,
"h": 72
},
"style": 1,
"anchor": 6,
"parent": {
"anchor": 6,
"component": null
}
},
"weaponicon": {
"rect": {
"x": -45,
"y": -20,
"w": 60,
"h": 32
},
"anchor": 4,
"parent": {
"anchor": 4,
"component": null
}
},
"weaponammo": {
"rect": {
"x": -45,
"y": -8,
"w": 57,
"h": 14
},
"anchor": 4,
"parent": {
"anchor": 4,
"component": null
}
},
"fireteam": {
"rect": {
"x": 10,
"y": 10,
"w": 320,
"h": 100
},
"anchor": 0,
"parent": {
"anchor": 0,
"component": null
}
},
"hudhead": {
"visible": false
},
"reinforcement": {
"secondaryColor": "007fffff"
},
"spawntimer": {
"secondaryColor": "ff0000ff"
},
"localtime": {
"visible": true
},
"votetext": {
"secondaryColor": "ffff00ff"
},
"demotext": {
"secondaryColor": "ff0000ff"
},
"missilecamera": {
"rect": {
"x": 4,
"y": 4,
"w": 160,
"h": 120
},
"anchor": 6,
"parent": {
"anchor": 7,
"component": null
}
},
"fps": {
"visible": true
},
"ping": {
"visible": true
},
"speed": {
"visible": true
},
"lagometer": {
"visible": true
},
"crosshairbar": {
"style": 131,
"mainColor": "ffffffff",
"secondaryColor": "ffffffff"
}
}
}, {
"name": "2",
"parent": "1",
"components": {
"crosshair": {
"rect": {
"x": 0,
"y": 2,
"w": 32,
"h": 32
},
"style": 4,
"anchor": 8,
"parent": {
"anchor": 8,
"component": null
}
},
"compass": {
"rect": {
"x": 70,
"y": -19,
"w": 84,
"h": 84
},
"anchor": 6,
"parent": {
"anchor": 6,
"component": null
}
},
"healthbar": {
"rect": {
"x": 24,
"y": -20,
"w": 12,
"h": 72
},
"anchor": 6,
"parent": {
"anchor": 6,
"component": null
}
},
"healthtext": {
"rect": {
"x": 40,
"y": -2,
"w": 57,
"h": 14
},
"anchor": 6,
"parent": {
"anchor": 6,
"component": null
}
},
"xptext": {
"rect": {
"x": 110,
"y": -2,
"w": 57,
"h": 14
},
"anchor": 6,
"parent": {
"anchor": 6,
"component": null
}
},
"ranktext": {
"rect": {
"x": 115,
"y": -14,
"w": 57,
"h": 14
},
"anchor": 6,
"parent": {
"anchor": 6,
"component": null
}
},
"statsdisplay": {
"rect": {
"x": 45,
"y": -20,
"w": 14,
"h": 72
},
"anchor": 6,
"parent": {
"anchor": 6,
"component": null
}
},
"weaponicon": {
"rect": {
"x": -28,
"y": -20,
"w": 60,
"h": 32
},
"anchor": 4,
"parent": {
"anchor": 4,
"component": null
}
},
"weaponammo": {
"rect": {
"x": -25,
"y": -8,
"w": 57,
"h": 14
},
"anchor": 4,
"parent": {
"anchor": 4,
"component": null
}
},
"crosshairtext": {
"rect": {
"x": 0,
"y": -38,
"w": 300,
"h": 16
},
"anchor": 5,
"parent": {
"anchor": 8,
"component": null
}
}
}
}, {
"name": "3",
"parent": "2",
"components": {
"crosshair": {
"rect": {
"x": 0,
"y": 0,
"w": 48,
"h": 48
},
"style": 1,
"anchor": 8,
"parent": {
"anchor": 8,
"component": null
}
},
"healthbar": {
"rect": {
"x": -24,
"y": -20,
"w": 12,
"h": 72
},
"anchor": 4,
"parent": {
"anchor": 4,
"component": null
}
},
"healthtext": {
"rect": {
"x": -41,
"y": -62,
"w": 57,
"h": 14
},
"anchor": 4,
"parent": {
"anchor": 4,
"component": null
}
},
"xptext": {
"rect": {
"x": 40,
"y": -2,
"w": 57,
"h": 14
},
"anchor": 6,
"parent": {
"anchor": 6,
"component": null
}
},
"ranktext": {
"rect": {
"x": 100,
"y": -2,
"w": 57,
"h": 14
},
"anchor": 6,
"parent": {
"anchor": 6,
"component": null
}
},
"weaponicon": {
"rect": {
"x": -45,
"y": -20,
"w": 60,
"h": 32
},
"anchor": 4,
"parent": {
"anchor": 4,
"component": null
}
},
"weaponammo": {
"rect": {
"x": -45,
"y": -8,
"w": 57,
"h": 14
},
"anchor": 4,
"parent": {
"anchor": 4,
"component": null
}
},
"powerups": {
"rect": {
"x": -4,
"y": 96,
"w": 36,
"h": 36
},
"anchor": 2,
"parent": {
"anchor": 3,
"component": null
}
},
"objectives": {
"rect": {
"x": 4,
"y": 96,
"w": 36,
"h": 36
},
"anchor": 0,
"parent": {
"anchor": 7,
"component": null
}
},
"livesleft": {
"rect": {
"x": 44,
"y": 102,
"w": 48,
"h": 24
},
"anchor": 0,
"parent": {
"anchor": 7,
"component": null
}
},
"roundtimer": {
"rect": {
"x": -41,
"y": -78,
"w": 57,
"h": 14
},
"style": 1,
"showBackGround": false,
"showBorder": false,
"anchor": 4,
"parent": {
"anchor": 4,
"component": null
}
},
"reinforcement": {
"rect": {
"x": -41,
"y": -78,
"w": 57,
"h": 14
},
"visible": true,
"showBackGround": false,
"showBorder": false,
"textAlign": 0,
"anchor": 4,
"parent": {
"anchor": 4,
"component": null
}
},
"spawntimer": {
"rect": {
"x": -41,
"y": -78,
"w": 57,
"h": 14
},
"visible": true,
"showBackGround": false,
"showBorder": false,
"textAlign": 2,
"anchor": 4,
"parent": {
"anchor": 4,
"component": null
}
},
"sprinttext": {
"rect": {
"x": 4,
"y": -93,
"w": 57,
"h": 14
},
"visible": true,
"anchor": 6,
"parent": {
"anchor": 6,
"component": null
}
},
"breathtext": {
"rect": {
"x": 4,
"y": -93,
"w": 57,
"h": 14
},
"visible": true,
"anchor": 6,
"parent": {
"anchor": 6,
"component": null
}
},
"weaponchargetext": {
"rect": {
"x": -3,
"y": -92,
"w": 57,
"h": 14
},
"visible": true,
"textAlign": 2,
"anchor": 4,
"parent": {
"anchor": 4,
"component": null
}
},
"crosshairtext": {
"rect": {
"x": 0,
"y": -42,
"w": 300,
"h": 16
},
"anchor": 5,
"parent": {
"anchor": 8,
"component": null
}
}
}
}, {
"name": "4",
"parent": "3",
"components": {
"crosshair": {
"style": 0
},
"compass": {
"rect": {
"x": 0,
"y": 3,
"w": 90,
"h": 90
},
"style": 3,
"anchor": 5,
"parent": {
"anchor": 5,
"component": null
}
},
"staminabar": {
"rect": {
"x": -27.70001220703125,
"y": -3,
"w": 12,
"h": 72
},
"style": 5,
"anchor": 4,
"parent": {
"anchor": 5,
"component": null
}
},
"breathbar": {
"rect": {
"x": -27.70001220703125,
"y": -3,
"w": 12,
"h": 72
},
"style": 5,
"anchor": 4,
"parent": {
"anchor": 5,
"component": null
}
},
"healthbar": {
"rect": {
"x": 42.79998779296875,
"y": -3,
"w": 12,
"h": 72
},
"style": 5,
"anchor": 6,
"parent": {
"anchor": 5,
"component": null
}
},
"weaponchargebar": {
"rect": {
"x": 32.29998779296875,
"y": -3,
"w": 12,
"h": 72
},
"style": 5,
"anchor": 6,
"parent": {
"anchor": 5,
"component": null
}
},
"healthtext": {
"rect": {
"x": 41,
"y": -59,
"w": 57,
"h": 14
},
"style": 1,
"anchor": 6,
"parent": {
"anchor": 5,
"component": null
}
},
"xptext": {
"rect": {
"x": -19.29998779296875,
"y": -17,
"w": 58,
"h": 14
},
"textAlign": 2,
"anchor": 4,
"parent": {
"anchor": 4,
"component": null
}
},
"ranktext": {
"rect": {
"x": -19,
"y": -1,
"w": 58,
"h": 14
},
"textAlign": 2,
"anchor": 4,
"parent": {
"anchor": 4,
"component": null
}
},
"statsdisplay": {
"rect": {
"x": -4,
"y": -3,
"w": 14,
"h": 72
},
"anchor": 4,
"parent": {
"anchor": 4,
"component": null
}
},
"weaponicon": {
"rect": {
"x": 49.70001220703125,
"y": -92,
"w": 60,
"h": 32
},
"anchor": 6,
"parent": {
"anchor": 5,
"component": null
}
},
"weaponammo": {
"rect": {
"x": 50.399993896484375,
"y": -76,
"w": 57,
"h": 14
},
"anchor": 6,
"parent": {
"anchor": 5,
"component": null
}
},
"fireteam": {
"rect": {
"x": 10.29998779296875,
"y": -14,
"w": 320,
"h": 103
},
"showBackGround": false,
"showBorder": false,
"anchor": 2,
"parent": {
"anchor": 1,
"component": null
}
},
"popupmessages": {
"rect": {
"x": 4,
"y": 82,
"w": 284,
"h": 72
},
"anchor": 0,
"parent": {
"anchor": 0,
"component": null
}
},
"powerups": {
"rect": {
"x": 26.399993896484375,
"y": -91,
"w": 36,
"h": 36
},
"anchor": 6,
"parent": {
"anchor": 5,
"component": null
}
},
"objectives": {
"rect": {
"x": -26.20001220703125,
"y": -91,
"w": 36,
"h": 36
},
"anchor": 4,
"parent": {
"anchor": 5,
"component": null
}
},
"hudhead": {
"rect": {
"x": -28,
"y": 0,
"w": 62,
"h": 80
},
"anchor": 4,
"parent": {
"anchor": 4,
"component": null
}
},
"cursorhints": {
"style": 0
},
"weaponstability": {
"rect": {
"x": -68.899993896484375,
"y": -5,
"w": 10,
"h": 64
},
"anchor": 3,
"parent": {
"anchor": 8,
"component": null
}
},
"livesleft": {
"rect": {
"x": 4,
"y": -96,
"w": 48,
"h": 24
},
"anchor": 6,
"parent": {
"anchor": 6,
"component": null
}
},
"roundtimer": {
"rect": {
"x": 0,
"y": 113,
"w": 57,
"h": 14
},
"anchor": 1,
"parent": {
"anchor": 8,
"component": null
}
},
"reinforcement": {
"rect": {
"x": 6,
"y": 97,
"w": 57,
"h": 14
},
"textAlign": 1,
"anchor": 0,
"parent": {
"anchor": 8,
"component": null
}
},
"spawntimer": {
"rect": {
"x": -5.5,
"y": 97,
"w": 57,
"h": 14
},
"textAlign": 1,
"anchor": 2,
"parent": {
"anchor": 8,
"component": null
}
},
"localtime": {
"rect": {
"x": 0,
"y": 0,
"w": 57,
"h": 14
},
"showBackGround": false,
"showBorder": false,
"anchor": 1,
"parent": {
"anchor": 1,
"component": null
}
},
"votetext": {
"rect": {
"x": 4,
"y": 30,
"w": 278,
"h": 28
},
"mainColor": "ffffffff",
"secondaryColor": "ffffffff",
"anchor": 0,
"parent": {
"anchor": 7,
"component": null
}
},
"spectatortext": {
"rect": {
"x": 4,
"y": 15,
"w": 250,
"h": 38
},
"style": 1,
"anchor": 0,
"parent": {
"anchor": 0,
"component": null
}
},
"limbotext": {
"rect": {
"x": 4,
"y": 15,
"w": 278,
"h": 38
},
"anchor": 0,
"parent": {
"anchor": 0,
"component": null
}
},
"followtext": {
"rect": {
"x": 4,
"y": 56,
"w": 278,
"h": 24
},
"style": 1,
"anchor": 0,
"parent": {
"anchor": 0,
"component": null
}
},
"demotext": {
"rect": {
"x": 10,
"y": 0,
"w": 57,
"h": 14
},
"anchor": 0,
"parent": {
"anchor": 0,
"component": null
}
},
"missilecamera": {
"rect": {
"x": 4,
"y": 28,
"w": 160,
"h": 112
},
"style": 1,
"anchor": 6,
"parent": {
"anchor": 7,
"component": null
}
},
"sprinttext": {
"rect": {
"x": -20.5,
"y": -75,
"w": 57,
"h": 14
},
"textAlign": 2,
"anchor": 4,
"parent": {
"anchor": 5,
"component": null
}
},
"breathtext": {
"rect": {
"x": -46,
"y": -75,
"w": 57,
"h": 14
},
"anchor": 4,
"parent": {
"anchor": 5,
"component": null
}
},
"weaponchargetext": {
"rect": {
"x": 25.5,
"y": -76,
"w": 38,
"h": 14
},
"textAlign": 0,
"anchor": 6,
"parent": {
"anchor": 5,
"component": null
}
},
"fps": {
"showBackGround": false,
"showBorder": false
},
"ping": {
"showBackGround": false,
"showBorder": false
},
"speed": {
"showBackGround": false,
"showBorder": false
},
"lagometer": {
"showBackGround": false,
"showBorder": false
},
"disconnect": {
"showBackGround": false,
"showBorder": false
},
"chat": {
"rect": {
"x": 4,
"y": -1,
"w": 364,
"h": 72
},
"anchor": 6,
"parent": {
"anchor": 6,
"component": null
}
},
"warmuptext": {
"rect": {
"x": 4,
"y": 70,
"w": 300,
"h": 39
},
"anchor": 0,
"parent": {
"anchor": 7,
"component": null
}
},
"objectivetext": {
"rect": {
"x": 4,
"y": -106,
"w": 300,
"h": 16
},
"style": 1,
"showBackGround": false,
"showBorder": false,
"textAlign": 0,
"anchor": 6,
"parent": {
"anchor": 6,
"component": null
}
},
"centerprint": {
"rect": {
"x": 4,
"y": -76,
"w": 300,
"h": 23
},
"textAlign": 0,
"anchor": 6,
"parent": {
"anchor": 6,
"component": null
}
},
"crosshairtext": {
"style": 1
},
"crosshairbar": {
"rect": {
"x": 0,
"y": -31,
"w": 130,
"h": 10
},
"style": 16,
"anchor": 5,
"parent": {
"anchor": 8,
"component": null
}
}
}
}, {
"name": "2_copy",
"parent": "2",
"components": {
"popupmessages": {
"rect": {
"x": 0.49999237060546875,
"y": 5,
"w": 422,
"h": 96
},
"anchor": 2,
"parent": {
"anchor": 8,
"component": null
}
}
}
}, {
"name": "2_copy_copy",
"parent": "2_copy",
"components": {
"popupmessages": {
"rect": {
"x": 4,
"y": 5,
"w": 422,
"h": 96
},
"anchor": 0,
"parent": {
"anchor": 7,
"component": null
}
}
}
}]
} |
Will it stay that way if you load another map? Config (without bindings / name)
|
Convert your config first to legacy: https://www.hirntot.org/webcat/config_converter.html |
or remove crosshair positioning completely. I don't see why it is needed |
oh sorry @ramnes actually wants to change crosshair position :D |
I used to use
cg_crosshairY "3"
in my config to move the crosshair position a few pixels down. It seems that the environment variable doesn't work anymore, and that I have to change it in the HUD. But when I do so, the crosshair position is reset after each map, even when I create a new HUD config and click "Save".More discussion on Discord here: https://discord.com/channels/260750790203932672/260750790203932672/1230966199580364922
The text was updated successfully, but these errors were encountered: