Teeworlds
discord.gg/teeworlds / development
For discussions around the development of the official Teeworlds
Between 2020-03-29 00:00:00Z and 2020-03-30 00:00:00Z
gerdoe
2020-03-29 19:53:26Z
How can I add custom command at server side?
ChillerDragon
2020-03-29 19:55:38Z
@gerdoe
https://www.youtube.com/watch?v=N2pFajc0PY
gerdoe
2020-03-29 19:57:15Z
Yep?
ChillerDragon
2020-03-29 19:57:30Z
ruski
19:57
translate pls
heinrich5991
2020-03-29 19:57:47Z
Video unavailable
19:57
is also what I get on that link
ChillerDragon
2020-03-29 19:57:58Z
weird
Dune
2020-03-29 19:58:02Z
+1
ChillerDragon
2020-03-29 19:58:04Z
19:58
said niet listna
19:58
well ima rls it
gerdoe
2020-03-29 19:58:29Z
Heh
heinrich5991
2020-03-29 19:58:31Z
@ChillerDragon
try it in private mode
19:58
you should see the same error
ChillerDragon
2020-03-29 19:58:52Z
well idk i just publish it earlier than planned
19:58
just for u
@gerdoe
gerdoe
2020-03-29 19:59:10Z
dear chiller, thanks
(edited)
ChillerDragon
2020-03-29 19:59:17Z
https://www.youtube.com/watch?v=N2pFajc0PYg
Prudrugtiq
Teeworlds programming #003 - admin commands loops and if statements
gerdoe
2020-03-29 19:59:32Z
Is this 0.7 version?
ChillerDragon
2020-03-29 19:59:46Z
yes
gerdoe
2020-03-29 20:08:40Z
uhm
20:09
anyway thanks, but i wanted to know how to make server side chat commands
(edited)
20:10
because console part in 0.6 is similar in 0.7
20:10
nice voice ;d
ChillerDragon
2020-03-29 20:12:40Z
oh chat commands
20:12
yea havent gotten to that yet
20:12
its on my todo
20:13
@gerdoe
search for Com_Example in the code
20:13
you need newer 0.7 client tho
20:14
maybe my solofng code can inspire you
https://github.com/ZillyFng/solofng/commit/c3e13820aa57c1b8eea30d3b2f625eba9de99eb1
Add support for new chat commands · ZillyFng/solofng@c3e1382
20:15
I also used
Server()->IsAuthed()
for admin commands here
https://github.com/ZillyFng/solofng/commit/c3e13820aa57c1b8eea30d3b2f625eba9de99eb1#diff-71fce8fdaae8d92953b0e82717dbc3a0R1307
Add support for new chat commands · ZillyFng/solofng@c3e1382
gerdoe
2020-03-29 20:21:14Z
thanks x3
jxsl13
2020-03-29 22:00:00Z
ey,
@ChillerDragon
can you reference example code that's conforming to the latest chat commands behavior in your issue
ChillerDragon
2020-03-29 22:00:47Z
@jxsl13
i guess you have to set the argument parameter to "r"
22:00
didnt look into ur code tho
jxsl13
2020-03-29 22:01:51Z
is your client conforming to that?
ChillerDragon
2020-03-29 22:01:54Z
https://github.com/jxsl13/zcatch/commit/b569ed0e250118de11279d34211b07e2a570a5ba#diff-51d646b9d2463476929561ec96e8592eR99
fix chat command bugs · jxsl13/zcatch@b569ed0
jxsl13
2020-03-29 22:02:00Z
and did you test the incorrect behavior?
ChillerDragon
2020-03-29 22:02:00Z
maybe use r other than p
22:02
idk p
22:02
well i typed in /rank foo
22:02
and it didnt show foos rank
22:02
i had to use old chat system
22:02
and type /rank foo<esc>
jxsl13
2020-03-29 22:02:58Z
when did you test?
22:03
do you know which commit in vanilla changed the behavior?
22:07
I'm using the gamer client that's possibly a little bit outdated, so for the latest gamer client it worked
22:07
at th every least ._.
ChillerDragon
2020-03-29 22:13:35Z
i tested it a few mins beofre i opend the issue with latest master client on zcatch laser
jxsl13
2020-03-29 22:16:50Z
hm k
Exported 51 message(s)