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 2020-11-18 00:00:00Z and 2020-11-19 00:00:00Z
Avatar
The devil is interfering with your illegal ban of a brother
00:28
That's sooo odd tho, hm I don't see how it could happen 😛
Avatar
@Learath2 lol, ye same, maybe the client is trying to decode it as ascii when its utf8?
Avatar
Doesn't look like it
Avatar
is your character position always available when you /pause
02:47
like even when your camera goes out of range.
05:22
Not if you hack something in :D
05:22
/showall would work for example
05:22
but only on ddnet
Avatar
i want a "You are here" arrow at the edge of the screen😄
05:26
when you are pausing
Avatar
@noby do they work in chat?
Avatar
@TsFreddie dont think thats possible in a good way
05:42
The local character is not even set when you are pausing
05:43
would maybe be possible to reach it through the snap array but then again it only works within the range or with /showall
Avatar
maybe we can change the range detect a bit and always include the current player's snap
06:15
/pause is a ddnet feature anyway.
Avatar
I hope this helps with downloading things at wrong resolution again. Note that this commit is smaller than it seems, bcs of renaming files and moving code to it. Also this requires new translations. In the skin database are invalid skins too: !screenshot_2020-11-18_07-51-02 ![screenshot_2020-11-18_07-51-05](https://user-images.githubusercontent.com/6654924/99495410-e7fc1500-2972-1...
Avatar
Do I need to check anything special while doing virtual functions and base and child classes?
08:30
If I call a function from the base class the overridden function wont get called
08:30
i dont understand, because I did it basically the same way as entities do it in tw or the gamecontroller
Avatar
are the parameters the same type? try adding override to the child class' function to get a compiler error if it isn't
Avatar
parameters are the same, yes
08:33
class CFoo : public CBar
08:33
CFoo is the child, right?
08:36
it doesnt give errors with override
08:37
but also doesnt work :D
Avatar
yea, doesnt work
08:37
i dont get it
Avatar
make a minimal example
Avatar
c++ class CPerson { int m_Age; virtual void SetAge(int Age) {}; } class CWorker : public CPerson { virtual void SetAge(int Age) { m_Age = Age; } }
08:39
something like this maybe? :D
08:40
i also tried not declaring the CPerson's function without virtual, also doesnt owrk
08:40
It's basically the same as teeworlds' CEntity stuff, but in my case the base classes function is called
08:40
i checked that with a dbg msg
08:41
ah, forgot in the example: of course i call the CPerson's function, so basically m_pPerson->SetAge(Age);
Avatar
You are supposed to actually try the minimal example to figure out the problem, and not leave that to me
Avatar
mh, doesnt work for me in the teeworlds code? ...
08:43
wtf :D
Avatar
Try making SetAge public
Avatar
both is public for me
08:43
in both classes
Avatar
If your minimal testcase works it's not a minimal testcase
08:44
Are you maybe calling the function through a pointer to the baseclass?
08:45
Is that a problem?
08:45
CEntity does the same
Avatar
Not really, it's fine I just wanted a better image
Avatar
maybe you call SetAge in base class (CPerson) constructor?
Avatar
So you added override to the child class method and the compiler didn't complain?
Avatar
@Comrade nope, calling it from CGameContext
08:50
@Learath2 yes
Avatar
and are you sure that m_pPerson is pointing to CWorker instance?
Avatar
what do you mean? :D
08:54
its pointing to the CPerson class, calling a function, which i think should be overridden by the CWorkers function
08:54
But appearently its just calling the CPersons function
Avatar
Well just show us a diff? I'm out of ideas, if it doesn't complain with override, it overrides correctly
Avatar
well, if it points to CPerson object, then everything works as expected (edited)
Avatar
The only thing that remains is that you are not creating a CWorker but a CPerson instead
Avatar
well
08:56
that could actually be it lmao
08:56
yeah thanks alot man
08:56
wtf
08:56
big lol
Avatar
happens 😄
Avatar
haha :D
08:59
@Learath2 Thanks, but how did you get that thought? xD
Avatar
Well as I said, if override doesn't complain, then you are overriding correctly
08:59
You said you have a pointer to CPersom
09:00
And you are not doing the call in a constructor
09:00
So the only thing that remains is that the pointer doesnt point to a CWorker at all :P
09:02
Great, thanks alot
Avatar
@fokkonaut make the destructor virtual in ur base class
Avatar
to avoid problems
09:03
in the future
09:03
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
Avatar
I wont need a destructor, but yes, you are right
Avatar
if ur base class destructor is not virtual it will never get called
09:03
wait
09:04
ur chiuld destructor wont get called*
09:04
child
09:04
*
Avatar
my english xd
Avatar
[quakenet] ChillerDragon BOT 2020-11-18 09:04:45Z
@deen would be nice if you could ping @ChillerDragon in such an issue so i do get a mail and dont create a dupe https://github.com/ddnet/ddnet/pull/3311 and next time i wont listen to heinrich :p
Happens when writing 4 digits in Maximum ping field in filter. This in turn causes a clamp to 3 digits. The Length in TextEx is fixed to old str_length apparently. Maybe there is a better way to fi...
Avatar
thats a pr
09:05
i think u made a issue
09:05
so its fine
Avatar
[quakenet] ChillerDragon BOT 2020-11-18 09:05:45Z
ah ye true
09:05
im so brainded xd
Avatar
[quakenet] ChillerDragon BOT 2020-11-18 09:06:34Z
still didnt see and a ping would be nice so i dont create a issue after the pr :D
Avatar
ChillerDragon
09:06
there pinged
09:06
troll
Avatar
[quakenet] ChillerDragon BOT 2020-11-18 09:07:06Z
ye githubs ping system is not as fleek as irc tho
Avatar
I assume people here see PRs. And heinrich explicitly told you to only create an issue if the problem stil occurs (that means in the current master state)
Avatar
[quakenet] ChillerDragon BOT 2020-11-18 09:08:06Z
i looked at git history and did not see any fix cuz im blind
09:08
ja was fail
09:08
but pls use an @ if you do something that could interest em :)
09:08
me*
Avatar
166 bytes skin xd
09:33
looks cool ingame xd
Avatar
reason=stars is broken as well
11:04
at least on CHN
11:04
just tried on GER, not working
11:05
I have a fix open, but waiting for review
Avatar
Caused by the hotfix for solo cheat As reported by maggi323 Checklist Tested the change ingame Provided screenshots if it is a visual change Tested in combination with possibly related configur...
Avatar
i see
Avatar
@deen in #3319 why does str find and endswith fix the issue even? I couldn’t really make sense of it
Avatar
Caused by the hotfix for solo cheat As reported by maggi323 Checklist Tested the change ingame Provided screenshots if it is a visual change Tested in combination with possibly related configur...
Avatar
probably because the command is no longer at the beginning of the vote command
11:44
still just piling another hack onto the existing hack ^^
Avatar
Wait why?
Avatar
how I imagine this works:
Avatar
What is at the start of a command now?
Avatar
probably something like sv_reset_file solo.cfg
11:45
(note that this is still all speculation on my part, I haven't looked into it)
Avatar
Oh, no really? ;D
Avatar
I'm talking specifically about stuff like sv_solo_server, which should be inside the map. That would allow the map to be hosted independently, and prevent bugs like the non-solo game settin...
Avatar
This is kinda awful ngl, butI guess 3319 should still be merged in the meanwhile
Avatar

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
  • [x] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [x] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undef...
Avatar
Just an idea: if someone would port ninja indicator bar from 0.7 to DDNet codebase would it be merged?
11:56
I mean with both UI and netmessage support (didn't researched which is needed there)
11:57
on good news, i already load them into memory @Deleted User 😄
Avatar
c3f6d89 Fix random map vote reason to set stars - def- b4f8f79 Merge #3319 - bors[bot]
Avatar
so it should be ez to implement probably
Avatar
I would like to see that yes, but I still think we should get upgradable netobjects before this
Avatar
@Deleted User you mean only GUI is needed and ninja start time is already got from netmessages/snapshots?
Avatar
I really don’t want to start introducing things like ddnetcharacterv2
11:59
Though I guess the data is already on the client, maybe you don’t need any new netobject
Avatar
@Deleted User i dunno how 0.7 implemented them, but i added a few 0.7 sprite capabilities already
12:00
client data from 0.7
Avatar
@Deleted User yes
12:02
the rendering of arabic characters in chat isnt entirely correct, but at least the characters show up and i hear they are readable
12:02
vs the ban reason where they are unreadable
Avatar
send the arabic string pls
12:02
i ban myself now to test xd
Avatar
للتجربة
Avatar
str_sanitize_strong(aStr);
12:07
but dunno what this does
Avatar
yea, it does that
12:07
it mangles the string
12:07
nice
12:07
who invented this function
12:07
😛
Avatar
anyway its in CNetConnection::Feed
12:08
dunno if we want to fix it
Avatar
is it being mangled in the client or the server
Avatar
client
Avatar
we should at least fix that it's being mangled instead of replaced by ??? or so
Avatar
is there a chance that it can be fixed so that messages appear the same in ban reason as they do in chat
Avatar
yes
Avatar
its a commit from matricks 9 years ago xd
12:11
11*
Avatar
got the screenshot again? @noby
12:11
this?
Avatar
Dunno if we should get rid of this function entirely or fix it in a way so it replaces non-ASCII bytes by ?. Causes ban reasons to be mangled: https://cdn.discordapp.com/attachments/293493549758939136/778401637466898472/unknown.png Apparently caused by this ban reason: للتجربة.
Avatar
f38e4e1 Unlimited texture names - Jupeyy 00247f0 Merge #3328 - bors[bot]
Avatar
c989cd6 Check skin/sprite images for correctness - Jupeyy 078247d Merge #3327 - bors[bot]
12:42
Everything is in the title. I believe it does'nt work because heart have 1.5 tile radius while rescue check only 1 tile radius so it thinks im not on a freeze tile. !image
Avatar
Wait, so do we want to just send any utf8 ban reason? I don't see any reason to limit it
@deen yes that would be the best thing
Avatar
!screenshot-20201118@143227

Checklist

  • [x] Tested the change ingame
  • [x] 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 existin...
Avatar
awesome thx @deen feelsamazingman
Avatar
@Deleted User I found something odd
14:21
I set gfx_opengl_major 2 and minor 3, which should probably break since that's not a real thing, but it launches fine, doesn't output anything about the opengl version it launched with and if you go into the console and just type gfx_opengl_major it crashes 😛
Avatar
it clamps the values
14:22
to existing GL versions, if major is < 4
14:22
also cant reprod the crash :/
14:23
it doesnt output anythign for SDLs default
14:23
so 2.1
Avatar
I can do it with a clean config, I set opengl3.3 in the settings. I restart, I set major to 2, I restart. It crashes when I want to check the value of major
Avatar
are u on release mode?
Avatar
It's the release on ddnet.tw so probably yeah
Avatar
linux?
Avatar
windows
Avatar
oh, ok
Avatar
oh it also broke my visual studio when I tried to attach it
14:25
great platform this windings, I'm so glad a lot of people use it and provide it's parent company a monopoly
Avatar
cannot reprod on linux, so would be nice if u debug it, if u got time for it
Avatar
Ah yes, the kind that disappears when you attach a debugger
14:29
lovely
Avatar
well it could be a compiler bug ofc
14:29
asan and ubsan doesnt show anything for me
Avatar
It's gone now, happened like 10 times in a row and now it's gone...
14:31
Another bug lost to time I guess
Avatar
did u try a clean config the last 10 times? xd
Avatar
the first 2 were dirty, then I reproduced it 8 times in a row with a clean config
Avatar
reading the variable should be the same as any other config variable
Avatar
it could also just be unlucky timing
14:33
timing bugs are the most horrible
Avatar
timing with the graphics thread?
Avatar
yeah
14:37
or sound
14:37
dunno what happens during startup
14:37
had atleast 2 persons under windows that had double sound once, unreproducable xD
Avatar
I want to see some performance numbers on different hardware. I can probably do it myself. The idea would be to play back a representative demo of reasonable length and measure the fps meanwhile.
Avatar
ddnet benchmarks
15:57
soon every benchmarker uses them
Avatar
[quakenet] deen BOT 2020-11-18 16:03:29Z
hm, some tests use binaries, some build from source. I guess building from source is better, so will do that
Avatar
'Show name plates' is HUD part, imo. It isn't very comfortable to enable/disable whole HUD with tab changing.
17:40
bezier.h and bezier.cpp are part of client only. Why should it stay in shared directory?
Avatar
after 20 minutes of gametime my client suddenly only outputs half the fps, and it starts showing. only fix is a client restart. known problem? sometimes changing to a server with fewer tees helps/delays it but not always
Avatar
what client version?
Avatar
15.0.3 i should update probably
Avatar
yes
18:00
we had a bug in that version
Avatar
haven't checked for new updates since it's not in the bottom anymore, thank you
Avatar
yeah we have a homescreen now, it should show a green symbol when there is news or update
18:01
top left in the server browser
Avatar
[quakenet] ____Khalim_ BOT 2020-11-18 19:59:28Z
suka
Avatar
[quakenet] pastaaa BOT 2020-11-18 22:46:07Z
wos kevin
23:34
d99f1b9 Allow utf8 ban reasons (fixes #3329) - def- a74af25 Merge #3331 - bors[bot]
23:43
2a7ba8f Add ball particles, even for invalid projectiles - Jupeyy 38d0bf3 Merge #3325 - bors[bot]
Avatar
81bb7e6 Improve list box behaviour, make it more consistent - def- cfd3f84 Found some more times with mins, use hours for consistency - def- b138c40 Merge #3304 #3310 - bors[bot]
Exported 240 message(s)