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-22 00:00:00Z and 2019-07-23 00:00:00Z
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 I checked the source from Jupeyy but couldnt find anything
02:14
@noby u maybe?
Avatar
@fokkonaut does the decimals thing happen with the latest patch on a latest patch server? I assumed that was an artifact of the misdetermined message type in hud.cpp
Avatar
I havent tested it, just saw it yesterday again and thought, man i wanted to report this long ago already xd
Avatar
yeah I wanted to fix it aswell, but I think the Sv_Record fix should cover that aswell
Avatar
I can test it in some minutes
07:18
nope, still not fixed
07:19
the deci seconds are still paused when you /pause
07:19
same for spectator mode btw
Avatar
@fokkonaut but did you test it on the new server? the server was sending the wrong flag
Avatar
I pulled ddnet master and did it on my lan server
07:29
Just compiled
Avatar
okay, well I can fix it tonight, or you can take a look if you want
07:30
shouldn't be too difficult
Avatar
Btw: what is the difference here? GAMEINFOFLAG_RACE_RECORD_MESSAGE (edited)
Avatar
@fokkonaut DDRace servers send m_DDRaceTime and m_CheckpointDiff in their record messages
Avatar
and this one GAMEINFOFLAG_RACE_SHOW_RECORD is not even used
Avatar
scratch that, ddrace servers only send m_DDRaceTime
Avatar
@Learath2 Why does DDNet send the RACE message then?
Avatar
DDNet and old Race servers send the ServerRecord instead
Avatar
That was tricky, I actually wanted to remove that feature but wasn't sure if it was a good idea so I added a flag instead
Avatar
oh wait
07:35
I see, it is used
Avatar
if a server sends that, the timer on top will display the server record instead of the server time
Avatar
is cool
07:36
I mean, for custom servers, not officials
Avatar
it's behaviour exhibited by old race servers iirc
Avatar
If I set a flag, then check for something and want to remove a flag then using &= ~FLAG, do I have to check whether the flag is in already using m_Flags&FLAG, or will it just automatically detect thta
Avatar
Well the pattern is that usually we set the flag only after the check
Avatar
Well, I have 2 checks for my case
Avatar
but to remove a flag &= ~Flag should always work and -= Flag will work if you know that the flag is set for certain 😛
Avatar
so, if I use &= ~FLAG, I dont have to check for it first?
Avatar
nope no need to check
Avatar
great, thanks
Avatar
@fokkonaut this looks more organized tbh, I'd keep it
07:46
but you could move the definition of pSnapChar up so that you can merge the two ifs setting GAMEINFOFLAG_ALLOW_ZOOM
07:47
I wouldn't tbh, readability > linecount in this case, especially your peformance gains would be minimal
Avatar
Okay :)
Avatar
@fokkonaut I don't think we can fix the decisecs while in freeze
Avatar
I am just looking at the code
Avatar
took a look and we seem to use the race tick for the decisecs as the timer itself doesn't have the precision
07:51
we could possibly fake it
07:51
while paused, not while in freeze*
Avatar
Freeze isnt affected?
07:52
Being spectator is affected
07:52
ah yes :D
Avatar
nono, it's just in pause/spec, you just don't receive the ddracetime anymore
Avatar
Yes, thats what I got too :D
07:52
I ended up in engine/client/client.cpp, where it doesnt get the snapshot while spectating (edited)
Avatar
you do receive the snapshot, you just don't get Sv_DDRaceTime iirc
Avatar
sec (edited)
Avatar
oh that has nothing to do with it
07:55
m_DDRaceTick is already faked 😛
07:55
I wonder why it doesnt work in pause
07:56
maybe predtick doesn't move anymore
Avatar
Would make sense
07:56
wait
07:56
I think I know
07:59
@Learath2 something broke :x
08:00
yup, the GAMEINFOFLAG_RACE_RECORD_MESSAGE breaks the timer completely xD
08:00
It completely gets stuck
Avatar
maybe we should just remove that branch, I have a feeling it never worked at all
Avatar
Do so
Avatar
@deen do you remember why that was added? hud.cpp:L129 ?
Avatar
if(LastChangeTick != Client()->PredGameTick()) { m_DDRaceTick += 100/Client()->GameTickSpeed(); LastChangeTick = Client()->PredGameTick(); } This is where it gets stuck @Learath2, hud.cpp:L917
08:05
if you comment out the m_DDRaceTick += ... you will see it
Avatar
what happens if you comment that out?
Avatar
The deci second will stay at 0
08:05
(so the last recognized value)
Avatar
I know, that branch is never taken when you are spec/paused
08:06
I think that's because the pred tick never moves
Avatar
So we can't really fix that, can we?
Avatar
well idk why the predtick doesnt move when in spec
08:09
if(NewPredTick > m_PredTick[g_Config.m_ClDummy]) { m_PredTick[g_Config.m_ClDummy] = NewPredTick; engine/client/client.cpp:L2607
Avatar
I'm looking at it, but I don't see why the client wouldn't get snapshots while paused
Avatar
if(NewPredTick > m_PredTick[g_Config.m_ClDummy]) this is also the case while spectating (edited)
08:16
AH
Avatar
figured it out?
Avatar
No, this starts getting very weird
Avatar
OKAY
08:33
There we go
08:33
Found it
08:34
It is this little line in hud.cpp:L777, if(/*m_pClient->m_Snap.m_pLocalCharacter && (*/!(m_pClient->m_Snap.m_pGameInfoObj->m_GameStateFlags&GAMESTATEFLAG_GAMEOVER)) (i commented this out and it worked)
08:34
I mean, I commented the m_pClient->m_Snap.m_pLocalCharacter out
08:34
Because this would call RenderDDRaceEffects();, in which this gets set: m_DDRaceTick += 100/Client()->GameTickSpeed();
Avatar
Before this was set in RenderDDRaceEffects(), but that function is only called if m_pClient->m_Snap.m_pLocalCharacter exists, which isn't the case in spectator/pause.
Avatar
@deen I mean originally, why was such a branch needed in the first place?
Avatar
git log -L 129,129:src/game/client/components/hud.cpp
09:38
So it's for race servers I guess
09:38
not ddrace
Avatar
@heinrich5991 Your system broke zoom on mods like blockZ, where you can zoom in /pause, but not in normal gameplay, you can just pause, zoom out and unpause, the behaivor in this case is very weird, you cant zoom in or out in gameplay, but reset your zoom level to your default zoom, so if that is not 10, you can also cheat like this.
Avatar
But race servers send record not ddracetime
Avatar
justabutterflier 2019-07-22 14:37:50Z
hey, guys i just reinstalled windows, all is ok but when i start ddnet (from win 7 x64 to win 7 x64) i have 3 fps. rly! how to fix it?
14:38
Сигнатура проблемы: Имя события проблемы: BEX64 Имя приложения: DDNet.exe Версия приложения: 0.0.0.0 Отметка времени приложения: 00000000 Имя модуля с ошибкой: StackHash_1dc2 Версия модуля с ошибкой: 0.0.0.0 Отметка времени модуля с ошибкой: 00000000 Смещение исключения: 0000000000000000 Код исключения: c0000005 Данные исключения: 0000000000000008 Версия ОС: 6.1.7601.2.1.0.256.1 Код языка: 1049 Дополнительные сведения 1: 1dc2 Дополнительные сведения 2: 1dc22fb1de37d348f27e54dbb5278e7d Дополнительные сведения 3: cbc5 Дополнительные сведения 4: cbc5ec6970b2af35927ad67117ca57e2
14:38
14:41
sometimes it crashes
14:45
and why there is no rus servers? 0.0
Avatar
putin putin
Avatar
@heinrich5991 to my zoom bug: it happens when your dummy is connected
15:02
wait, it might not be there with the new client
Avatar
I don't think these servers exist anymore
15:17
I think I'll just remove the branch in hud
Avatar
I've dug through a lot of servers, couldn't really find any that send their time in a way that would take that branch.
Avatar
@heinrich5991 You seem to define a flag SERVERCAPFLAG_DDNET, but you don't ever send it, is that intentional?
15:25
oh, it's compatibility with the older format
Avatar
My ddnet repo broke, thanks microsoft
15:42
I'll push to ddnet/ddnet instead I guess
Avatar
servercapflag_ddnet?
Avatar
I guess I won't as that's also broken
15:43
@heinrich5991 yeah, servercapflag_ddnet
Avatar
set it pls
Avatar
@heinrich5991 should we be setting it?
Avatar
yes
Avatar
@heinrich5991 that should come with a version bump right?
Avatar
@Learath2 github has its problems, its not you
15:46
its every repo xd
Avatar
@Learath2 yea, I guess
Avatar
why must github do this right when I wanted to create a pr
Avatar
the pr is there already
15:49
i saw it before github broke
Avatar
no another one
Avatar
5ddc140 Remove unused branch/flag - Learath2 102ddc4 Merge #1849 - bors[bot]
Avatar
rip github, may he rest in peace
Avatar
@heinrich5991 How would we go about deprecating the old NETMSG? Also I'm not quite sure if this is good usage of the capabilities, e.g. calling into pGameClient when we receive them.
Avatar
@Learath2 I think this isn't really a capability tbh
16:33
in the client.cpp code, there already is a DDNet variable
Avatar
@heinrich5991 you don't think rcon accepting usernames is a capability?
Avatar
not a capability of the server
16:34
or rather
16:35
well, it is one
16:35
but we want to only want to activate it in the client when there actually is a username
Avatar
Okay I'll remove that part
16:41
Actually this all looks wrong...
16:41
no need to bump the version eve
16:41
n
16:41
you were already checking it
Avatar
yes
Avatar
Дядя Женя 2019-07-22 18:59:22Z
@justabutterflier видеокарту не подключил, на интегрированной играешь?
Avatar
@Learath2
19:10
twintri
19:11
oh
19:11
it was a force push and a old notif
19:11
xd
Avatar
justabutterflier 2019-07-22 20:07:04Z
@Дядя Женя
20:07
драйвера не вставали по какой-то пиздец тупой причине
20:07
вообще ноут херовый, бсод постоянно вылетает с одной и той же ошибкой
Avatar
Дядя Женя 2019-07-22 20:10:24Z
ошибка драйверов обычно. Надо переставлять, слишком криво у тебя всё встало действительно
20:10
BSOD = кривой драйвер
20:10
ставь win10, там по умолчанию все дрова стоят
20:11
@justabutterflier
Avatar
justabutterflier 2019-07-22 20:18:03Z
хах
20:18
ноут не под вин10 точно
20:18
да и всё, я на другом компе
Avatar
justabutterflier 2019-07-22 21:08:14Z
wo
21:08
ta
21:08
fak
21:08
why this problem is here?
21:09
A retro multiplayer shooter. Contribute to teeworlds/teeworlds development by creating an account on GitHub.
Avatar
ChillerDragon 2019-07-22 21:17:18Z
upgrade bam
21:17
Bam is a fast and flexible build system. Bam uses Lua to describe the build process. It's takes its inspiration for the script files from scons. While scons focuses on being 100% correct wh...
Avatar
justabutterflier 2019-07-22 21:25:39Z
may i just "download zip" @ChillerDragon ?
21:26
thanks, it helps
21:26
hehe wtf?
Avatar
justabutterflier 2019-07-22 21:34:50Z
i hate windows 7
21:34
i cant normally compile ANY server here
21:35
i will install LINUX!!!
Avatar
try just bam
21:46
not bam server_release
Avatar
justabutterflier 2019-07-22 21:47:57Z
already
21:48
but i have problem which i cant delete
21:48
21:48
its already on second pc on win 7
21:48
what the best ver. of debian 8 x64?
21:49
i chose amd64
Avatar
amd64 sounds right
Exported 189 message(s)