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-07-12 00:00:00Z and 2021-07-13 00:00:00Z
Avatar
chillerdragon BOT 2021-07-12 07:29:49Z
@Deleted User: does that mean time_get() can not be used anymore? :(
Avatar
Why
08:02
It's just that tw uses global variables instead of making components part of the game client, which would make much more sense
Avatar
How to find out players points fast and not receive tons of information about him? Like https://ddnet.tw/players/SomeoneNickname?points (edited)
Avatar
Avatar
CovER
How to find out players points fast and not receive tons of information about him? Like https://ddnet.tw/players/SomeoneNickname?points (edited)
*them xd uh you can always do /points in a server or do something like curl https://ddnet.tw/players/lynn | grep points
Avatar
i need to do fast request
Avatar
fast request using curl
Avatar
I don't think there is an API which seems like what you're asking
09:01
but sounds like a great idea to me
Avatar
curl -sS 'https://info2.ddnet.tw/info?name=lynn' | jq '.points'
👍 1
Avatar
Almost what I was looking for, but it will work too
Avatar
whoa what
Avatar
$profile
Avatar
Oof (edited)
09:13
$profile a
Avatar
$profile .
Avatar
$profile Shiro.
Avatar
$profile Shiro,
Avatar
$profile Shaikhan
Avatar
Could not find that player
Avatar
#bot-cmds
09:15
Oops
Avatar
i haven't played in 7 months, i went to the website wanted to check my rank, points and stuff like that, i typed my name in "Boci", and nothing came up. ok so i was like i'll go in game and check, i went in game did /points Boci got a result of 3200 points, fine then i went back to the website and i appeared after searching for "Boci"
09:40
is this normal that the website forgot that i exist?
Avatar
maybe u had a typo the first time
Avatar
Prevents global constructors/destructors and is a bit of cleanup would also fix the issue from #3948

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, system.c especially
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [x] Tested the ch...
Avatar
chillerdragon ^ that's how i'd fix it in a more general approach
10:35
you can also do what std::cout does and add a constructor class
10:35
smth like CSystemInit Init
10:36
tho it's generally better if global constructors aren't used, or if they used, they just do trivial stuff 😄
Avatar
Avatar
Deleted User
maybe u had a typo the first time
no i directly went to ddnet.tw/players/Boci
11:31
it returned player not found
Avatar
[quakenet] Learath2 BOT 2021-07-12 17:22:48Z
I just spent an hour implementing a 2 bit counter on a breadboard just to check if my solution was correct, not sure if it was a waste of time or not
17:26
maybe I should get a fpga in the future
Avatar
if u learned smth, it wasted wasted ^^
Avatar
Avatar
heinrich5991
curl -sS 'https://info2.ddnet.tw/info?name=lynn' | jq '.points'
the best xd
Avatar
Avatar
Boci
it returned player not found
that shouldn‘t happen. tell me if you can reproduce it
Exported 44 message(s)