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 2021-02-26 00:00:00Z and 2021-02-27 00:00:00Z
Avatar
Thanks for the help anyway 🙂
07:17
while selecting it will still make the hover effect for the player entry under the mode selection !image
Avatar
@Deleted User i remember u talking about which linker was faster, maybe u can try https://github.com/rui314/mold, made by the creator of llvm ld
08:05
It looks like mold has achieved the goal. It can link Chromium in 2 seconds with 8-cores/16-threads, and if I enable the preloading feature (I'll explain it later), the latency of the linker for an interactive use is less than 900 milliseconds. It is actualy faster than cat.
08:06
poggers
Avatar
Sounds good
Avatar
!screenshot_2021-02-26_12-40-50 Current behavior is not showing it, so better than nothing. Since FNG with over 16 players is quite a thing, its nice to have it working

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 sta...
Avatar
33b75bd Make statboard work with up to 32 players - Jupeyy c3ac693 Merge #3647 - bors[bot]
Avatar
632d31b dont modify map channel list while going through it - 12pm
Avatar
[quakenet] ChillerDragon BOT 2021-02-26 13:58:33Z
looks like ger2 and ger3 have a unconfigures nginx and apache running. Is this a feature or a bug? :D
13:59
i was exploring ddnet a bit while i wondered how i should configure my apache
Avatar
ChillerDragon: For GER2: It's configured, but on a hostname you don't know :D. For GER3: We don't run that server anymore, so that belongs to someone else, let me remove the dns entry
14:52
Actually, it's not a secret. https://info.ddnet.tw/info is on GER2 for old clients since we used to hardcode our root certificate, which doesn't play well with Cloudflare
14:52
New clients access https://info2.ddnet.tw/info
Avatar
[quakenet] ChillerDragon BOT 2021-02-26 15:00:10Z
yea well sure idk if its configured or not i mean it just shows the default page i mean
15:00
good ol' legacy support :D
19:14
🙂
Avatar
@heinrich5991 i think this solves this kind of thing:
19:15
async fn index(path: web::Path<(String, String)>, json: web::Json<MyInfo>) -> impl Responder { let path = path.into_inner(); format!("{} {} {} {}", path.0, path.1, json.id, json.username) }
19:15
this is a endpoint in actix
19:16
the parameters are called extractors
19:16
i think they are limited to 10 rn
19:16
but with const generics it could be infinite right?
19:17
hmm i wonder if this was it
19:18
An extractor can be accessed as an argument to a handler function. Actix-web supports up to 10 extractors per handler function. Argument position does not matter.
19:19
19:19
i wonder if const generics can fix this
Avatar
too advanced for me
19:19
help
19:19
brain melt
Avatar
i only understand c# console.writeline()
Avatar
Avatar
Ryozuki
Click to see attachment 🖼️
This is the ugliest thing I've ever seen, what is this for? 😄
Avatar
@Learath2 to make the extractors thing a breeze on ur function
Avatar
sorry for interrupting the coding conversation here, bye
Avatar
@Learath2 did u see my index function
19:20
u can ask what u want in the parameter
19:20
e.g i want the session
19:20
u put session: Session
19:21
the magic that does this is that
19:21
but its limited rn
19:21
due to no const generics
Avatar
Ah, this is very common in PHP. Good to see they added a way to do it in rust
Avatar
Symfony calls it depencency injection, it makes it sooooo pretty to code
19:21
its pretty af
19:24
@Learath2
19:24
monkalaugh
Avatar
Symfony goes one step further, you can just put a security annotation up top and get the user injected
Avatar
im sure u can do that
19:26
with a guard
19:26
or a middleware
19:26
idk rn
Avatar
@Learath2 ok its not const generics
19:59
Issue by eddyb Monday Oct 28, 2013 at 17:39 GMT For earlier discussion, see rust-lang/rust#10124 This issue was labelled with: B-RFC in the Rust repository The Problem fn types need a reform, and b...
19:59
variadic generics
20:00
monkalaugh
Avatar
hello i have simple question, how want use cmake (with windows terminal not vs) for build ddnet So I created a build folder in the source code of ddnet but I don't know what to write to only compile the server KEKW
21:26
*build folder = test
Avatar
which version of msvs do you hae installed?
Avatar
what is msvs xd i just installer cmake on the official web site and i use windows command prompt (edited)
Avatar
microsoft visual studio
Avatar
19
22:03
ha
Avatar
ah 🙂
Avatar
why
Avatar
because you need a compiler
Avatar
i have mongw
22:03
mingw
Avatar
ah, you want to compile with mingw?
22:04
can you open a mingw shell?
Avatar
i dont have shell just installation manager
22:05
i only know how to compile 1 cpp file not i folder
Avatar
show me how you compile one cpp file
Avatar
hmm g++ 123.cpp -o 123
Avatar
can you try mingw32-make --version? (edited)
Avatar
nice
22:07
then try cmake -G "MinGW Makefiles" ..
Avatar
ah, cd to the build folder first
Avatar
same
Avatar
can you screenshot the error again please?
Avatar
ha sorry that work
Avatar
what does the command say now? was it successful?
Avatar
-- Configuring done -- Generating done
22:13
and now?
22:13
if i want build ddnet server what i do?
Avatar
cmake --build . --target DDNet-Server (edited)
22:17
Avatar
look for an error, those are mostly just warnings
Avatar
error 2?
Avatar
that's the result of another error
22:18
look for an error like C:...\system.c: error: ...
Avatar
i dont see that
22:21
C:\Users\noasc\Documents\DDNet-15.3.2\src\base\system.c: At top level: cc1.exe: warning: unrecognized command line option '-Wno-nullability-completeness' CMakeFiles\engine-shared.dir\build.make:774: recipe for target 'CMakeFiles/engine-shared.dir/src/base/system.c.obj' failed mingw32-make.exe[3]: *** [CMakeFiles/engine-shared.dir/src/base/system.c.obj] Error 1 CMakeFiles\Makefile2:432: recipe for target 'CMakeFiles/engine-shared.dir/all' failed mingw32-make.exe[2]: *** [CMakeFiles/engine-shared.dir/all] Error 2 CMakeFiles\Makefile2:558: recipe for target 'CMakeFiles/DDNet-Server.dir/rule' failed mingw32-make.exe[1]: *** [CMakeFiles/DDNet-Server.dir/rule] Error 2 Makefile:357: recipe for target 'DDNet-Server' failed mingw32-make.exe: *** [DDNet-Server] Error 2
22:21
this is suspicious
Avatar
this is the result of an earlier error
22:22
it says: "recipe for target … system.c failed" (edited)
22:22
that means it tried to build system.c, but it failed. the command output above should say why it failed
Avatar
C:\Users\noasc\Documents\DDNet-15.3.2\src\base\system.c:3387:20: error: expected ';' before 'ShellExecuteA' C:\Users\noasc\Documents\DDNet-15.3.2\src\base\system.c:3387:10: error: 'uintptr_t' undeclared (first use in this function) C:\Users\noasc\Documents\DDNet-15.3.2\src\base\system.c:3395:1: warning: control reaches end of non-void function [-Wreturn-type] this is alls error i see look, this started to crash here (edited)
Avatar
Avatar
Deleted User
Click to see attachment 🖼️
look at my picture
Avatar
error: expected ';' before 'ShellExecuteA' ah, that's the problem
22:38
add #include <stdint.h> to the top of src/base/system.c
Avatar
Pull request #3630 started showing the countries where ranks are from, but created a mismatch between the two queries, one selected Time, Ago, Stamp the other Time, Ago, Stamp, Name, Server but both tried accessing the server. Add Server to the former query and swap Name and Server in the second query to fix the problem. Fixes #3643.

Checklist

  • [x] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with pos...
Avatar
the red is my bad but after i dont know
Avatar
did you maybe mis-spell ConAddWeapon?
Avatar
yep
22:59
im autistic
Avatar
try recompiling and see if there's still an error
Avatar
CMake Error at CMakeLists.txt:513 (message): You must install SDL2 to compile the DDNet client
23:00
a my bad (edited)
23:00
i forgot to add libs (edited)
Avatar
nice that work
23:09
thx ❤️
Avatar
you're welcome
23:12
what are you doing? 🙂
Avatar
try to make /weapons command but i dont know where is the file for chat command (edited)
23:14
i think Con is for rcon command?
Avatar
check other chat commands that you know
Avatar
CHAT_COMMAND("weapons", "", CFGFLAG_CHAT | CFGFLAG_SERVER, ConWeapons, this, "u have weapons nooby")
23:19
i know how to add command but not how to configure it
23:21
if i want play with weapons i must modify that in gamecontroller.cpp void IGameController::OnCharacterSpawn(class CCharacter *pChr) { // default health pChr->IncreaseHealth(10); // give default weapons pChr->GiveWeapon(WEAPON_HAMMER); pChr->GiveWeapon(WEAPON_GUN); } to that void IGameController::OnCharacterSpawn(class CCharacter *pChr) { // default health pChr->IncreaseHealth(10); // give default weapons pChr->GiveWeapon(WEAPON_HAMMER); pChr->GiveWeapon(WEAPON_GUN); pChr->GiveWeapon(WEAPON_SHOTGUN); pChr->GiveWeapon(WEAPON_GRENADE); pChr->GiveWeapon(WEAPON_LASER); } (edited)
Avatar
CHAT_COMMAND("weapons", "", CFGFLAG_CHAT | CFGFLAG_SERVER, ConWeapons, this, "u have weapons nooby")
23:22
that sounds good already
Avatar
yeah but idk how to make function
Avatar
now check a neighbouring command, where it is defined
23:23
e.g. "mapinfo"
23:23
it says there "ConMapInfo"
Avatar
void CGameContext::ConWeapons(IConsole::IResult *pResult, void *pUserData) { CGameContext *pSelf = (CGameContext *)pUserData; pSelf->ModifyWeapons(pResult, pUserData, -1, false); }
23:24
what is e.g.
Avatar
for example
Avatar
a chat command?
Avatar
oh nice
Avatar
my fucking god
Avatar
who make this site?
Avatar
nsfw emote is allowed?
Avatar
not p*rn just fun emote (edited)
Avatar
censoring words is stupid
23:32
i should continue my ddnet coding blog series
23:32
actually useful
Avatar
Avatar
Deleted User
void CGameContext::ConWeapons(IConsole::IResult *pResult, void *pUserData) { CGameContext *pSelf = (CGameContext *)pUserData; pSelf->ModifyWeapons(pResult, pUserData, -1, false); }
ok so for make my /weapons command i can take that and past in ddracechat.cpp
23:33
?
Avatar
I DID IT MAN IM A BIG PROGRAMER
SPOILER
Image attachment
23:53
@Ryozuki @heinrich5991 i kiss u
23:53
just copy and past xd
23:54
KEKW
Exported 160 message(s)