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 2023-04-20 00:00:00Z and 2023-04-21 00:00:00Z
Avatar
ChillerDragon BOT 2023-04-20 09:23:28Z
DDraceNetwork, a free cooperative platformer game. Contribute to ddnet/ddnet development by creating an account on GitHub.
09:23
i can not reall use it to count the letters can i?
09:25
I need a thing that counts this любовь as 6. Does ddnet code base offer something for that? Basically counting how many times my cursor would jump. To calculate the width in a fixed width font scenario
09:26
it seems to do so the first time in the test but the 2nd time it counts 3? does it keep state? when i str cmp those two it seems to be the same
Avatar
@Learath2
09:27
chiller i think u want to count unicode graphemes
09:27
in rust thats not hard
Avatar
ChillerDragon BOT 2023-04-20 09:28:12Z
ttps://zillyhuhn.com/cs/.1681982876.png
09:28
bra did i fail the link? xd
09:28
09:28
how are these two strings different? why does the count vary? does it keep state?
Avatar
Avatar
Ryozuki
@Learath2
Can't super react on phone, so take this hypervomit
Avatar
Avatar
ChillerDragon
how are these two strings different? why does the count vary? does it keep state?
Did you even bother to read the documentation we have on str_utf8_stats or even just the parameter names?
Avatar
ChillerDragon BOT 2023-04-20 09:38:31Z
no i no read doc
09:38
everytime i wonder if there is doc there is none :D
Avatar
Almost every system.h function is documented atleast to some degree if they are not completely obvious
Avatar
ChillerDragon BOT 2023-04-20 09:39:24Z
ah the max size caps it
09:39
ok then it seems to be the function i need weirdly it doesnt work as epxected for me ill furtehr investigate
Avatar
Just set max_size to the size of the buffer, max_count to INT_MAX
Avatar
is there a well known algorithm to reduce padding or just put the biggest elements first?
11:50
i wonder what rust does
11:50
(rust is free to reorder fields for maximum efficiency)
Avatar
since all alignment is power-of-two (in rust, c++) and object sizes are always a multiple of alignment (rust, c++), putting the elements with largest alignment first minimizes padding
11:54
rust does this
11:54
afaik
Avatar
Avatar
Ryozuki
is there a well known algorithm to reduce padding or just put the biggest elements first?
Is your goal using less memory?
Avatar
i mean less padding is always better right
Avatar
If u access the variable from 2 threads maybe not
12:05
Or 2 fields
12:05
From 2 threads
Avatar
no threads here
Avatar
Avatar
Ryozuki
i mean less padding is always better right
Hm, maybe worse in performance due to your access pattern, e.g. if you always check a field right after another, they might end up in the same cache line
Avatar
also SoA is better than AoS
12:10
but I don't know any language that supports it natively
12:10
In computing, an array of structures (AoS), structure of arrays (SoA) or array of structures of arrays (AoSoA) are contrasting ways to arrange a sequence of records in memory, with regard to interleaving, and are of interest in SIMD and SIMT programming.
Avatar
Avatar
heinrich5991
but I don't know any language that supports it natively
There is that one research language people point out. I don’t remember the name
Avatar
yeah i forgor
Avatar
But iirc it can do both with just a flag on the struct
Avatar
SoA has no padding 😉
12:11
I wanna know the name
Avatar
Uff, I think I remember it being mentioned in the data oriented design cppcon talk by that guy who hates cpp
12:12
Though not sure, ymmv
12:12
I take no responsibility if you watch it and it’s not there 😛
Avatar
More input about this topic
12:13
Its getting interesting
12:13
amazing dev
Avatar
Runs on your rtx4090 super Cluster xdD But nice if that's actual gameplay footage
Avatar
Nice, someone knows some secrets to cinematic game dev
12:17
The game almost looked like swat, but better graphics and insane camera movement
Avatar
Avatar
Cellegen
Nice, someone knows some secrets to cinematic game dev
That's gameplay
Avatar
Avatar
ReiTW
https://www.youtube.com/watch?v=IK76q13Aqt0 bruh this guy alone did this
So is this game completely recorded as video?
Avatar
Well it's VR so
Avatar
Hard to see on mobile
Avatar
There's a beta coming soon
Avatar
Avatar
ReiTW
That's gameplay
Yeah, not like any interactive gameplays, unreal 5 rocks
Avatar
But it's not rendered is it?
Avatar
Avatar
Learath2
Uff, I think I remember it being mentioned in the data oriented design cppcon talk by that guy who hates cpp
based
Avatar
Avatar
Jupstar ✪
But it's not rendered is it?
it is
12:27
must be
12:27
but the dev most likely used IRL textures
12:27
the lightning looked unreal
12:28
camera movement looks real because that's a VR game it moves together with your own head (edited)
Avatar
Avatar
default
it is
Well from what I see on mobile this is way too realistic
12:29
I guess it's a video
Avatar
this isnt a mobile game is it
Avatar
Wtf r u talkn about xd
Avatar
why do you think that shit runs on mobile
Avatar
I watched the video
12:29
On mobile
12:30
And see a game with prerecorded video
Avatar
the game isn't built with videos tho
12:30
that's how I understood you
Avatar
We'll see
12:31
Or do u have any proof
Avatar
hard to believe its 1 guy
12:32
making animations is extremly time consuming
12:32
and the graphics look way too real
12:32
also the video feels laggy somehow but maybe jut me xd
12:32
but well the game is jut 1 guy with a gun
Avatar
Yeah it's him and some friends recording a video and then put a game on top of it
12:33
@Jupstar ✪ i think so to, but i hope to be wrong
12:34
there is a limit to what 1 guy can do
Avatar
tbh the fog effect on the gun when he shoots gives it away, that it was made in an engine
Avatar
also this project isnt rly old, cuz i saw it on twitter some time ago
Avatar
Avatar
Cellegen
tbh the fog effect on the gun when he shoots gives it away, that it was made in an engine
U can create filters
12:34
Or put some effects on top of the videi
Avatar
but that would be cheesy towards IGN
12:34
must be gameplay element
Avatar
Avatar
Cellegen
tbh the fog effect on the gun when he shoots gives it away, that it was made in an engine
try to render a shadow that behaves like a normal one on a 2d image
12:35
of course it's not a video
Avatar
yeah, but if the fog wouldn't be there, I would've easily said it's real xd
Avatar
When will the beta come?
Avatar
there are no dates as far as I looked
12:36
I could see this being used by military
12:36
their simulators are dogshit
Avatar
I'll later look on desktop
Avatar
unreal simulations, I cannot wait to have Among us simulation on UE5
12:37
lol
Avatar
this is not a simulation of physics tho
12:37
just a environment one
12:37
what half life did simulating physics first was a real break through
Avatar
and with the half life vr game too
Avatar
Avatar
Ryozuki
what half life did simulating physics first was a real break through
you think?
12:39
they used an engine they had to buy a license for Edit: Havoc (edited)
12:40
Alyx and CS2 run their own inhouse one (edited)
12:40
I think
Avatar
chillerdragon BOT 2023-04-20 12:43:41Z
str_utf8_stats("「中国社区服」", 10, 10, &Size, &Count); EXPECT_EQ(Size, 9); EXPECT_EQ(Count, 3);
Avatar
ChillerDragon BOT 2023-04-20 12:43:59Z
hmm this test is passing ._. how does it count it as 3 letters?
Avatar
The max size does not cover the entire string
12:47
So it only counts until 10 bytes
Avatar
>>> len("「中国社区服」".encode("utf-8")) 21
Avatar
ChillerDragon BOT 2023-04-20 12:51:00Z
i see so i need to make sure the size is big enough
Avatar
just use str_length
Avatar
Avatar
Jupstar ✪
So is this game completely recorded as video?
no clue, but if the game is rly like that then VR will become amazing, if u have the budget
12:55
after nanite & lumen makes things like that accessible
Avatar
the game is not vr sadly
12:56
Post-reveal: Response to questions and concerns from players. https://t.co/n6hF9aiGiW
Likes
286
Avatar
ChillerDragon BOT 2023-04-20 12:57:35Z
str_length("服服服服") // => 12
12:57
so that wont work
Avatar
hoo thought it was vr (edited)
Avatar
ChillerDragon BOT 2023-04-20 12:58:18Z
or you mean strlenth as max bytes?
Avatar
so it's gameplay footage
Avatar
the animation of the hands is far too precise to be vr I think
Avatar
Avatar
ReiTW
so it's gameplay footage
normally yes
Avatar
Avatar
ChillerDragon
str_length("服服服服") // => 12
Actually I think utf8_stats would also fail on this 😄
Avatar
ChillerDragon: pass str_length("...") + 1 for max size
Avatar
Avatar
Shadowsun
normally yes
Why doesnt he then simply drop a video where he uses a fly cam
13:02
Or wireframes
13:03
Would be the easiest proof
Avatar
Zero-termination is checked in str_utf8_stats, so you could also pass INT_MAX for max size I guess
Avatar
ChillerDragon: as max_bytes
Avatar
Chiller: What are you looking to do btw? Count glyphs? Graphemes?
13:04
Characters?
Avatar
"characters"
Avatar
I don't think we even have code to count graphemes in ddnet now that I think about it
Avatar
Avatar
Jupstar ✪
Why doesnt he then simply drop a video where he uses a fly cam
Unreal engine is insane, after the camera movement etc... does alot too
Avatar
Avatar
Jupstar ✪
Why doesnt he then simply drop a video where he uses a fly cam
personally I agree with you, for me the images are 100% 3d but is this the real gameplay of the game 🤔
Avatar
Avatar
Learath2
I don't think we even have code to count graphemes in ddnet now that I think about it
Why would you ever need to count graphemes for a game though? This would be impossible unless you know which language it is, right?
Avatar
we kinda need it for left-right movement of the cursor, no?
13:11
if you have "é" as "e, combining acute accent", then we don't want to place the cursor between those "characters"
Avatar
Those are glyphs though, aren't they?
Avatar
no, graphemes are language-independent AFAIK
13:12
glyphs might be something related to rendering, I don't think unicode has a concept of glyphs
Avatar
ChillerDragon BOT 2023-04-20 13:13:24Z
i think i have a different problem anyways
13:13
seems like my assumption about fixed width was wrong
13:13
13:13
at least vscode does not match the line lengths
Avatar
Avatar
ReiTW
Unreal engine is insane, after the camera movement etc... does alot too
Yeah. We'll i hope it's real BCS then the big game studios were beaten by some hobby artists xdd
Avatar
Avatar
Jupstar ✪
Yeah. We'll i hope it's real BCS then the big game studios were beaten by some hobby artists xdd
i think there arent many games unsing unreal engine 5
Avatar
ChillerDragon BOT 2023-04-20 13:14:21Z
@Learath2 align server names
Avatar
Not even matrix tech demo looks realistic enough
Avatar
maybe my beloved kingdom hearts 4 will use it though
Avatar
Avatar
Robyt3
Why would you ever need to count graphemes for a game though? This would be impossible unless you know which language it is, right?
I think there is a huge table of rules to count them. I can see them being maybe useful for spacing issues
Avatar
Avatar
Ryozuki
i think there arent many games unsing unreal engine 5
Yeah. But still insane then
Avatar
Avatar
Jupstar ✪
Yeah. We'll i hope it's real BCS then the big game studios were beaten by some hobby artists xdd
big game studios are only good to do crunching & release a game after 2weeks
Avatar
Xd
Avatar
so normal to see a game like that when people take their time to do things properly
13:15
and not rush cuz they only like money
Avatar
ChillerDragon BOT 2023-04-20 13:15:08Z
a table?
13:15
seems like my terminal also ignores fixed width when it comes to those
13:15
Avatar
Avatar
heinrich5991
we kinda need it for left-right movement of the cursor, no?
Hm, I think there is a single codepoint version of the more common combinations
Avatar
ChillerDragon BOT 2023-04-20 13:16:08Z
so i should replace letters?
Avatar
For CJK languages there are separate half-width and full-width characters. If you want correct monospaced text you need the half-width characters
Avatar
Avatar
Learath2
Hm, I think there is a single codepoint version of the more common combinations
there is, but we're not guaranteed to get it
13:22
ChillerDragon: fixed-width terminal font length of graphemes is a deep rabbithole
13:23
I read a lot of blog posts about that ^^
Avatar
Avatar
heinrich5991
there is, but we're not guaranteed to get it
I think if we don't get it I bet we fail. I'm fairly certain we don't have the grapheme rules table
Avatar
ChillerDragon BOT 2023-04-20 13:36:16Z
yikes okay where can i buy half width?
Avatar
Those are separate unicode codepoints, so you'll have to manually translate the full-width to the half-width codepoints
Avatar
ChillerDragon BOT 2023-04-20 13:41:18Z
was that done already?
13:41
or do i have to get a table into my code and do some unicode str replace?
13:59
@Learath2 we live in a society
Avatar
Thanks Tech CEO very cool
Avatar
ChillerDragon BOT 2023-04-20 14:12:17Z
i tries rust xd ryo
14:12
also that fails me
14:13
Avatar
Half-width kanji is not usable on modern computers
14:16
Half-width kana (半角カナ, Hankaku kana) are katakana characters displayed compressed at half their normal width (a 1:2 aspect ratio), instead of the usual square (1:1) aspect ratio. For example, the usual (full-width) form of the katakana ka is カ while the half-width form is カ. Half-width hiragana is not included in Unicode, although it's usable on...
Avatar
ChillerDragon BOT 2023-04-20 14:17:10Z
xd ffs
14:18
wait but is full width exactly twice as large? then i can use that to calc
Avatar
rust is not failing here
14:24
this is used by all cli tools written in rust
14:24
it tells the width of a utf8 str
Avatar
ChillerDragon BOT 2023-04-20 14:52:33Z
yea i also just saw that
14:53
made me realize they are actualy two columns wide so i can properly offset even wide characters in a terminal
Avatar
Avatar
ReiTW
Unreal engine is insane, after the camera movement etc... does alot too
so at desktop i'd say it defs doesnt look as perfect as i thought on mobile i'd still say there is a high chance, even if its 100% in unreal engine 5, that this isn't real time (or i underestimate 4090, or multiple 4090). there are photorealistic videos in UE5 that look insanely good (also with this weird camera movements), eg: https://youtu.be/2paNFnw1wRs but it has a much smaller viewport and the creator said in the comment it was prerendered ^^ So would defs be insane and a game changer 😄 (edited)
Avatar
Avatar
Jupstar ✪
so at desktop i'd say it defs doesnt look as perfect as i thought on mobile i'd still say there is a high chance, even if its 100% in unreal engine 5, that this isn't real time (or i underestimate 4090, or multiple 4090). there are photorealistic videos in UE5 that look insanely good (also with this weird camera movements), eg: https://youtu.be/2paNFnw1wRs but it has a much smaller viewport and the creator said in the comment it was prerendered ^^ So would defs be insane and a game changer 😄 (edited)
well on twitter he said it was actual gameplay
16:31
IGN is not the creator
Avatar
Avatar
ReiTW
well on twitter he said it was actual gameplay
on twitter he posted the worst answer
16:32
he only said it was recorded from an executable
16:33
he is either hard troll, or noby is not a troll at all
Avatar
well with keyboard etc..
16:33
ig he meant not from UE directly
Avatar
its still weird xD
16:33
he could simply toggle wireframes
16:33
takes 5 seconds
16:34
he could go live and play that scene xD
16:34
would create even more hype xD
16:37
i just hope i can soon play minecraft 8k on my 4090 rigs using 10kWh electricity and feel like i am in the matrix
Avatar
i remember wanting to code smth else but i completely forgot what i wanted to code
Avatar
chillerdragon BOT 2023-04-20 18:19:47Z
meh im having a hard time defining a rust function in the ddnet code all the existing rust code seems so hollow no idea where to slap something like this so i can call it from the c++ code#[no_mangle] pub extern "C" fn hello_from_rust() { println!("Hello from Rust!"); }
Avatar
ChillerDragon BOT 2023-04-20 18:24:13Z
i was hoping this would just work xd
18:24
Avatar
ChillerDragon BOT 2023-04-20 18:34:41Z
ah wait RustVersionPrint seems to be a good hello world
18:40
18:40
poggies
18:53
funny number on 4.20!
xDe 2
Avatar
Avatar
Ryozuki
i mean less padding is always better right
false
Avatar
Avatar
ChillerDragon
hmm this test is passing ._. how does it count it as 3 letters?
afaik, there's no standard definition of what a letter is
19:01
nvm, you both got answer later in the text
Celebrate 1
Avatar
Avatar
Chairn
Given you do both, which one do you prefer @Voxel ? https://www.reddit.com/r/ProgrammerHumor/comments/12rpylc/design_vs_programming/
ddnet doesnt need anything redesigned rn, does it?
Avatar
DeepMind and the Brain team from Google Research will join forces to accelerate progress towards a world in which AI helps solve the biggest challenges facing humanity.
19:54
google joining the game
Avatar
i bet it fucking sucks and people are going to exploit it to death
Avatar
why are u so anti ai
Avatar
Avatar
louis
why are u so anti ai
he keeps the balance
20:02
we need someone who hates ai as well xd
Avatar
Avatar
louis
why are u so anti ai
because its stupid and every company shouldnt need to get one to "be relevant"
Avatar
lets be real
20:06
its not stupid
20:06
and its not every company
20:06
its google
20:06
xd
20:06
i need to buy ddnet.ai
20:07
20:07
nvm
Avatar
Avatar
Ryozuki
and its not every company
discord
Avatar
Avatar
louis
why are u so anti ai
Artist
Avatar
discord does not need ai yet it addad it anyways (edited)
Avatar
discord could have a decent use for ai
Avatar
discord can use ai pretty much anything
Avatar
to make setting up roles etc
Avatar
a chatbot is a perfect ai use case
Avatar
moderation
Avatar
Avatar
louis
discord could have a decent use for ai
Antispam ai please. I beg of you
Avatar
anti racism ai
20:08
kekw
20:08
anti konsti
Avatar
yall need to incorporate antispam ai into ddnet server
20:08
i always get muted since i have a degenerate typing style 😔
Avatar
Ai moderation would instantly ban all the edgier people on this discord
Avatar
i want to incorporate a ai-powered translator to ddnet client
20:09
so i can tell chinese players how much better taiwan is
20:09
troll
Avatar
watafuk
Avatar
ok those are actually useful
20:10
chatbots arent
Avatar
i let chatgpt give me a tldr xD
Avatar
Avatar
Learath2
Ai moderation would instantly ban all the edgier people on this discord
Current ai is very lib too
Avatar
"hur hur look at what the funny gpt said!!!"
Avatar
how do chinese download ddnet?
Avatar
i just can only picture voxel as a old grandma complaining all day
Avatar
is it being delivered in usb-s there?
Avatar
Avatar
Gewinum
is it being delivered in usb-s there?
yes usb-s
Avatar
ah the usb-s
Avatar
my usb-s
Avatar
remember chatterbox or whatever that chatbot was called
Avatar
Avatar
Voxel
"hur hur look at what the funny gpt said!!!"
it can be pretty funny
20:11
specially giving it lot of contextual info about this sv
20:11
i seen it in another server
Avatar
Avatar
Ryozuki
i just can only picture voxel as a old grandma complaining all day
get the fuck off my lawn
20:12
i mean what
Avatar
stable diffusion goes brr
☝️ 1
🤓 1
Avatar
imagine having a lawn
20:13
thats pretty american
Avatar
Avatar
Ryozuki
thats pretty american
if the lawn had a crab and a penquin on it you'd be on the ground kissing the grass
Avatar
Avatar
Voxel
if the lawn had a crab and a penquin on it you'd be on the ground kissing the grass
he would... ergh i will not say that
Avatar
anyeahs yeah i will forever hate ai chatbots
Avatar
Avatar
Voxel
anyeahs yeah i will forever hate ai chatbots
what if we're all ai chatbots designed to make you feel like you're not alone
Avatar
Avatar
Ravie
what if we're all ai chatbots designed to make you feel like you're not alone
id end it
Avatar
nice susan
20:40
kek surname
Avatar
I think that is the Cum guy from here
20:51
Don't get catfished
Avatar
eh guys do you know why fix_style.py hardcoded to use only linux clang-format?
20:54
im struggling with my windows setup and 15.0.2 clang-format
Avatar
Why would you delete ms. cummings msg?
🚬 5
Avatar
Avatar
gerdoe
eh guys do you know why fix_style.py hardcoded to use only linux clang-format?
wdym
Avatar
It doesn't support .exe files I guess
21:27
@gerdoe Just push without caring about clang-format. We can fix it.
21:27
Not worth putting in effort for that, it's something trivial
Avatar
If you have visual studio you can use that to call clang-format with Ctrl+K+D
Exported 297 message(s)