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-11-12 00:00:00Z and 2022-11-13 00:00:00Z
Avatar
I think it's worth the risk doing it this way
00:35
dont know what symbol to use for animation
Avatar
@Voxel It seems much better
00:38
I'm just too used to the keyboard shortcuts (edited)
00:38
I believe it would be very helpful for newcomers
Avatar
Avatar
Voxel
I think it's worth the risk doing it this way
I'll go with this variation for now, and if it's too confusing I can change it
Avatar
I made this not as a completely final idea, but a step forward to an overall cleaner UI experience. New mappers would want to use the buttons more, and so we should it readable for those who do use them. I also fixed the zoom in/out buttons because a negative overflow is possible. If you zoom all the way in and hit the zoom in button, there wasn't a stopping point. Old: !image ![imag...
Avatar
Avatar
Voxel
What if I do something like this instead?
omg i just got a genius idea for this. what if when you hover your mouse over the middle buttons they turn into a reset symbol, so it indicates better it's meant for resetting the value
Avatar
chillerdragon BOT 2022-11-12 07:03:50Z
Imo the crossed out eye looks bloat. Not simple enough for tw style. Can you change it’s opacity instead? As in grey it out when it’s inactive? (@Voxel)
image.png
Avatar
Avatar
chillerdragon
Imo the crossed out eye looks bloat. Not simple enough for tw style. Can you change it’s opacity instead? As in grey it out when it’s inactive? (@Voxel)
Yeah I can try that
Avatar
Why the hell must the editor GUI look tw style xd
Avatar
speaking of bloat, we dont even use like 3/4th of the entire font icon pack when i have enough time and will i want to attempt to make a localized icon pack with custom made icons
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 07:39:07Z
Omg jopstar ur lawyer and financial advisor but u know nothin about design sorri
07:39
editor does have to look nice and clean!
07:39
complex textures are ugly
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:19:56Z
my new favorite snap type: SNAPEMPTY
08:19
axaxax
08:20
even better than SNAPCHAT
08:28
Material Symbols and Icons has much less icons than fontawesome but I think they look better and more similar to eachother
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:30:14Z
First screenshot of a vanilla client being connected to a server written in ruby! pog https://zillyhuhn.com/cs/.1668241778.png
Avatar
node-tw-server when™️?
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:30:48Z
@Swarfey
08:31
he is da typescript boi you wanna lobby to
08:31
Swarfey be like:
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:31:51Z
I remember zeta bullying heinrich for implementing the tw server side in rust instead of client because its "the easy part" but so far I do not agree :D
08:32
As it seems nothing is easy when it comes to teeworlds coding
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:32:30Z
In the client one can get pretty far without snaps. The server is pretty useless withou them.
08:32
But luckily there is snap empty which is magic hack :D
Avatar
I'm not very fluent in teeworlds server terminology so I don't know what snaps are
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:33:22Z
its like a image you send
08:33
and it disappears after a few seconds
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:33:56Z
Snapchat lets you easily talk with friends, view Stories from around the world, and explore news in Discover. Life's more fun when you live in the moment!
08:34
trolololol
Avatar
Okay I understand that but what does it have to do with the server
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:34:32Z
No like snaps are basically the game state the server sends to the client. It holds all the entities like players and their positions etc
Avatar
Ah okay you trolled me
08:34
I'm dumb
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:34:39Z
hrhrhrhr
08:34
get stickbugged
Avatar
Avatar
[quakenet] ChillerDragon
No like snaps are basically the game state the server sends to the client. It holds all the entities like players and their positions etc
Oh I understand
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:35:12Z
and the client is really sad if the server sends no snaps
08:35
but building snaps is hard
08:35
but there is a empty snap type that is ez to build and makes the client happy
08:35
hackerdragon doing ugly hax
Avatar
It's like a way for the client and the server to be on the same page
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:35:49Z
ye
Avatar
I mean the client
08:36
The server doesn't care
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:36:27Z
actually the server does care a bit if the client got the snap
Avatar
How much does it care
08:36
I mean it won't break if the client didn't get it
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:37:37Z
That part im currently trying to figure out but stuff breaks if the client does not tell the server it got the correct stuff
Avatar
Does that mean that one could technically mod their client to troll the server?
Avatar
5d1bec5 Change editor UI, fix an overflow bug. - VoxelDoesCode 79df589 Merge #6029 - bors[bot]
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:38:57Z
Yes troll the server into kicking you for "Too weak connection" if you do not properly ack all server packets xd
Avatar
In that case no =]
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:39:14Z
prank gone wrong
Avatar
[Backfired] [Gone wrong]
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:40:06Z
when tw server in pure css?
08:40
aw shit im procrastinating again xd
Avatar
Avatar
[quakenet] ChillerDragon
when tw server in pure css?
maybe not css
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:43:13Z
Isnt css turing complete
08:43
there is even a chat app build in css
08:43
A truly monstrous async web chat using no JS whatsoever on the frontend - GitHub - kkuchta/css-only-chat: A truly monstrous async web chat using no JS whatsoever on the frontend
08:43
ruby pog
Avatar
Idk if thats the one i saw
08:44
But that is pretty epic
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:44:15Z
faq section of readme is gold
Avatar
Okay while you are here
08:44
And since you know what teeassembler is
08:45
Star this and don't ask any questions
08:45
👀
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:45:21Z
FOLLOW LIKE SHARE SUBSCRIBE
08:45
STAR4STAR
08:45
follow4follow
08:45
axaxax
Avatar
exactly xd
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:45:55Z
i didnt even use it yet
08:45
so idk if it any gud
08:46
but it has nice documentation in readme
08:46
u got my star
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:46:50Z
TEE ASS EMBLER
Avatar
it's kinda not perfect
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:46:52Z
hihi
08:47
Last time i looked into those things was like years ago when building this beauty https://zillyhuhn.com/DDNetPP-web/players.php
Avatar
ayoo its using the old version
08:48
which was quite frankly shit
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:48:42Z
xd
Avatar
you can try the new one I think there is a link on github
08:48
it works with colors too
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:49:19Z
i aint touching that php monster today :D
Avatar
It literally has 0 php
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:49:33Z
the todos are just too overwhelming
08:49
nah i mean my old php website that makes use of teeassembler
08:50
well there is your problem
08:50
php
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:50:14Z
xd
08:50
php is so nice to get started
08:50
no dependencies or boilerplating needed
08:50
just add 1 more line and one more line
08:51
copy from w3 schools
08:51
and ez done website
Avatar
lmao
08:51
I'm a classic javascript dev
08:51
as fireship said
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:51:37Z
soydev
Avatar
I like reinventing the wheel as much as the next javascript developer
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:51:57Z
well at least js ecosystem uses packages
08:52
C and C++ developers do reinvent all wheels cuz they dont use other peoples code xd
Avatar
also fireship said C++ is bloated
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:52:52Z
wot
Avatar
I don't know since i havent used
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 08:55:05Z
lmao i managed to bug client graphics using crack server
Avatar
looks like someone forgot to send the right data to client
Avatar
There could be an icon at the edge of the hud that displays if your team is either locked or unlocked, it could look like the dummy indicators that were recently added.
08:59
I would find it quite convenient if there would be something like profile tabs in the player and the tee customization options where you could save and load your presets. Since the way I'm currently saving my "profiles" are with binds which is abit of an unconvenient workaround to such a missing feature.
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 09:02:33Z
looks like someone forgot to handle incorrect data in the client :p
Avatar
good morning ddnet
Avatar
morning, good day for fishing ain't it
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 09:40:02Z
murpi NPC
09:42
I think I slowly got the hype about test driven development!
09:42
I added so many CI pipelines that no matter how drunk i was while editing the code if the pipeline is green i can be sure notjing broke
09:43
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 09:44:06Z
jao alive
09:44
omg
Avatar
That is not test driven development though, but just having good test coverage
09:46
and using CI as a merge barrier
09:46
TDD would mean you write a new test before you even start writing the feature
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 09:46:23Z
TDD is write test first then code huh?
09:46
ah yea
Avatar
which is a bit awkward and extreme I think
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 09:47:05Z
yea ok then im not hyped about TDD ... yet
Avatar
a fair enough compromise is to say you have to submit test and code together (thus not decreasing code coverage)
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 09:47:08Z
but about good test coverage
09:47
ye i write code and then tests that pass for the code i wrote
09:47
so i see when my behavior changed
09:47
and it worked pretty dope so far!
09:48
Especially full integration tests that run the whole thing are gold
Avatar
Avatar
jao
morning
hi jao
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 09:48:45Z
xd
Avatar
yes, integration tests are more valuable than unit tests since you know the feature actually works for the user. but they run much slower than unit tests, so more expensive
Avatar
I find TDD works decently for user facing APIs. Though I don't do it all the time either. Sometimes I just think of some behaviour or edgecase for an api endpoint and I'll jot down a test first mostly so I remember
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 10:17:45Z
Imo the thing is that while you write the code you might notice that the api would be better/easier to code if it looked differently
Avatar
Avatar
Alexander
node-tw-server when™️?
🧌 i believe that would take ages
11:28
took me already a few months of irregular updates to finish the client
11:28
not even completely finished yet, i bet there are still some things to add
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 11:38:50Z
thats motivating thanks swarfey xd
11:39
omg rubys missing types drive me nuts
Avatar
well the worst things were snapshot uuid's which i was procrastinating away for months
11:39
finally implemented it yesterday
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 11:41:44Z
im back to being stuck at tokens again :D
11:41
idk how that happend
Avatar
whats the problem with the token
11:44
just store the last 4 bytes and append them to every packet
Avatar
chiller come to rust
11:44
lots of types there
Avatar
or idk where it is in 0.7
Avatar
and now GATs
11:44
generic associated types
11:44
im trying to do what u doing in ruby but in rust
11:45
time to learn wireshark
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 11:53:38Z
@Swarfey I store my tokens as strings xd so they might either be "\x01\x01\x01\x01" or "1111" or "01010101" depending how i currently formatted them. Or better its suddenly the array [1,1,1,1]
11:54
dont you have something like buffers or something in ruby?
Avatar
chillerdragon BOT 2022-11-12 11:57:01Z
Idk
Avatar
@deen nightly from steam under linux not starting :/
12:09
it simply hangs
12:10
mhh RC too, weird, self compiling works tho
12:11
Ryozuki trying not to mention rust for 5 seconds
Avatar
maybe the steam update broke it or smth, bcs nightly from website works
Avatar
Avatar
Alexander
Ryozuki trying not to mention rust for 5 seconds
Its new "btw im using linux"
Avatar
steam non beta client works
12:17
lol change to beta again now it works. i love random bugs
12:17
they always easy to answer
15:57
@Ryozuki ^
Avatar
oui()
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 16:07:53Z
Rust programming, in French. Contribute to bnjbvr/rouille development by creating an account on GitHub.
16:09
I identify with this one
16:09
Avatar
turkish image is quite good as well (edited)
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 16:12:15Z
kraaal
Avatar
uh, do i need visual studio now to build ddnet?
Avatar
yep, u need visual studio we dropped linux support
Avatar
nah, on windows obviously...
Avatar
why do you think so?
Avatar
rust says it needs visual studio dependencies
Avatar
how did you install rust?
Avatar
Rust Visual C++ prerequisites Rust requires a linker and Windows API libraries but they don't seem to be available. These components can be acquired through a Visual Studio installer.
16:16
didn't install yet
16:16
installer says that
Avatar
how do you compile ddnet?
16:16
with the gnu toolchain?
16:16
mingw
Avatar
then you can download the mingw toolchain for rust
16:16
let me check how
Avatar
cant u simply download rust for msys
16:17
pacman -S mingw-w64-x86_64-rust
Avatar
ah maybe that as well
16:18
On Windows, download and run the rustup-init.exe built for the x86_64-pc-windows-msvc target. In general, this is the build of rustup one should install on Windows. This will require the Visual C++ Build Tools 2019 or equivalent (Visual Studio 2019, etc.) to already be installed. If you would prefer to install GNU toolchains or the i686 toolchains by default this can be modified at install time, either interactively, with the --default-host flag, or after installation via rustup set default-host.
Avatar
okay, trying with the x86_64-pc-windows-gnu host
Avatar
tell us how it goes
Avatar
so far seems to work
16:27
just need to make sure that CARGO_HOME and RUSTUP_HOME are properly set in bash
Avatar
if you want to redirect it to some non-default place, yes
Avatar
yup, using /c/rust
Avatar
I see
Avatar
[0/255] Generating debug/libddnet_engine_shared.a Updating crates.io index Downloaded cc v1.0.73 Downloaded link-cplusplus v1.0.6 Downloaded cxx v1.0.71 Downloaded proc-macro2 v1.0.40 Downloaded quote v1.0.20 Downloaded syn v1.0.98 Downloaded cxxbridge-flags v1.0.71 Downloaded unicode-ident v1.0.1 Downloaded cxxbridge-macro v1.0.71 Downloaded 9 crates (664.7 KB) in 2.64s Compiling cc v1.0.73 Compiling proc-macro2 v1.0.40 Compiling quote v1.0.20 Compiling unicode-ident v1.0.1 Compiling syn v1.0.98 Compiling cxxbridge-flags v1.0.71 Compiling ddnet-engine-shared v0.0.1 (E:\Teeworlds_DDNet\ddnet\src\engine\shared) Compiling ddnet-test v0.0.1 (E:\Teeworlds_DDNet\ddnet\src\rust-bridge\test) Compiling link-cplusplus v1.0.6 Compiling cxx v1.0.71 Compiling cxxbridge-macro v1.0.71 Compiling ddnet-base v0.0.1 (E:\Teeworlds_DDNet\ddnet\src\base) Compiling ddnet-engine v0.0.1 (E:\Teeworlds_DDNet\ddnet\src\engine) Finished dev [unoptimized + debuginfo] target(s) in 2m 20s
16:29
🙂
Avatar
$ CXXFLAGS="-fdiagnostics-color=always" CFLAGS="-fdiagnostics-color=always" cmake -G Ninja -DDEV=ON -DPREFER_BUNDLED_LIBS=ON -DIPO=OFF -DAUTOUPDATE=OFF -DDOWNLOAD_GTEST=ON .. $ time ninja ## with rust real 1m47,277s ## 16.5 real 1m26,152s
Avatar
A teeworlds variable int packer/unpacker in Rust. Contribute to edg-l/teeint development by creating an account on GitHub.
16:44
i know libtw has it but i made my own
Avatar
use teeint::UnPackTwInt; let buff = [0b1000_0000, 0b0000_0001]; let result = buff.as_slice().unpack().unwrap(); assert_eq!(result, 64);
16:45
with a fancy trait
Avatar
Did you make it for sth or just for fun?
Avatar
to call it on buffers directly
Avatar
Avatar
Learath2
Did you make it for sth or just for fun?
yeah idk i want to make parts of tw in rust like heinrich did
16:45
but ill publish them
16:45
as small crates
Avatar
libtwzuki, go
Avatar
ill also obey clippy like a god
16:46
BASED
16:48
❯ cargo clippy --all-targets Checking teeint v0.1.0 (/data1/edgar/teeint) Finished dev [unoptimized + debuginfo] target(s) in 0.14s
16:48
Avatar
nice 🙂
Avatar
the new code viewer in github is dope
16:49
i can search code on ddnet without needing to open it locally
16:49
Avatar
you could do that before, with the search at the top
Avatar
it worked rly bad
16:52
they changed it
Avatar
but I can't find the string you searched for 😮
Avatar
well its in beta
Avatar
so it's apparently bad
Avatar
cuz im using the new code view
16:52
are you using it too?
16:53
Thanks for trying GitHub’s new code search and code view - the most powerful way to search and navigate the world’s code. Our team is excited to share this feature with you today in beta. We are de...
Avatar
no, I checked using the old search
Avatar
yeah old search is pretty bad
Avatar
you could add some tests testing multi-byte representations
16:54
e.g. for the lowest and highest numbers
Avatar
i have one for 64 but yeah i was a bit lazy to add more
16:55
ill add them sometime :D
Avatar
Old search is that elasticsearch thing that tries to be way too smart. I absolutely hate what full text search has become in the last decade
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 16:57:09Z
@Ryozuki thanks for doing that! I do really appreciate individual crates with a nice readme on how to use them. Much more accessible for nobs than libtw2
16:57
thats how i felt too
Avatar
7-8 years ago you'd search for stuff and get pretty decent results. Now every site has this weird search behaviour, stemming words, ranking with weird metrics that makes no sense
Avatar
altho libtw2 are loto of small crates internally tho
16:57
well idk if they are small
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 16:57:52Z
no docs and install command tho
16:57
and it all feels a bit interconnected
16:58
well i never bothered to understand libtw2 since i cant speak rust anyways but looking at your repos on github it does make a lot of sense at first glance
Avatar
yea, libtw2 needs more documentation 😦
Avatar
i have rustyman and teeint now
17:01
building blocks to make a protocol parser or smth idk
17:01
havent tested rustyman (my huffman in rust) with the tw table tho
Avatar
this documents the correct bit representations for each byte value in the tw table: https://github.com/heinrich5991/libtw2/blob/48a2573af66105fc38f032fe22cfcc60f95f7485/doc/huffman.md#appendix
Avatar
oh nice
Avatar
there's also an example compression in the docs
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:03:26Z
there is no headless tw client in apt huh? :(
Avatar
btw what is a .ksy file?
Avatar
katai struct
17:03
Kaitai Struct is a formal language for binary format specification that can be compiled into parser code
Avatar
oh nice
17:04
no rust tho
17:04
that feels like smth that would fit a macro in rust
17:04
xd
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:04:29Z
can i run a gui tw client in github ci? anyone ever tried that?
17:04
like with some linux hax commands
Avatar
probably, in some way
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:04:59Z
sounds like work
17:05
might as well just build -DHEADLESS_CLIENT=ON in the ci
17:05
or maybe server the binary on some sketchy url xd
17:05
serve*
17:06
basically: only possible using software rendering
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:06:03Z
curl.exe
17:06
yikes
17:06
i also feel like it slows down the ci and i dont even need the gui
17:06
i think ill go with wget'ing the headless binary from some url
Avatar
the MASKS and SHIFTS on c++ uses a static storage but in rust i decided to use const instead cuz according to the docs: Using Statics or Consts It can be confusing whether or not you should use a constant item or a static item. Constants should, in general, be preferred over statics unless one of the following are true: Large amounts of data are being stored The single-address property of statics is required. Interior mutability is required.
17:08
is there a reason they are static in c++?
Avatar
has anyone used twmap on windows?
17:10
twmap python binding
Avatar
Avatar
Ryozuki
the MASKS and SHIFTS on c++ uses a static storage but in rust i decided to use const instead cuz according to the docs: Using Statics or Consts It can be confusing whether or not you should use a constant item or a static item. Constants should, in general, be preferred over statics unless one of the following are true: Large amounts of data are being stored The single-address property of statics is required. Interior mutability is required.
dont care too much about such stuff, const is const
Avatar
not the binding
Avatar
Avatar
Jupstar ✪
dont care too much about such stuff, const is const
i like to nitpick
Avatar
import twmap Traceback (most recent call last): File "<pyshell#0>", line 1, in <module> import twmap File "C:\Python38\lib\site-packages\twmap\__init__.py", line 1, in <module> from .twmap import * ImportError: DLL load failed while importing twmap: La procédure spécifiée est introuvable.
Avatar
and learn more if possible
17:11
BASED
Avatar
i'd use constexpr
Avatar
looks like it tries to read a DLL, but there's no dll file
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:11:33Z
yikes windows
Avatar
would it change anything herE?
17:11
here*
Avatar
only a twmap.pyd
Avatar
but i doubt any sane compiler cannot optimize it
Avatar
yeah xd
Avatar
i doubt it but try it out
Avatar
but they use static
Avatar
does The single-address property of statics help?
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:12:18Z
if you have HAVE to use windows why not use at least WSL? @Chairn
Avatar
its windows 7
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:12:35Z
wtf
Avatar
Avatar
Ryozuki
does The single-address property of statics help?
mhh since its a scope var, it doesnt matter at all probably
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:12:39Z
this is getting better and better xd
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:12:45Z
why would you be using windows 7?
Avatar
he is one of the 10 trolls that hate ddnet
17:13
and try everything to keep us supporting win7
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:13:44Z
trol
17:14
yea imo its cool to support win7
17:14
but its not cool to run win7
Avatar
its cool if it works on win7, its shit to give support for outdated stuff
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:14:26Z
so im curious why
Avatar
it creates work for us
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:14:53Z
oke yea dpeends on the effort i guess
17:15
just use linux with kernel 6.1
17:15
otherwise no support
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:15:16Z
xd
Avatar
tru
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:15:26Z
yikes i use 6.0
Avatar
same xd
17:15
6.1 hasnt released
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:15:37Z
oh trol
Avatar
you so mainstream guys
17:15
im hipstar
Avatar
hi hipstar
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:16:03Z
yes?
Avatar
im dad
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:16:06Z
how so?
Avatar
i use 6.1
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:16:15Z
oof
17:16
i use 6.2 my own linux fork who is ahead of mainline
Avatar
i made 6.3
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:16:47Z
xd
17:16
the world shall be like this
17:16
god said
17:17
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:17:17Z
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:17:30Z
WHITE THEME GITHUB MASTERRACE
Avatar
i need to turn off my room light now
17:17
thanks
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:17:53Z
xd
17:18
dark theme is cool and all
17:19
but there are 3 OG whitetheme apps: discord, youtube, github
17:19
change my mind
17:19
heck 4
17:19
duck.com
Avatar
i miss the good old times https://badhtml.com/
With this website we want to teach you the best web design practices to avoid Bad HTML. Find here everything you need to know to build the most user-friendly website ever!
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:20:25Z
im too young for that
17:20
dad
17:21
still waitin' for @Chairn to tell me why he runs win7
Avatar
cuz he wants to be spied on
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:21:45Z
he can also get spied on on win10
17:21
even better there actually
Avatar
@Jupstar ✪ u know geocities?
17:21
Free web hosting and tools that allow anyone to create a website. Join our community today!
Avatar
ez
17:22
they all so cool
Avatar
neo is the new hipster prefix it seems
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:22:28Z
weeb
Avatar
neovim neocities neodragon
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:23:21Z
my fav site is dis: itanimulli.com
Avatar
the websites i have been waiting for
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:23:30Z
17:23
ah fak no https
17:23
fail
Avatar
Avatar
Chairn
looks like it tries to read a DLL, but there's no dll file
is that the twmap package installed via pip or manually built?
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:30:18Z
he gone
Avatar
Avatar
[quakenet] ChillerDragon
why would you be using windows 7?
because old pc
Avatar
Avatar
Patiga
is that the twmap package installed via pip or manually built?
pip python3.8 on win7
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:34:18Z
Hm rip. So win blocks installation on old hardware? Rude windows.
Avatar
anyone else on windows who can try out the twmap bindings?
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:39:50Z
I got a win10 drive but i really do not want to boot there now sori :(
17:40
@Ryozuki you did switch from vscode to vim right? How did you cope with missing multi cursors?
Avatar
my win10 is also bricked for some reason
Avatar
i always used vim
17:40
i only used vscode temporarely
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:40:36Z
oh ok gigachad sory
Avatar
and u can do multi cursor in vim
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:40:43Z
how?
17:40
u mean ctrl+v?
Avatar
Multiple cursors plugin for vim/neovim. Contribute to mg979/vim-visual-multi development by creating an account on GitHub.
17:41
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:41:23Z
ah yes this!
17:41
i need that xd
17:41
with word jump and stuff
17:42
plugin for neovim
17:42
oof
17:42
ah vim too
Avatar
vim or neovim
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:42:21Z
pog
Avatar
but use neovim
17:42
already
17:42
bruh
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:42:30Z
hehe
Avatar
literally drop in replacement
17:42
it will use ur vim config
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:42:49Z
thats what they said about vi too
17:43
omg vi worst editor btw
17:43
i rather use notepad than vi
17:43
or microsoft word
17:44
u got that cursor plugin?
17:44
okok ima give it a try
17:44
i never needed multiple cursors
17:44
u can use vim smarter
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:45:28Z
ok brain
Avatar
chiller
17:45
do u use markers
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:45:38Z
if u rename a variable how u do that?
17:45
no
17:45
i use like 4 letters in vim
Avatar
i use the lsp rename if its in lot of places
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:45:55Z
3 of them are arrow keys xd
Avatar
otherwise i just go to the word
17:46
dw
17:46
and type
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:46:07Z
whats lsp
17:46
and replace
17:46
language server protocol
17:46
it knows language context
17:46
so u can to variable renames
17:46
clangd is the lsp for c/cpp
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:46:29Z
i manually search with /
17:46
or use :%s/pat/sub/g
Avatar
i use a mapping i have
17:46
that uses FZF
17:46
to search
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:46:46Z
but its so bad
Avatar
and it uses ripgrep internally
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:46:53Z
im such a beast with vscode
Avatar
fzf ❤️ vim. Contribute to junegunn/fzf.vim development by creating an account on GitHub.
17:47
check this
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:47:16Z
ctrl+d is so poggers in vscode
17:47
and the multi cursor vim plugin remapped it to ctrl+n this fucks my muzzle memory
17:47
i never needed fuzzyness in my search
17:47
only for file open
17:48
but i got my vim "$(fzf)" alias for that
Avatar
Avatar
Patiga
anyone else on windows who can try out the twmap bindings?
i think it just cannot find some rust libraries or some libraries that is needed for rust
Avatar
maybe u need some c++ redist
Avatar
I would expect everything to be statically linked
Avatar
not libc
17:50
if its used somewhere
17:50
i think he needs a c++ redistribuible
17:50
or smth
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 17:51:15Z
im not sure if making vim work like vscode is even the correct approach
17:51
u make vim work like u want
17:51
thats the point of vim
17:51
+ vim keybinds
Avatar
yeah, any idea of how that .pyd file is generated?
Avatar
@Patiga you need to take special care to statically link msvcrt. if you haven't done that, it's probably dynamically linked
Avatar
any idea on how to get more detail from that python error? it doesn't even list the file
17:54
error attribute has no info...
Avatar
hm, that is unfortunate, my pyo3 guide didn't mention anything there, it mostly just talked about python version compatibility
Avatar
hmmm, so all rust libs are statically linked?
Avatar
Avatar
Chairn
any idea on how to get more detail from that python error? it doesn't even list the file
it's windows that is probably not giving more info
Avatar
i tried ldd and readelf on the twmap.pyd, but both says unknown format
Avatar
can you point file at twmap.pyd?
Avatar
Avatar
Chairn
hmmm, so all rust libs are statically linked?
pure rust libs yes
17:57
by default
17:57
but rust uses libc
17:57
iirc
17:58
rust itself
Avatar
twmap.pyd: PE32+ executable (DLL) (console) x86-64 (stripped to external PDB), for MS Windows
Avatar
you can try using some windows tools to inspect it
Avatar
dumpbin but is not installed, is in visual studio...
17:58
I have installed Python 2.5.4, Numpy 1.5.0 win32, Matplotlib 1.0.0 win32, pywin32 218. Still not able to plot graphs in Python. Here is the error I am getting : import pylab File "C:\Pyth...
17:59
maybe installing this helps
17:59
This article lists the download links for the latest versions of Visual C++ Redistributable packages.
17:59
The Visual C++ Redistributable installs Microsoft C and C++ (MSVC) runtime libraries. These libraries are required by many applications built by using Microsoft C and C++ tools. If your app uses those libraries, a Microsoft Visual C++ Redistributable package must be installed on the target system before you install your app. The Redistributable package architecture must match your app's target architecture. The Redistributable version must be at least as recent as the MSVC build toolset used to build your app. We recommend you use the latest Redistributable available for your version of Visual Studio, with some exceptions noted below.
Avatar
no change
Avatar
and doesnt work?
Avatar
https://doc.rust-lang.org/reference/linkage.html#static-and-dynamic-c-runtimes this seems to be the relevant compiler flag which I can enable permanently in a repository like this https://doc.rust-lang.org/rustc/codegen-options/index.html?highlight=%2Bcrt-static#target-feature the linux twmap packages should still work btw, since they are built in a very compatibility-focused docker, not on arch
Avatar
The Visual C++ Redistributable Packages install run-time components that are required to run C++ applications built using Visual Studio 2015.
18:01
@Chairn and this?
Avatar
am I on the right track here @heinrich5991? :)
Avatar
target-feature=+crt-static (edited)
18:02
this is what I was talking about
18:02
it's in your link, so I guess yes
18:03
I guess I activate that feature for windows only?
Avatar
yes
Avatar
a newer version is already installed, cannot proceed
18:03
idk
Avatar
trying this, but doesn't output anything interesting
18:03
A rewrite of the old legacy software &quot;depends.exe&quot; in C# for Windows devs to troubleshoot dll load dependencies issues. - GitHub - lucasg/Dependencies: A rewrite of the old legacy...
Avatar
nvinitx.dll not found
18:14
🪟 1
7️⃣ 1
frozen 1
18:14
kinda weird that a module depends on itself, but the path is C:/Windows/System32 instead of C:/Windows/system32
18:16
oh, it contains a comma
18:19
well, even with a comma, python doesn't find it, but the dependency tool doesn't complain anymore...
Avatar
@Chairn I published a new version for windows, where I explicitly turned on the static linking, could you please try it out? its version 0.4.2
Avatar
same error...
Avatar
do you know a way to get python to be more verbose about tis error?
Avatar
I don't
Avatar
it's the error from the winapi, likely
18:29
given that it's translated
18:29
there is no more information available
Avatar
not sure if you are already on it, but you could install rust and see if that does anything. then you could try if you can manually build it again. if that fails, then I'd blame your setup :d
18:31
but I do really want it to run on any normal setup, sucks that it doesn't yet
Avatar
rust is already installed
18:32
but i don't think it tries to load a rust library
Avatar
You can also use a winapi monitor to see what dll it's trying to open
Avatar
how do i do that?
Avatar
I honestly don't know the modern tool for it, but there used to be one literally called API Monitor
Avatar
ah, with the cli, i managed to get this: [NOT_FOUND] gdiplus.dll :
Avatar
Most of the development tooling on windows is rotting because it's proprietary garbage
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:40:23Z
/usr/bin/ld.gold: error: /home/chiller/Desktop/git/ddnet/ddnet-libs/png/linux/lib64/libpng16.a(pngtrans.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC
18:40
watafek
Avatar
dont use bundled libs
18:42
r u shipping it?
Avatar
or add -mcmodel=large to CFLAGS
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:43:08Z
yes ima ship dis build
18:43
how to create proper rls then? :(
Avatar
i mean it tells u what to do
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:44:04Z
oke
18:44
why dont we do that in cmake alr?
Avatar
its the libpng
18:45
tbh i guess nobody noticed yet
18:45
the official builds run on a dated linux
18:45
it probs doesnt warn xd
18:46
also i dunno if we use the gold linker tbh
18:46
who uses that xd
18:46
just ship a clang build
18:47
but to whom are u sharing btw?
18:47
if u use a modern linux it might still use a new libc requirement
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:47:24Z
i dont get it i tried this CC=clang CXX=clang++ CXXFLAGS=-fPIC CFLAGS=-fPIC cmake .. -DHEADLESS_CLIENT=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPREFER_BUNDLED_LIBS=ON
Avatar
u cannot really expect it to just work xd
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:47:56Z
idk i do a github rls for now my main use case is to dl it in github pipeline
Avatar
ok
18:48
just make sure to analyse the objects dependencies
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:48:35Z
so i should probably do it on debian instead on arch xd
18:49
wat are object depdencies
Avatar
its not a must have that newer libc is required.. it depends what new features in libc are used in some other libs, e.g. libstdc++
18:49
i mean the shared object dependecies, the exported symbols basically
18:49
the symbols it needs to resolve
18:49
u know
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:50:08Z
no i dont know
Avatar
% objdump -p DDNet (edited)
18:50
look for GLIBC
18:50
it should tell ya the versions
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:50:38Z
i don thave DDNet
18:50
it didnt compile
Avatar
bra after u fixed the other shit xD
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:50:51Z
oh wait you talk about compability
Avatar
yes
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:50:57Z
yea i wanna get it to compile first
Avatar
if u use cmake with env clean the build dir first
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:51:29Z
i dont get why it broke in the first place its not the first time i compile with bundled libs
Avatar
else use -DCMAKE_CXX_FLAGS="..."
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:51:39Z
i did clean
Avatar
The issue is probably the other way around, the library is compiled without fPIC and you are compiling ddnet with -fPIC
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:51:40Z
did not help
18:52
so compile with -no-fPIC ?
Avatar
ah u compile ddnet?
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:52:09Z
yes
Avatar
i said libpng bra
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:52:17Z
idk wat u say
18:52
so why is libpng bundled withwout fPIC?
Avatar
i dunno maybe gcc changed defaults?
Avatar
Avatar
[quakenet] ChillerDragon
so why is libpng bundled withwout fPIC?
We probably disabled PIC on the official build because of that weird gnome issue where the executable didn't appear executable
Avatar
maybe deen downloaded libpng from some shady place
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:53:23Z
watever PIC is
18:53
so i need to disable it rite?
Avatar
download.chiller.dragon/libpng.a
Avatar
position independent code
Avatar
Avatar
[quakenet] ChillerDragon
so i need to disable it rite?
give it a try, I might be a little too deep into this bottle of wine but I thiink it sounds sane
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:54:24Z
but how to build ddnet w out pic
18:54
im about to edit cmakelist
Avatar
no-
Avatar
-fno-pic 😄
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:54:48Z
ah fno not no-f
Avatar
f no pic sounds like a classic twitch comment
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:55:37Z
ye
18:55
da bitch didnt help
Avatar
rest in peeze
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:56:08Z
why are bundled libs binaries in the first place?
Avatar
no-pie
18:56
maybe
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:56:13Z
why not compile from source
Avatar
also push them to linker
18:56
to be sure
Avatar
okay, i give up on my python twmap binding
18:56
ill try to compile it myself 😄
Avatar
cmake .. -DCMAKE_CXX_FLAGS="-fno-pic" -DCMAKE_C_FLAGS="-fno-pic" -DCMAKE_LINKER_FLAGS="-fno-pie"
18:57
if it doesnt work im nobo
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:57:35Z
yes u nobo
Avatar
ah do they require capitcal letters? i dunno if gcc is strict
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:57:41Z
cuz udk how bash quote work
18:57
xd
Avatar
ah totally soz
18:58
#!/bin/bash cmake .. -DCMAKE_CXX_FLAGS="-fno-pic" -DCMAKE_C_FLAGS="-fno-pic" -DCMAKE_LINKER_FLAGS="-fno-pie"
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:58:25Z
Avatar
ah
18:58
then LINK
18:58
not LINKER
18:58
confusing namings
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:58:45Z
u dont need da quotes
18:58
cuz no space
Avatar
You can also do CXXFLAGS="..." LDFLAGS="..." CFLAGS="..." cmake ...
18:59
cmake will put them into the correct cmake variables
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:59:04Z
but dat need clean build dir
18:59
as he said
Avatar
yeah i dunno
18:59
i had trouble in past
18:59
with env vars
18:59
but maybe cmake 3.3213131 is just too OP
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 18:59:36Z
CMAKE_LINK_FLAGS also njownw
18:59
it is not depending on cmake
19:00
thats why u nob
19:00
cmake does not know if u put quotes or not
19:00
wait
Avatar
CMAKE_CXX_LINK_FLAGS
19:00
bra
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 19:00:22Z
a
19:00
no i bad
Avatar
why do they need CXX before
19:00
try CMAKE_CXX_LINK_FLAGS
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 19:00:31Z
nah ok now im confused xd
Avatar
they biggest trolls ever i swear
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 19:01:00Z
ez
19:01
19:02
xxxxxxxxxxxxD
19:02
watafak
19:02
last time i had so mouche trouble buildin tw was on my mac when i was 14yo
Avatar
try gcc xd
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 19:03:16Z
u mean clang?
19:03
i think it uses gcc by default rite?
Avatar
no u already used clang
19:03
try whatever u not used
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 19:03:34Z
i cleaned my build dir
19:03
xd
19:04
neither work
19:04
omg this is taking waaaaaaaaaaaaaay more time than i expected i lost my patience
19:07
heck not even -DIPO=OFF works
19:07
and deend used that
Avatar
@Patiga i manually compiled twmap-py on windows, how do i wrap the dll so that i can import it in python?
Avatar
you should only need to rename it from libtwmap.dll to twmap.dll and place it into the directory where you want to import it
Avatar
btw, i think it used twmap-0.9.0 rather than 0.9.1 🙂
19:10
yup
19:12
nice find, thanks for notifying
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 19:12:21Z
gg i compiled libpng without pic and now i got dis bitch /home/chiller/Desktop/git/ddnet/src/engine/gfx/image_loader.cpp:241: error: undefined reference to 'png_read_image'
Avatar
Compiling twmap v0.9.0
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 19:12:48Z
wait -m32 is 32 bit? xd
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 19:13:01Z
ah shit i followed wrong tutorial
Avatar
Avatar
Patiga
you should only need to rename it from libtwmap.dll to twmap.dll and place it into the directory where you want to import it
hmm, in site-packages, i create subdir and put it there, and you sure i don't need a init.py ?
19:15
you should really only need the file
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 19:15:25Z
ok libpng fixed
Avatar
it does import now 🙂
Avatar
I forgot you need to change the file extension to .pyd
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 19:15:29Z
now vulkan bitchin
19:15
it works as .dll
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 19:15:45Z
19:16
whatever i got binary yeet on that
19:16
that was a mess
Avatar
Avatar
Chairn
it works as .dll
does it work as .dll everywhere, or only if it is specifically in the site-packages directory?
Avatar
nvm, it does import but doesn't work
Avatar
nice chillerdragon
19:17
now u linux hacker
Avatar
AttributeError: module 'twmap' has no attribute 'Map'
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 19:17:11Z
thanks sensei
Avatar
i made a twmap directory in site-packages and put the dll there
19:17
so import works, but when i use the module, it misses all attributes
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 19:18:00Z
@deen what is the reason for ddnet-libs being binaries btw?
Avatar
could you simply try to put it into a random directory, rename it to twmap.pyd and import it in that directory?
Avatar
I seem to have horrible stutters for the last couple versions on windows :/
19:18
can't figure out why for the life of me
Avatar
Avatar
Patiga
could you simply try to put it into a random directory, rename it to twmap.pyd and import it in that directory?
opkay, it works that way
19:19
both import and module use
Avatar
nice :+1.
Avatar
now, ill try to make it work from everywhere
19:20
okay, just have to put the .pyd in site-packages without a subdirectory named twmap
Avatar
nice that it works at least this way, I'll get a win wm again and try to figure out how to get it to work via pip
Avatar
nice 64p team cannot be disoplayed in top5 😄
Avatar
[quakenet] ChillerDragon BOT 2022-11-12 19:26:46Z
o m g!
19:26
after i spend one hour buildin ddnet i relaized..
19:27
ddnet can not even do 0.7
19:27
ok fuck this good night ima sleep now
Avatar
Avatar
Patiga
nice that it works at least this way, I'll get a win wm again and try to figure out how to get it to work via pip
note also that my dll is 12MB while pip .pyd was only 5MB
19:30
so my compilation seems to statically link more stuff
Avatar
on pip its without symbols iirc
19:30
you can compile with --strip to have a similar file size
19:35
seems like I shouldn't cross compile from linux to windows
19:37
it doesn't explicitly state that a natively compiled wheel doesn't require those things to be installed, but I'd assume so since that incompatibility notice is only in the cross-compiling section
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 (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-addres...
Avatar
At global scope: cc1plus.exe: note: unrecognized command-line option '-Wno-nullability-completeness' may have been intended to silence earlier diagnostics I get this warning whenever the compiler prints another error or warning. Shouldn't this warning be prevented by using add_cxx_compiler_flag_if_supported in CMakeLists?
Avatar
no, because the compiler pretends to know all -Wno- flags
20:02
for future and backward compatibility
Avatar

Checklist

  • [ ] Tested the change ingame
  • [ ] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [X] 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-addres...
20:27
ea06a13 Fix aliasing warnings in CGameContext::OnMapChange - Robyt3 c988a71 Fix aliasing warnings in CClient::DemoPlayer_Play - Robyt3 7185f02 Reduce duplicate code by using loop for snapshot types - Robyt3 3c5e2ad Merge #6032 - bors[bot]
Avatar
a113a03 Add tests for overloaded hash operators, use operator instead - Robyt3 ab42651 Add test for the CSemaphore wrapper - Robyt3 dab6bbf Add more tests for str_utf8_comp_confusable - Robyt3 0bf31c6 Add tests for str_utf8_to_skeleton - Robyt3 7c63d3c Remove internal utf8 confusable functions from system.h - Robyt3 bc4a5ee Merge #6033 - bors[bot]
Avatar
How to cross compile from linux to windows? I am on arch and installed mingw-w64-gcc after that I tried to run cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/mingw64.toolchain .. inside a build4w folder. But it returns You must install Curl/SQLite3/libpng/Freetype/Ogg/Opus/Opusfile/SDL2/Vulkan libraries to compile the DDNet client. Should do I specify that I only want to compile the server via -DCLIENT=OFF?
21:24
Would that cause any problems to the server executable?
Avatar
have you initialized the git submodule?
21:27
git submodule update --init --recursive
Avatar
ok that was it for that error :D
21:29
now it throws this one CMake Error in CMakeLists.txt: IMPORTED_IMPLIB not set for imported target "GTest::gtest" configuration "Release".
Avatar
Avatar
Mr.Gh0s7
now it throws this one CMake Error in CMakeLists.txt: IMPORTED_IMPLIB not set for imported target "GTest::gtest" configuration "Release".
try -DCMAKE_DISABLE_FIND_PACKAGE_GTest=ON
Avatar
thanks a lot that was it :D
Avatar
Avatar
Mr.Gh0s7
now it throws this one CMake Error in CMakeLists.txt: IMPORTED_IMPLIB not set for imported target "GTest::gtest" configuration "Release".
can you show me the complete error message?
22:00
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Avatar
ty
Avatar
5f54b4e Add 5 € donation by 'Schwi♫ ^^ - def-
22:27
Exported 752 message(s)