Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2020-06-19 00:00:00Z and 2020-06-20 00:00:00Z
08:42
e36dc36 Fix demos header (fixes #2278) - def-
Avatar
just tested the switchable freeze tiles. they are switchable using switches with the correct number. the delay value is used for amount of seconds the tile will freeze for
09:30
the switchable freezes are used on "rocketiskey"
09:31
small test map
Avatar
@Patiga TIL
Avatar
same actually
09:34
and now im curious if the delay also does some fancy stuff on some other tile in the switch layer
09:36
hm neither works on hearts nor the freeze turrets
09:37
neither on the bullet
09:38
guess freeze is just a niche special case
Avatar
ᶰ°Konͧsti 2020-06-19 09:59:08Z
Switchfreeze with delay 0 isnt freeze feelsbadman
09:59
u always have to put ugly number on it
Avatar
i guess i could try to write an introductory article to ddnet for the ddnet wiki some day
Avatar
@deen that explanation is good, but we can do even better and add a "Learn" tab in the ddnet client
12:35
there we can explain simple tricks
12:35
from the wiki maybe
12:36
this is what dota 2 does, a game which kinda lacks a tutorial too xD
12:36
12:36
well. our thing can be only text for now
12:38
ill try adding it
Avatar
Could also just link to a website and provide some info on the wiki? Like Patiga suggested
Avatar
we can do both
12:44
hmm
12:44
we should also mention the discord in the client imho
12:44
at the end, its the best way to get help
12:45
the problem is that the name introduction text can only be seen once
12:45
and maybe someone rushes in
12:45
a learn tab is always there
12:45
with useful links etc
Avatar
True discord is huge help
Avatar
Heh it could be cute to have a learn tab with embedded gifs if those weren't such a pain to render
Avatar
idk about gifs
13:27
but
13:28
would be awesome if player drawing could be decoupled from physics updating
13:28
in players.cpp
13:28
what a mess
13:28
tee drawing*
Avatar
I think you can render tees without too much trouble
Avatar
well im looking into it
Avatar
We use players.cpp rendering for the scoreboard too
Avatar
but you have a net character there right
13:30
cnetobj
13:30
learn tab is offline
Avatar
You can create CNetObjs np
13:30
but it's ugly 😄
13:33
i want to add subtabs
13:33
but it would look better with images
13:34
we also dont have much text rendering stuff
Avatar
Yeah text is quite awful
Avatar
what deen wrote is rly good enough
13:39
nobody wants to read 10 minutes before playing..
13:39
nobody even reads irl manuals
13:40
just add a link to the wiki/dc and if the guy is rly the curious type hes just gonna go there
Avatar
tutorial map would be best
13:54
when new players join they just join a random server and usually get their ass handed to them on block or smth so they just rq
Avatar
that text looks familiar ^^
13:57
i hate buttons
13:57
ddnet ui code cammostripes
13:58
@Patiga ye its from the wiki
Avatar
if its gonna be text form anyways, you could try to somehow integrate the wiki. it does already support a kinda consistent video format and actually has the mentioned topics covered
14:00
(and also is very extendable)
14:00
with curl and some magic
14:00
i could do it
14:00
if the wiki had an api
14:00
even better
14:01
rendering video is more complicated i think
14:01
we dont even have proper links
14:01
it is OS dependent btw
14:02
hmm
14:03
i see its made out of markdown files
14:03
maybe making a super simple markdown parser
14:03
maybe just a link to the wiki
14:04
problem solved
Avatar
Trafalgar Law 2020-06-19 14:14:38Z
Looks nice Ryozuki 👍
Avatar
well that wont exist
Avatar
@Learath2 look my comment
Avatar
Ah, probably some environment issue, interesting
Avatar
it would be awesome to document or make more functions for the UI Split things, for example, if u want to add something inside another rect and padd it u have to use HSplitTop(20, 0, MyRect)
15:22
a bit confusing overall
15:22
"split" makes 0 sense here
15:22
0 is a nullptr
Avatar
Hm yeah we could probably add more things
15:23
HMarginTop maybe
Avatar
thats confusing too
15:23
is it a margin inside
15:23
or along it
15:23
:P
15:24
MainView.HSPlitTop(20, 0, Box); this puts the box inside with a padding of 20 on top
15:24
tell a new coder
15:24
how to figure out this
15:24
it took me 5 mins
15:24
maybe im stupid
Avatar
Margin along?
Avatar
margin usually is for components that are that the same level
15:25
padding is when one is inside another
15:25
im not talking about margin here
15:25
that are at*
15:25
english broken
Avatar
With the way we render, does padding/margin even differ?
Avatar
there is vmargin
15:26
hmargin and margin
15:26
but hsplit
15:26
is its own world
Avatar
vmargin, hmargin and margin all behave more like padding then margin
15:26
.s/then/than/
Avatar
we should mimic css imho
15:27
just simple functions
15:27
not split stuff
Avatar
mimic the box model? it'd be very hard tbh
Avatar
especially if you want things like flexbox
Avatar
not that
15:28
i just want margin and padding
15:28
not splits
Avatar
Well the issue is that we don't have a hierarchy
Avatar
margin and padding only differ by how they influence their siblings
Avatar
the best would be to define ui design in a custom file or smth and hten have our own render engine for that
15:29
maybe its overkill
15:29
i always go to far
15:30
/home/runner/work/ddnet/ddnet/src/base/system.c:3258:2: error: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Werror=unused-result] system(aBuf);
15:30
ugh
Avatar
Splitting UI is much harder in our case, we have all our ui in immediate mode
Avatar
(void*) fixes that right
Avatar
(void) should be enough
Avatar
@deen are you planning on doing the steam release?
Avatar
Can i run the client on a Raspberry pi and how?
15:33
raspian
15:33
apt install ddnet
15:33
iirc
Avatar
You compile it, then you run it 😄
15:33
Oh we have it packaged for arm too?
15:33
looks like it, or idk
15:34
this one is more normal
Avatar
ok thanks
15:34
i try it :D
Avatar
just apt install it
15:35
@Learath2 /home/runner/work/ddnet/ddnet/src/base/system.c:3258:2: error: ignoring return value of ‘system’, declared with attribute warn_unused_result [-Werror=unused-result] (void)system(aBuf);
15:35
compilers are turning smarter
15:35
i think u need void*
15:35
i remember seeing it somewhere
15:36
ok no
15:36
idk
Avatar
It's probably because this is explicitly marked with warn_unused_result
15:36
Just don't ignore the result?
Avatar
what should i do, i cant return it on the function cuz its diferent on windows
15:37
maybe static_cast
Avatar
How does that even compile btw? isn't res undefined?
Avatar
i fixed that already
Avatar
Ah you pushed again
Avatar
reload
15:38
no static_cast in c
Avatar
if (system(aBuf)) {} lol
Avatar
thats rly ugly
lol 1
Avatar
Well you can return it too
15:39
return ShellExecuteA() > 32
15:39
return system() == 0
15:40
and hope that warn unused forgets about it when you return 😄
15:40
Well you can explicitly do nothing when you call open_link I guess
Avatar
ill just add a dbg msg
15:42
force pushed
Avatar
deen is keeping secret what he is doing
15:43
justatest
Avatar
bigsecret
Avatar
windows failed
15:44
yay
15:44
windows best
Avatar
u dont use those links
15:44
just do "sudo apt install ddnet"
15:44
in temrinal
15:44
terminal
Avatar
I lost my steam developer badge because some people were scamming others using it 😦
Avatar
@Learath2 D:\a\ddnet\ddnet\src\base\system.c(3255,75): warning C4047: '>': 'HINSTANCE' differs in levels of indirection from 'int' [D:\a\ddnet\ddnet\debug\engine-shared.vcxproj]
15:44
xdd
Avatar
just do "sudo apt install ddnet"
he can't find the package
15:45
im using a raspberry pi 3 b
Avatar
did u "apt update"
Avatar
. The return value is cast as an HINSTANCE for backward compatibility with 16-bit Windows applications. It is not a true HINSTANCE, however. It can be cast only to an int and compared to either 32 or the following error codes below.
Avatar
did u enable repos too
Avatar
So you can safely cast the result to an int before checking >32 😄
Avatar
enable main contrib non-free
15:46
maybe u then can find it
15:46
/etc/apt/sources.list
15:46
(after apt update)
Avatar
@Learath2 r u on windows
Avatar
nope, even worse macOS
Avatar
D:\a\ddnet\ddnet\src\base\system.c(3255,76): error C2220: the following warning is treated as an error [D:\a\ddnet\ddnet\debug\engine-shared.vcxproj] D:\a\ddnet\ddnet\src\base\system.c(3255,76): warning C4311: 'type cast': pointer truncation from 'HINSTANCE' to 'int' [D:\a\ddnet\ddnet\debug\engine-shared.vcxproj]
15:51
i hate windows
Avatar
wat...
15:54
The cast is safe, I think you should find a way to suppress the warning
15:55
Imagine there being a devblog about something as trivial as this
15:55
We discussed earlier the history behind the the return value of the ShellExecute function, and why its value in Win32 is meaningless aside from testing it against the value 32 to determine whether an error occurred. How, then, should you check for errors?
15:56
I guess you can try casting the 32 to a HINSTANCE instead
Avatar
i guess i have to cast the int
Avatar
this is in my sources list: deb http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi

Uncomment line below then 'apt-get update' to enable 'apt-get source'

#deb-src http://raspbian.raspberrypi.org/raspbian/ stretch main contrib non-free rpi
15:58
@Ryozuki
Avatar
so u still dont get ddnet?
Avatar
I think we have ddnet on debian since buster, maybe you are on an old version?
Avatar
he is on stretch
Avatar
Linux raspberrypi 4.14.98-v7+ #1200 SMP Tue Feb 12 20:27:48 GMT 2019 armv7l GNU/Linux
Avatar
Do lsb_release -a
16:01
or cat /etc/issue if you don't have lsb_release for some reason
16:02
Anyway, stretch is too old, you'll need to build yourself
Avatar
No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 9.11 (stretch) Release: 9.11 Codename: stretch
Avatar
Yep stretch too old
Avatar
If you've compiled anything before it should be simple enough with cmake
16:07
it compiled now
Avatar
heya guys
Avatar
[quakenet] Learath2 BOT 2020-06-19 16:13:34Z
ayeh
Avatar
how much does ddnet.tw/irclogs weigh?
Avatar
[quakenet] Learath2 BOT 2020-06-19 16:14:08Z
probably a lot
16:14
okey thanks Learath2
Avatar
[quakenet] Learath2 BOT 2020-06-19 16:15:47Z
actually it's onl 30M I forget how little space text takes
Avatar
[quakenet] Learath2 BOT 2020-06-19 16:16:44Z
y
Avatar
interesting
Avatar
[quakenet] ChillerDragon BOT 2020-06-19 16:38:36Z
Yea its not too big i download them from time to time to grep something
Avatar
@deen you can merge the 0.7 thing, then the color thing, then I need to do an extra commit and we can start testing
Avatar
[quakenet] ChillerDragon BOT 2020-06-19 17:53:57Z
:(
Avatar
[quakenet] Learath2 BOT 2020-06-19 17:57:41Z
ChillerDragon: y?
Avatar
Ah the patch for the color thing doesn't apply anymore
18:40
I'll push it by hand
Avatar
d200ef0 Remove ugly hack - Learath2 75e96aa Get rid of more magic constants, adapt to 0.7 - Learath2 10c4843 Merge #2275 - bors[bot]
Avatar
In case of emergency, stops accepting 0.7 clients, registering on 0.7 masters and replying to 0.7 serverinfo requests.
20:18
direct download
Avatar
@heinrich5991 would the 0.7 layer break teehistorian2demo btw?
Avatar
yes
20:20
it does
Avatar
follow-up: is it at least easy to fix?
20:21
The input messages haven't changed
Avatar
yes, they still work
20:21
but it uses info for player names
20:22
easy to fix.
20:22
depends on whether you want to do it right
20:22
currently it doesn't understand the 0.7 protocol at all
Avatar
As long as we can get something working relatively quick, we can fix it properly later
20:23
Besides, we aren't saving entire packets and most of the breaking changes are on the lowest levels of the protocol
20:23
@heinrich5991 if you merge mine, I'll merge yours 😉
Avatar
da68923 Implement a switch for 0.7 compatibility - Learath2 710b045 Merge #2282 - bors[bot]
20:37
e294da4 teehistorian: Track whether clients join via the 0.7 protocol - heinrich5991 5b4227f Merge #2283 - bors[bot]
Avatar
i managed to make it smaller and added the discord link too, it looks fine less on some resolutions
troll1 2
20:38
720x400 looks fine but 1024 doesnt
20:38
which idk, but to me makes 0 sense
20:38
4:3 has a scaling problem i think
Avatar
nice friendlist
20:39
it works fine less on 4:3 resolutions
20:39
well and 5:4
Avatar
I wonder if we could/should move the discord link to the right with the small buttons and use an icon instead
20:39
how we can get icons
Avatar
I actually don't know where we get icons and how we add them tbh 😄
20:40
I think we craft a merged font
Avatar
well im not a font speciallist
20:41
someone knows how to do it?
Avatar
me neither, so let's leave it out until we get a font specialist? 😄
20:42
Or maybe we can add a link to the discord in the wiki page
Avatar
that would be relatively painless 😛
Avatar
moment of truth
20:43
best
Avatar
let's see if the 0.7 compatibility thing blows everything up
Avatar
btw ucan merge it then
20:43
unless u want to make sure it works on mac
20:43
which should
20:44
the wiki has a discord link, but its a bit hidden
20:44
maybe put it also on the front page
Avatar
@Patiga ^
20:46
lmao
20:46
discord wasnt even invented in 2014
Avatar
Also there seems to be something wrong with the logo on the wiki. On firefox it show up a ghastly white and on chrome it doesn't show up at all
Avatar
thats weird
20:50
hugo-learn.js?1592515304:20 Uncaught ReferenceError: images is not defined at hugo-learn.js?1592515304:20
Avatar
Okay ABORT
Avatar
How did we forget that maps need converting
20:52
That's why we were holding off on merging, I even had a tickbox...
Avatar
did you tick it
Avatar
no, but we merged before ticking it 😄
Avatar
@deen how will we do the maps?
20:54
@heinrich5991 actually how will we serve different maps at all? wouldn't the sha and crc change if we embed the stuff
Avatar
yes
Avatar
eeeeeeeeh
Avatar
load both maps?
Avatar
@Ryozuki added direct links
Avatar
on the left side?
20:57
it still feels like not visible enough
20:57
i think discord is where the community currently lives, pretty important
20:58
but maybe its enough idk
Avatar
@Learath2 the firefox one is the correct one in theory, dont know why it doesnt work in chrome o.o
Avatar
@heinrich5991 btw there seems to be an issue with git revisions for the last year or so
20:59
the servers are still reporting running e02cd322ade5f479
Avatar
that's verybad
Avatar
Gummibaer12345 2020-06-19 20:59:42Z
hey 🙂 can i ask if someone could make a tab on the ddnet client for Discord invitation links? wouldnt it be cool if people open up the ddnet client and they could just join this discord or any other discord servers tw related?
Avatar
Building sites … WARN 2020/06/19 22:59:23 Page.Hugo is deprecated and will be removed in a future release. Use the global hugo function. WARN 2020/06/19 22:59:23 Page.URL is deprecated and will be removed in a future release. Use .Permalink or .RelPermalink. If what you want is the front matter URL value, use .Params.url WARN 2020/06/19 22:59:23 Page.UniqueID is deprecated and will be removed in a future release. Use .File.UniqueID WARN 2020/06/19 22:59:23 .File.UniqueID on zero object. Wrap it in if or with: {{ with .File }}{{ .UniqueID }}{{ end }}
20:59
gotta fix that
Avatar
@Gummibaer12345 LOL right as ryozuki was proposing that
Avatar
Gummibaer12345 2020-06-19 21:00:22Z
lol xD ok
Avatar
we could, but we have to fix resolutions or add a icon
21:01
@Patiga btw logo on wiki is not shown on chrome
Avatar
@Ryozuki https://github.com/matcornic/hugo-theme-learn/issues/350 apparently fixed recently, wanna update the submodule? ^^
Hi, is the following warning WARN 2019/12/05 22:35:01 Page.Hugo is deprecated and will be removed in a future release. Use the global hugo function. WARN 2019/12/05 22:35:01 Page.URL is deprecated ...
Avatar
okay reverted the servers to 7d428676e296cf2f50aea9feb3bf435cc6490c46 just incase
Avatar
@Patiga can you give me access
21:04
i requested it on there
21:04
or u prefer me to clone
Avatar
So we generate 0.7 versions of the maps with everything embedded and add a _7 suffix
21:05
*
Avatar
would be better, zwelf and me also accept each others merge requests @Ryozuki
21:10
TIL 10 maps out of ~1800 have filled in the license: "ddmax/maps/Brick World 2.map": Do not copy it! "insane/maps/Genericore 6.map": idc'fkm8! "novice/maps/Undrag2.map": SpeedCore License 2015 (c) "race/maps/run_escape_the_darkness.map": (CC) BY-SA "race/maps/run_galaxy.map": (CC) BY-SA "race/maps/run_golden_toilet.map": Copyright 2012 "race/maps/run_greygrey.map": 2012 "race/maps/run_sunsetcave.map": (CC) BY-SA "solo/maps/Nyan Cat.map": free use "solo/maps/ShotFF.map": Public
Avatar
@Patiga why do u have a hugo-learn.js when the theme ships one?
21:16
btw it errors and its outdated
Avatar
@Learath2 oops, forgot about the maps as well. we have them in ~/servers7/maps. could you just take those for now?
21:20
@Patiga that's more than I expected 😄
21:21
I like "idc'fkm8!"
Avatar
@deen I guess I can symlink that as maps7
21:21
I'm wondering whether I can crc32 the entire loaded map at once
Avatar
^^ kinda surprised that our candidate (CC) BY-SA is the most common one
Avatar
Well I'll load the 7 version of the map into memory, than I need to take it's crc
21:23
I'm wondering whether I need to chunk it up or zlibs crc32 doesn't mind it being a rather large chunk
21:23
@Patiga
21:23
I think we discussed it before
21:23
That's why it's the most common
Avatar
ah, interesting
Avatar
@Patiga curious u didnt see that makes an error xd
21:24
u remove the images definition, so what does images.each reference? :p
Avatar
uh, zwelf took care about that part, im not sure
Avatar
made a pr
21:26
wait
Avatar
ill let zwelf merge it
21:34
fixed
21:34
svg needs a size in chrome
Avatar
awesome :)
Avatar
[quakenet] Learath2 BOT 2020-06-19 21:55:59Z
and here I thought I'd go to sleep nice and early today
Avatar
man markdown limits my creativity
Avatar
@Ryozuki Including the fact of partially being able to use html in markdown?
Avatar
im trying to find how to use html in markdown in hugo
Avatar
ok it implements what i wanted anyway
22:00
or not
Avatar
thanks
Avatar
Preliminary testing suggests this works fine. Albeit it is not the prettiest thing ever.
Avatar
failed to extract shortcode: template for shortcode "rawhtml" not found
22:01
oh
22:01
i see
Avatar
ᶰ°Konͧsti 2020-06-19 22:18:25Z
Learath2 is playing tw :O
Avatar
It's making my room nice and toasty
Avatar
the more i edit this wiki the more i hate it
Avatar
lol, what did it ever do to you?
Avatar
no offense, but whoever decided to copy the .css from the theme submodule to the repo directly
22:19
did not think this through
22:20
i also dislike this theme
22:20
it lacks contrast
22:20
the font is rly small
22:20
im going to try to fix it after i fix the mess
Avatar
https://learath2.info to observe my web design prowess
Avatar
tbh i would redo the wiki using only html and https://tailwindcss.com/ to make it beutiful, but i rly dont want to waste other ppl effort
Avatar
Eh, a CMS is easier to maintain in the long run
22:22
i thnk the best course of action would be to use https://www.gamepedia.com/
Explore our wiki library, discover upcoming indie titles, and watch video tutorials that help you Know the Game.
22:22
its rly good tbh
Avatar
really?
22:23
using actual wiki software helps too 😼
Avatar
Seems it uses actual mediawiki
Avatar
a wiki should be really readable
22:23
not fancy
Avatar
is anyone elses ghost black
Avatar
it can be somewhat fancy
Avatar
when you finish a map
Avatar
i tried requesting a wiki on there, but i didnt request it as the game author
22:24
probably why they ignored me
Avatar
@Alexander screenshotpls
Avatar
now i feel rly bad for saying this
22:25
i jsut want the best for ddnet
Avatar
@Ryozuki we copied the css because the theme has one broken text color which we needed to fix if you think a different theme would be better, pls do propose it we chose hugo + git since we wanted to have everything free, with version control and easily copyable
22:34
hugo with its markdown makes it quite ez to change the theme
Avatar
hugo is limited when it comes to wiki stuff
22:34
its meant for blogging
22:34
wikis have a better contribution system, they are also open
22:35
they have rly good translation systems too
22:35
and templates
22:35
specially templates
22:35
they also recently have a visual editor
Avatar
tbf we don't expect a lot of contribution, do we?
Avatar
u should expect
22:37
also if they find the process this difficult
22:37
no one will do it
22:37
u expect ppl to git clone
22:37
u are already in a bad path
Avatar
sadly (as far as im aware) those wikis are not free, contribution at this scale is easily managable with merge request
22:37
mediawiki
Avatar
mediawiki is free
Avatar
is made by wikipedia
22:37
completly free
22:37
and open
22:37
GPL-2
Avatar
interesting, i will have a look
Avatar
albeit mediawiki doesn't always look the prettiest
Avatar
we rly should remake the wiki using it
22:38
i made the wiki long time ago
22:38
but i was dumb and deleted everything xD
Avatar
I think this does look a fair bit more modern then mediawikis dated design
Avatar
deen would justn eed to install it, the only process that cannot be done via the website is installing plugins
22:38
we can choose them upfront
22:38
then deen can forget
22:38
and allow us to edit the wiki
22:39
This guide provides instructions on how to install and configure MediaWiki, both manually, and by easier alternatives. Installing more than one wiki and installing existing wikis are also covered. The appendices provide links to more detailed installation notes for specific s...
22:39
i would gladly install it if im given access tho
22:39
@Learath2 mediawiki has themes
Avatar
It's been a fair while since I last used mediawiki but back in 2010 it was really tough to theme
Avatar
Like the actual structure of pages was pretty much set in stone
Avatar
this theme comes with the mediawiki
22:40
its called timeless
Avatar
i'll get in touch with zwelf to talk with him about it
Avatar
if you accept we can work together
Avatar
If not, @Ryozuki will make you an offer you can't refuse
Avatar
which one? justatest
22:42
just leaving this here
Avatar
a good thing about the current wiki is that it won't be deleted when someone deletes some server
Avatar
if the mediawiki is installed on ddnet.tw we also dont have to worry
Avatar
suddenly the ddnet admins would need to worry
Avatar
about?
Avatar
about hosting, backing up and securing a mediawiki instance
Avatar
thats why i suggested gamepedia.com
22:50
its not like its that complicated mediawiki tho
Avatar
it's possible to mess it up, see previous instances of the wiki
22:50
yours wasn't the first one that disappeared
Avatar
they were never hosted by ddnet themselves
22:51
themself
22:51
**
Avatar
anyway. since we didn't create the content, I think it's not on us to decide how to host the ddnet wiki
22:51
I think you can talk to @Patiga for that
Avatar
well content can be recreated
22:51
not saying anything tho
Avatar
sure, make your own wiki
22:52
but why duplicate effort
Avatar
i would if i were sure it would be hosted on ddnet or gamepedia
22:53
well ill just wait on what patiga and welf has to say
22:53
zwelf
Avatar
1:47 AM] heinrich5991: a good thing about the current wiki is that it won't be deleted when someone deletes some server
This is actually a nice point
Avatar
gamepedia sux too many ads
Avatar
@louis who doesnt use a adblocker in 2020
Avatar
ur stupid
Avatar
there are so many sites which are like "plz disable adblocker!!" so i just turn it off
Avatar
u know
23:20
ill tell u trick
23:20
add a dot
23:20
at the end of the domain
23:21
also sites that ask u that are usually trash
Exported 493 message(s)