![]() |
Console Tips & Tricks - Printable Version +- Xonotic Forums (https://forums.xonotic.org) +-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3) +--- Forum: Xonotic - Configuration Tips (https://forums.xonotic.org/forumdisplay.php?fid=19) +--- Thread: Console Tips & Tricks (/showthread.php?tid=2987) Pages:
1
2
|
RE: Console Tips & Tricks - FinBiteLeaf - 03-07-2020 I understand (i think) the logics, but fail with code, i tried ""bx_if_not_eq ${bx_weapon} blaster; bx_if_eq ${bx_weapon} blaster weaplast"" but failed RE: Console Tips & Tricks - martin-t - 03-07-2020 Split your commands into parts and find out where they fail. Also keep in mind the console is retarded and broken in various ways - e.g. you can't set a cvar and read the new value in one alias - it'll keep using the old value presumably because cvar expansion happens too early. You have to split it into multiple aliases - this will first print old_value, then new_value: Code: set some_cvar old_value Another issue is that nested curly braces are broken so stuff like Code: ${${1 !}} RE: Console Tips & Tricks - Aguaumreal - 02-13-2021 Anyone knows how to scale the strafe hud? I lost my config and it used to be bigger than how it is now. It's very small to see currently. RE: Console Tips & Tricks - lakrass - 02-13-2021 (02-13-2021, 09:15 AM)Aguaumreal Wrote: Anyone knows how to scale the strafe hud? I lost my config and it used to be bigger than how it is now. It's very small to see currently. You can find many cvars for strafehud by typing hud_panel_strafehud and then TAB RE: Console Tips & Tricks - Aguaumreal - 02-13-2021 thank you i kinda found it. RE: Console Tips & Tricks - Jiān - 07-30-2024 Hi, While looking at the commands related to demo recording I came across something interesting, a new variable function that's not mentioned in this guide, perhaps it was added later, I'm not sure about it's timeline. I'm talking about these expansion variable functions: Quote:${4 ?} means the fourth parameter, or nothing if it wasn't passed. In Xonotic "?", "asis", "q" and a new member to the family "!" (the exclamation mark, also know as bang) are collectively referred to as "variable function" (at least that's what the error messages call them ![]() The bang variable function throws detailed error message and aborts the execution of procedure/actions associated with it, when there is an expansion error (undefined cvar or an argument not passed to an alias etc). It has no effect on the input like the other 3 variable functions have. Code: // NOTE: "->" means it's console output. This can be used to check if a cvar is defined in console namespace, like so: Code: // cvar_exists <identifier> <cvar-name> That's all, thanks to BlaXpirit for his awesome guide. Keep fragging! ![]() |