Guild icon
DDraceNetwork
DDraceNetwork / questions
For newcomers to ask questions and get help. Also check https://wiki.ddnet.org/wiki/FAQ
Between 2022-07-13 00:00:00Z and 2022-07-14 00:00:00Z
Avatar
why is there no hours played but the api still returns an activity object? i thought it maybe generates 1 per day, but there are a bunch of skipped days so that cant be true
Avatar
Avatar
Sans
why is there no hours played but the api still returns an activity object? i thought it maybe generates 1 per day, but there are a bunch of skipped days so that cant be true
It returns 0 if the player has an activity less than one hour.
00:57
kinda wish there was more data returned, like an amount of minutes or something but oh well
Avatar
Avatar
Sans
kinda wish there was more data returned, like an amount of minutes or something but oh well
Looking at the code, it seems that the database stores it in seconds. It wouldn't be that hard to change, it was probably done because that's the format the graph libary wants it in. (edited)
Avatar
Avatar
furo
Looking at the code, it seems that the database stores it in seconds. It wouldn't be that hard to change, it was probably done because that's the format the graph libary wants it in. (edited)
may i have a link to where I can see that code?
Avatar
Avatar
Sans
may i have a link to where I can see that code?
Sure, this script: https://github.com/ddnet/ddnet-scripts/blob/master/servers/scripts/extract-master.py extracts the master server data from https://ddnet.tw/stats/master/ and inserts it into a database. The query send to the database can be found here: https://github.com/ddnet/ddnet-scripts/blob/master/servers/scripts/players.py#L110 (edited)
The magic scripts that make DDNet run. Contribute to ddnet/ddnet-scripts development by creating an account on GitHub.
The magic scripts that make DDNet run. Contribute to ddnet/ddnet-scripts development by creating an account on GitHub.
tip 1
Avatar
Gonna be mobile support?troll
Avatar
Avatar
friendly tee
Gonna be mobile support?troll
for what? Currently it already runs on Andorid
16:00
kind of
Avatar
Oh nvm
Avatar
How can I create a server where I can use gamemode? - https://www.youtube.com/watch?v=Ffr-7ftg2ak
Avatar
Avatar
wvdeczka
How can I create a server where I can use gamemode? - https://www.youtube.com/watch?v=Ffr-7ftg2ak
in main menu click "start server"
Avatar
Write /gamemode creative maybe it works
Avatar
ah thats why "gamemode" bcs minecraft xD
Avatar
can i render 2 min clip from 1 hour demo without downloading it?
Avatar
u can cut the demo, then render the 2 minutes
Exported 18 message(s)