Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.org/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 2025-01-03 00:00 and 2025-01-04 00:00
00:06
a91f913 Add basic CI build with artifacts, but without tests. - edg-l ef8d3b2 Merge pull request #6 from Jupeyy/pr_ci - Jupeyy
Avatar
Avatar
Jupstar ✪
@deen when make robyte ddnet owner so he can give me access 😄
Jupstar ✪ 2025-01-03 00:15
@deen dunno if u saw, but really would like to add merge queue so i can just spam prs xd
kek 1
Avatar
GitHub BOT 2025-01-03 00:19

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-ad...
Avatar
Avatar
Kaffeine
Yeah but those are focused on server mods.
Just because it is all content that exist right now. Feel free to use ddnet wiki for any teeworlds related content.
Avatar
Avatar
Jupstar ✪
@deen dunno if u saw, but really would like to add merge queue so i can just spam prs xd
wait what ? you aren't in the ddnet group on github ?
Avatar
Jupstar ✪ 2025-01-03 00:44
i can change everything in ddnet repo
00:44
but not on new ones xD
Avatar
wdym new ones ? like ddnet-web ?
Avatar
Jupstar ✪ 2025-01-03 00:46
like ddnet-rs
00:46
not even robyte can xD
00:46
only owners of ddnet can
Avatar
45 degree angle bind using 2 mouse distance -> just snapping in client
03:40
someone tell me why it's a bad idea 😅
Avatar
what are you asking?
Avatar
i want a better solution to the 45 angle degree bind inside the client versus the hacky current bind
04:25
the video shows smth like "snap your weapon fires to 45* when cl_snap_aim_45 1"
Avatar
it would be a little OP in gores if just rounded your mouse to the nearest 45 instead of the janky way it is now but maybe we don't care
Avatar
it would be easy to put in settings instead of having a custom bind for players' mousesens, but yeah it's a lot stronger than the current bind
Avatar
if it didn't have a chance of randomly giving you the wrong angle and it didn't reset your mouse position to the middle of your screen it would be really good for up down saves
04:27
but ddnet is not gores so perhaps not a concern idk
Avatar
it would make some shotgun and laser inputs a lot easier in ddnet
Avatar
I think I lean towards make it an official feature and remove the jank even if it makes some stuff easier
04:30
and then we don't have to maintain effectively a bug in the mouse cursor system
Avatar
im for removing the jank but also think it's very powerful
Avatar
as long as it doesn't remove some aspect of gameplay by trivializing it then I don't think it matters that it's powerful because everyone will have it
04:32
dummy is a thing that exists, which we added (edited)
04:33
this is like 1% as powerful
Avatar
i woke up
Avatar
GitHub BOT 2025-01-03 05:07
Fixes this reported by Skeith !DDNet_7r6pQFO76d This happens where m_AutoSpecCameraZooming may not reset properly in some cases and zooming will cause cursor to use camera zoom when camera zoom does not match m_SpecInfo.m_Zoom since AUTO is off.

Checklist

  • [x] Tested the change ingame
  • [x] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related conf...
Avatar
GitHub BOT 2025-01-03 05:17
This reverts commit e14123164bed7fe61d3cb8d0a25398aacda2d17d. Fixes inconsistent hookcoll indicator under our new-old cursor position reported by Skeith !DDNet_t7tjOUt3Kh We rolled back to a unscaled pointer for preserving aiming consistency in #9301. This commit is no longer needed. I don't have a bind handy, should also make 45 aim (or any obviously quantized angle) angle matches actually input now...
Avatar
@louis done, it's unintended.
Avatar
ah nice, i dont remember reporting it though 😅 \
05:58
also this pr will conflict with yours 😬
Avatar
GitHub BOT 2025-01-03 05:58
😬 removes need for janky 45 deg mouse distance bind, allows this to be bound easily in settings makes snapping to 45 degrees very easy, can make certain parts (lasers, shotguns, gores saves) easier than they have been before https://github.com/user-attachments/assets/ca00e806-3832-474a-b0df-7ad72cfdd460

Checklist

  • [x] Tested the change ingame
  • [x] Provided screenshots if it is a visual change
  • [x] Tested in combination with possibly related configuration options
  • [ ...
Avatar
Avatar
louis
also this pr will conflict with yours 😬
you can safely remove all changes in src/game/client/components/players.cpp (edited)
06:17
your settings really shouldn't touch visual code, visual code not matching control is a bug, and should make it match instead of patching visual for special cases. if you remove your changes in players.cpp we don't conflict and the angle will snap with both pr
Avatar
Avatar
louis
ah nice, i dont remember reporting it though 😅 \
i count this as you reporting it https://discord.com/channels/252358080522747904/293493549758939136/1324583174197481606. cuz it is very related to the input rollback
Avatar
hm but i only snapped the input x/y instead of mousePos. if I snap mousePos won't the cursor ingame also snap? im not too sure
Avatar
i don't understand
06:22
you don't need to snap mousepos
06:22
oh i get it now
06:22
let me think
06:23
i can make it happen without special handling.
06:24
@louis mind if i just take over the PR? for 19.0 i'm assuming, cuz i'm still fixing 18.9's bugs
Avatar
yeah i dont mind
06:25
my thing was just a proof of concept thing. should probably get some approval on it though
06:25
it really makes the angle bind a lot stronger
Avatar
ye
Avatar
GitHub BOT 2025-01-03 06:43
cb3869f Add 10 € donation by realfail - def-
Avatar
@realfail Thank you!
Avatar
GitHub BOT 2025-01-03 06:50
032cf5c Update Chinese translations for 18.9 - Pioooooo f0182eb properly clear autospeczooming state - TsFreddie cf04137 Revert "Scale angles using MousePos with zoom" - TsFreddie
Avatar
GitHub BOT 2025-01-03 07:05
5cf4a27 Update Chinese translations for 18.9 - Pioooooo a4dedda Merge pull request #9462 from Pioooooo/chinese-18.9 - def-
07:09
40a8796 Revert "Scale angles using MousePos with zoom" - TsFreddie b856adb Merge pull request #9464 from TsFreddie/revert-scaled-visual - def-
07:11
abbd20b properly clear autospeczooming state - TsFreddie 2976baa Merge pull request #9463 from TsFreddie/spec-cam-smoothing-fix - def-
Avatar
chillerdragon BOT 2025-01-03 07:37
I personally capture with tcpdump and then open the pcap file with wireshark
Replying to @Koll Potato ive compiled wireshark but it does not let me capture anything
07:38
Nice told you the dissector is op
Replying to @Koll Potato ChillerDragon: basically ten minutes of debugging and i got my server to…
07:42
Replying to @Jupstar ✪ I am sure ddnet wiki would accept teeworlds content too, but not really,…
07:43
Kaffeine: teeworlds.com forum posts is the way to go imo. It’s still a thing.
Avatar
i am not a fan with this must be a bug or something
08:03
i actually hate this
08:03
Please remove or add a way to remove it
Avatar
have you tried adjusting the zoom by pressing plus or minus
Avatar
GitHub BOT 2025-01-03 08:24
People think juggling between different zoom values is tiring Now any manually adjusted zoom will stay Also fixed a issue where going in and out of spectating does not smooth camera movement but smooth zoom. Now it is both instant. demo: https://streamable.com/f17hnd

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 (especially base/)...
Avatar
Avatar
eidderFsT
have you tried adjusting the zoom by pressing plus or minus
I think the problem would be the layout being always there xd
08:27
like, maybe it can fade out a few seconds later
Avatar
yeah
Avatar
i don't know why you would care but sure i can do that
Avatar
and a way to hide it fully
Avatar
the indicator?
08:28
or the feature
Avatar
for better visibility + rather would watch the gameplay more
08:28
many games do that cuz players don't like to watch UI all the time!
Avatar
removing the indicator better means the feature is gone
Avatar
what are you guys talking about
Avatar
removing the indicator AFTER you show them for a few seconds, helps.
Avatar
the auto indicator means you are currently watching other players camera settings (zoom + dyncam)
Avatar
and showing the indicator again AFTER a change in zoom changes, helps too
Avatar
Avatar
eidderFsT
the auto indicator means you are currently watching other players camera settings (zoom + dyncam)
i see
08:29
but i dont want to know that
08:29
well i dont wanna see the indicator
Avatar
if you zoom out it will turn off, i can hide the indicator after you turn it off
Avatar
@eidderFsT is there a command to disable visibility on that UI specifically? (edited)
Avatar
no
Avatar
bad
Avatar
in rocket league there is a "ballcam indicator" that tells you you are in ballcam
08:30
i turn that off
Avatar
config is usually heavy restricted to add
Avatar
Avatar
Cellegen
@eidderFsT is there a command to disable visibility on that UI specifically? (edited)
i just wanna hide it
Avatar
yeah, you could usually use a command in F1 manually, or inside the options, if there would be any implementation of it
08:31
or even with a hotkey bind, like the debug UI with CTRL SHIFT D
08:32
As a fellow designer, this is bad to not allow users to toggle visibility on new UI, if they don't like it, that is why feedback is appreciated in that matter
Avatar
i can add that but i need an essay to get it approved
Avatar
please do, even if not the fade-out thing I recommended, but at least a way to toggle visibility on that if players don't want it to see. 🙏
f3 1
Avatar
Avatar
eidderFsT
i can add that but i need an essay to get it approved
A what? Not feedback?
Avatar
i need to write an detailed explaination or heinrich usually vetos any config
08:34
the ball cam thing i get, but you are literally not playing the game during spectating so i really don't see why you would care.
08:34
but i can do that
08:34
for you
Avatar
there's a command to hide HUD, does that not include the auto sign?
Avatar
should be
Avatar
just use that then
Avatar
@heinrich5991 Can we make the new UI's visibility toggleable with a command, since other different UIs, like the debug UI and detailed movement UI (on the right side) can be toggled?
08:36
@eidderFsT idk why are you afraid to ask him here
Avatar
i'm not
08:37
i said i will try to do that
Avatar
how do i even activate auto spec
Avatar
it usually happens in PR
Avatar
Avatar
louis
how do i even activate auto spec
just spec someone
Avatar
idk why heinrich would care if it is not in code
Avatar
Avatar
louis
how do i even activate auto spec
reset zoom while spectating. or right click
08:37
but i am in the middle of adding a button to the esc menu
08:37
so that might be more obvious
Avatar
i cant get it to work
08:38
do i need to eb in spectators or just in /pause?
Avatar
Avatar
eidderFsT
idk why heinrich would care if it is not in code
if heinrich doesn't care on what the users, in this case Players want, or he wouldn't care on the consistency on how different UIs worked in the client, then... eh
Avatar
oh, if you don't have the indicator is it not available
08:38
it is only available for 18.9 players
Avatar
I might as well just try developing my own client faster
Avatar
hm, if i can see their cursor does that mean i should be able to get the auto spec?
Avatar
cursor is older
08:39
18.x has cursor info already
08:39
way before
Avatar
it was just shown in 18.9
08:41
btw if you can code why not just PR yourself. i am still working on others things so it might take awhile
Avatar
Avatar
Cellegen
if heinrich doesn't care on what the users, in this case Players want, or he wouldn't care on the consistency on how different UIs worked in the client, then... eh
i feel like if you can hide other stuff you should be able to hide this (edited)
08:42
in a perfect world every element should be toggleable in the console
Avatar
more like, every category of visible elements should be, like different UIs which are overlapping the basic UI or camera
Avatar
ChillerDragon BOT 2025-01-03 08:48
@Faulty @fokkonaut where do you store state of minigames? i am currently implementing block 1vs1 and wonder where i store the current score.
08:49
i currently went with allocating a state struct and letting all participants point to it but only the first participant frees it but it feels super messy.
Avatar
well, store it where it's being used, by the minigame
Avatar
ChillerDragon BOT 2025-01-03 08:50
but if multiple minigames of the same type run how do i match it to the players
08:51
i have one minigame instance that handles all 1vs1's
Avatar
structs and arrays and saving participant ids?
Avatar
ChillerDragon BOT 2025-01-03 08:51
do you create multiple minigame instances? hmm i see
Avatar
Avatar
ChillerDragon
do you create multiple minigame instances? hmm i see
no
Avatar
ChillerDragon BOT 2025-01-03 08:52
where do you store participant ids?
Avatar
oh, it's part of the following box, i thought it was on its own somewhere
08:53
you want to hide the tiny orange box?
Avatar
Avatar
ChillerDragon
where do you store participant ids?
sometimes i dont understand you xd how is this difficult to you right now xD
Avatar
idk it feels so out of place
08:53
its orange
08:53
distracting
Avatar
ChillerDragon BOT 2025-01-03 08:54
i just cant envison your code right now
Avatar
i have a Minigame component which has hooks for events and basically does everything inside that component
Avatar
ChillerDragon BOT 2025-01-03 08:55
the structs hold the participant ids and their game state and then you push a new struct into the array if a new game starts? and then to process a tick you iterate all sructs and read/write the state?
08:55
ye i have the same :)
Avatar
that component has arrays of structs for multi rooms
Avatar
yeah, maybe it can be reduced to a single icon or a less contrasting color, but in no world should there be a config variable to enable or disable it being there
Avatar
ChillerDragon BOT 2025-01-03 08:55
and in every hook you iterate all rooms?
Avatar
Avatar
louis
yeah, maybe it can be reduced to a single icon or a less contrasting color, but in no world should there be a config variable to enable or disable it being there
why not
Avatar
Avatar
ChillerDragon
the structs hold the participant ids and their game state and then you push a new struct into the array if a new game starts? and then to process a tick you iterate all sructs and read/write the state?
why push? just a static array works aswell
Avatar
ChillerDragon BOT 2025-01-03 08:56
idk i just assume all of your code is vectors at all times :D
Avatar
MilkeeyCat 2025-01-03 08:56
config variables for config variables when?
Avatar
Avatar
ChillerDragon
and in every hook you iterate all rooms?
basically, but especially with a static array size you can save the index in the character maybe
Avatar
ChillerDragon BOT 2025-01-03 08:56
@MilkeeyCat wdym?
Avatar
cus then there's no indicator of whether you're in auto spec or not, and sometimes it may get confusing as to if you have the icon enabled or not, or if you're just spectating someone with the same zoom configuration as you
Avatar
Avatar
ChillerDragon
idk i just assume all of your code is vectors at all times :D
xd
Avatar
ChillerDragon BOT 2025-01-03 08:56
which character in a 1v1 @fokkonaut
08:56
there are two
Avatar
if you want to spectate without any interruptions just disable the entire hud
Avatar
Avatar
ChillerDragon
there are two
idk wym
Avatar
ChillerDragon BOT 2025-01-03 08:57
ah red it wrong xd
08:57
ye save the index in the character is what i do conceptually right now but i malloc and free not static hmm
monkaS 1
08:58
maybe i should just go stack allocated like i always have been
Avatar
i do iterate always btw
Avatar
Avatar
louis
if you want to spectate without any interruptions just disable the entire hud
true
08:58
maybe its just how it looks (edited)
08:58
if it was just white
08:58
it wouldnt stand out (edited)
Avatar
ChillerDragon BOT 2025-01-03 08:58
cool thanks @fokkonaut
Avatar
Avatar
ChillerDragon
cool thanks @fokkonaut
and wouldnt distract me
Avatar
ChillerDragon BOT 2025-01-03 08:59
@MilkeeyCat i would like enum likes config vars with string values the user can choose from a set list
08:59
i use so many magic numbers in my configs its horrible
08:59
and free form string vars are a mess
Avatar
if you make the config a string enum you can never change the strings in the enum
Avatar
ChillerDragon BOT 2025-01-03 09:00
not sure what you mean
Avatar
it makes it more difficult to modify the functionality of the config because it will reset saved settings
Avatar
ChillerDragon BOT 2025-01-03 09:01
i would for example like to have sv_gametype only accept the strings "ddnet" and "mod" and autocomplete it for the user
Avatar
but it's probably not that bad of an idea
09:02
I guess users can just deal with it
Avatar
ChillerDragon BOT 2025-01-03 09:02
i mean you can always use a string and then have a conchain yelling at the user
09:03
but i dont like strcmp to check config values i prefer ==
09:03
iterating every character in strcmp of the 1000 configs on tick sounds expensive
09:04
so user facing its a strictly restricted list and also in the code its represented as a enum class
Avatar
Avatar
ChillerDragon
@Faulty @fokkonaut where do you store state of minigames? i am currently implementing block 1vs1 and wonder where i store the current score.
In mini game instance, I have abstract class for all mini games with all needed
Avatar
GitHub BOT 2025-01-03 10:08

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-ad...
Avatar
GitHub BOT 2025-01-03 10:30
Depends on #9466. Check commit for diff from that PR. Full video demo: https://streamable.com/zva2i4 After some feedback on 18.9 RC, and given how confusing and polarizing the feature is, i think it is now pretty important to add a visible toggle and a permanent setting (cl_spec_auto_sync, please check the description on whether it is clear enough) Adds a in-game menu button for toggling this feature (it toggles both ingame state and the config, only shown in spectator mode) ![ima...
Avatar
@Skeith
Avatar
I can see people thinking that's a screenshot button lol
10:33
But the mouseover tooltip explains it, so maybe a non-issue
Avatar
Avatar
Skeith
I can see people thinking that's a screenshot button lol
fml
10:34
as soon as they click it and it goes red slashy they'll know
Avatar
Avatar
Skeith
I can see people thinking that's a screenshot button lol
please test as soon as the artifact is available tho, it is a pretty big change and RC doesn't last long
👍 1
10:38
btw why can't github just allow you to upload a bigger video, 10m is like nothing.
10:39
also i forgot to eat
10:39
it's 6:30pm
10:41
@Learath2 curious how the http reg is going
10:43
I just found out momentcap's cancel logic is too strict. if you are almost done we can maybe do another server update?
Avatar
Avatar
eidderFsT
@Learath2 curious how the http reg is going
I transplanted the modern http module in there. Got it compiling. I also replaced CRegister but didn't get it registering yet. Hopefully tonight 🤞
11:06
Had to leave to see a relative
Avatar
no worries
11:07
just wondering if we can avoid restarting the server twice
Avatar
Probably not, is there a harm in restarts?
Avatar
the map is pretty huge and the secret takes time to get, we might kill their progress
11:12
there are like always people in there too since we only host one server for the entire globe lol
Avatar
Could set a password 30-60 minutes before planning to restart
Avatar
right
Avatar
@meloƞ how can I use the new tclient version until the new one merges to nixpkgs?
Avatar
Ya, getting to jetpack is probably annoying for most people in the playerbase, restart would hurt
Avatar
i haven't tried to get it myself is it like really hard
Avatar
Avatar
zaer1n
@meloƞ how can I use the new tclient version until the new one merges to nixpkgs?
Always get 404 not found error for src overlays
Avatar
! 7mzom alonso 2025-01-03 11:16
there is one blocl race in v3
11:16
i have demo
11:17
..
Avatar
You mostly just need to know how to do it, I would rate getting to jetpack a medium / low moderate part
Avatar
Avatar
zaer1n
@meloƞ how can I use the new tclient version until the new one merges to nixpkgs?
i'm fairly sure i mentioned that before kek overlays! final and pre
Avatar
that's hard for me
11:17
lol
Avatar
! 7mzom alonso 2025-01-03 11:17
guys!!
Avatar
im like low novice
11:17
kekw
Avatar
Avatar
meloƞ
i'm fairly sure i mentioned that before kek overlays! final and pre
11:18
0c245fd Fix player name change check should ignore own player - Jupeyy bdfefe3 Merge pull request #8 from Jupeyy/pr_name_check - Jupeyy
Avatar
@deen I changed how canceling capture works in momentcap, the previous condition is a bit too strict, if you got time could you set password and schedule a restart after like 60 minutes?
Avatar
Avatar
meloƞ
i'm fairly sure i mentioned that before kek overlays! final and pre
omg nevermind (edited)
❤️ 1
Avatar
! 7mzom alonso 2025-01-03 11:23
guys??
Avatar
Avatar
eidderFsT
@deen I changed how canceling capture works in momentcap, the previous condition is a bit too strict, if you got time could you set password and schedule a restart after like 60 minutes?
if i set password no one can join for 60 min and lots of people will complain on discord. I'll just restart it
11:26
sure
Avatar
Avatar
! 7mzom alonso
guys??
#✉-create-a-ticket
Avatar
GitHub BOT 2025-01-03 12:00
  • Projectile weapon type gets explicit
  • Remove some already fixed comments
  • Remove useless panics
Avatar
Jupstar ✪ 2025-01-03 12:07
Oh wow, does the rust cache reuse already built stuff? That speeds up CI insanely
Avatar
How do I build the version of the client where steam.cpp works
Avatar
Jupstar ✪ 2025-01-03 12:14
cmake .. -DSTEAM=ON
Avatar
it doesn't work
Avatar
Avatar
Jupstar ✪
cmake .. -DSTEAM=ON
if i compiled with cmake -DSTEAM=ON .. is it a problem ?
Avatar
Jupstar ✪ 2025-01-03 12:15
?
Avatar
like the two ".."
Avatar
Jupstar ✪ 2025-01-03 12:15
i dunno, ask cmake dev xd
12:15
but props no
Avatar
Basically I'm not on Linux, that's why....
Avatar
GitHub BOT 2025-01-03 12:15
9cb4d1d Update brazilian_portuguese.txt - rffontenelle 807c579 Merge pull request #9467 from rffontenelle/patch-2 - def-
Avatar
Jupstar ✪ 2025-01-03 12:15
that has nothing todo with linux
Avatar
but I think it worked
Avatar
Avatar
Jupstar ✪
that has nothing todo with linux
I have never compiled things in C++ *
Avatar
my question had nothing to do with whatever you're doing you can ignore it
Avatar
Avatar
Jupstar ✪
cmake .. -DSTEAM=ON
have you tested this? It seems to do nothing but add -steam to the client version
Avatar
GitHub BOT 2025-01-03 12:18
9863c0f remove spec zoom value and use user zoom always - TsFreddie eaab89b Merge pull request #9466 from TsFreddie/remove-spec-zoom - def-
Avatar
Avatar
Tater
have you tested this? It seems to do nothing but add -steam to the client version
Jupstar ✪ 2025-01-03 12:20
I haven't dunno any better then tbh
Avatar
2025-01-03 12:18:50 I assert: /root/build/ddnet22/ddnet/src/engine/server/databases/mysql.cpp(545): error getting float: NULL Illegal instruction (core dumped) hum ':) can someone pls explain me how can i resolve this ':)
Avatar
probably you are trying to GetFloat when a row member has another type
Avatar
huh
12:22
imma check
12:23
maybe the date ?
12:23
i put the date on float
12:23
i think
12:23
because some date need texts
12:24
Avatar
wait you are working with unmodified ddnet sources/db, right?
Avatar
Avatar
zhn
wait you are working with unmodified ddnet sources/db, right?
wdym
12:27
i recompiled ddnet with SQL = ON or something
12:28
4cbde0c Update quinn - Jupeyy 430398e Merge pull request #10 from Jupeyy/pr_update_quinn - Jupeyy
12:29
800db6d Cleanup projectiles - Jupeyy bc3b49b Merge pull request #9 from Jupeyy/pr_cleanup_projectiles - Jupeyy
Avatar
Avatar
i am not
wdym
i mean you didn't add anything from you in code
Avatar
no
12:29
only in "gamemode" maybe
Avatar
did you make any function call to db from yours part
Avatar
nope
12:32
only thing i edited is the database
12:37
i am trying to use another database
12:37
that is empty
12:37
and use the ddnet init
12:38
2025-01-03 12:38:09 I chat: *** i am not finished in: 0 minute(s) 44.92 second(s) 2025-01-03 12:38:09 I sql: SQLite statement: INSERT OR IGNORE INTO record_race_backup( Map, Name, Timestamp, Time, Server, cp1, cp2, cp3, cp4, cp5, cp6, cp7, cp8, cp9, cp10, cp11, cp12, cp13, cp14, cp15, cp16, cp17, cp18, cp19, cp20, cp21, cp22, cp23, cp24, cp25, GameId, DDNet7) VALUES ('CHILL', 'i am not', DATETIME('2025-01-03 12:38:09', 'utc'), 44.92, 'UNK', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 'b0f6875d-b2fd-498a-8f5d-13d40fd98632', 0) WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version. 2025-01-03 12:38:09 I mysql: connection established 2025-01-03 12:38:09 I assert: /root/build/ddnet22/ddnet/src/engine/server/databases/mysql.cpp(573): error getting int: NULL Illegal instruction (core dumped)
Avatar
Avatar
i am not
2025-01-03 12:38:09 I chat: *** i am not finished in: 0 minute(s) 44.92 second(s) 2025-01-03 12:38:09 I sql: SQLite statement: INSERT OR IGNORE INTO record_race_backup( Map, Name, Timestamp, Time, Server, cp1, cp2, cp3, cp4, cp5, cp6, cp7, cp8, cp9, cp10, cp11, cp12, cp13, cp14, cp15, cp16, cp17, cp18, cp19, cp20, cp21, cp22, cp23, cp24, cp25, GameId, DDNet7) VALUES ('CHILL', 'i am not', DATETIME('2025-01-03 12:38:09', 'utc'), 44.92, 'UNK', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 'b0f6875d-b2fd-498a-8f5d-13d40fd98632', 0) WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version. 2025-01-03 12:38:09 I mysql: connection established 2025-01-03 12:38:09 I assert: /root/build/ddnet22/ddnet/src/engine/server/databases/mysql.cpp(573): error getting int: NULL Illegal instruction (core dumped)
this is a new database
Avatar
Do you have a backtrace?
13:09
We had a similar bug before, would help to fix this one too: https://github.com/def-/ddnet/commit/613a68a4dd98df8fe48966cdb07fa8ecf775cdff
Avatar
GitHub BOT 2025-01-03 13:39
WIP PULL REQUEST Related to #6683 This is a basic implementation based on infclass code (so yeah this should credit infclass developer too), it is still WIP so some things are still weird and the code is not perfect This uses Quads combined with Envelopes that are Synchronized to the game NOTE: I made the layer being searched by the layer name, i don't know how editor works to add it as a kind of game or front layer Video and map file used on the video: [quadtest.map.zip](htt...
Avatar
Avatar
deen
Do you have a backtrace?
nope
13:42
will start with
Avatar
could you run it with gdb or run gdb on the core dump?
Avatar
ye
13:43
i am doing it rn
13:43
Thread 3 "DDNet-Server" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffefe006c0 (LWP 14702)] 0x00007ffff78892d7 in ?? () from /lib/x86_64-linux-gnu/libmysqlclient.so.21 (gdb) bt #0 0x00007ffff78892d7 in ?? () from /lib/x86_64-linux-gnu/libmysqlclient.so.21 #1 0x00007ffff782e16c in ?? () from /lib/x86_64-linux-gnu/libmysqlclient.so.21 #2 0x00007ffff782fe6f in mysql_stmt_fetch_column () from /lib/x86_64-linux-gnu/libmysqlclient.so.21 #3 0x00005555555891d3 in CMysqlConnection::IsNull (this=0x7fffe80015a0, Col=1) at /root/build/ddnet22/ddnet/src/engine/server/databases/mysql.cpp:513 #4 0x0000555555625f56 in CScoreWorker::LoadPlayerData (pSqlServer=0x7fffe80015a0, pGameData=0x555555dae360, pError=0x7fffefdff9b0 "unknown error", ErrorSize=256) at /root/build/ddnet22/ddnet/src/game/server/scoreworker.cpp:241 #5 0x0000555555583315 in CDbConnectionPool::ExecSqlFunc (pConnection=0x7fffe80015a0, pData=0x555555dae0c0, w=NORMAL) at /root/build/ddnet22/ddnet/src/engine/server/databases/connection_pool.cpp:460 #6 0x0000555555582815 in CWorker::ProcessQueries (this=0x5555559ff9b0) at /root/build/ddnet22/ddnet/src/engine/server/databases/connection_pool.cpp:320 #7 0x0000555555582559 in CWorker::Start (pUser=0x5555559ff9b0) at /root/build/ddnet22/ddnet/src/engine/server/databases/connection_pool.cpp:277 #8 0x00005555556d0857 in thread_run (user=0x555555a01a50) at /root/build/ddnet22/ddnet/src/base/system.cpp:820 #9 0x00007ffff6aa1e2e in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447 #10 0x00007ffff6b33a4c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 (gdb) (edited)
Avatar
mysql error
Avatar
Avatar
Ryozuki
mysql error
what can i do
Avatar
ur edit is making it crash i guess
Avatar
Avatar
Ryozuki
ur edit is making it crash i guess
i edited this code #include "mod.h" #define GAME_TYPE_NAME "GORES" #define TEST_TYPE_NAME "TestGORES" CGameControllerMod::CGameControllerMod(class CGameContext *pGameServer) : IGameController(pGameServer) { m_pGameType = g_Config.m_SvTestingCommands ? TEST_TYPE_NAME : GAME_TYPE_NAME; } CGameControllerMod::~CGameControllerMod() = default; void CGameControllerMod::Tick() { IGameController::Tick(); } (edited)
13:51
nothing else
Avatar
Original message was deleted or could not be loaded.
bro? monkaStop
💀 8
kek 2
justatest 1
Avatar
is that just ATH
Avatar
from the logo - seems to be ye
Avatar
GitHub BOT 2025-01-03 14:44

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that affect existing maps
  • [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssan...
14:47
Fixed two demo related issues. 1. cursor doesn't work properl in follow mode if player's client id isn't 0 2. auto zoom will instant snap in follow mode for recorded local player Reference demos: (demo provided by always (@alw5) on discord demos.zip

Checklist

  • [x] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options...
14:50
a460d97 Update translation stats - def-
Avatar
Avatar
i am not
Thread 3 "DDNet-Server" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffefe006c0 (LWP 14702)] 0x00007ffff78892d7 in ?? () from /lib/x86_64-linux-gnu/libmysqlclient.so.21 (gdb) bt #0 0x00007ffff78892d7 in ?? () from /lib/x86_64-linux-gnu/libmysqlclient.so.21 #1 0x00007ffff782e16c in ?? () from /lib/x86_64-linux-gnu/libmysqlclient.so.21 #2 0x00007ffff782fe6f in mysql_stmt_fetch_column () from /lib/x86_64-linux-gnu/libmysqlclient.so.21 #3 0x00005555555891d3 in CMysqlConnection::IsNull (this=0x7fffe80015a0, Col=1) at /root/build/ddnet22/ddnet/src/engine/server/databases/mysql.cpp:513 #4 0x0000555555625f56 in CScoreWorker::LoadPlayerData (pSqlServer=0x7fffe80015a0, pGameData=0x555555dae360, pError=0x7fffefdff9b0 "unknown error", ErrorSize=256) at /root/build/ddnet22/ddnet/src/game/server/scoreworker.cpp:241 #5 0x0000555555583315 in CDbConnectionPool::ExecSqlFunc (pConnection=0x7fffe80015a0, pData=0x555555dae0c0, w=NORMAL) at /root/build/ddnet22/ddnet/src/engine/server/databases/connection_pool.cpp:460 #6 0x0000555555582815 in CWorker::ProcessQueries (this=0x5555559ff9b0) at /root/build/ddnet22/ddnet/src/engine/server/databases/connection_pool.cpp:320 #7 0x0000555555582559 in CWorker::Start (pUser=0x5555559ff9b0) at /root/build/ddnet22/ddnet/src/engine/server/databases/connection_pool.cpp:277 #8 0x00005555556d0857 in thread_run (user=0x555555a01a50) at /root/build/ddnet22/ddnet/src/base/system.cpp:820 #9 0x00007ffff6aa1e2e in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447 #10 0x00007ffff6b33a4c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78 (gdb) (edited)
@Zwelf any ideas?
Avatar
2025-01-03 15:07:24 I console: executing 'autoexec_server.cfg' 2025-01-03 15:07:24 I server: Adding new SqlWriteServer: DB: 'ddnet_db' Prefix: 'record' User: 'ddnet' IP: <{66.118.245.125}> Port: 3306 2025-01-03 15:07:24 I server: Adding new SqlReadServer: DB: 'ddnet_db' Prefix: 'record' User: 'ddnet' IP: <{66.118.245.125}> Port: 3306 2025-01-03 15:07:24 I chatresp: No such command: sv_game_type. 2025-01-03 15:07:24 I console: executing 'config-votes/easy.cfg' 2025-01-03 15:07:24 I http: libcurl version 8.9.1 (compiled = 7.81.0) 2025-01-03 15:07:24 I server: server name is '|*TWL*| [Gores] Easy' WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version. 2025-01-03 15:07:24 I server: version 18.9 on linux amd64 2025-01-03 15:07:24 I sql: failed connecting to db: (real_connect:mysql:2003): Can't connect to MySQL server on '66.118.245.125:3306' (111) 2025-01-03 15:07:24 I sql: [3] load best time failed on all databases new problem now
15:08
can't start mysql
Avatar
GitHub BOT 2025-01-03 15:08
"开黑啦" as a service has renamed themselves a few years ago, and their software is getting worse and the user base is consistently smaller than the tencent ones, we've been updating the url direct since. We didn't change the button before because the phrase is actually not bad for indicating what it was for (translated to "let's play together") I finally started hosting the join page myself instead of just using a DNS providers redirect. so it finally supports https now. Rename the button...
Avatar
GitHub BOT 2025-01-03 15:25
a2a9427 Update Polish translations for 18.9 - Shkyyl fe39848 fix demo cursor - TsFreddie be5f7a5 Merge pull request #9471 from Shkyyl/polish-18.9 - def- 7df4613 Merge pull request #9472 from TsFreddie/fix-demo-cursor - def-
Avatar
2025-01-03 15:50:05 I chat: *** i am not finished in: 0 minute(s) 52.18 second(s) 2025-01-03 15:50:05 I sql: SQLite statement: INSERT OR IGNORE INTO record_race_backup( Map, Name, Timestamp, Time, Server, cp1, cp2, cp3, cp4, cp5, cp6, cp7, cp8, cp9, cp10, cp11, cp12, cp13, cp14, cp15, cp16, cp17, cp18, cp19, cp20, cp21, cp22, cp23, cp24, cp25, GameId, DDNet7) VALUES ('CHILL', 'i am not', DATETIME('2025-01-03 15:50:05', 'utc'), 52.18, 'UNK', 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00, '05f4b048-ce7f-4e87-82e2-13f7e22bcb59', 0) WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version. 2025-01-03 15:50:05 I mysql: connection established 2025-01-03 15:50:05 I assert: /root/build/ddnet22/ddnet/src/engine/server/databases/mysql.cpp(573): error getting int: NULL Illegal instruction (core dumped) root@vps385544254:/home/ddnet/DDNet-18.8.2-linux_x86_64#
15:50
that's when i finish a map
15:52
idk what to do, i am even using the init from ddnet
Avatar
MilkeeyCat 2025-01-03 16:08
what's the version of db you use?
Avatar
Avatar
MilkeeyCat
what's the version of db you use?
mariadb ?
16:10
11.4.3
16:10
mariadb from 11.4.3-MariaDB, client 15.2 for debian-linux-gnu (x86_64) using EditLine wrapper
Avatar
MilkeeyCat 2025-01-03 16:11
and latest code from ddnet repo?
Avatar
Avatar
MilkeeyCat
and latest code from ddnet repo?
yeah
Avatar
Avatar
i am not
yeah
MilkeeyCat 2025-01-03 16:15
can you send server commands you used to make ddnet use your sql server(remove ur ip and other personal stuff)
Avatar
add_sqlserver r ddnet_db record ddnet "" add_sqlserver w ddnet_db record ddnet ""
16:18
when sql is on i can't connect dummy and vote map and only one person can join or else server crash
Avatar
MilkeeyCat 2025-01-03 16:19
why these bugs never happen to me feelsbadman
Avatar
Avatar
MilkeeyCat
why these bugs never happen to me feelsbadman
lool lucky
Avatar
MilkeeyCat 2025-01-03 16:19
maybe because I don't try to host gores servers
Avatar
or maybe smarter
Avatar
Avatar
MilkeeyCat
maybe because I don't try to host gores servers
idk i think it would be same for me
16:20
like sv game type isn't working too
16:20
Thread 3 "DDNet-Server" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffefe006c0 (LWP 9981)] 0x00007ffff78892d7 in ?? () from /lib/x86_64-linux-gnu/libmysqlclient.so.21 (gdb) bt #0 0x00007ffff78892d7 in ?? () from /lib/x86_64-linux-gnu/libmysqlclient.so.21 #1 0x00007ffff782e16c in ?? () from /lib/x86_64-linux-gnu/libmysqlclient.so.21 #2 0x00007ffff782fe6f in mysql_stmt_fetch_column () from /lib/x86_64-linux-gnu/libmysqlclient.so.21 #3 0x00005555555891d3 in CMysqlConnection::IsNull (this=0x7fffe80015a0, Col=1) at /root/build/ddnet22/ddnet/src/engine/server/databases/mysql.cpp:513 #4 0x0000555555625f56 in CScoreWorker::LoadPlayerData (pSqlServer=0x7fffe80015a0, pGameData=0x555555ec2e30, pError=0x7fffefdff9b0 "unknown error", ErrorSize=256) at /root/build/ddnet22/ddnet/src/game/server/scoreworker.cpp:241 #5 0x0000555555583315 in CDbConnectionPool::ExecSqlFunc (pConnection=0x7fffe80015a0, pData=0x555555ec76f0, w=NORMAL) at /root/build/ddnet22/ddnet/src/engine/server/databases/connection_pool.cpp:460 #6 0x0000555555582815 in CWorker::ProcessQueries (this=0x5555559ff9b0) at /root/build/ddnet22/ddnet/src/engine/server/databases/connection_pool.cpp:320 #7 0x0000555555582559 in CWorker::Start (pUser=0x5555559ff9b0) at /root/build/ddnet22/ddnet/src/engine/server/databases/connection_pool.cpp:277 #8 0x00005555556d0857 in thread_run (user=0x555555a01a50) at /root/build/ddnet22/ddnet/src/base/system.cpp:820 #9 0x00007ffff6aa1e2e in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447 #10 0x00007ffff6b33a4c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
16:20
16:21
INSERT OR IGNORE why is a mysql build using sqlite's statement
Avatar
huh
16:22
i have an idea why
16:23
2025-01-03 16:23:11 I server: ClientId=0 rcon='dump_sqlservers w' > dump_sqlservers w 2025-01-03 16:23:11 I server: MySQL-Write: DB: 'ddnet_db' Prefix: 'record' User: 'ddnet' IP: XXX Port: 3306 2025-01-03 16:23:11 I server: SQLite-WriteBackup: DB: '/root/.local/share/ddnet/ddnet-server.sqlite' 2025-01-03 16:23:13 I server: ClientId=0 rcon='dump_sqlservers w'
16:23
in rcon
16:23
idk
Avatar
amogus fishy
Avatar
i have no idea ':)
Avatar
i'm not a sql expert but i can check where the connection is created
Avatar
Avatar
eidderFsT
i'm not a sql expert but i can check where the connection is created
yeah
Avatar
btw are you intended to use sqlite for backup
Avatar
Avatar
eidderFsT
btw are you intended to use sqlite for backup
nope
16:25
on my cfg i don't have "sv_sqlite_file"
16:25
idk why there is a backup file
Avatar
MACRO_CONFIG_INT(SvUseSql, sv_use_sql, 0, 0, 1, CFGFLAG_SERVER, "Enables MySQL backend instead of SQLite backend (sv_sqlite_file is still used as fallback write server when no MySQL server is reachable)")
16:27
maybe sqlite is required, but eitherway, that statement running off mysql instead of sqlite is weird
Avatar
Avatar
eidderFsT
maybe sqlite is required, but eitherway, that statement running off mysql instead of sqlite is weird
idk
16:27
what should i check
Avatar
nothing. i'm just talking to myself and maybe other devs so we could figure it out
16:28
sounds like a code bug really
Avatar
huh
16:28
so i can't do anything right
16:28
or maybe i did a dumb error somewhere
Avatar
MilkeeyCat 2025-01-03 16:28
should've used mongodb, it's webscale
Avatar
Avatar
i am not
or maybe i did a dumb error somewhere
maybe. but i've never setup mysql servers so i can't really help config wise
Avatar
everyone said mariadb ':)
Avatar
the mongodb comment is a joke btw
Avatar
Avatar
eidderFsT
maybe. but i've never setup mysql servers so i can't really help config wise
okey
16:29
ugh ok
16:29
':)
Avatar
should've used SurrealDB
Avatar
Avatar
meloƞ
should've used SurrealDB
..
Avatar
has anyone build mysql support on windows justatest
16:31
or should I not even try
Avatar
i am on linux btw
Avatar
ye, but i'm on windows and i'm trying to debug it
Avatar
and this seems to be working
Avatar
Avatar
eidderFsT
ye, but i'm on windows and i'm trying to debug it
oh thx
Avatar
Which file contains the function responsible for creating the console command?
Avatar
Avatar
Evelyn
Which file contains the function responsible for creating the console command?
any file really
Avatar
on the client?
Avatar
Avatar
eidderFsT
any file really
dafuq are u talking about xD
16:33
wait
Avatar
you should probably just do a search for Console()->Register("
✅ 1
Avatar
Avatar
Teero
dafuq are u talking about xD
that's what i'm talking about
Avatar
MilkeeyCat 2025-01-03 16:34
classic wavpack error when was trying to compile server 😬
😭 1
Avatar
Avatar
eidderFsT
that's what i'm talking about
its declared in some file thats how i understood his question
Avatar
justatest now i'm confused
Avatar
Avatar
MilkeeyCat
classic wavpack error when was trying to compile server 😬
Try to reconfigure cmake, the close function is only available when CONF_WAVPACK_CLOSE_FILE is defined which depends on which wavpack version you have, I think (edited)
Avatar
MilkeeyCat 2025-01-03 16:37
ill try it later, for now i just disabled client compilation xd
Avatar
Avatar
Evelyn
Which file contains the function responsible for creating the console command?
are you maybe talking about void CGameContext::OnConsoleInit() in src/game/server/gamecontext.cpp maybe?
Avatar
Avatar
eidderFsT
maybe. but i've never setup mysql servers so i can't really help config wise
16:49
like i changed one of these files
16:49
but i don't think it can cause the crash
Avatar
you mean the sql crash?
16:49
probably not
Avatar
yeah
16:49
okey
16:50
then imma wait
Avatar
MilkeeyCat 2025-01-03 17:05
what's Prefix in add_sqlserver s['r'|'w'] s[Database] s[Prefix] s[User] s[Password] s[IP] i[Port] ?i[SetUpDatabase ?]
Avatar
like record in record_race table name
Avatar
recor
17:08
d
17:08
yeah
Avatar
MilkeeyCat 2025-01-03 17:10
I have some serious skill issues. I can connect using mariadb client, like so mariadb -h 127.0.0.1 -u root -proot ddnet, but add_sqlserver r ddnet record root 'root' 127.0.0.1 3306 add_sqlserver w ddnet record root 'root' 127.0.0.1 3306 1 doesn't work xd
Avatar
Avatar
MilkeeyCat
I have some serious skill issues. I can connect using mariadb client, like so mariadb -h 127.0.0.1 -u root -proot ddnet, but add_sqlserver r ddnet record root 'root' 127.0.0.1 3306 add_sqlserver w ddnet record root 'root' 127.0.0.1 3306 1 doesn't work xd
without the ' i think
17:10
try with "
17:10
like for me it work like that
17:10
try without
Avatar
MilkeeyCat 2025-01-03 17:11
it worked xdd
17:11
thanks
Avatar
hehe
17:11
<3
Avatar
MilkeeyCat 2025-01-03 17:12
it works for me
17:12
without crashing -.-
Avatar
what is your mariadb version ?
Avatar
Avatar
meloƞ
bro? monkaStop
we can literally reverse engineer this to improve our antibot!
Avatar
Avatar
i am not
what is your mariadb version ?
MilkeeyCat 2025-01-03 17:13
11.4.3
Avatar
GitHub BOT 2025-01-03 17:13
239c10a update community info - TsFreddie 3988f32 Merge pull request #9473 from TsFreddie/update-join - def-
Avatar
Avatar
MilkeeyCat
11.4.3
yeah same
17:13
..
Avatar
Avatar
MilkeeyCat
11.4.3
but it doesn't work with me :c
17:14
Segmentation fault (core dumped) i have this thing
Avatar
did you need to trigger it or it just crashes on launch?
Avatar
trigger it
Avatar
by doing what?
Avatar
joining dummy
17:15
someone else joining the server
17:15
changing map by voting
17:15
finishing a map
17:15
and sometimes it pop out while playing
Avatar
ok
Avatar
could you ad for game layer possibility to ctrl+scroll blocks ? example from 35 to 59 , or even all posibilitys ? (time cp's blocks ) like in teleports !? (edited)
Avatar
ye it was fine on my machine too
17:29
justatest
Avatar
Avatar
eidderFsT
ye it was fine on my machine too
ah
17:30
maybe i am the problem
17:30
pepeW
Avatar
did you try to login to your mariadb server using a mariadb client or some other tools
17:31
to see if the table is created
Avatar
Avatar
eidderFsT
did you try to login to your mariadb server using a mariadb client or some other tools
mysql -u ddnet -p
Avatar
and that worked?
Avatar
yeah
17:32
and it's not on local i think
17:32
Avatar
Avatar
i am not
and it's not on local i think
like i changed it
17:33
to 0.0.0.0
17:33
somewhere but i forgot name
Avatar
Avatar
i am not
Click to see attachment 🖼️
is this on the same machine as the database?
Avatar
Avatar
eidderFsT
is this on the same machine as the database?
yeah
Avatar
have you tried to connect it remotely using a mysql client too
Avatar
Avatar
eidderFsT
have you tried to connect it remotely using a mysql client too
nope
Avatar
try that maybe
Avatar
ok
Avatar
justatest but even then the server really shouldn't crash tho
Avatar
yeah idk
17:35
it only crashes when sql is activated
Avatar
like even if you have a connection problem or something
Avatar
Yes
17:35
it's weird
Avatar
it's 1:35am for me, i should sleep tho.
Avatar
okay
Avatar
good luck i guess lol
Avatar
Good night
Avatar
Avatar
eidderFsT
good luck i guess lol
THANKS
17:36
thanks*
Avatar
Koll Potato 2025-01-03 17:37
tee without a weapon lol
Avatar
Avatar
eidderFsT
have you tried to connect it remotely using a mysql client too
I think that's where the problem comes from
Avatar
Koll Potato 2025-01-03 17:41
i think something is a little bit off with my movement implementation
🔥 1
Avatar
Avatar
i am not
I think that's where the problem comes from
ok, I can connect remotely
Avatar
Avatar
i am not
Thread 3 "DDNet-Server" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffefe006c0 (LWP 9981)] 0x00007ffff78892d7 in ?? () from /lib/x86_64-linux-gnu/libmysqlclient.so.21 (gdb) bt #0 0x00007ffff78892d7 in ?? () from /lib/x86_64-linux-gnu/libmysqlclient.so.21 #1 0x00007ffff782e16c in ?? () from /lib/x86_64-linux-gnu/libmysqlclient.so.21 #2 0x00007ffff782fe6f in mysql_stmt_fetch_column () from /lib/x86_64-linux-gnu/libmysqlclient.so.21 #3 0x00005555555891d3 in CMysqlConnection::IsNull (this=0x7fffe80015a0, Col=1) at /root/build/ddnet22/ddnet/src/engine/server/databases/mysql.cpp:513 #4 0x0000555555625f56 in CScoreWorker::LoadPlayerData (pSqlServer=0x7fffe80015a0, pGameData=0x555555ec2e30, pError=0x7fffefdff9b0 "unknown error", ErrorSize=256) at /root/build/ddnet22/ddnet/src/game/server/scoreworker.cpp:241 #5 0x0000555555583315 in CDbConnectionPool::ExecSqlFunc (pConnection=0x7fffe80015a0, pData=0x555555ec76f0, w=NORMAL) at /root/build/ddnet22/ddnet/src/engine/server/databases/connection_pool.cpp:460 #6 0x0000555555582815 in CWorker::ProcessQueries (this=0x5555559ff9b0) at /root/build/ddnet22/ddnet/src/engine/server/databases/connection_pool.cpp:320 #7 0x0000555555582559 in CWorker::Start (pUser=0x5555559ff9b0) at /root/build/ddnet22/ddnet/src/engine/server/databases/connection_pool.cpp:277 #8 0x00005555556d0857 in thread_run (user=0x555555a01a50) at /root/build/ddnet22/ddnet/src/base/system.cpp:820 #9 0x00007ffff6aa1e2e in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:447 #10 0x00007ffff6b33a4c in __GI___clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:78
MilkeeyCat 2025-01-03 18:14
it crashes in libmysqlclient and i don't have such a shared object, I have libmariadb instead
Avatar
Avatar
MilkeeyCat
it crashes in libmysqlclient and i don't have such a shared object, I have libmariadb instead
if i replace libmysqlclient with libmariadb it may work ?
Avatar
MilkeeyCat 2025-01-03 18:18
can you execute ldd ./DDNet-Server in the same directory where your server executable is
18:19
root@vps385544254:/home/ddnet/DDNet-18.8.2-linux_x86_64# ldd ./DDNet-Server linux-vdso.so.1 (0x000073eab162f000) libmysqlclient.so.21 => /lib/x86_64-linux-gnu/libmysqlclient.so.21 (0x000073eab0800000) libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x000073eab0200000) libcurl.so.4 => /lib/x86_64-linux-gnu/libcurl.so.4 (0x000073eab1548000) libsqlite3.so.0 => /lib/x86_64-linux-gnu/libsqlite3.so.0 (0x000073eab0e8e000) libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x000073eab152a000) libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x000073eaafe00000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x000073eab0113000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x000073eab14fa000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x000073eaafa00000) /lib64/ld-linux-x86-64.so.2 (0x000073eab1631000) libssl.so.3 => /lib/x86_64-linux-gnu/libssl.so.3 (0x000073eaafcfe000) libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x000073eab14e7000) libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x000073eaafc40000) libnghttp2.so.14 => /lib/x86_64-linux-gnu/libnghttp2.so.14 (0x000073eab14b9000) libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x000073eab1497000) librtmp.so.1 => /lib/x86_64-linux-gnu/librtmp.so.1 (0x000073eab1479000) libssh2.so.1 => /lib/x86_64-linux-gnu/libssh2.so.1 (0x000073eab07b7000) libpsl.so.5 => /lib/x86_64-linux-gnu/libpsl.so.5 (0x000073eab1463000) libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x000073eab0762000) libldap.so.2 => /lib/x86_64-linux-gnu/libldap.so.2 (0x000073eab00b4000) liblber.so.2 => /lib/x86_64-linux-gnu/liblber.so.2 (0x000073eab00a4000) libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x000073eab0096000) libunistring.so.5 => /lib/x86_64-linux-gnu/libunistring.so.5 (0x000073eaaf84e000) libgnutls.so.30 => /lib/x86_64-linux-gnu/libgnutls.so.30 (0x000073eaaf600000) libhogweed.so.6 => /lib/x86_64-linux-gnu/libhogweed.so.6 (0x000073eaaf804000) libnettle.so.8 => /lib/x86_64-linux-gnu/libnettle.so.8 (0x000073eaaf5ab000) libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x000073eaaf525000) libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x000073eaaf45c000) libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x000073eaaf430000) libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x000073eab1459000) libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x000073eab0089000) libsasl2.so.2 => /lib/x86_64-linux-gnu/libsasl2.so.2 (0x000073eaafc26000) libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x000073eaaf40d000) libp11-kit.so.0 => /lib/x86_64-linux-gnu/libp11-kit.so.0 (0x000073eaaf268000) libtasn1.so.6 => /lib/x86_64-linux-gnu/libtasn1.so.6 (0x000073eaaf252000) libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x000073eab0e87000) libffi.so.8 => /lib/x86_64-linux-gnu/libffi.so.8 (0x000073eaaf246000) root@vps385544254:/home/ddnet/DDNet-18.8.2-linux_x86_64# (edited)
Avatar
Avatar
MilkeeyCat
it crashes in libmysqlclient and i don't have such a shared object, I have libmariadb instead
doesn't work too
Avatar
MilkeeyCat 2025-01-03 18:20
because it still uses libmysqlclient probably
18:21
Package 'libmysqlclient-dev' is not installed, so not removed
18:21
i removed it already
Avatar
MilkeeyCat 2025-01-03 18:21
did your package manager find such package?
Avatar
Avatar
MilkeeyCat
did your package manager find such package?
yeah i just uninstalled it
Avatar
MilkeeyCat 2025-01-03 18:21
because I couldn't find it on debian :\
18:22
wait
Avatar
okey
Avatar
MilkeeyCat 2025-01-03 18:22
did you install libmysqlclient-dev before?
Avatar
yep
Avatar
MilkeeyCat 2025-01-03 18:23
DMYSQL=[ON|OFF] Whether to enable MySQL/MariaDB support for server. Requires at least MySQL 8.0 or MariaDB 10.2. Setting to ON requires the libmariadbclient-dev library installed, which are also provided as bundled libraries for the common platforms. Default value is OFF.
Docs say to install libmariadb -.-
Avatar
but now it do that ./DDNet-Server: error while loading shared libraries: libmysqlclient.so.21: cannot open shared object file: No such file or directory
Avatar
Avatar
MilkeeyCat
DMYSQL=[ON|OFF] Whether to enable MySQL/MariaDB support for server. Requires at least MySQL 8.0 or MariaDB 10.2. Setting to ON requires the libmariadbclient-dev library installed, which are also provided as bundled libraries for the common platforms. Default value is OFF.
Docs say to install libmariadb -.-
......
18:23
i need to recompile it ?
Avatar
MilkeeyCat 2025-01-03 18:23
ye
Avatar
key
18:23
..
18:23
gonna recompile it
18:24
Error: Package 'libmariadbclient-dev' has no installation candidate
Avatar
MilkeeyCat 2025-01-03 18:25
install libmariadb-dev
Avatar
oh yeh
18:25
okey thx gotta compile it
18:28
cmake .. -DMYSQL=ON cmake .. -DMYSQL=ON -DPREFER_BUNDLED_LIBS=OFF which one @Milaseq_
18:28
@MilkeeyCat
18:28
@Milaseq_ mb my friend wrong ping
Avatar
MilkeeyCat 2025-01-03 18:29
try cmake .. -DMYSQL=ON -DPREFER_BUNDLED_LIBS=OFF and if it doesn't work, use cmake .. -DMYSQL=ON
Avatar
ok
Avatar
MilkeeyCat 2025-01-03 18:29
idk if you have libs installed
Avatar
root@vps385544254:/home/ddnet/build# cmake .. -DMYSQL=ON -DPREFER_BUNDLED_LIBS=OFF CMake Warning: Ignoring extra path from command line: ".." CMake Error: The source directory "/home/ddnet" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. root@vps385544254:/home/ddnet/build#
Avatar
mkdir build && cd build
18:30
and then run the command within the build directory
Avatar
yeah ik
Avatar
MilkeeyCat 2025-01-03 18:30
use .. after flags
18:30
k
18:31
can't compile it
18:31
oh
18:31
i know why
Avatar
MilkeeyCat 2025-01-03 18:31
what's the error?
Avatar
i know why
18:31
my bad
18:32
okey
18:32
i was just dumb
18:32
CMake Error at CMakeLists.txt:678 (message): You must install Freetype to compile the DDNet client
Avatar
MilkeeyCat 2025-01-03 18:32
add -DCLIENT=OFF
Avatar
ok
18:33
-- Found SQLite3: /usr/include (found version "3.46.1") -- Checking for module 'sqlite3' -- Found sqlite3, version 3.46.1 -- Found SQLite3: /usr/include -- ** DDNet ** -- Target OS: linux x86_64 -- Compiler: /usr/bin/c++ -- Rust version: rustc 1.80.1 (3f5fd8dd4 2024-08-06) (built from a source tarball) -- Build type: Release -- Dependencies: -- * Curl found -- * Freetype not found -- * Glew found -- * GTest not found -- * MySQL found -- * Ogg found -- * OpenSSL Crypto found -- * Opus found -- * Opusfile found -- * PNG found -- * Python3 found -- * SDL2 found -- * SQLite3 found -- * Wavpack found -- * Zlib found -- To run the tests, you have to install GTest -- Configuring done (0.9s) -- Generating done (0.1s) -- Build files have been written to: /home/ddnet/ddnet/build
18:33
it's done ?
18:34
why was it so fast
18:34
make -j$(nproc)
18:34
this right ?
Avatar
MilkeeyCat 2025-01-03 18:34
ye
Avatar
make -j$(nproc) i gotta run this ?
18:34
ok
18:34
that's why it was so fast........
18:34
now imma wait 5 minutes
18:36
ok done
Avatar
MilkeeyCat 2025-01-03 18:37
try to run the server
Avatar
oke
18:37
with sql ?
Avatar
MilkeeyCat 2025-01-03 18:37
you already have everything set up, no?
Avatar
no
18:37
like it's another server
18:37
another compilation
18:37
':)
Avatar
MilkeeyCat 2025-01-03 18:37
execute ldd ./DDNet-Server | grep libmariadb
18:38
does it show something?
Avatar
root@vps385544254:/home/ddnet/ddnet/build# ldd ./DDNet-Server | grep libmariadb libmariadb.so.3 => /lib/x86_64-linux-gnu/libmariadb.so.3 (0x00007c0be909a000)
Avatar
MilkeeyCat 2025-01-03 18:38
it should work™
Avatar
wait
18:39
trying something
18:40
@MilkeeyCat you know what
18:40
i love you bro
18:40
<3
18:40
thanks
18:40
thanks
18:40
it's working
Avatar
MilkeeyCat 2025-01-03 18:42
nice
❤️ 2
Avatar
pro
Avatar
MilkeeyCat 2025-01-03 18:50
someone isn't sleeping
Avatar
when add LLM
Avatar
chillerdragon BOT 2025-01-03 21:09
lmao
Replying to @Koll Potato i think something is a little bit off with my movement implementation
Avatar
GitHub BOT 2025-01-03 21:12
Currently no arguments are passed when launching the server though. This is for supporting #9092.

Checklist

  • [X] Tested the change ingame (by manually specifying arguments)
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no physics that...
Avatar
@Jupstar ✪ for ddnet-rs, as you know i'm using NixOS and using Nix as a package manager and development environment would allow me to provide a flake.nix and flake.lock file to pin needed dependencies such as rust, cargo, the needed toolchain, wasm and whatnot. to ensure this works on all systems running nix. ddnet has an other folder, what about adding that to the repo aswell? - that way we could ship things like workspaces (vim, vscode) and i could also put Nix related stuff in there. this would also make packaging ddnet-rs for nixpkgs easier owo (edited)
Avatar
Avatar
meloƞ
@Jupstar ✪ for ddnet-rs, as you know i'm using NixOS and using Nix as a package manager and development environment would allow me to provide a flake.nix and flake.lock file to pin needed dependencies such as rust, cargo, the needed toolchain, wasm and whatnot. to ensure this works on all systems running nix. ddnet has an other folder, what about adding that to the repo aswell? - that way we could ship things like workspaces (vim, vscode) and i could also put Nix related stuff in there. this would also make packaging ddnet-rs for nixpkgs easier owo (edited)
Jupstar ✪ 2025-01-03 22:07
in ddnet-rs it's called misc
22:07
i thought other sounds like it's not related to ddnet xD
Avatar
oh god, dont tell chillerdragon justatest - so it's fine if i do that?
Avatar
Jupstar ✪ 2025-01-03 22:08
I am ok with that yeah
Avatar
perfect, i'll get on it then
Avatar
Jupstar ✪ 2025-01-03 22:08
but note that i dont really want to lock the rust version
22:08
i think rustup is quite cool because it makes it easy to install latest rust
22:08
as easy as installing it over a pkg manager
Avatar
i could just not ship a .lock file then, so everyone evaluates to the latest nixpkgs version when using it
Avatar
Jupstar ✪ 2025-01-03 22:09
nice
Avatar
GitHub BOT 2025-01-03 23:00
640bf6f Support passing launch arguments to Android server - Robyt3 24d9705 Merge pull request #9474 from Robyt3/Android-Server-Launch-Arguments - def-
23:02
7fbd9a0 Add whisper functionalty (client side), some server fixes - Jupeyy ee7e250 Merge pull request #7 from Jupeyy/pr_whisper - Jupeyy
Avatar
Avatar
deen
@Zwelf any ideas?
no. We check for errors in the Step call and if we were unable to fetch the results it should have returned an error there 🤷
Exported 579 message(s)
Timezone: UTC+0