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-07-21 00:00:00Z and 2019-07-22 00:00:00Z
Avatar
@fokkonaut well it's your job to fix the intricacies of the implementation of 256 players
07:11
Up to 64 we dont need to fake any behaviour afaik
Avatar
Since in DDrace every player is in team red, in order to show them in one scoreboard, the flag will always be blue in scoreboard and the spectator select menu, here is a simple fix
Avatar
@Learath2 oki^^ :D
Avatar
(It should be a simple enough fix to make sure you never send more then 63/64 for older clients)
Avatar
InfectionZ's gametype is somehow infection, instead of infectionZ
08:43
a8756f9 Fix infectionZ gamemode seen as DDNet - fokkonaut 658efe7 Merge #1845 - bors[bot]
Avatar
@Learath2 let's try reenabling aio then and giving it to someone with windows?
Avatar
@heinrich5991 now that I think about it, I think you need the ucs2 conversion added to aio, I didn't bother because it wasn't used for windows
09:44
Also needs a check to only enable that if stdout is a console :/
Avatar
Does anyone know why the over-head emotes on DDNet fng2 servers are smoother and slower than on any other server? I would like to implement that as a feature
Avatar
Дядя Женя 2019-07-21 11:22:53Z
After I compiled DDNet via cmake my regular client changed HUD colors and bg to this shit
11:23
Something was overwritten?
11:23
Did you really change HUD colors in update?
Avatar
if ur client was rly old
Avatar
They are the defauls one ?
11:34
why u compiled anyway
11:34
r u modifying something
think_bot 1
Avatar
that looks like messed up defaults
Avatar
Дядя Женя 2019-07-21 11:47:07Z
@Ryozuki Yes, ofc
11:47
Im writing my own bot
11:47
to take some top times
11:47
@jao I can't see any setting for HUD colors in-game
Avatar
settings > graphics > ui color
Avatar
Дядя Женя 2019-07-21 12:07:22Z
and whats setting for default one...
Avatar
ChillerDragon 2019-07-21 12:53:14Z
dont complain about colors or Learath2 gets a breakdown :c
Avatar
what is the point of dummy_map tool?
14:29
nvm got it
Avatar
@ChillerDragon I take full responsibility for breaking those
Avatar
Дядя Женя 2019-07-21 15:42:19Z
@Learath2 Any simple task I could try to make with DDNet source code?
15:42
To dive into it somehow
Avatar
ChillerDragon 2019-07-21 15:42:32Z
client or server?
15:42
what is ur end goal?
Avatar
Дядя Женя 2019-07-21 15:42:35Z
client
15:42
no goal
Avatar
ChillerDragon 2019-07-21 15:42:47Z
then start there
Avatar
Дядя Женя 2019-07-21 15:42:50Z
just want to know how it works
Avatar
ChillerDragon 2019-07-21 15:42:54Z
u wont succed in life if u have no goal
15:42
nothign that dives u
Avatar
xdddddddddddd
Avatar
Дядя Женя 2019-07-21 15:43:09Z
and then, maybe, could make some mods for HUD, or useful features
Avatar
ChillerDragon 2019-07-21 15:43:09Z
then ur goal is knowledge i guess
Avatar
Дядя Женя 2019-07-21 15:43:28Z
HUD is the main goal I guess
Avatar
ChillerDragon 2019-07-21 15:43:28Z
programming xp?
Avatar
Дядя Женя 2019-07-21 15:43:33Z
yes
15:43
thats also
Avatar
ChillerDragon 2019-07-21 15:44:08Z
i highly recommend of thinking something you would really want to do and then just try it
15:44
what do you want to do with the hud?
Avatar
Дядя Женя 2019-07-21 15:44:44Z
First of all I want to understand at least somehow what each method here does
15:44
to comfortably navigate here
Avatar
ChillerDragon 2019-07-21 15:44:59Z
u d that by doing something else
15:45
its an side effect
Avatar
Дядя Женя 2019-07-21 15:45:06Z
so I could help with fixing bugs
15:45
and etc
15:45
yes
15:45
that's why Im asking about any simple tasks I could try to do
15:45
and also help with that
15:45
for first time
Avatar
ChillerDragon 2019-07-21 15:46:05Z
idk if u desire any improvements in the hud or if we have any open issues
15:46
but if its just for the learning make an pr in chillerbot-ux with a simpler scoreboard
15:46
its so messy imo
15:46
just remove parts
15:46
remove ping country flag
15:46
make it smaller
Avatar
Дядя Женя 2019-07-21 15:46:39Z
Ok, maybe I could try to make new entities that looks cool and randomize unhookable/hookable blocks
15:46
but its not so easy
Avatar
ChillerDragon 2019-07-21 15:46:52Z
that sounds like a harder start to me
Avatar
Дядя Женя 2019-07-21 15:46:53Z
to start with
Avatar
look at ddnet issues
Avatar
Дядя Женя 2019-07-21 15:47:15Z
most of ddnet issues are server sided
Avatar
ChillerDragon 2019-07-21 15:47:15Z
i dont think we have some nice hud issues tho
Avatar
no
15:47
there are also client issues
Avatar
Дядя Женя 2019-07-21 15:48:20Z
Space bar is used for play/pause and there is no way to rebind it. Please give us a way to rebind this!
15:48
?
15:48
not so simple as learath say, ok
15:48
skip it
15:49
but I guess its about making a new setting in settings-hud menu
15:49
and access it from demo player
15:51
ok, I'll imagine my own task to start with
Avatar
ChillerDragon 2019-07-21 15:52:41Z
sorri for only bringing my stuff up but tthats the thing i can think of @Дядя Женя but it would be nice if u have a demo paused and select a different player in the view to update it without playing the demo again
Avatar
Дядя Женя 2019-07-21 15:56:38Z
15:56
what these buttons do btw
Avatar
ChillerDragon 2019-07-21 15:57:21Z
cut demos
15:57
left start right end
15:57
then right camera on the right
15:57
and it create a new demo
Avatar
Дядя Женя 2019-07-21 15:58:41Z
you mean without unpausing?
15:58
because changing view is working
Avatar
ChillerDragon 2019-07-21 15:59:45Z
but it doesnt update for me if i dont play the demo
16:00
imagine u want to pause a moment and then skip rtrhoigh all the tees and see where they are
Avatar
Дядя Женя 2019-07-21 16:01:13Z
k
16:01
where is the demo player?
Avatar
ChillerDragon 2019-07-21 16:01:38Z
idk maybe demo.cpp
16:01
i usually search for strings i see in the ui
16:01
and let a tool search the whole src code for it
Avatar
Дядя Женя 2019-07-21 16:07:48Z
16:07
n1
Avatar
whats wrong
Avatar
Дядя Женя 2019-07-21 16:29:55Z
if really would be also cool if we had time untill unfreeze instead of shields on hud
16:30
some day I will do it.
16:30
May be few years later
16:30
maybe dozens
Avatar
ChillerDragon 2019-07-21 16:30:38Z
the ninja bar unfreeze timer in 0.7 is pretty cool 😃
Avatar
Дядя Женя 2019-07-21 16:52:32Z
Open suggestion: Remove "long pain sound" from the game (shooting in freeze) and replace it with choosing randomly from some sounds with fat guy saying something like "Hey" "Hey, save me" "Save me sucker" etc
Avatar
ChillerDragon 2019-07-21 16:52:51Z
pls no
16:53
just keep the sounds how they are and let the server send the health sound instead
Avatar
Дядя Женя 2019-07-21 16:54:05Z
what do you mean "helath sound"
Avatar
ChillerDragon 2019-07-21 16:54:12Z
health pickup sound
Avatar
Дядя Женя 2019-07-21 16:55:58Z
Oh yeah
16:56
best sound in da world
16:56
16:56
Modified client to show milliseconds
Avatar
useless
Avatar
Дядя Женя 2019-07-21 16:56:41Z
oh ok, not milliseconds
16:56
thats ticks
16:56
but anyway its victory
Avatar
xd
16:57
gg
Avatar
Дядя Женя 2019-07-21 16:57:37Z
is there 60 ticks in second (edited)
16:57
or what
Avatar
30 i think
Avatar
Дядя Женя 2019-07-21 17:01:48Z
17:02
why not
Avatar
xd
Avatar
ChillerDragon 2019-07-21 17:02:06Z
dont we have a race timer already?
Avatar
Дядя Женя 2019-07-21 17:03:50Z
what do you mean
17:05
lol the timer works incorrect
Avatar
??
Avatar
Дядя Женя 2019-07-21 17:06:02Z
it changes seconds on XX.6
Avatar
this works fine
17:06
no
Avatar
Дядя Женя 2019-07-21 17:07:36Z
And now its not, wtf...
Avatar
xdd
Avatar
we can at most have 1 more digits worth of precision with the tickcounter the way it is
Avatar
i think race servers use interpolation or something to get even more precision
Avatar
Дядя Женя 2019-07-21 17:18:29Z
17:18
Why its getting width of text with size 12
17:18
to calculate offset
Avatar
do they? I thought they just added the extra digit
Avatar
Дядя Женя 2019-07-21 17:18:58Z
and then render it with size 10
Avatar
@timakro do you?
17:19
fontsize is the fontsize no?
Avatar
That code has been touched by a dozen people, who knows
Avatar
xd
Avatar
Дядя Женя 2019-07-21 17:20:18Z
as I see it does what I said
17:20
So its offset calculation with 12 fontSize and render with 10 (edited)
17:20
funny
Avatar
@Learath2 Yes, game servers run at 50 tps so 0.02 seconds is the most precise you get without interpolation
Avatar
Дядя Женя 2019-07-21 17:22:51Z
there is no sense adding one more digit
17:22
because it runs too fast (edited)
Avatar
Дядя Женя 2019-07-21 17:29:53Z
17:29
Setting the color of text
17:30
after its being rendered
Avatar
wats the problem
17:30
its just resetting the color
17:30
use some logic please
Avatar
lol
Avatar
Дядя Женя 2019-07-21 17:31:25Z
no lol
17:31
its not setting it anywhere before
17:32
so there is no need to reset
Avatar
u never know so better to reset
Avatar
daily complain #6
Avatar
xDD
Avatar
@Дядя Женя when u create a new variable the computer just allocates space in memory for it, its not guaranteed to be zero even if it usually is
17:34
so for reasons like this its better to reset before using
Avatar
Дядя Женя 2019-07-21 17:35:44Z
what new variable you're talking about
17:36
"its not setting it anywhere before"
Avatar
Дядя Женя 2019-07-21 17:36:12Z
if(m_pClient->m_Snap.m_pGameInfoObj->m_TimeLimit && Time <= 60 && (m_pClient->m_Snap.m_pGameInfoObj->m_WarmupTimer <= 0)) { float Alpha = Time <= 10 && (2*time_get()/time_freq()) % 2 ? 0.5f : 1.0f; TextRender()->TextColor(1.0f, 0.25f, 0.25f, Alpha); }
Avatar
any new variable
Avatar
Дядя Женя 2019-07-21 17:36:54Z
but ok, let's say default color is always 1111 and resetting is just fix for non-ddrace gamemodes (edited)
Avatar
lol
Avatar
TIS-100 is quite fun
Avatar
@Learath2 im a zachtronics fan
18:51
@Learath2 exapunks is the best game they have
18:51
Avatar
EXAPUNKS
Avatar
epic music
18:51
epic theme
18:51
i love the neojapanese them
18:52
they have it on exapunks and shenzen
18:54
18:54
18:54
my program is fokin long
18:55
late game is very hard, on any zachtronics game
18:59
poggers
Avatar
got a real nice solution to the differential one in tis100
Avatar
looks dope
Avatar
Zeta is just too good at these
19:34
really cant beat his signal multiplexer 😛
Avatar
Дядя Женя 2019-07-21 19:54:57Z
Where can I find server's best time
Avatar
On the client or on the server?
Avatar
Дядя Женя 2019-07-21 20:39:14Z
client
Avatar
When the client receives NETMSGTYPE_SV_RECORD if CGameClient::CGameInfo::m_RaceRecordTime is set it'll be the first integer in that message
20:45
you can see how we get m_ServerRecord in src/game/client/components/hud.cpp
Avatar
Дядя Женя 2019-07-21 20:45:58Z
thx
Avatar
Дядя Женя 2019-07-21 20:55:10Z
@Learath2 Still can't get it
Avatar
Where exactly are you in the client code
Avatar
Дядя Женя 2019-07-21 20:55:52Z
20:56
So the server record stored in m_ServerRecord
20:57
but on DDnet servers its one of these: 1. CGameClient::CGameInfo::m_RaceRecordTime not set 2. m_ServerRecord is 0 3. m_ServerRecord is -2147483648
20:58
its hud.cpp
Avatar
@Дядя Женя we set m_RaceRecordTime in the latest master, it was a bug
21:07
In other news, zeta is a beast, can't even come close on most challanges :/
Avatar
Дядя Женя 2019-07-21 21:07:35Z
im on latest master rn
21:07
problem exists
21:07
or what did you mean
21:11
almost pushed to master lol
Avatar
ChillerDragon 2019-07-21 21:11:15Z
pro
Avatar
Дядя Женя 2019-07-21 21:11:19Z
thx I have no permissions
21:11
I have fucking localized VS
21:11
I don't understand meaning of the buttons
Avatar
@Learath2 zeta?
Avatar
Дядя Женя 2019-07-21 21:44:29Z
@Learath2 For now only on 95.172.92.151:8333 i got right m_DDRaceTime
21:44
which resets to 0 when I kill
21:44
on other servers (or maps?) I receive no message (edited)
Avatar
@heinrich5991 how many zeta's do you know? I'm ofc talking about the great Zeta Hoernchen
Avatar
I was wondering ^^
Avatar
@heinrich5991 you really should try TIS-100, amazing game
21:46
@Дядя Женя only the lastest master servers will send you the correct RecordTime flag
21:47
you'll need to build your own server
Avatar
Дядя Женя 2019-07-21 21:47:53Z
lol
21:48
How does scoreboard on tab correctly show top-time
Avatar
it sorts the times?
Avatar
Дядя Женя 2019-07-21 21:48:35Z
?
21:49
21:49
I mean this time
21:49
btw I got it right
Avatar
I don't know, have you considered checking the code? 😄
21:49
I do know where all these are. but I don't have the entire code in my brain
Avatar
Дядя Женя 2019-07-21 21:50:00Z
I'll look for scoreboard code
Avatar
@Дядя Женя iirc the scoreboard code wrongly assumes m_RaceRecordTime
21:54
Just google chrome things
Avatar
ChillerDragon 2019-07-21 21:56:07Z
xd
Avatar
@heinrich5991 it's a very weird computer architecture that you have to write assembly for, to do "simple" tasks
Avatar
wtf 100.6%
21:59
xd
Avatar
@archimede67 chrome is an overachiever
Avatar
i don't get that many of cpu usage tho
Avatar
Дядя Женя 2019-07-21 22:01:43Z
why scoreboard "wrongly" always instantly show correct top time
22:01
and the same code in hud.cpp can't do that
Avatar
It's correct only on ddnet servers, go on a ddrace server (if those exist anymore) and it won't work at all
22:06
ddrace servers used to send DDRaceTime in that message instead
22:07
@heinrich5991 I think we should drop some of this legacy baggage tbh, I don't think anyone sends the ddrace kind of Sv_Record anymore
Avatar
Дядя Женя 2019-07-21 22:07:36Z
is there any servers except ddnet and kog
22:07
lol
Avatar
while you're at it, maybe also drop the old 64p info packet
Avatar
@heinrich5991 I don't even remember an old 64p info packet
Avatar
the one with "\xff…fstd"
22:09
the one where you have to re-request all the servers that might have the extension
Avatar
oh, we still support that?
22:09
I wonder if there are any servers in the wild that still use that 😄
Avatar
I wouldn't bet on forks of ddnet to have updated
Avatar
^ I thought that that was a (useless) feature
23:53
And once i thought that it stops time
23:53
I mean pauses
23:54
The command should be renamed to /spectate or smth, just saying
Exported 274 message(s)