Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2021-01-27 00:00:00Z and 2021-01-28 00:00:00Z
Avatar
first troll on github since ever lol
Avatar

SYNOPSIS

eval_if s[config] s[comparison] s[value] s[command] ?s[else] ?s[command]

EXAMPLE

eval_if ui_server_address == "localhost" "rcon_auth rcon" else "rcon_auth strong_password" Ported from upstream https://github.com/teeworlds/teeworlds/pull/2723

Checklist

  • [x] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, ...
Avatar
[quakenet] ChillerDragon BOT 2021-01-27 08:57:59Z
oh btw @deen next up would be eval_if_cmd if you want to give feedback here already then it would be nice https://github.com/teeworlds/teeworlds/pull/2846
SYNOPSIS eval_if_cmd s[check_command] s[command] ?s[else] ?s[command] DESCRIPTION eval_if_cmd executes a command based on the existence of a command or config. So it can be used to write backwards ...
Avatar
Would be nice if the local and remote console history could be saved in a file and load automatically. So one can quickly retrieve the latest commands after client reboot. Biggest use case are for: users - that have a long command that they frequently change or do not want to bind developers - that test a new client command or config
Avatar
is possible create new console command, example: cl_showhud_healthammo_numbers???
Avatar
ChillerDragon: Even more overkill in my opinion 😄
13:39
Backwards-compatible Teeworlds commands
Avatar
@heinrich5991 I think I'm fine with your PR, do you want it merged so we can get it out in the next version?
Avatar
[quakenet] ChillerDragon BOT 2021-01-27 17:40:41Z
@deen i am tired of maintaining a ddnet and a vanilla config thats why eval_if_cmd is so useful to write one cfg for all clients
Avatar
@deen how did you notice the maximum? got a notification for that?
17:52
@Learath2 sure 🙂
Avatar
@deen since we are close to release how what do we do? Is it okay to add more to a release candidate? :P
Avatar
ah if that's a problem, we can delay the PR until after the release
Avatar
[quakenet] ChillerDragon BOT 2021-01-27 18:02:27Z
@heinrich5991 im not sure if eval_if is stronger for abuse than current configs are anyway
18:02
could you provide an example?
Avatar
@heinrich5991 it's always around 16:00, so I just check around that time
18:04
@Learath2 sure, add it
Avatar
[quakenet] ChillerDragon BOT 2021-01-27 18:12:31Z
@heinrich5991 your statements sounds like if i can get my ddnet client to have a aimbot its legal
18:12
xd
18:12
I get what you mean and we all probably somehow used it like that
Avatar
yes, that has been the policy so far
18:13
if we get to that point, the policy might be changed, but I'd like to avoid that headache
Avatar
[quakenet] ChillerDragon BOT 2021-01-27 18:13:29Z
i mean there is a full on rifle aimbot in ddnet client already
Avatar
see the problem? ^^
Avatar
[quakenet] ChillerDragon BOT 2021-01-27 18:13:53Z
set dummy weapon to rifle and activate hammerfly and u are unfrozen
Avatar
I'd like to avoid exactly that
Avatar
[quakenet] ChillerDragon BOT 2021-01-27 18:14:18Z
hm
18:14
pls dont fix the client xd i need that bot
18:15
Well yea I can not ensure that one feature day one can abuse eval_if in combination with new config variables to build something fishy
18:16
wait but since its merged in vanilla already does that mean ddnet servers will ban vanilla clients @heinrich5991 ?
18:16
road to hard fork ddnet i guess
Avatar
unlikely
Avatar
[quakenet] ChillerDragon BOT 2021-01-27 18:17:03Z
then the mess is already there
Avatar
no, vanilla doesn't have dummy, for example
Avatar
[quakenet] ChillerDragon BOT 2021-01-27 18:17:17Z
but ye good catch i like that you think of such things
18:17
fair
18:18
what about adjusting the rule?
18:18
while ur at it fix rules completley :D
18:19
the whole complain about staff and faking part is bad as well
18:19
im tired of keeping up with cool kids deepfly hax and aim lock binds just make it illeagl :p
18:20
wouldnt it tw console was strong and it can be used to build nice things and when its used for bad its illegal?
18:20
i wish irc could edit messages xd
Avatar

Checklist

  • [x] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [x] Tested in combination with possibly related configuration options
  • [ ] Written a unit test if it works standalone, system.c especially
  • [x] Considered possible null pointers and out of bounds array indexing
  • [x] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--u...
Avatar
@chillerdragon would be better to have a version config cmd
19:01
Then you could check if version >= ur specifc version
19:01
If not exists its 0
19:01
In vanilla for example
19:01
Ah no, it says no such command then right
Avatar
[quakenet] ChillerDragon BOT 2021-01-27 19:21:57Z
yea retriving the version is useful
19:22
also thats where eval_if_cmd comes into play to check which command or config provides a version
19:23
@Learath2 werent u the maim guy? I currently reboot machine when i mess up my maim xd any idea on how to get my mouse back after doing a selection screenshot while tw runs in fullscreen?
19:23
it stays the fucking marker plus thing and i can not click things when in my super key gnome menu
Avatar
The automatic reconnect in the client just got me too many connections in a short time 😄
Avatar
@Learath2 this is apparently an old config option, you need to reset it somehow
19:50
idk which though
Avatar
Why did we say it was a bad idea to do a queue for joining full servers?
Avatar
I think it was deen saying that we want players to join servers and not wait in queues
Avatar
queues promote waiting
21:08
instead of just finding another server
21:08
thats deen argument iirc
Exported 66 message(s)