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-10-26 00:00:00Z and 2020-10-27 00:00:00Z
Avatar
are switchable envelopes possible
00:28
and an option to stop an envelope from looping at the end of it
00:28
if so it would be insane for mappers
Avatar
Yet another "Crazy Visual Update" everyone will doubt about. Made additional argument for DoButton_MenuTab to make button animate by upscaling it on hover/active state. That's all for now. It's first step in adding some light animations to UI. Making this PR so you can start your favorite discussions about new visuals and so on. No screenshots, cuz that's animated changes. Look for video on Discord: [Discord Message Link](https://discordapp.com/channels/252358080522747904/2959083909564334...
Avatar
Дядя Женя 2020-10-26 01:20:01Z
Look at this duuuude, he's making visual changes agaaain
Avatar
"visual changes" adding visual clutter with no benefits
Avatar
u should code switchable envelopes + no loop setting on envelopes btw 😃
Avatar
Дядя Женя 2020-10-26 01:25:22Z
u r too old
01:29
text grows too big
@louis don't worry, I'll change font 😏
Avatar
Дядя Женя 2020-10-26 01:44:38Z
ok, Chiller, I need you to explain me how to force push, so I don't stack any new commits for my PR
Avatar
why force push
Avatar
4f44472 Add non-space blanks: Hangul Filler characters - def- 58afe9f Merge #3184 - bors[bot]
Avatar
040876b Log close error to console - def- 61aa47d Add memcheck/asan/ubsan to readme - def- b17fb28 Merge #3107 #3155 - bors[bot]
Avatar
Дядя Женя 2020-10-26 03:43:25Z
Btw can't you just merge PR with one single commit, without whole commit history? Im sure there is a way to do that and it's intended
Avatar
ᶰ°Konͧsti 2020-10-26 04:27:46Z
@louis maybe give the "end" of the envelope a veeeeery long time
04:27
So it wont reset
Avatar
ye i guess
04:28
better to have good feature tho
04:28
it would be good with switchable envelope
Avatar
how would no loop envelopes be good without switchable envelopes
Avatar
its used in infclass lol
04:32
not useful in ddrace tho
04:32
except maybe the start of a tourney map
04:32
or countdown loading screen
Avatar
Do we have RC builds
Avatar
19ce3fa Disable text alignment for editboxes - Jupeyy 08e0c03 Merge #3189 - bors[bot]
Avatar
74515d4 UI Elements - Jupeyy b0803b2 Merge #3077 - bors[bot]
Avatar
no loop envelope also good if u want the animation to play once after switch, like opening a door
Avatar
no capital letters, no spaces

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 if it works standalone, system.c especially
  • [ ] 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...
Avatar
23c0051 consistent formatting for dbg_msg - def- 4a3a0a7 Merge #3194 - bors[bot]
Avatar
14539a8 Remove option to make map sounds external - Patiga 8d7b002 Remove obselete line - Patiga 331c9f6 Merge #3124 - bors[bot]
Avatar
Дядя Женя 2020-10-26 10:03:53Z
@Deleted User how do you push to your PR to not generate any new commits in history?
Avatar
git commit -a --amend && git push -f adds all changes to last commit and force-pushes it to server
Avatar
Дядя Женя 2020-10-26 10:21:44Z
@deen but maybe I can just push my new commits to PR and then you merge is as one?
10:21
Would it work that way?
10:22
I don't understand idea of updating PR branch to keep everything clean
Avatar
@Дядя Женя bors doesn't allow to do that, and we use bors for merging
10:24
you can also squash all commits at the end, use git rebase -i upstream/master at the end and follow the instructions to merge all commits into one
Avatar
Дядя Женя 2020-10-26 10:26:29Z
Whats upstream/master
Avatar
upstream and origin are the two remotes you configured IIRC
10:27
upstream points to ddnet/ddnet and origin to banana090/ddnet
10:27
upstream/master is the newest change of the official ddnet that you downloaded
Avatar

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 if it works standalone, system.c especially
  • [ ] 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-addresssanitizer--u...
12:00
81bc68d Add add_map_votes command for easier local map testing - def- bb2f446 Escape map in change_map - def- 9b81001 str_truncate instead of str_copy - def- 499cbb2 Merge #3128 - bors[bot]
Avatar
0748ad7 Finish time in HUD: Show hours - def- 3d94f9c Finish chat msg: Add comment - def- 8dfcd67 Add str_time/str_time_float - def- 67178b0 Use str_time/str_time_float everywhere - def- bd14545 Show times with hours in SQL (fixes #3140) - def- a03df3a Merge #3141 - bors[bot]
Avatar
Дядя Женя 2020-10-26 12:14:11Z
@deen there is a DoButtonLogic code which returns INT corresponding to flags of mouse buttons being pressed (as I think)
12:14
how could I check for button I need here
12:14
left mouse button
Avatar
9c8c364 Use str_truncate more often - def- 9a257a7 Merge #3195 - bors[bot]
Avatar
yo @deen can you explain me how this: https://github.com/ddnet/ddnet/blob/master/src/tools/map_convert_07.cpp#L225 ever worked? xd
DDraceNetwork, a cooperative racing mod of Teeworlds - ddnet/ddnet
Avatar
what's wrong with it?
13:55
oh, type isn't set
Avatar
Type is set to 0, but never changed
Avatar
I probably broke it at some point, oops
Avatar
well dunno, but i used that tool often and it worked xD
13:56
so strange xD
Avatar
Дядя Женя 2020-10-26 13:57:39Z
MAPITEMTYPE = 0?
Avatar
wtfff
13:58
the git blame is also broken
13:58
somehow
13:58
i am lost rn
13:59
how can the git blame commit show that its still there
13:59
but the master does not contain it
Avatar
do you use tig blame?
Avatar
github
14:01
probably it was removd by some clang stuff
14:01
bcs pItem was set but not used inside the loop
14:01
but git blame doesnt show it for some reason
Avatar
git blame doesn't really show removals
Avatar
oh ok
14:02
/media/ddnet/src/game/client/components/statboard.cpp:288:3: warning: Value stored to 'tw' is never read [clang-analyzer-deadcode.DeadStores]
Avatar
nice
Avatar
that was just the normal git history xd
Avatar
Broken in https://github.com/ddnet/ddnet/commit/5c1b8cd2215275a95e8ce6bacc45c31b6c7a4c17#diff-17a71d0838a3f107d2baf573a0885c3b7727266b432a13836525737e83a81a58 Thanks to Jupstar for noticing

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 if it works standalone, system.c especially
  • [ ] Considered possible null pointers and out of b...
Avatar
[quakenet] ChillerDragonTL BOT 2020-10-26 14:28:33Z
git log -S is bae
Avatar
@Дядя Женя why are you always toxic btw
Avatar
I'm wondering the same thing, mostly hurts your own chances of getting your changes reviewed and merged.
Avatar
Дядя Женя 2020-10-26 14:36:12Z
thats who I am I guess
Avatar
But it's not conductive to working in a team and I guess your plan isn't to fork ddnet and maintain it all on your own
Avatar
Дядя Женя 2020-10-26 14:36:46Z
also I got fired today if you're interested xD, but that's not the reason Im acting toxic (edited)
Avatar
Oh, sorry about that
Avatar
Дядя Женя 2020-10-26 14:37:00Z
np
14:37
@Deleted User u can't use ints to calculate percentage values. I mean 0-1 multipliers
Avatar
you can convert the times to floats or doubles on fly
Avatar
Дядя Женя 2020-10-26 14:38:25Z
yes, but why
Avatar
x86 uses higher internal precision anyway
Avatar
Дядя Женя 2020-10-26 14:38:33Z
if you can store it already
Avatar
bcs float calculations are not accurate
Avatar
Дядя Женя 2020-10-26 14:38:45Z
time is not consistent in any way
Avatar
especially not if u just add 100000
14:39
well i had a project that used floats and after around 20minutes, it was around 200ms off
14:39
just bcs of the floating point calculations
Avatar
Дядя Женя 2020-10-26 14:40:04Z
isn't time() here overflows?
Avatar
dont even use time
14:40
its pretty inaccurate by design
Avatar
e55eecc Fix map_convert_07 - def- 42fae14 Merge #3196 - bors[bot]
Avatar
Дядя Женя 2020-10-26 14:40:37Z
microseconds are just 1 zero lower (edited)
14:41
idk. I can't store int64 in SUIAnimatior
Avatar
why not
Avatar
Дядя Женя 2020-10-26 14:41:34Z
it does not allow me to do so xD
14:41
hahaha
Avatar
how that
14:42
its not inside any IO, so it shouldnt matter what u put inside it
Avatar
Дядя Женя 2020-10-26 14:42:42Z
itsn't it long long in cpp?
Avatar
just use the sized data type int64
14:43
then its always 64 bit
Avatar
Дядя Женя 2020-10-26 14:43:36Z
so what's the point of that
14:43
if you'll convert it to float anyway
Avatar
well generally, its nicer if time calculations only use the differences, and since they can be small, floats tend to be inconsitent
14:44
anyway have to leave now, we can discuss later
Avatar
Дядя Женя 2020-10-26 14:45:32Z
@Deleted User r u happy with that?
14:45
can't remove float
14:46
but ur problem solved cuz difference will not be greater then 100.000
Avatar
made the biggest review ever
15:05
monkalaugh
Avatar
Дядя Женя 2020-10-26 15:13:56Z
Avatar
@Дядя Женя is the animation meant to take 1 seconds or what
Avatar
clang-tidy is so slow, especially the analyzer
15:40
But makes sense, otherwise you'd just include those things as regular compiler warnings
Avatar
Дядя Женя 2020-10-26 15:43:21Z
@Deleted User yes
Avatar
bcs u changed everything to 100000
Avatar
Дядя Женя 2020-10-26 15:43:44Z
because microseconds
Avatar
a second is 1million microseconds
Avatar
Дядя Женя 2020-10-26 15:44:09Z
turns out its 0.1 sec now?
Avatar
yes, is that intended?=
Avatar
Дядя Женя 2020-10-26 15:44:24Z
doesn't matter, just changing code randomly to make it look good
Avatar
xd
Avatar
Дядя Женя 2020-10-26 15:44:47Z
u can divide by million and multiply by 0.1
15:45
UNNECESARY CALCULATIONS
Avatar
nono its ok
15:45
if its meant to be 0.1 seconds
15:45
its fine
Avatar
Дядя Женя 2020-10-26 15:45:19Z
or will it be pre compiled 🤔 (edited)
Avatar
thats why i am asking
Avatar
so if i understand correctly, the map_convert_07 tool checks that all the mapres have width and height divisible by 16 and it tries to embed external mapres
Avatar
for 0.7 yes
15:48
it also checks if max texture count is not over 64.. even tho it creates an overfly while doing it xD
15:48
just noticed xD
Avatar
what i dont understand is why the tool also embeds external images as rgb, when it doesnt support the image item type that vanilla has that supports rgb
Avatar
are any vanilla textures rgb only?
15:49
it only "reembeeds" vanilla textures
15:49
so it doesnt look different
Avatar
the item type that ddnet has only supports rgba
Avatar
yes
Avatar
Дядя Женя 2020-10-26 15:50:18Z
how do I delete branch and every commit made on it? (edited)
Avatar
vanillas item type supports rgb as well, only if it is explicitly stated
Avatar
yeah but whats the sense
15:50
the vanilla textures are RGBA anyway
Avatar
their image item type has an int more, 0 -> RGB, 1 -> RGBA
15:51
yea, just find it weird that it acts like rgb is okay ^^
Avatar
so your point is, that is sets the value to zero while it should be 1 or what?
Avatar
wait im just gonna make a pull request if thats okay
15:52
my point is that it just should cancel on finding an rgb image
15:52
it doesnt have that value
15:52
so it simply cant handle rgb
Avatar
yes, but is that a problem?
15:52
its dead code then
15:52
but yeah create pr
Avatar
well it enables the possibility to create invalid maps
15:53
if you replace the vanilla images with rbg ones ^^
Avatar
but why would you want to destroy your own maps xD
15:53
or own server
Avatar
wait i lied
15:53
gimme a sec
Avatar
@Дядя Женя in github after its merged u can just remove it, else just search the internet xd
15:59
@Learath2 btw have we fixed the autoupdate finding?
15:59
u found that one bug
15:59
i still think that creates alot of trouble 😄
Avatar
Deleting a commit doesn’t really make sense in git. You’d need to use nasty plumbing tools, just leave it orphan and git will take care of it
16:00
Autoupdate finding?
Avatar
that it always only checks the last file name
16:00
it wasnt directly in the auto updater but in the http code
Avatar
Ah, I fixed that in my branch
16:01
Check the data integrity PR
Avatar
bcs so many ppl have problems
16:01
i wonder if its not only about permission
Avatar
I really should make time tonight to finish that
16:02
It needs some UI stuff that I really didn’t want to get into because it brings many other ui issues with it
Avatar
oh ok
Avatar
I need scrollregions, which needs multi clipping both are nasty patches to try port without breaking UI for people
Avatar
scrollbar sucks
Avatar
Fwiw that branch is functional from what I remember
Avatar
and it has issues i cant reproduce
16:03
so idk whats wrong
16:03
Can't move it via mouse drag when it is at the most upward position.
16:03
xd
Avatar
working with tw ui is always pain xD
Avatar
Much better than working with jswing or qt
16:05
Very painful compared to other imgui libraries or html
16:06
i actually like writing html
16:06
well not html directly
16:06
a templating language
16:06
for html
Avatar
Html is not bad at all
16:06
Having an actual hierarchy is very pleasent
Avatar
@Learath2 android studio is surprisingly good
16:07
atleast i think so
16:07
google rly wants it to be good
Avatar
Though updating a DOM is very horrible performance wise
Avatar
thats why u do virtual doms and stuff like that
16:07
react
Avatar
XCode and Android studio both have great interface designers, top notch
Avatar
never used xcode
16:08
have u tried javafx?
16:08
i have to try it
Avatar
And react-native lets you have the nice hierarchical model on mobile in a portable way
16:09
I’m not a big fan of java tbh, it’s a bit 🤮
Avatar
give me a good c++ ide
16:09
vscode intellisense is too broken always fails 😦
Avatar
The best IDE is no IDE
16:09
CLion is the least shit option
Avatar
but i am poor xd
16:09
need a free one
Avatar
VSCode works great
Avatar
@Deleted User neovim
Avatar
yes, until it breaks xd
Avatar
with coc nvim and clangd
Avatar
@Ryozuki pls no terminal stuff xD
Avatar
i use that to code in ddnet
Avatar
CLion is free for students if you are still a student
Avatar
i would use clion otherwise
16:10
why no terminal stuff?
Avatar
i tried qtcreator, but i think they overcomplicate stuff with cmake
Avatar
Honestly the only free option is eclipse which is absolute garbage
Avatar
@Ryozuki bcs i come from future and we dont use terminals there
16:11
@Learath2 yeah used eclipse quite a long time, but their cmake support is bad
16:11
and that sucks
Avatar
Neovim has a ui for futureboys like u
16:11
16:11
my terminal is prettier
Avatar
Anyways neovim with coc uses the same backend as vscode
Avatar
than ur ide will eve be
16:11
i come from the future
Avatar
So it won’t get better
16:12
greenthing
Avatar
i'd be happy with a better intellisense for vscode tbh
Avatar
@Deleted User which part of intellisense is failing for you? Might be easier to fix that
Avatar
one that doesnt always complain about header files not found and breaking after 1h of use
16:12
i increased all values and configs
Avatar
@Deleted User i can tell u
16:12
u justh ave to call cmake with generate build commands
16:13
and link it to home
Avatar
@Learath2 well most annoying is when i cant do CTRL + mouse click after a while
16:13
dunno why it breaks
Avatar
then clang can do its magic
Avatar
Header not found sounds like you are cont configuring the cmake build
Avatar
then have to reopen the thing and works again xD
Avatar
but its not always @Learath2
16:13
its random xD
Avatar
DDNet doesn't CMapItemTypeImage version 2, meaning it doesn't have support yet for having rgb images in maps. Currently, trying that would result in invalid map files.

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 if it works standalone, system.c especially
  • [x] Considered possible null pointers and out of bounds array indexing
  • [x]...
Avatar
@Deleted User a reload window is faster
Avatar
@Learath2 yeah ctrl shift p
16:13
reload window (edited)
Avatar
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON
Avatar
The only time I get trouble with it is when I edit CMakeLists.txt
Avatar
I just reload the window then
Avatar
i dunno i have so much trouble xD, and not only for ddnet, also other cpp projects
Avatar
jupstar pro graphics but nobo vim user
Avatar
@Ryozuki the vscode cmake plugin already generates the json anyway
Avatar
we have to teach you the ways
16:15
🍷 greenthing
Avatar
@Ryozuki why would i want keyboard only in 2020, why do i play tw when i dont use my aim
Avatar
of civilized gentlemen
16:15
cuz its faster
Avatar
dont think so
Avatar
it is xd
Avatar
Honestly IDEs don’t fare that much better. They rely on industry dinosaurs refusing to try anything new and shitting on other peoples opinions
Avatar
nahh ryo
16:16
nahhhh
16:16
i worked with ides for my entire life, im pro with them now xd
Avatar
vim will always be master race
16:16
elite
16:16
if u care about ur editor u would use vim
16:16
its just how linux mentality works
16:16
u tinker with ur stuff
Avatar
VS has perfect intellisense and browsing. IFF you use msbuild, structure your entire project inside VS and don’t mind waiting 5 minutes for it to launch and 40s per search
Avatar
praise stallman
16:17
ups i meant GNU+Linux
Avatar
@Learath2 if u mean visual studio without code, then yes
Avatar
stallman will slap me
Avatar
IntelliJ works amazing, IFF you set up your project inside IntelliJ. Good fucking luck importing any other project
Avatar
that was the best experience yet, but i dont want to use windows for developing xD
Avatar
i use idea for java ye
16:17
@Deleted User i also used to use visual studio
16:17
specially for c#
16:17
even ddnet
Avatar
Eclipse needs a 48 core workstation to perform acceptable and is the most intrusive project setup in the bunch
Avatar
but now im at the good side of history
Avatar
well when i was on my nvidia 3-4 years ago i was still on windows
16:18
feelsbadman
Avatar
VS doesn’t work well for cmake projects btw. They are just supporting cmake as a gimmick
Avatar
the reason i swtiched back to windows back then was bcs the nvidia drivers always freezed
16:18
was very annoying
Avatar
To tempt opensource portable projects
Avatar
amd master race
Avatar
always used debian over VMware xD
16:19
and yeah back then with eclipse
16:19
but eclipse is slow and bloaty and buggy
16:19
dunno, i dont like it anymore xD
Avatar
@Learath2 the worst was when teeworlds and ddnet used bam, you will never get autocomplete
16:19
xdddd
Avatar
xDDD
Avatar
You can get decent autocomplete even like that
Avatar
it sucks
Avatar
Clangd doesn’t quite care about the build system
Avatar
i wrote the whole fng code in notepad++ XD
Avatar
notepad++ isnt that bad i think
16:20
just a meme
Avatar
well it doesnt help u alot
Avatar
To be fair, smart autocomplete in C++ is moot imho
Avatar
i just learned to remember everything i wrote xD
Avatar
@Deleted User @Learath2 http://www.drjava.org/
16:20
best IDE
16:20
try to use this
16:20
without killing urself
16:20
5 mins
Avatar
CTags and just dumb autocomplete worked great for me for years
Avatar
doesnt even have https
16:21
how can it be good xd
Avatar
The smart autocomplete mafia will have you can’t code without it, which is part of their master plan to make you dependent on them before luring you into paid products
16:23
Have you believe*
16:23
This ipad has surprisingly a bad keyboard for apples standards
Avatar
Дядя Женя 2020-10-26 16:30:47Z
help me find a code where you text triangles + outline
Avatar
text.cpp
16:32
but be careful with that code
16:33
i am very strict there, bcs its bloating, bad and opengl 3.3 support is not allowed to break >D
Avatar
Дядя Женя 2020-10-26 16:33:23Z
still can't find
Avatar
src/engine/client/
16:34
does your ide not allow to follow function calls? XD (edited)
16:34
dolabel already calls textrender functions
Avatar
Дядя Женя 2020-10-26 16:35:09Z
I mean where exactly it calls for drawing to screen
16:35
Or, at least, to queue for being rendered on frame
16:35
Or container to redraw later
Avatar
it calls quadsbegin
16:35
text container are different to text streams
Avatar
Дядя Женя 2020-10-26 16:36:05Z
TextEx() calls quads begin and doing nothing lol
Avatar
even if there is like 99.99% code duplication (edited)
16:36
well quadsbegin is the rendering already
16:36
quadsbegin = i want to draw quads quadsend = i finished building my quads, NOW RENDER
Avatar
Дядя Женя 2020-10-26 16:37:18Z
Yes, but it's not drawing anything after quads begin
Avatar
text.cpp is living hell
Avatar
Graphics()->QuadsSetSubset(TextCharQuad.m_Vertices[0].m_U * UVScale, TextCharQuad.m_Vertices[0].m_V * UVScale, TextCharQuad.m_Vertices[2].m_U * UVScale, TextCharQuad.m_Vertices[2].m_V * UVScale); IGraphics::CQuadItem QuadItem(TextCharQuad.m_Vertices[0].m_X, TextCharQuad.m_Vertices[0].m_Y, TextCharQuad.m_Vertices[1].m_X - TextCharQuad.m_Vertices[0].m_X, TextCharQuad.m_Vertices[2].m_Y - TextCharQuad.m_Vertices[0].m_Y); Graphics()->QuadsDrawTL(&QuadItem, 1);
16:37
here for example
16:38
it adds a quad item
Avatar
Дядя Женя 2020-10-26 16:38:21Z
Imoatly interested in calls for outline
16:38
Or every text is outlined?
Avatar
Outline is a bigger texture drawn under the real texture
Avatar
Дядя Женя 2020-10-26 16:39:04Z
Cuz I look at outline on different font and I think you fucked up this completely (edited)
Avatar
(in non gl 3.3)
Avatar
Дядя Женя 2020-10-26 16:39:16Z
Math seems wrong
16:39
Outline is a bigger texture drawn under the real texture
@TsFreddie must be not
Avatar
@Дядя Женя we already use 2 fonts
16:39
they both work
16:39
@TsFreddie is right
Avatar
Дядя Женя 2020-10-26 16:40:41Z
Then it proves u r doing it wrong
Avatar
it 3.3 it uses a shader
16:41
it proves nothing
16:41
maybe get to know opengl first 😄
Avatar
Дядя Женя 2020-10-26 16:41:32Z
I know the logic behind text outline rendering
Avatar
good
Avatar
you fucked up this completely
think_bot
Avatar
Дядя Женя 2020-10-26 16:42:38Z
I used to work as game programmer
Avatar
good
Avatar
here we go again
Avatar
Дядя Женя 2020-10-26 16:43:44Z
@Ryozuki ?
Avatar
so then tell us what ur plan is
16:44
before wasting ur own time 😄
Avatar
Дядя Женя 2020-10-26 16:44:32Z
I'm just fixing random things xD
16:44
implementing some features that gamedev rules asks for
Avatar
you said we "fucked up", maybe you go more into the detail of the act
Avatar
Дядя Женя 2020-10-26 16:45:19Z
text outline used to be the same quad rendered 4 times
16:45
sadly
Avatar
Дядя Женя 2020-10-26 16:45:48Z
yes
Avatar
it has two rendercalls yes
16:46
with shaders ez to fix
Avatar
Дядя Женя 2020-10-26 16:46:16Z
the only way you could fix it and still draw it the right way is to use different rendering, which we can't xD
Avatar
with gl 1.x, not so ez
Avatar
I don't get what's wrong with it. We didn't fuck it up given it renders just fine
16:47
Working around the limitations of an API is not "fucking up"
Avatar
Дядя Женя 2020-10-26 16:48:53Z
Avatar
thonk he might want freetype's stoker
Avatar
Which part do you take issue with? The overlap being additive?
Avatar
Дядя Женя 2020-10-26 16:52:02Z
at least it crops outline
Avatar
it didn't crop
Avatar
Дядя Женя 2020-10-26 16:52:14Z
and why dot's outline is square?
Avatar
the outline texture just looks like that
16:52
take a look at Grow()
Avatar
It's literally growing the texture you give it, doesn't do anything more
16:53
Now is it the best way to get an outline, no. Does it work, yes
Avatar
growing texture just looks like that, it is fast and dirty and effective for the font we were using. doesn't mean it was wrong.
16:53
although i would prefer stokers outline
Avatar
grow is good now xD
16:54
fast and ugly
16:54
just as i like tw
16:54
what font is that btw
Avatar
Not sure if there is a trivial way to fix the overlap being darker though
Avatar
0.7 has custom fonts support with the rework
Avatar
before changing fonts in upstream be aware that the whole tw community will haunt u xd
Avatar
shader can deal with additive maybe
Avatar
I guess you could premultiply the alpha to get the color of outline you want and disable blending?
Avatar
mhh no, blending must stay active
16:56
else u get a white block
Avatar
Дядя Женя 2020-10-26 16:56:19Z
Not sure if there is a trivial way to fix the overlap being darker though
@Learath2 its hardest question I had for whole my life
Avatar
the question is, why do we need such an outline
16:56
1px in complete black would probs do the job
Avatar
Дядя Женя 2020-10-26 16:56:58Z
oh, no, sry. That's because I tried to do this via shaders
Avatar
1px. hidpi nightmare
16:57
i can't even see the hook collision line on my monitor
Avatar
If only we could render into a texture and Grow that instead 😛
Avatar
2px
16:57
xd
16:57
well we can do alot of things
16:57
with newer GL
Avatar
just drop gl1 already
Avatar
lets go vulkan only
Avatar
Yeah with toastergl I think this is the best we get and not supporting massive outlines isn't that much of an issue
Avatar
just add milestone, that we fix it in 17 years, for teeworlds' 30years anniversary
Avatar
xD
Avatar
use the overwatch font
17:02
i want to see how it looks
17:02
monkalaugh
Avatar
use teeworlds font 😄
Avatar
knowyourname
Avatar
and i mean litterally teeworlds font
Avatar
its knowyourname
17:03
or smth like that
Avatar
you mean this one?
Avatar
know your product
17:03
i guess yea
17:03
looks similar
Avatar
ah yeah @Ryozuki 😄
Avatar
know your product would be wack
Avatar
i use it now xd
17:04
17:04
looks awesome
Avatar
oh god
Avatar
refresh 97
17:05
xD
17:05
Avatar
Дядя Женя 2020-10-26 17:05:57Z
Overwatch font is too small
Avatar
@TsFreddie how doesi t look with https://www.jetbrains.com/lp/mono/
Try JetBrains Mono in your IDE. Its simple forms and attention to every detail make coding a nice experience for developers’ eyes, no matter which IDE you choose.
17:06
best font
Avatar
idk if my textrender respect monospacing
Avatar
it definitely won't work with ligature.
Avatar
Wym no monospacing????
17:07
report
Avatar
kk let me try that
17:08
plus it would be nice to have console be in mono anyway
Avatar
Oh yeah definitely
Avatar
deja vu sans has mono fonts iirc?
Avatar
jetbrains mono on console best
Avatar
mono fonts should be mono spaced
17:08
tw doesnt even respect kerning
Avatar
deja vu sans mono, best mono
Avatar
i saw that
Avatar
but i implemented it
17:09
so we can use it in 17 years
Avatar
i should look at ur text rendering
17:09
i did it once with opengl
17:09
and spend 2 days
17:09
xddd
Avatar
@Deleted User seems you implemented some selection stuff, what is that about?
Avatar
yeah @Learath2 for the new console in 17 years
Avatar
guys
Avatar
it can render a nice cursor and text selection
Avatar
i hate it
17:10
i love it
17:10
looks modern af
Avatar
Looks fairly monospace
Avatar
yeah looks modern af tru
Avatar
Brutalistworlds?
Avatar
console looks rly good
Avatar
looks like i can just add a mono font and apply it to console to call it a day
Avatar
finally readable console
Avatar
one of my teachers is sick, probs corona justatest monkalaugh justatest
Avatar
Is discord sluggish for anyone else? My connection seems fine but discord messages are going slow
Avatar
time to die frozen
Avatar
@Learath2 like every second day xd
17:12
but not rn
Avatar
can i get that font on 0.6 just by replacing the fonts in folder
Avatar
@louis yes
Avatar
ye discord is slow
Avatar
mine is lagging too
17:12
almost thought it was china again
Avatar
we should port the 0.7 checkboxes
17:13
to ddnet
17:13
they look better
Avatar
0.7 UI stuff is doing much better than this unmaintained mess
Avatar
is it
17:14
I thought it was pretty confusing. but i haven't looked at ddnet's
Avatar
Scroll regions are the biggest cleanup we can get right now, if anyone is looking to port something
17:14
Scroll regions are the biggest cleanup we can get right now, if anyone is looking to port something
17:14
CScrollRegion and nested clipping in CUI would be gr8
Avatar
HSplit passing null to an argument and stuff
17:15
i had to document those methods to get to know what im doing
Avatar
oh hey, i changed something about CScrollRegion too
Avatar
instad of spending 10 mins eveyr time i use them
17:15
my glorious docs
Avatar
I wish there was a way to know the amount of args passed into a variadic function in C/C++
Avatar
u cant?
17:16
Avatar
CUIRect::VEquipartition and HEquipartiton would be great
17:16
Oh and a CUIRect::HPartition that takes rects and a list of ratios, like flexbox
Avatar
lets implement flexbox
Avatar
Ratios are key to design that scales well
Avatar
thonk CSS
Avatar
i kinda like css
Avatar
flexbox would be too expensive to parse before rendering every frame
17:18
Moden CSS is pretty great ngl
Avatar
valve moved to pseudo html-css in source 2
17:18
is it pretty nice
Avatar
https://tailwindcss.com/ best thing ever made, u can make nearly everything with the classes it provides
A utility-first CSS framework for rapidly building custom user interfaces.
Avatar
and animation would be much easier
Avatar
this framework gives u css classes so u build with them, u dont get a fancy button out of the box
Avatar
html and css would be nice, but i dont want a 200mb chromium sandbox XD
Avatar
depending on chronium is bad
Avatar
thonk ofc not chromium
Avatar
I don't like rmgui at all, we could maybe look into a hybrid polling solution like UE4s slate
Avatar
making everything chronium is rly bad, it is even worse with the recent security flaw found
17:19
it affects every chronium program
Avatar
maybe a preprocessor that compile css + layout into c++ codes
17:19
like network(
Avatar
libcef in teeworlds would be a sad day
Avatar
@TsFreddie that sounds like a great project actually
Avatar
thonk who got the time tho
17:20
i don't lol
Avatar
it doesnt even need to be made in c++
17:20
we can make the preprocessor in python
Avatar
I could probably get it working for static layouts
Avatar
YES @TsFreddie OUR MAN
17:20
go implement everything
17:20
i count on u
Avatar
that sounds like a fun project
17:21
lets make a new language, teestyle
17:21
.teestyle
Avatar
yes @Ryozuki GOGOGO
Avatar
AST mastreee
Avatar
to make the language we need to define clearly our needs
17:22
so we dont work on stuff we dont need
Avatar
Implement jswings spring layouts
17:23
It's an absolute pain in the ass to work with
Avatar
thonk i took like ONE lesson about languages and parsing trees and stuff.
17:23
hard af
Avatar
notyhing the internet teach u
17:23
cant*
Avatar
ye, but i don't want to produce jank
17:24
doesn't mean i'm not producing them
Avatar
Compiler theory is such a difficult field
Avatar
we are not making a c compiler
17:24
pepeH
Avatar
Creating parsers lexers
Avatar
ye, i took the language thing as a prereq and just skipped compiler theory cuz i was chicken.
Avatar
i woud personally use rust to make the lexer
17:25
Create ridiculously fast Lexers. Contribute to maciejhirsz/logos development by creating an account on GitHub.
17:25
monkalaugh
17:25
cute logo too
Avatar
more stuff in build system
17:27
nice
17:28
this one is in python https://www.dabeaz.com/ply
Avatar
i think we don't even have any dependency in our python script yet
17:29
do u want to make the lexer urself
17:29
xd
Avatar
i'm just saying xD
17:29
vanilla added polib
17:30
oh shit
17:30
i really should go to bed
17:30
good night
Avatar
Operation Sleep Failed
Avatar
I don't know if it's ok to make 2 line changes PRs, but this one would make new method's values (added some days ago with Chat Visuals update) CRenderTools::DrawRoundRectExt easier to understand and safer for out of bounds exception.
Avatar
05d6201 DrawRoundRectEx readability - Banana090 bf53cd8 Merge #3198 - bors[bot]
21:29
hmmmm
21:30
quick suggestion which may be useful: add option to delete demos older than x amount of days to save space
21:31
of course the ones which were automatically made
Avatar
Settings -> General -> Max demos, good enough
Avatar
maybe
21:32
but that just makes it so when you reach the limit new ones wont be saved/recorded and you'd have to remove the old ones manually
21:32
🤔
Avatar
really? I always assumed it deletes the oldest ones
Avatar
i haven't actually tried it but i'm just assuming because that would be the best approach?
Avatar
source code says it deletes the oldest ones
Avatar
well in that case i will use that but i think it should at least be mentioned
21:38
either way, thank you deen
21:44
my ddnet demo folder :D
21:45
deleted
feelsamazingman 1
Exported 634 message(s)