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 2019-03-24 00:00:00Z and 2019-03-25 00:00:00Z
Avatar
bd11e39 M Relentless, M aled - ddnet-maps
Avatar
Can I check, how often a specific string (\n) is inside of another string?
Avatar
I'm not sure what the best way would be to implement this but i would love to see how much i'm ahead / behind my highscore. or maybe someone could help me make it so that the client logs my x and y coordinates when i get teleported so i can connect it with something like livesplit.
Avatar
@fokkonaut in C++?
14:48
does any1 know the command to get this freeze prefix?
14:48
Avatar
ChillerDragon 2019-03-24 14:50:45Z
@Learath2 most likley yes
14:50
i would create my own func
14:51
using some str search
Avatar
std::count is a thing if you are only looking for a character
Avatar
ChillerDragon 2019-03-24 14:51:10Z
and give it the offset of the last found
14:51
yuk std xd
14:51
more tw style pls
Avatar
Well do you want to count a char or do you want to count a substring?
Avatar
ChillerDragon 2019-03-24 14:52:31Z
i think newline is a char
14:52
you can also loop over it
14:52
and do a char comparision true
14:54
do a loop
Avatar
int count(const char *s, char c) { int count = 0; for(;*s; s++) if(*s == c) count++; return count; }
14:55
oh, this channel was connected to irc :/
Avatar
pro golfer learath
14:55
rip irc
Avatar
ChillerDragon 2019-03-24 14:55:16Z
c++ int count(const char * pStr, char char, size_t len) { int c = 0; for (int i = 0; i < len; i++) { if (pStr[i] == char) { c++; } } returnc; }
Avatar
@Learath2 u had to name count as c
14:55
for the joke
Avatar
ChillerDragon 2019-03-24 14:55:27Z
hwod did u do the epci synta x higlightß
Avatar
ChillerDragon 2019-03-24 14:55:48Z
well guess urs is better xd
14:55
for(;*s; s++)
14:55
dfq
14:56
does this even work
14:56
dont u need the length?
Avatar
Well for a c string, you don't need to know the length
Avatar
ChillerDragon 2019-03-24 14:56:25Z
because its null terminated?
14:56
if its not?
Avatar
the string ends when you hit a '\0'
14:56
It's the users responsibility imho, if you pass something that isn't a valid string to a function that expects one it's your fault
Avatar
ChillerDragon 2019-03-24 14:57:06Z
k
14:57
always expect the worse
14:57
feelsbadman
Avatar
any1 know the command for no ninja in freeze (edited)
Avatar
freeze prefix?
Avatar
idk how to fuckign call it
Avatar
he means no ninja
Avatar
on freeze
14:58
@Weezy rename
14:58
default
14:58
to
14:58
ninja
14:58
well copy it
14:58
and there u have
Avatar
default to ninja=
Avatar
cl_show_ninja maybe?
14:59
thanks!
Avatar
ryozuki giving wrong advice..
15:00
i didnt know about show ninja
15:00
i just remembered aoe had his skin as ninja skin
Avatar
no it was a command in f1 but i cant find it
Avatar
@Learath2 yea, in teeworlds
Avatar
If you are looking for a character I posted the answer above
17:18
If you want a substring you want strstr
17:19
e.g. while((str = strstr(str. "Substring")) count++;
17:19
Hmm that doesnt really work but you get the point :P
17:21
for(;(str = strstr(str, "subst")); str++)
Avatar
heinrich5991 here?
Avatar
please stop abusing the poor for loop @Learath2
Avatar
@Learath2 i cant get it to work
17:58
it wont compile for some reason
17:58
it says unresolved external symbol
Avatar
strstr belongs to the standard library, we dont use the stamdard library functions in teeworlds except in system.c
Avatar
@Learath2 do u know whats the useragent used by the ddnet client when requesting info.ddnet.tw, for research purposes
Avatar
@Ryozuki "DDNet " GAME_RELEASE_VERSION " (" CONF_PLATFORM_STRING "; " CONF_ARCH_STRING ")"
Avatar
ok thanks
Avatar
4ca69a3 Default layer names to the selected image/sound - 12pm 71a776f Merge #1535 - bors[bot]
Avatar
dff702b Don't rotate static game tiles and fix switch rotation - 12pm 958778b Merge #1531 - bors[bot]
Avatar
@Ryozuki what kind of research? 😄
20:45
a teestalker, basically i gather stats of people playtime maps player count map dificult name etc
20:45
brownbear
Avatar
that reminds me that I could use the log to check what version of DDNet client people are using
Avatar
show it :D
Avatar
That's for today: $ grep "GET /info" access.log | grep "DDNet" | sed -e "s/.DDNet ([0-9.]) .*/\1/g" |sort|uniq -c 7 10.8.4 3 10.8.5 536 10.8.6 7 11.0.1 6 11.0.2 87 11.0.3 2 11.1.1 21 11.1.2 2 11.1.3 12 11.1.4 7 11.1.7 15 11.1.8 41 11.1.9 1 11.2 125 11.2.1 45 11.3 68 11.3.1 8 11.4 7 11.4.1 81 11.4.2 38 11.4.3 387 11.4.4 15 11.4.5 53 11.4.6 211 11.5 121 11.5.1 109 11.6 209 11.6.1 24 11.7 1 11.7.1 798 11.7.2 1184 11.8 5415 11.9
20:48
Oops, that was longer than it looked. And older versions didn't request the info file obviously
Avatar
10.8.6 has lots
20:49
i wonder if its a bot or ppl dont like 11
Avatar
11 is laggy for me
20:49
10 isn't
Avatar
with opengl ?
Avatar
i heard that ath is based on 10
20:49
and that's why ppl say it's better
20:49
idk @Ryozuki
20:49
xd
Avatar
664 linux 20 macosx 746 win32 8250 win64
20:51
14.5% is linux
20:52
i think
20:52
this is only for today
20:52
?_?
Avatar
9k players ?
20:52
owo
Avatar
unique ip?
Avatar
more like 10 actually
Avatar
9k times client was started or refresh was pressed
20:52
😄
20:53
not much
Avatar
i should filter for unique ip at least
Avatar
wait refresh pressed
20:53
i do that 10 times a hour
Avatar
1972 unique ips
20:54
since 06:25 am
Avatar
is sunday still the day with more ppl?
Avatar
444 simul players today
20:55
20:00
20:55
xD
Avatar
that's saturday
Avatar
19:30*
Avatar
stats only refresh around midnight
20:55
true
20:56
this saturday beats the past sunday
20:56
tho
Avatar
and that number is not actually "at the same time", since we take the max number of players of each server during that hour
20:56
and then sum them up
20:56
so if GER has 200 players, then gets lags and they all move over to RUS, it would show 400 players, even though only 200 were online at any time
Avatar
>serverhop
Avatar
timakro found this https://goaccess.io/ which uses nginx logs to show stuff
GoAccess is an open source real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems or through your browser.
20:58
its cool
Avatar
yeah, we use that for DDNet too
Avatar
my shit traffic feelsbadman
Avatar
2k unique ip is nice
Avatar
@Ryozuki toptri
22:18
  • As requested by qshar and KoG players
  • Similar to DDNet tab
  • Info fetched from servers-kog entry from https://info.ddnet.tw/info
  • Also supports countries and types
  • Doesn't inform whether map has been finished
  • Generalized the code a bit but it's still ugly
  • Depends on #1533, also shows KoG servers as official/verified
Avatar
Wtf why would you add KoG tab to the ddnet client?
22:31
pls no
Avatar
Why not? What client would KoG players use otherwise?
Avatar
is KoG by DDnet?
Avatar
why would you advertise for them?
Avatar
Why not? 😄
22:39
They are nice servers
22:40
we're not really in competition to them, more like complementing
22:40
and even if they get more players and we get fewer by that, who cares?
Avatar
i dont like gores ninja
Avatar
me neither, so I just won't click on the tab and play there
22:41
but no cost in having it there
Avatar
@deen
22:41
hi
22:41
i love u
Avatar
@deen Just merge it
Avatar
lol just accept changes, its not even a bad change
22:42
its like gores players dont play ddnet servers, they also have the ddnet tab
22:42
there is just no gores client
22:43
not merging this would be very mean
Avatar
and if they made a Gores client just to get their own tab then that sounds like a waste of resources
Avatar
its the ddnet client
Avatar
exactly deen
Avatar
its just weird to me to add other servers have nothing to do with ddnet in a ddnet client. Do you add unique tab too, ddracepro or what?
Avatar
well, then let's rename it from ddnet client to ddrace client 😄
Avatar
lol they dont even contribute to the client dev
22:43
qshar commits are rare rare
Avatar
add bombay tab too
Avatar
yea, rename the client
22:44
no bombay
22:44
thatsblock
22:44
we are ddrace
Avatar
add unique tab too
Avatar
thats race
22:44
:p
Avatar
lol it uses ddrace as base mod
Avatar
ah, that's the issue 😄
Avatar
deen
22:44
@deen can i replace jao if he leaves
Avatar
@deen now they want an unique tab 🙄 xd
Avatar
we got the coolest website among all https://uniqueclan.net/ :P
Avatar
nice advertise
Avatar
im so proud of you @Ryozuki
Avatar
unique members contributed lot more
22:45
to ddnet
22:45
timakro
22:45
me
22:45
hehe
Avatar
it's not about rewarding server owners or anything
Avatar
ik but if u add kog
Avatar
KoG is just the second biggest network
Avatar
others will want to be added
Avatar
just that KoG is also popular and they also have servers around to world so they are also in danger of fake servers with similar name
Avatar
add my minecraft server GWqlabsFeelsGoodMan
Avatar
@jao
22:47
hi
Avatar
Don't just merge it because fokkonaut said so 😛 Let us give it a review first at least
Avatar
He wouldnt do it just because I said it
Avatar
i know deen waits for reviews, thats why he makes prs i guess. For simple stuff he just directly commits
Avatar
well thats something new from him tho
Avatar
(mostly, afaik)
Avatar
he didnt do prs
Avatar
Since some weeks
Avatar
learath writing a bible
Avatar
Anyways, kog tab, idk, the only issue i'd have with it is that it's not scalable (e.g. might want to add unique aswell e.g.)
Avatar
add onyx too
Avatar
wats onyx
Avatar
onyx servers for ctf
22:50
lol
Avatar
vanilla lol
Avatar
yeah, but I don't expect many more networks to show up ever
Avatar
thats dead
Avatar
?
22:50
its not dead
22:50
are you blind
22:51
it has more players than unique
22:51
lol
22:51
@heinrich5991 btw thanks for the mac build on teesmash
Avatar
np. if you need more mac builds, ask me
22:51
my vm runs again
Avatar
I had a prototype of something akin to a pki to mark official servers
22:54
I kinda stopped working on it after heinrich kept assuring me that he'd kill me if I rolled my own crypto though 😛
Avatar
whats pki
22:55
ah
Avatar
HI TURK
Avatar
public key infrastructure
Avatar
the idea was that ddnet would hold a CA, which could be used to sign leaf certificates
Avatar
the client would send a random challange to servers that advertised as supporting the feature, and get it back signed, if the signature is valid the server is "official" (what it claims to be)
Avatar
ea6b741 thread_sleep: ignore signal interruption - def- 2e35e10 Merge #1537 - bors[bot]
Avatar
cant we just add a sideways scroll bar which you can use with the normal mouse wheel (down->right, up->left) so we have more space for unique tab aswell? :D
Avatar
Adding more and more stuff to the top is not a good solution
Avatar
i always wanted a ui redesign and rewrite
Avatar
Maybe a dropdown to the right side?
Avatar
just wanted to say that
Avatar
I always wanted to rewrite teeworlds in rust
23:01
Avatar
OH I know, lets re do the entire UI in chromium
Avatar
I mean in html and css and js and react native
Avatar
just make gores mode for ddnet server, all problems solved
Avatar
and render it on top of the game, omg
Avatar
sounds good, @Learath2
Avatar
I'm in
Avatar
me too
23:02
why dont use 4gb if all others use it
Avatar
just one more chromium process to run on your computer
Avatar
get on the train
Avatar
finally a use for the 32gb of ram I bought
Avatar
@Learath2 jokes aside, factorio uses sdl and no web shit and they made a nice redesign on 0.17
23:04
xd
23:04
but they are 12 man dedicated dev team
Avatar
We are atleast a 0.5 man dedicated dev team
Avatar
wE aRe AlSo MaNy PeOpLe
Avatar
0.49 of those are deen
23:05
0.0000001 its me
23:05
maybe
Avatar
nah, it's more. but nice hyperbole 😛
23:06
vanilla devs dont get it
23:06
ddrace is THE wanted gametype
Avatar
I am at least 1e-35 of the dev team
23:09
@Ryozuki what would you want to do with a ui rewrite?
Avatar
less roundiness more flatness
23:09
mm
23:09
some effects
Avatar
ui 0.7 compatibility
Avatar
like any modern ui
23:10
im not a designer but i can tell u tw ui is ugly
23:10
pepeH
Avatar
do people even like the 0.7 ui?
23:10
Big
Avatar
the ui is rendered programatically right
Avatar
why not make some 2k textures
Avatar
yes
Avatar
with modern programs
Avatar
@ programmatically
Avatar
they do have a couple pretty nice fixes to the ui code though, which we should take soon
Avatar
design programs
23:11
ik its hard due to res scaling
Avatar
2k textures sounds like teeworlds download will become 500MB instead of 10MB 😛
Avatar
why stop there? id software used 16k textures in rage
Avatar
idk if they do it programatically or not but it has its shadows and depth
23:12
overall lot better
Avatar
I thought you wanted flat? 😛
Avatar
material design?
Avatar
im a mess
23:13
big
23:13
yes
Avatar
+1 for material ui
Exported 324 message(s)