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 2022-07-14 00:00:00Z and 2022-07-15 00:00:00Z
Avatar
How are lasers determined which they are in the code? Like how does it tell the difference between a shotgun laser and a rifle laser?
Avatar
There is also door laser and freeze laser
Avatar
Are there any files that items.cpp or items.h is linked to that could help with this? (edited)
Avatar
What does this part of CItems :: OnRender do? (edited)
Avatar
So my plan is for a potential Multi-laser color system is that, there will be 4 modes for the laser color, and whichever is sent in by the right object will co-relate the color with the laser type. I'll be simplifying it a bit by merging doors with draggers and explosive plasmas, and freezes with freeze plasma.
07:08
I just don't know how to do it yet. The four modes will be ClLaserRifle[] ClLaserShotgun[] ClLaserGame[] ClLaserFreeze[]
07:08
For now I'll just do the first two until I know it will be 100% possible
Avatar
imo tooltips take too long to appear (i never even noticed any until now) and it's unclear what things have tooltips on them
07:58
so if you "get helped" by them it feels like a total accident, unless people are specifically looking for them and knew they existed beforehand
Avatar
Changing the delay is easy u can do it
08:49
But showing what has tooltips, idk
Avatar
Yep I also thought about that, the delay is way to high. And there should be an information indicator that there is an tooltip
09:05
maybe the indicator apears instantly on hovering
09:05
or is always there
09:05
also the tooltips should be multiline and should not go over the whole display, but only like max 1/2
09:06
better 1/3
Avatar
a button for toggling tooltips or an indicator as c0d3d3v wrote
Avatar
Avatar
Voxel
What does this part of CItems :: OnRender do? (edited)
looks like that is specificly the rendering of predicted lasers, shot by yourself. maybe they get generated local
Avatar
ah, nice.
Avatar
Can you download the steam DDNet.exe without having steam or windows?
Avatar
Or in other words. Do we have a way to get a trace out of an RTP dump, from a steam build?
Avatar
Can ask the person to copy it
11:53
and I have access to them on Steam, which one do you want?
Avatar
[quakenet] Konsti BOT 2022-07-14 12:28:04Z
why cant i join some servers with reason No response from server yet?
Avatar
Thats not a reason
12:28
It just doesnt show "connecting to..." for 100years anymore, instead that
12:29
so there are probably attacks going on, or you are not whitelisted, depending on which server you try
Avatar
@Discord Mod
✅ 1
12:32
@Ryozuki you just missed Rust giveaway 😄
Avatar
attacks going on, there is no whitelist
Avatar
depending on which server you try
12:36
there are multiple ones that use whitelists
Avatar
we would need account for that i believe
Avatar
how then?
Avatar
website
Avatar
[quakenet] Konsti BOT 2022-07-14 12:38:16Z
accounts bad
Avatar
how you prevent attackers to use your website?
Avatar
they can
12:38
but cloudflare
Avatar
@Chairn lots of attacks are from spoofed ip addresses
Avatar
Avatar
deen
and I have access to them on Steam, which one do you want?
It was just about the person in #bugs would it be enough if he uploads the DDNet.exe? Would that contain the symbols?
12:59
we strip them
12:59
If the exe contained the symbols, then we could just resolve them immediately in the crash dump
13:00
but then the executable would be much larger
Avatar
we should definetely put commit hash in the crash dump
Avatar
43 MB for DDNet.exe alone
13:00
yes, exact version in crash dump would be nice
Avatar
I wonder how that even works that we can use the addreses from the optimized version and find them in the debug version
13:02
Do we still not have address space randomisation on?
Avatar
I compile for windows with -pie
Avatar
[quakenet] Konsti BOT 2022-07-14 13:36:52Z
deen being able to block spawn is fixed right?
Avatar
72f3b774b (deen/pr-spawn-block) Use "occupado" spawn spots when nothing else is left (1 year, 2 months ago) par def
13:42
looks like
Avatar
[quakenet] Konsti BOT 2022-07-14 13:56:10Z
just to make sure cuz there a map with 1 tele and on ground in testing :justatest:
Avatar
the protocol code generation is such a mess
15:17
how did matricks come up with that idea ?
Avatar
Avatar
[quakenet] Konsti
deen being able to block spawn is fixed right?
it is still posible to block on some maps, that even have solo on the spwan but next to it kill tiles. because you bounce off and fall into death xD
Avatar
Avatar
Chairn
the protocol code generation is such a mess
actually not to bad xD since I reworked part of it ^^
15:22
But yes would be better to have a nice C++ protocol instead of relaying on the generation via python. (edited)
Avatar
Avatar
c0d3d3v
actually not to bad xD since I reworked part of it ^^
man, there's a part where python reads itself instead of just importing the file
Avatar
:DD I know
15:23
thats 2010 python style
15:23
xDD
15:23
*2008
Avatar
you can refactor it
Avatar
Avatar
c0d3d3v
*2008
damn, i wasn't even out of highschool 😄
15:26
oh, github can find declaration now, but only in python files
Avatar
thats old
15:26
it can do that for like 4 years
15:26
at least
15:26
works also on php
Avatar
well, never had to deal with python on github until now 😄
Avatar
php and python are really easy to parse. I guess thats why they got that so early for these langs
Avatar
python is the hardest language on this planet
Avatar
xD says the rust programmer
Avatar
im no rust developer
Avatar
I think python is pretty easy. Thats also why it is the most preffered lang to teach after java in school and university
Avatar
python is hard to debug due to weak typing (edited)
Avatar
python is hard to type
Avatar
O.o why hard to debug?
Avatar
same variable can be of so many types
Avatar
bcs python syntax sucks xd
Avatar
that has an interpreter debugger xD you can run every code you want on the fly while you debug. while c++ will not allow you to create obj on the fly while debug
Avatar
i don't know how to use it feelsbadman
15:33
but some code is harder to follow in the logic in python
15:33
like our code generation one ^^
Avatar
Avatar
Jupstar ✪
python is hard to type
I guess that is just the way we see all languages that we did not learn yet xD
15:34
you can create in every lang hard to follow code (edited)
Avatar
assembly is best language, no type at all troll
Avatar
especially if you do not know the lang
Avatar
Avatar
c0d3d3v
that has an interpreter debugger xD you can run every code you want on the fly while you debug. while c++ will not allow you to create obj on the fly while debug
Sure you can create an object while debugging, what gave you the impression you can't?
Avatar
I can not even call a function with clangd
15:36
I will make a screenshot
Avatar
I can in both gdb and lldb
15:37
Clangd is a language server, no? How is it related to debugging?
15:39
sorry I meant lldb
15:39
but it is gdb anyway xD
15:41
I guess at least the function is not called. Because I get no usefull output
15:41
in python it would just print the output
Avatar
Not connected to the internet, so cant get a screenshot but function calls work just fine in gdb
Avatar
then it is badly integrated into vs-code
15:46
ah no
15:46
dbg_msg call works
15:47
but that is a pretty simple function
15:49
mh actually now it works also for some other funtions xD I will come back to you as soon as I remeber the case I wanted to do last time (edited)
Avatar
Here created an object for you
Avatar
ah nice rubik's cube you got there
Avatar
Avatar
Learath2
Here created an object for you
ah you have to use $ vor new variables good to know
Avatar
Avatar
c0d3d3v
sorry I meant lldb
if u use lldb in vscode, make sure to set the extension parsing mode to native
15:52
else u cannot do unsafe stuff
15:53
15:53
it even supports python xD
Avatar
can you also do something like that? (edited)
Avatar
if gdb can, then lldb too xd
15:55
and if any of them can, then vscode too xd
Avatar
well i can run expressions yes p dbg_msg("test", "dsadsa") prints the line as soon as i continue the debugger
Avatar
I tried to create a projectile but made a mistake and crashed it :P
Avatar
So it's definitely not as easy as in python, but you can indeed do pretty much anything you want in gdb and lldb
16:07
Biggest problem is a lot of things get inlined, so you might e.g. not have access to the constructor
Avatar
27a4c49 Make UI inputs more secure - C0D3D3V 96896dd Merge #5619 - bors[bot]
Avatar
ba16085 Move message copy inside SendPackMsgTranslate - Robyt3 d99ed6d Remove null check that potentially hides programming errors - Robyt3 44eb321 Fix name of an std::vector member - heinrich5991 4292c9e Convert preprocessor #define to constexpr int - heinrich5991 994324b Warn about pnglite-incompatible PNGs on load - heinrich5991 482f15a Merge #5520 #5624 - bors[bot]
Avatar
Do any of you know VHDL? If you do, any good resources on it?
Avatar
I can upload an university course from me... I did not take the course I only did make "Hardware Reverse Engineering" in that you learned only a little about it. But I think I have materials for the other course in that you have a lot more details for VHDL
Avatar
Is vhdl closed src?
17:08
Ah its a lang
17:08
xD
Avatar
Avatar
c0d3d3v
I can upload an university course from me... I did not take the course I only did make "Hardware Reverse Engineering" in that you learned only a little about it. But I think I have materials for the other course in that you have a lot more details for VHDL
I'd like that actually
Avatar
Avatar
Learath2
I'd like that actually
Ok I will search in my data for it ... and will ping you if I have found it
Avatar
I have slides from 11 years ago for VHDL on FPGAs too
18:18
Don't remember that much, except that timing is always off and you get weird artifacts on VGA because of that
Avatar
@ The Windows Users, what IDE are you all using for C/C++ ? (edited)
19:37
Which do you prefer
19:38
Because i am using Visual Studio but i see others using VS Code with extensions
19:39
(those two only as example) (edited)
19:42
^_^
Avatar
visual studio is good too, just use what u like
Avatar
The minor refactoring: The mod maps are started with a prefix so I check the map name on demo playback to disable DDNet tuning for the mod demos. I found that the map info was not set on demo loaded bu...
Avatar
I can't bring myself to agree with visual studio being good, it's just way too bloated
21:26
I can excuse almost any IDE, but that thing is a resource hog of epic proportions
21:29
just use neovim
Avatar
i only use visual studio for building the program LOL
21:37
idk if VS Code can do that...
Avatar
You can build on windows without using visual studio on windows, you can either use msys or you can also use the cmake gui
😅 1
Avatar
I like that visual studio works without installing a dozen vs code extensions which have changing versions
Avatar
fwiw I just install the C++ extension pack by microsoft and that's enough for me on VSCode, never really messed around more with the extensions
21:42
Though I want very little from my editor, so YMMV
21:45
I think I'll move to vim soon though, one less electron program on my computer
Avatar
6f6337c CDemoPlayer: Mark GetMapInfo() const - Kaffeine 1f264a0 CClient::DemoPlayer_Play: Load map info into m_CurrentServerInfo - Kaffeine 5169369 prediction/entity: Sync ID getter name with the server/entity - Kaffeine 9e4098f prediction/entity: Add GetPos() (sync the API with server/entity) - Kaffeine 04ff8f1 Menu: Fix a typo in loading state text - Kaffeine 3c64028 Merge #5631 - bors[bot]
Avatar
Avatar
bluesky
Which do you prefer
CLion troll i didnt use windows in a while, but i guess I would use it there too
Avatar
Avatar
Learath2
Do any of you know VHDL? If you do, any good resources on it?
i know VHDL, but not sure i have good resources. I have a presentation on moving from VHDL to systemverilog though
Exported 166 message(s)