Guild icon
DDraceNetwork
Development / developer
Development discussion. Logged to https://ddnet.org/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 11/8/2023 12:00AM and 11/9/2023 12:00AM
Avatar
I'm gonna move to the moon ig?
7:07AM
¯\_(ツ)_/¯
Avatar
Jupstar ✪ 11/8/2023 7:52AM
i agree that everything before 2016 is dark ages no vulkan no life
Avatar
no modern rust too
Avatar
Jupstar ✪ 11/8/2023 7:53AM
true
Avatar
is there a job title for people who just write documentations?
Avatar
Jupstar ✪ 11/8/2023 10:52AM
"To be replaced"
kek 1
10:53AM
Xd
10:53AM
By gpt
Avatar
Jupstar ✪ 11/8/2023 10:54AM
Is it for coding documentation
10:54AM
Or like a physical product
Avatar
like the "Getting Started" stuff
Avatar
Jupstar ✪ 11/8/2023 10:56AM
Mh dunno Technical writer if it's technical Else maybe instruction designer
10:56AM
Just put engineer in the end xdd
Avatar
i guess there isn't then
Avatar
Jupstar ✪ 11/8/2023 10:56AM
How to engineer
10:57AM
Documentation engineer
10:57AM
Xd
Avatar
Documentation Technical Artist
Avatar
Eyyo whats up I was wondering if there are some easy bugs for first-time contributors to do I know C++ and i have some experience as a developer
Avatar
Why can't my fridge auto stock pepsi. It sucks to go home and find out that I ran out of pepsi
Avatar
Avatar
axel
Eyyo whats up I was wondering if there are some easy bugs for first-time contributors to do I know C++ and i have some experience as a developer
Jupstar ✪ 11/8/2023 10:59AM
#7399
Avatar
For example, appending cft1 to itself will result in every vanilla image being added twice to the map. This also affects embedded images. We don't allow adding two images with the same name, bu...
Avatar
Ok thanks I take a look
11:04AM
btw uuuh the wiki page for development under "Installing the dependencies" doesnt work for Debian 12, the packages arent correct
Avatar
Jupstar ✪ 11/8/2023 11:04AM
Which one exactly
Avatar
python -> python3 (no such package python) and spirv-tools4 -> spirv-tools
Avatar
Jupstar ✪ 11/8/2023 11:05AM
Ok, u can update that if you want
Avatar
ok cool
11:05AM
(i assume u arent using python2 still xd)
Avatar
Jupstar ✪ 11/8/2023 11:05AM
Btw the ddnet readme has it correct
11:05AM
Maybe just copy it from there
Avatar
oki i do this
Avatar
it doesnt @Jupstar ✪ xd (edited)
11:06AM
this is on the readme sudo apt install build-essential cargo cmake git glslang-tools google-mock libavcodec-extra libavdevice-dev libavfilter-dev libavformat-dev libavutil-dev libcurl4-openssl-dev libfreetype6-dev libglew-dev libnotify-dev libogg-dev libopus-dev libopusfile-dev libpng-dev libsdl2-dev libsqlite3-dev libssl-dev libvulkan-dev libwavpack-dev libx264-dev python rustc spirv-tools
Avatar
yeah installing 'python' doesnt work u need to specify python3 or install the package 'python-is-python3'
Avatar
Avatar
Teero
it doesnt @Jupstar ✪ xd (edited)
Jupstar ✪ 11/8/2023 11:07AM
Mh it says spirv-tools at least xd
Avatar
that is kinda weird. I remember it being correct as well
Avatar
atleast on debain. (edited)
11:07AM
on arch python is correct
Avatar
im on a fresh install of debian 12
11:08AM
i make sure the compile goes fine then i update
Avatar
Avatar
TsFreddie
that is kinda weird. I remember it being correct as well
ig someone assumed that the package names were the same on diffrent distros
Avatar
Avatar
axel
i make sure the compile goes fine then i update
Jupstar ✪ 11/8/2023 11:08AM
Thanks
Avatar
maybe i just didn't remember it right cuz I sure wasn't using arch. and ubuntu does use python3 instead of python i think?
Avatar
Jupstar ✪ 11/8/2023 11:10AM
I'm surprised they don't do a meta package, since Python package straight doesn't exist
11:11AM
That's pretty common to do a meta package that references the current version
11:11AM
E.g. clang will install latest version but u can still install older version explicitly
Avatar
maybe they wanna make sure people understand which version they are installing or smth?
11:12AM
if u come from older versions
Avatar
where was python1
Avatar
Jupstar ✪ 11/8/2023 11:13AM
where is the effort to remove python dep
Avatar
u arent using python?
Avatar
Jupstar ✪ 11/8/2023 11:14AM
i try to not touch it
Avatar
i used to use python regularly until typescript showed up on my radar
Avatar
python > typescript
Avatar
by regularly i mean just simple scripts like batch renaming stuff
11:15AM
and i don't know bash
Avatar
bash sucks i love it
Avatar
Jupstar ✪ 11/8/2023 11:15AM
python comes straight from hell
Avatar
Avatar
TsFreddie
by regularly i mean just simple scripts like batch renaming stuff
I use shell (well I am on linux)
Avatar
Jupstar ✪ 11/8/2023 11:15AM
it's there to be hated
Avatar
Avatar
Mr.Gh0s7
I use shell (well I am on linux)
I did learn powershell scripts for a while
Avatar
I also use lf (file manager) with some custom scripts that zogtib made to batch rename stuff
Avatar
but everything is a bit long so i just use nodejs now
Avatar
Avatar
TsFreddie
I did learn powershell scripts for a while
Jupstar ✪ 11/8/2023 11:16AM
banhammer
Avatar
i mean one of my old projects still uses powershell as build scripts
Avatar
so renaming stuff is very easy bcs when you want you just open lf select the folders/files you want and it opens them up in your text editor and I rename them from there :). And since I use vis which has mutliple cursors renaming stuff is very easy ;).
Avatar
Avatar
TsFreddie
i mean one of my old projects still uses powershell as build scripts
yuck
Avatar
Avatar
Mr.Gh0s7
I also use lf (file manager) with some custom scripts that zogtib made to batch rename stuff
batch renaming is done with vidir from moreutils
😮 1
Avatar
i didn't say i liked it
11:18AM
11:18AM
it's just there
11:18AM
lol
11:18AM
and i guess i did wrote bash scripts
Avatar
Jupstar ✪ 11/8/2023 11:18AM
have you tried to light it?
Avatar
probably hated it more than ps1
Avatar
um should i do a pull request to update readme deps too?
Avatar
Jupstar ✪ 11/8/2023 11:19AM
yes
Avatar
oki cool
Avatar
lmao
Avatar
Jupstar ✪ 11/8/2023 11:22AM
that's at least a straight forward script
Avatar
ye, just run some nodejs stuff and zip
Avatar
set -e, set -o pipefail set -o nounset are nice flags for bash scripts
Avatar
bruh i'm rich
Avatar
is it ur onlyfans
Avatar
Avatar
TsFreddie
bruh i'm rich
Jupstar ✪ 11/8/2023 11:25AM
i mean have or not have xd
Avatar
man if my onlyfans only earns 7 dollars per month i'm gonna die
Avatar
so u earn more from ur onlyfans
Avatar
probably
Avatar
Jupstar ✪ 11/8/2023 11:25AM
but i don't want to know how many hours u've spent for this money xD
Avatar
haven't checked
Avatar
Avatar
Jupstar ✪
but i don't want to know how many hours u've spent for this money xD
like a week probably lol
Avatar
uuuh should i create an issue for my pull request
11:26AM
im github noob
Avatar
Avatar
TsFreddie
like a week probably lol
Jupstar ✪ 11/8/2023 11:27AM
😮 ok that's nothing
Avatar
i think pull request would suffice if you already have a PR to submit
Avatar
Avatar
Jupstar ✪
😮 ok that's nothing
my projects usually aren't more than a week long
Avatar
Avatar
TsFreddie
my projects usually aren't more than a week long
Jupstar ✪ 11/8/2023 11:27AM
so this is the money for a single project?
Avatar
ye
11:27AM
i don't have more
Avatar
Jupstar ✪ 11/8/2023 11:28AM
i see, well then gg. 10$ per month is good
Avatar
this is the only one i'm feeling good enough for a paid plugins
Avatar
Jupstar ✪ 11/8/2023 11:28AM
if the project keeps getting in the money for like 2 years xd
Avatar
too bad unity is going to die
feelsbadman 1
Avatar
Jupstar ✪ 11/8/2023 11:29AM
xdd rip
Avatar
i do hate that I have so many projects to maintain tho
Avatar
morning
🌅 1
Avatar
sometime a random issue would just pop up for a thing that I made like three years ago
11:30AM
then i have to relearn all the stuff i was using at the time to fix it
11:30AM
none of the "currently have people using them" projects are using the same languages
11:30AM
lmao
Avatar
Avatar
TsFreddie
sometime a random issue would just pop up for a thing that I made like three years ago
Jupstar ✪ 11/8/2023 11:31AM
rip. is that a problem with android? or also unity projects?
Avatar
nah, i just have a lot of stuff
Avatar
Jupstar ✪ 11/8/2023 11:32AM
ok. i once used play services in my teenages.. and man google changes the api like every week back then xD
Avatar
I had like a spa with javascript, a piracy server backend with typescript, a input method script with lua , a unity plugin with C# and another unity plugin that interlops with tsx.
Avatar
Jupstar ✪ 11/8/2023 11:33AM
why don't you simply drop the projects that break ?
Avatar
idk
11:34AM
people still use them
Avatar
Jupstar ✪ 11/8/2023 11:34AM
more than 0.5 ppl?
Avatar
probably in the thousands
11:34AM
not the unity plugins tho
11:34AM
the other stuff
Avatar
Jupstar ✪ 11/8/2023 11:34AM
lol, OSS or money?
Avatar
unlicensed but does live on github kind of open-source
Avatar
Jupstar ✪ 11/8/2023 11:35AM
i c
Avatar
it's not like I wrote them as open-source projects
11:35AM
it's just a thing that I need and people picked it up randomly
Avatar
Jupstar ✪ 11/8/2023 11:35AM
i was just wondering if you at least get smth back for maintaining old projects
Avatar
i guess not
11:36AM
like where did all these people come from
11:37AM
this is just the discord for that server thing
11:37AM
justatest
Avatar
Jupstar ✪ 11/8/2023 11:37AM
wtf, u fame bro xdd
Avatar
TsFamous
Avatar
Jupstar ✪ 11/8/2023 11:37AM
is just the question if they real ppl xdd
Avatar
idk actually
11:38AM
i think most people in the discord are joined just to see if we have pirated games
11:40AM
like we don't actually provide any games, it's just a server software that allows those legally questionablue games to run. so maybe a bunch of people just joined and saw there was nothing and just let the server sits in their discord
11:40AM
Catxplosion it is funny sometime you find people selling your stuff when it is openly available for download
😂 1
Avatar
Jupstar ✪ 11/8/2023 11:41AM
tsfreddie the mmo reverse engineer
Avatar
it is kinda cool to have to write these in a life time
poggers2 1
11:43AM
kek
Avatar

Checklist

  • [N/A ] Tested the change ingame
  • [N/A ] Provided screenshots if it is a visual change
  • [ Yes] Tested in combination with possibly related configuration options
  • [ N/A] Written a unit test (especially base/) or added coverage to integration test
  • [ N/A] Considered possible null pointers and out of bounds array indexing
  • [ N/A] Changed no physics that affect existing maps
  • [ N/A] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/...
Avatar
Avatar
TsFreddie
it is kinda cool to have to write these in a life time
Jupstar ✪ 11/8/2023 11:44AM
really interesting how much stuff u already done in your young age xdd how do you find time for them while having a 18h job xDD
Avatar
ez
Avatar
10x dev
Avatar
not have a job before doing the 18h jobs
11:45AM
rate my dashboard for that thing
Avatar
Jupstar ✪ 11/8/2023 11:45AM
😬
Avatar
Avatar
TsFreddie
rate my dashboard for that thing
i have ur ip now
Avatar
Jupstar ✪ 11/8/2023 11:46AM
127.0.0.1
Avatar
wtf we have the same ip
Avatar
Avatar
TsFreddie
rate my dashboard for that thing
Jupstar ✪ 11/8/2023 11:46AM
i dunno looks very generic. i rate it a 7/10
Avatar
fair enough
Avatar
it looks good
Avatar
Avatar
Jupstar ✪
really interesting how much stuff u already done in your young age xdd how do you find time for them while having a 18h job xDD
also I've been working on some stuff that is technically for work but it happens to benefit my personal project as well
11:52AM
  • company needs a UI framework for Unity
  • I had released one before
  • added dependency at work
  • the framework was old
  • fixed them for work so it works for company
  • contribute upstream as company
  • upstream is me
11:52AM
justatest
Avatar
btw my leader told me not to ever use git to push code onto anywhere public. but i don't see how they can MITM ssh connections without me noticing.
Avatar
Avatar
GitHub
Click to see attachment 🖼️
@axel Just so you know, you can either put an x in the [] or an empty space and they will be formatted as an actual checkbox :)
Avatar
Avatar
furo
@axel Just so you know, you can either put an x in the [] or an empty space and they will be formatted as an actual checkbox :)
oh ok
Avatar
Avatar
TsFreddie
bruh i'm rich
atleast u make something off side projects
11:58AM
i wonder if i could make a side project that makes $
11:58AM
but i never have ideas and im tired and lazy
Avatar
i'm also tired and lazy
11:59AM
i'm just more greedy than you
11:59AM
owo
Avatar
true
11:59AM
i guess im comfortable enough with my job salary
Avatar
it's literarily just a plugin that let you tag objects. people can make that with one single script in less than 20 lines
12:00PM
thats the money maker mindset
12:00PM
i need to get it too
12:00PM
but i dont know what to do
12:00PM
xd
12:00PM
can u sell godot plugins?
12:00PM
maybe thats a start
12:00PM
or since im so into ff14 i could make smth there
Avatar
you can
Avatar
its easier if it has a oficial marketplace i guess
Avatar
there is thirdparty godot market place
Avatar
Regarding https://github.com/ddnet/ddnet/issues/7399 If i implement a change where it looks at the images for duplicates, renaming the ones that have different data but the same names, do i need to update some pointers for the tile layers etc that point to the now renamed image?
For example, appending cft1 to itself will result in every vanilla image being added twice to the map. This also affects embedded images. We don't allow adding two images with the same name, bu...
Avatar
and the first party one is on the way
Avatar
if i can make godot rust plugins
12:01PM
that would be fun
12:01PM
@TsFreddie url?
Avatar
just cross compile for all platforms and bundle them, then no one really cares if it is rust
Avatar
Avatar
Ryozuki
@TsFreddie url?
let me find it
Avatar
yeah
12:02PM
i can do that with a github action
Avatar
i think to sell plugins you have to remember you are making them for non coding people
Avatar
In my opinion, it would be more fool-proof that if there are images with duplicate names, the appending is aborted? The user should know best?
12:02PM
like this
Avatar
Avatar
TsFreddie
i think to sell plugins you have to remember you are making them for non coding people
yeah
12:03PM
i guess it is just called that
Avatar
i also found this https://godotassets.io/
Godot Assets Marketplace - buy, sell, and discover Godot Assets.
12:03PM
urs looks more dope tho
Avatar
an offical one would be cool
12:04PM
iirc they did say they are working on making monetization possible on the offical one
Avatar
yeah
12:04PM
i wonder if there is any ppl buying at all there tho
Avatar
u mean i should use that tool when appending a map in the editor?
Avatar
Avatar
axel
u mean i should use that tool when appending a map in the editor?
no that is unrelated to whathever u are talking about, its meant for @TsFreddie
Avatar
that tool takes 2 maps
12:05PM
and shows the difference in changes
Avatar
ah yeah ok
Avatar
by placing a new group
12:05PM
and red green yellow tiles
12:05PM
like git diff
Avatar
Avatar
axel
Regarding https://github.com/ddnet/ddnet/issues/7399 If i implement a change where it looks at the images for duplicates, renaming the ones that have different data but the same names, do i need to update some pointers for the tile layers etc that point to the now renamed image?
I think it should just ignore duplicates, because in most cases it's going to be the same texture/asset.
👍 2
Avatar
ok if nobody has a strong opinion about it i just abort the appending if there is name collisions
12:06PM
yeah
Avatar
@TsFreddie did u ever make any roblox stuff
12:07PM
i hear the market size is insane
Avatar
Avatar
axel
Regarding https://github.com/ddnet/ddnet/issues/7399 If i implement a change where it looks at the images for duplicates, renaming the ones that have different data but the same names, do i need to update some pointers for the tile layers etc that point to the now renamed image?
Jupstar ✪ 11/8/2023 12:10PM
best is you either just try out a bit, or discuss this directly in the issue 😄 here it will be lost but yeah renaming sounds good to me
Avatar
Avatar
furo
I think it should just ignore duplicates, because in most cases it's going to be the same texture/asset.
you already lost it @Jupstar ✪ ?
Avatar
Avatar
Ryozuki
@TsFreddie did u ever make any roblox stuff
i considered it when I was like 16
12:12PM
then I found out people usually make games with unity
12:12PM
didn't realize roblox stuff is money milking machine
12:13PM
i have a friend working for a company that make roblox and minecraft contents
Avatar
Jupstar ✪ 11/8/2023 12:13PM
if u want to be fame, add mario character to every game in existence
Avatar
Avatar
Mr.Gh0s7
you already lost it @Jupstar ✪ ?
Jupstar ✪ 11/8/2023 12:13PM
i am lost
Avatar
Avatar
furo
I think it should just ignore duplicates, because in most cases it's going to be the same texture/asset.
Pointers to the ignored images (and sounds) need to be updated to point to the respective existing images though
Avatar
Avatar
Ryozuki
i hear the market size is insane
it's for kid who like to stole parents' credit cards
Avatar
Jupstar ✪ 11/8/2023 12:15PM
as if you never stole money from u parents
Avatar
Unlock your imagination with Roblox Creator Hub - the ultimate platform for building and publishing games for free. Join a vibrant community of creators today and publish your ideas to millions of people around the world. This world is ours for the making!
12:15PM
they got a whole ass unity-like editor
Avatar
Avatar
Ryozuki
no that is unrelated to whathever u are talking about, its meant for @TsFreddie
i don't get it
Avatar
Avatar
TsFreddie
i don't get it
nvm it
12:15PM
what lang uses robolox
12:15PM
im sure its c#
Avatar
Avatar
Jupstar ✪
as if you never stole money from u parents
get out of my head
Avatar
Avatar
Ryozuki
im sure its c#
lua
12:16PM
modding is usually lua just for the embedability
Avatar
Scripts are containers that hold Luau code and can modify the properties and behaviors of other objects. You can use scripts to implement the overall logic of your experience to do things like manipulate an object, change its appearance or events, or respond to user interactions.
12:17PM
damn
12:17PM
its always lua
12:17PM
my worst nightmare
Avatar
i did use lua when I was making that tetris game in dota2
12:17PM
but I found a typescript to lua compiler and switched to typescript instead
Avatar
Jupstar ✪ 11/8/2023 12:18PM
Ryo's brain: Rust > WASM > rest
12:18PM
i agree with u ryo
Avatar
they made typings and stuff for dota2 that is in lua which is hilarious but also pretty awesome
12:20PM
I like languages that I can just pick up in 10 minutes and make a fun weekend projects
12:20PM
which is why I still can't learn rust
12:20PM
it's just not aligned with my brain
Avatar
Jupstar ✪ 11/8/2023 12:20PM
it's ok, i won't blame you. but i shame you
12:21PM
for 99.99% the language doesnt matter anyway
Avatar
Avatar
TsFreddie
I like languages that I can just pick up in 10 minutes and make a fun weekend projects
rust!
Avatar
i might distrub y'lall, but i get a bug while making own RPC, it just won't appear so i have a problem with small_image, does someone know how to fix this?
12:23PM
a bit wrong code
Avatar
i guess idle is not a good uuid
12:23PM
hm actually i forgot how discord works
Avatar
well, im using static float OldUpdateTime = Client()->LocalTime(); if (OldUpdateTime + 5 < Client()->LocalTime()) { OldUpdateTime = Client()->LocalTime(); IDiscord *discord = Kernel()->RequestInterface<IDiscord>(); int LocalID = m_aLocalIDs[g_Config.m_ClDummy]; bool Afk = m_aClients[LocalID].m_Afk; if(!discord) return; const char *pText; const char *pImage; if(Afk) { pText = "Idleing..."; pImage = "idle"; } else if(Client()->State() != IClient::STATE_ONLINE) { pText = "Chilling in menus"; pImage = "menu"; } else { pText = "Playing"; pImage = "greenline"; } discord->SetGameInfo(Client()->ServerAddress(), Client()->GetCurrentMap(), false, pText, pImage); }
owo 2
Avatar
but this is a problem with understanding the discord rpc
Avatar
Avatar
Ryozuki
rust!
it's too hard
Avatar
pub trait ValueDeserializer<'a, TType, TLibfunc> where Self: for<'de> DeserializeSeed<'de, Value = NonNull<()>>, TType: GenericType, TLibfunc: GenericLibfunc, { fn new( arena: &'a Bump, registry: &'a ProgramRegistry<TType, TLibfunc>, info: &'a <TType as GenericType>::Concrete, ) -> Self; }
12:29PM
looks easy!
Avatar
and honestly it's hard to find a reason to learn it other than I just want to make something fast and safe. but I don't really need speed and i don't really understand safety anyway.
Avatar
Avatar
TsFreddie
and honestly it's hard to find a reason to learn it other than I just want to make something fast and safe. but I don't really need speed and i don't really understand safety anyway.
u should learn it cuz its kinda fun idk how to say it, its u get the power of c++ with modern tooling
12:30PM
and u say u dont understand safety
12:30PM
it will teach u a bit
Avatar
i mean i get that
12:31PM
but i don't even use C++ for the stuff that I do
12:31PM
Catxplosion
Avatar
shame, shame, shame!
12:31PM
Avatar
even in godot i'll just use gdscript instead of C# even tho it is so much slower
12:33PM
owo i'm sure if rust is required at work i could pick it up in less than a week
12:37PM
actually, is working for Valve a cool thing to be a dream goal. I remember i think it would be cool to work for Valve but i don't remember why nowamogus
Avatar
Avatar
TsFreddie
actually, is working for Valve a cool thing to be a dream goal. I remember i think it would be cool to work for Valve but i don't remember why nowamogus
if you can only count to two, then yes
Avatar
oh right. I was trying to find some quality sound design tools and presets then I realize it's like music which really is a expensive hobby to learn.
12:40PM
like a VST specifically for one type of soundscape costs like 400 dollars
12:41PM
like wtf
12:42PM
and if you just want samples, some libraries costs $150 a year on subscriptions
12:42PM
justatest
Avatar
ok another question, when im left servers, pMapName dont want to disappear
Avatar
Avatar
-StormAx
ok another question, when im left servers, pMapName dont want to disappear
why did I saw chillerdragon at first glance in that first screenshot
Avatar
lul
12:44PM
idk
Avatar
as a chinese person who doesn't really speak english anymore. i still remember the day chillerdragon just give up on typing and proceed to sent me voice messages.
poggers2 1
Avatar
ChillerDragon im gonna yoink your TeeCaptcha idea greenthing
Avatar
what teecaptcha idea
Avatar
TeeCaptcha has 2 repositories available. Follow their code on GitHub.
Avatar
oh
12:56PM
lol
12:57PM
make one with properly styled modal
Avatar
is it just going to be images or randomly generated? because if it was just images i could just train a bot to read all the inputs LOL
Avatar
Or make one where u have to select a map by name justatest
Avatar
the chillers one you can just get the answer from his repo i think
Avatar
MilkeeyCat 11/8/2023 1:00PM
It will be hard for ppl who spend all their time on multeasymap
Avatar
ye, there are just 22 sets of fixed images
1:00PM
23*
1:02PM
also read from io for every request is insane lol
Avatar
GitHub BOT 11/8/2023 1:02PM
9fc6358 Changes python -> python3 for Debian dependency - axel c3c4b48 Merge pull request #7421 from apelsin21/master - def-
Avatar
man i'm so sleepy again
feelsbadman 1
Avatar
Would also be cool if the images are captured from a live game server.
Avatar
Avatar
TsFreddie
is there a job title for people who just write documentations?
heinrich5991 11/8/2023 1:28PM
technical writer
Avatar
I do FILE *f = fopen(pathname, "r") but when I execute the program it's relative to the path I execute it from. Is there a way for it to be absolute. (btw the pathname is "data/shaders")
1:31PM
The way I do it rn is that I cd to the neccessary folder first and then execute but that seems hackish to me
Avatar
Avatar
Mr.Gh0s7
I do FILE *f = fopen(pathname, "r") but when I execute the program it's relative to the path I execute it from. Is there a way for it to be absolute. (btw the pathname is "data/shaders")
Jupstar ✪ 11/8/2023 1:31PM
Put the full path as parameter
Avatar
heinrich5991 11/8/2023 1:31PM
it'd need to start with /
Avatar
Avatar
Jupstar ✪
Put the full path as parameter
Yeah ig my question was bad. I don't know how to get the full path
Avatar
Jupstar ✪ 11/8/2023 1:31PM
Do you ist cpp17?
1:32PM
Use
Avatar
I ist C
Avatar
Jupstar ✪ 11/8/2023 1:32PM
Mh Just Look how ddnet did it xd
1:32PM
Or Internet
Avatar
i literally repurpose other code from ddnet to make updates LOL
Avatar
Avatar
Jupstar ✪
Mh Just Look how ddnet did it xd
so if I do that I am Pixel?
Avatar
Jupstar ✪ 11/8/2023 1:35PM
Yes
Avatar
:O
Avatar
Jupstar ✪ 11/8/2023 1:35PM
U also get his art skills
Avatar
IM NOT PIXEL ‼️‼️‼️‼️
Avatar
I am now!
1:37PM
because Pixel != Voxel
Avatar
Jupstar ✪ 11/8/2023 1:37PM
Ur pixel * 6
Avatar
void gettargetdir(char *dirbuf, char *argv0) { size_t off; char *ls; /* last slash '/' */ if (!(ls = strrchr(argv0))) { strcpy(dirbuf, "."); return; } off = ls - argv0; strncpy(dirbuf, argv0, off); dirbuf[off] = '\0'; } int main(int argc, char *argv[]) { char targetdir[PATH_MAX]; gettargetdir(targetdir, argv[0]); chdir(targetdir); } @Mr.Gh0s7 (edited)
1:41PM
argv[0] should be valid, it's the only way to get a short-of path of the executable (without using /proc)
1:42PM
argv[0] couldn't be used only if it is intentionally invalid
Avatar
Avatar
zogtib
void gettargetdir(char *dirbuf, char *argv0) { size_t off; char *ls; /* last slash '/' */ if (!(ls = strrchr(argv0))) { strcpy(dirbuf, "."); return; } off = ls - argv0; strncpy(dirbuf, argv0, off); dirbuf[off] = '\0'; } int main(int argc, char *argv[]) { char targetdir[PATH_MAX]; gettargetdir(targetdir, argv[0]); chdir(targetdir); } @Mr.Gh0s7 (edited)
u can put c after the backsticks for color
Avatar
Avatar
Ryozuki
u can put c after the backsticks for color
true XD but I'm so used in no syntax highligting
Avatar
damn oldschool
1:43PM
im a kid i like colors
Avatar
no way I'd guess it was missing XD
1:43PM
so I'd edit it right?
Avatar
u can edit it
Avatar
Avatar
Jupstar ✪
Mh Just Look how ddnet did it xd
ddnet uses argv[0] too I guess I shall do it the zogtib way :)
Avatar
Avatar
Mr.Gh0s7
ddnet uses argv[0] too I guess I shall do it the zogtib way :)
You could undo the chdir if you need, but prob you won't.
Avatar
u can also use getenv to get home dir
Avatar
Avatar
zogtib
true XD but I'm so used in no syntax highligting
Jupstar ✪ 11/8/2023 1:46PM
Do u seriously want to tell me u code without colors?
Avatar
maybe its more portable
Avatar
Avatar
Jupstar ✪
Do u seriously want to tell me u code without colors?
haxxor
Avatar
Avatar
Jupstar ✪
Do u seriously want to tell me u code without colors?
I currenlty do, didn't always 🙂
Avatar
Avatar
Jupstar ✪
Do u seriously want to tell me u code without colors?
I do only syntax-highlighting for comments
Avatar
@zogtib r u 60y old
Avatar
Avatar
zogtib
I currenlty do, didn't always 🙂
Jupstar ✪ 11/8/2023 1:47PM
Do you intentionally make your life harder or what xd
Avatar
This article details how htmx with Rust and Shuttle can speed up your workflow and let you focus on the code with the assistance of Axum and Askama.
Avatar
Avatar
Jupstar ✪
Do you intentionally make your life harder or what xd
syntax highligting hides beautiful code structure or smth
Avatar
lol no
Avatar
coloring helps seeing the 60% (let's say) easier but makes seeing the 90%+ harder
Avatar
Jupstar ✪ 11/8/2023 1:48PM
I already die when phantom code for parameter name doesn't work xd
Avatar
at least for me ig
Avatar
?? xd
Avatar
also I currently program in C so syntax isn't very complicated or smth
Avatar
do u program in c for a living
Avatar
I'm in uni, I'm supposed to study for that but... (long story)
Avatar
@Jupstar ✪ i want to make my own data format and learn serde deep
1:49PM
any idea
1:50PM
teeformat
Avatar
Avatar
zogtib
also I currently program in C so syntax isn't very complicated or smth
currently kek. soon™ in your own
Avatar
Avatar
Ryozuki
@Jupstar ✪ i want to make my own data format and learn serde deep
Jupstar ✪ 11/8/2023 1:50PM
You could try to serialize data for wasmer
Avatar
well i think im learning serde deep rn cuz my work
Avatar
Avatar
Jupstar ✪
You could try to serialize data for wasmer
what format does it use
Avatar
Avatar
Ryozuki
what format does it use
Jupstar ✪ 11/8/2023 1:51PM
Your own xd
Avatar
Avatar
zogtib
I'm in uni, I'm supposed to study for that but... (long story)
Jupstar ✪ 11/8/2023 1:52PM
When i was in uni i also coded fng mod in notepad++. And i have to say, i don't miss these times xD The cool thing is that u have to remember variable names better etc But once u forget them, rip
Avatar
i never was in uni
1:52PM
take that
1:52PM
ez
1:52PM
well i was 1 year
Avatar
i saved probably like 3k€ and got a job so instead i got money
Avatar
Avatar
Jupstar ✪
When i was in uni i also coded fng mod in notepad++. And i have to say, i don't miss these times xD The cool thing is that u have to remember variable names better etc But once u forget them, rip
I open other files in less so I can see variable names etc directly, I don't use memory for everything.
Avatar
@snail TOCTOU justatest
Avatar
Avatar
zogtib
I open other files in less so I can see variable names etc directly, I don't use memory for everything.
u can pipe less with bat
1:55PM
for colors
1:55PM
made in rust btw
1:55PM
A cat(1) clone with wings. Contribute to sharkdp/bat development by creating an account on GitHub.
Avatar
also I cannot for not colors 🙂
1:55PM
I know bat already 🙂
Avatar
I use bat for colored inspect
Avatar
with neovim u can use bat
1:56PM
for previewing
Avatar
i use my eyes for colors
Avatar
because thats how i see (edited)
Avatar
i use exa instead of ls
Avatar
Avatar
Mr.Gh0s7
Click to see attachment 🖼️
burn
1:57PM
I am a ghost 🥼 🎩
1:57PM
Rust is the language where you get the hangover first.
Avatar
Avatar
Mr.Gh0s7
Click to see attachment 🖼️
what
Avatar
Avatar
Voxel
what
this is lf (terminal file manager)
Avatar
I keep forgetting you're on windows though feelsbadman
Avatar
Avatar
Mr.Gh0s7
I keep forgetting you're on windows though feelsbadman
lf is in Go and has Windows support
Avatar
You seem like someone that would love unix feelsamazingman
Avatar
idk what unix is
Avatar
ikr feelsbadman
Avatar
u know what unix is
1:59PM
right? xd
Avatar
I do.
monkaS 1
Avatar
i mean voxel
kek 1
1:59PM
maybe he is trolling
Avatar
Avatar
Mr.Gh0s7
Click to see attachment 🖼️
My eyes 1282confused
Avatar
Avatar
Ryozuki
u know what unix is
i do not
2:01PM
is it an app
Avatar
UNIX technically is a trademark
2:01PM
linux, FreeBSD, OpenBSD etc are all UNIX-like Operating Systems
Avatar
Avatar
Mr.Gh0s7
Click to see attachment 🖼️
Look at this masterpiece
Avatar
so linux cannot be called UNIX (UNIX is a trademark) but they behave similarly, they have common functionallity hence linux is UNIX-like (edited)
Avatar
Avatar
Ryozuki
@snail TOCTOU justatest
toctou for life
Avatar
Avatar
zogtib
linux, FreeBSD, OpenBSD etc are all UNIX-like Operating Systems
ohhhh ok
2:25PM
@heinrich5991 @Learath2 @Jupstar ✪ !
2:25PM
It’s official: Ferrocene is ISO 26262 and IEC 61508 qualified! You can even find the certificate in TÜV SÜDs certificate database.
2:26PM
Die Transparenz unserer Prüfzeichen ist uns wichtig. Sie finden Verbraucherinformationen zu relevanten TÜV SÜD-Prüfzeichen hier im Zertifikatsexplorer.
2:26PM
This means we achieved qualification for the open source Ferrocene toolchain. Ferrocene 23.06.0, based on Rust 1.68, is now fully usable in safety critical environments.
🔥 1
2:26PM
With these qualifications, Rust can now be used to develop software for electronic systems in series production road vehicles. We’ve qualified Ferrocene for use in systems up to ASIL D – the highest classification of initial hazard as defined by this standard. This standard provides automakers with guidelines that make the software being used to develop, produce, operate and service the automotive sectors safe to use. Beyond the automotive, Ferrocene can also be used in electronic programmable systems in the industrial sector. Here the focus is on developing products or applications that carry out safety functions. Like the automotive certification, we’ve also gone for the highest level of risk reduction and qualified it at SIL4. “Ferrocene is a major achievement both for Rust and safety in automotive,” says Florian. “It shows that Rust software can be used in all critical environments. The process was challenging but matched what we’ve come to expect from Rust: It enables building correct software at a much lower cost.” With this step, we can start rolling out the sales process on Ferrocene. Our initial availability is limited to a minimum order of 10 license seats for 12 months, starting at €2.400,00 (€240 each) for the quality managed licenses.
Avatar
Jupstar ✪ 11/8/2023 2:27PM
Cool
2:27PM
Maybe
2:28PM
But why does it cost money xd
Avatar
safety licenses cost
2:28PM
i bet they spend a lot to get their compiler qualified
2:28PM
but this is aimed at big corpo
2:28PM
they got the money to pay that xd
Avatar
Jupstar ✪ 11/8/2023 2:28PM
Then why doesn't it only cost money for them
2:29PM
u need the qualification when using the software on a distributed car
2:29PM
i guess u dont need the license for it if u dont
2:29PM
@Jupstar ✪ the source code is open btw
2:29PM
u can use it
2:30PM
Source code of Ferrocene, safety-critical Rust toolchain - GitHub - ferrocene/ferrocene: Source code of Ferrocene, safety-critical Rust toolchain
Avatar
GitHub BOT 11/8/2023 2:34PM
This adds a button to rename embedded images/sounds. https://github.com/ddnet/ddnet/assets/141338449/d9aff070-8559-46d6-ba3d-d4fd11752e07

Checklist

  • [x] Tested the change ingame
  • [x] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possible null pointers and out of bounds array indexing
  • [ ] Changed no phys...
Avatar
why tf i have error expected ; after class in variables andconfig_variables
2:34PM
Avatar
does the compiler or the IDE complain?
Avatar
GitHub BOT 11/8/2023 2:39PM
DDNet client, server, and tools from the CI will show this when trying to run (the ones from website releases actually works): `dyld[10907]: Library not loaded: /usr/local/opt/freetype/lib/libfreetype.6.dylib Referenced from: /Volumes/DDNet 17.3/DDNet.app/Contents/MacOS/DDNet Reason: tried: '/usr/local/opt/freetype/lib/libfreetype.6.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/usr/local/opt/freetype/lib/libfreetype.6.dylib' (no such file), '/usr/local/opt/freetype/li...
Avatar
Avatar
Ryozuki
@Jupstar ✪ the source code is open btw
Jupstar ✪ 11/8/2023 2:40PM
Awesome, now i will still not use it anyway xdd
Avatar
Avatar
GitHub
Click to see attachment 🖼️
Jupstar ✪ 11/8/2023 2:40PM
@Ryozuki non rust problems 😏
Avatar
Avatar
Teero
does the compiler or the IDE complain?
compiler
Avatar
Avatar
-StormAx
why tf i have error expected ; after class in variables andconfig_variables
Jupstar ✪ 11/8/2023 2:42PM
Search for ; in the file
2:43PM
The file is included multiple times
Avatar
Jupstar ✪ 11/8/2023 2:43PM
Also it's included in a textual sense
Avatar
Avatar
Jupstar ✪
The file is included multiple times
so i have to search where file was included twice?
Avatar
Jupstar ✪ 11/8/2023 2:44PM
Yes and look how the macro definitions look like
Avatar
Avatar
-StormAx
so i have to search where file was included twice?
that file is meant to be included multiple times
Avatar
Jupstar ✪ 11/8/2023 2:44PM
Or show the compile output
2:44PM
Maybe it's more clever
Avatar
C:\Users\storm\CLionProjects\StormAcl\src\././game/variables.h(8,1): fatal error C1189: #error: "The config macros must be defined" [C:\Users\storm\CLionProjects\StormAcl\cmake-build-debug-visual-studio\game-client.vcxproj
Avatar
Jupstar ✪ 11/8/2023 2:45PM
So u simply have a normal error xd
2:45PM
It even says what to do
Avatar
but where tf
Avatar
Jupstar ✪ 11/8/2023 2:45PM
Where did u include it
Avatar
Jupstar ✪ 11/8/2023 2:46PM
Isn't the compiler error longer
Avatar
Avatar
-StormAx
Click to see attachment 🖼️
Jupstar ✪ 11/8/2023 2:46PM
That won't work
2:46PM
It's not a header file
Avatar
it started
2:46PM
wtf
Avatar
Jupstar ✪ 11/8/2023 2:47PM
Not as u understand headers
Avatar
well
2:47PM
alr, thanks you for advide
2:47PM
i'll search for differend variation
2:47PM
ty:3
Avatar
learning opengl -- https://learnopengl.com/. Contribute to Inateblig/LearnOpenGL development by creating an account on GitHub.
2:55PM
Please critisize it ;)
Avatar
Jupstar ✪ 11/8/2023 3:01PM
Nice
3:01PM
But no screenshots xd
😖 1
Avatar
:O right I forgot
3:17PM
do you like my "build" system xD
Avatar
shell script justatest
Avatar
i rate it with 481/shell
3:21PM
thats 89.9254% !
3:24PM
oh thats cool
3:24PM
i just now realized
Avatar
why the .exe.....
Avatar
because it's an executable ¯\_(ツ)_/¯
Avatar
Avatar
Mr.Gh0s7
because it's an executable ¯\_(ツ)_/¯
3:35PM
also I forgot to do exercise 3 I am doing it now owo
Avatar
need a more docs. (edited)
Avatar
;)
Avatar
Avatar
Mr.Gh0s7
Please critisize it ;)
why does draw.c contain shader linking code xd
Avatar
bad name xD
3:41PM
should prob need to have setup or run
Avatar
are u making a tutorial or following a tutorial? i dont get it
Avatar
I am following one
3:43PM
Learn OpenGL . com provides good and clear modern 3.3+ OpenGL tutorials with clear examples. A great resource to learn modern OpenGL aimed at beginners.
3:46PM
5x faster than serde_json::json!()
Avatar
heinrich5991 11/8/2023 3:48PM
what's the use case for this?
3:48PM
can it maybe go into upstream serde?
Avatar
void str_append(char *dst, const char *src, int dst_size) { int s = str_length(dst); int i = 0; while(s < dst_size) { dst[s] = src[i]; if(!src[i]) /* check for null termination */ break; s++; i++; } dst[dst_size - 1] = 0; /* assure null termination */ str_utf8_fix_truncation(dst); } someone have an idea what happen lmao (edited)
Avatar
heinrich5991 11/8/2023 4:02PM
it says the source pointer is nullptr
4:02PM
if you call str_append(aBuf, nullptr, sizeof(aBuf)), it'll likely crash right there
Avatar
so, how can i actually fix this
Avatar
I just upgraded my client to the latest version of DDNet. And now I can't see the two #define justatest
Avatar
Avatar
-StormAx
so, how can i actually fix this
yo
Avatar
Avatar
Sedonya
I just upgraded my client to the latest version of DDNet. And now I can't see the two #define justatest
justatest 1st screenshot
Avatar
Avatar
Sedonya
yo
who are u
4:04PM
see u first time
justatest 1
Avatar
Avatar
heinrich5991
can it maybe go into upstream serde?
it skips serde_json::Value altogether
4:04PM
if u know how ur json looks it can be fast using that macro
4:04PM
well thats what i got from the comments
Avatar
Avatar
-StormAx
so, how can i actually fix this
u need to pass a non-null pointer as src
4:06PM
where do u call this method
Avatar
Avatar
Jupstar ✪
But no screenshots xd
I added them now :)
Avatar
Avatar
Mr.Gh0s7
I am following one
oh ok cool
👍 1
4:16PM
i know some opengl if u have a question
Avatar
i spend 1hr for resolve problem
4:19PM
i just worgot to put , in the end
Avatar
Avatar
axel
i know some opengl if u have a question
Will do, thanks :)
Avatar
uuuh how do i run the tests
4:39PM
for client
4:40PM
nvm im blind
Avatar
Avatar
Sedonya
I just upgraded my client to the latest version of DDNet. And now I can't see the two #define justatest
owo
Avatar
GitHub BOT 11/8/2023 4:47PM
!image Happens in both demo browser and editor. Solution would be to not have the "Show directory" button on "All combined". src/engine/shared/storage.cpp(764): Type invalid
Avatar
Avatar
Sedonya
I just upgraded my client to the latest version of DDNet. And now I can't see the two #define justatest
what is confusing
Avatar
Avatar
Ewan
what is confusing
#define is in dark color and cannot be called in the code, which causes a lot of compilation errors
Avatar
because it’s wrapped in an #ifndef
5:05PM
ifndef = if not defined
5:05PM
which it is, by the CMake
Avatar
Avatar
Sedonya
#define is in dark color and cannot be called in the code, which causes a lot of compilation errors
heinrich5991 11/8/2023 5:07PM
sounds like you should move SCLIENT_RELEASE_VERSION below the #endif
Avatar
heinrich5991 11/8/2023 5:16PM
yes
Avatar
Avatar
heinrich5991
yes
But I still want the regular version just as much
Avatar
The regular version will be defined properly by cmake. That's why it's grey
5:41PM
It is defined, so the ifndef doesnt happen
6:53PM
36bf22f Add button to rename images and sounds in editor. - furo321 755f077 Merge pull request #7422 from furo321/editor-rename-asset - Robyt3
6:59PM
Before: !image After: !image

Checklist

  • [x] Tested the change ingame
  • [x] Provided screenshots if it is a visual change
  • [ ] Tested in combination with possibly related configuration options
  • [ ] Written a unit test (especially base/) or added coverage to integration test
  • [ ] Considered possibl...
Avatar
GitHub BOT 11/8/2023 7:35PM
3ebf0ef Use correct corners for brush rotation buttons. - furo321 fa8640b Merge pull request #7425 from furo321/editor-correct-corners - Robyt3
Avatar
Have you guys touched any network related code? Today me and another played have had a very strange thing happen. We could perfectly see chat and other players movement but were completely unable to move. I'm not sending this on bugs cause it may be more network related (mine is reallyyy bad), but idk, never happened before as far as I can remember.
Avatar
heinrich5991 11/8/2023 9:03PM
you could not chat yourselves?
Avatar
hardly. message sometimes was sent quite fast, sometimes took a few seconds
9:04PM
but it was fixed after restarting the game
Avatar
This is an ancient bug. Has been around for half a decade
9:14PM
No idea how to trigger it, no theories on what it might be. Happens to me completely randomly sometimes. Usually preceded by a connection problems for just a sec
Avatar
heinrich5991 11/8/2023 9:14PM
not sure if it's a bug or the server not receving the messages
Avatar
Avatar
Devinci
hardly. message sometimes was sent quite fast, sometimes took a few seconds
heinrich5991 11/8/2023 9:14PM
was it on ger10?
Avatar
yes I think
Avatar
heinrich5991 11/8/2023 9:15PM
then I'd put the blame there @Learath2
Avatar
Avatar
Learath2
No idea how to trigger it, no theories on what it might be. Happens to me completely randomly sometimes. Usually preceded by a connection problems for just a sec
oh okay. strange I haven't had that earlier since I usually have those connection issues xd
Avatar
It happened to me way before ger10 and the advent of smartish xdp firewalls
Avatar
Avatar
heinrich5991
not sure if it's a bug or the server not receving the messages
by message you mean inputs? everything seemed to be working properly except for my movement. where it seemed like I had 10k ms when the game showed constant 70 (con control shift d)
Avatar
heinrich5991 11/8/2023 9:18PM
oh, so the input worked, just delayed a lot?
Avatar
And messages had a random delay almost as if the server was actively being ddosed?
Avatar
ehh idk. i'd like to say no. like the client was registering it but not the server so I was like going back? at least I spent like 5 minutes trying to reach a tile that was 1 jump away and couldn't xd
Avatar
Avatar
Learath2
And messages had a random delay almost as if the server was actively being ddosed?
no
9:23PM
well, mine yes
Avatar
For me when that happens either my messages are completely fine or delayed by several seconds
Avatar
okay maybe it was the same then
9:26PM
next time, hoping there wont be a next, I'll try to record it or something
Avatar
Avatar
Devinci
next time, hoping there wont be a next, I'll try to record it or something
heinrich5991 11/8/2023 9:28PM
if you can, record it with wireshark, too
Avatar
cyberFighter 11/8/2023 9:35PM
ive had those bugs before
9:36PM
well i dont know what bug i DIDNT have at this point
Avatar
does anyone know how to resolve this error when registering? (edited)
Avatar
Avatar
Ruby'
does anyone know how to resolve this error when registering? (edited)
heinrich5991 11/8/2023 9:36PM
please post it as text so that people can search for it
Avatar
GitHub BOT 11/8/2023 9:42PM
Apparently client authors are trying to get a "nice-looking" number. Obviously, the moment it was widely used for detecting bots, it became useless at it. Alternatively, we could just ban all versions that do not correspond to an actual release on official DDNet servers.
Avatar
Jupstar ✪ 11/8/2023 9:47PM
@Robyt3 tryhard xd
9:49PM
seems to be the most commented pr
9:49PM
in one week xDD
Avatar
why so many security warnings LMFAO
Avatar
Jupstar ✪ 11/8/2023 9:50PM
yeah dunno
9:50PM
github also doesn't respect them in their sort filter:
Avatar
Avatar
Voxel
why so many security warnings LMFAO
Trying to print a value of type size_t with %d format
Avatar
Jupstar ✪ 11/8/2023 9:51PM
print format specifiers are really annoying, ngl
Avatar
The ones for size_t are basically broke for translated texts because PRIzu is defined as different strings depending on compiler
Avatar
Jupstar ✪ 11/8/2023 9:52PM
xd
9:53PM
MSVC and c a love nobody understands
Avatar
true noby does understand kek
Avatar
We don't print size_t in any localized text though, and casing to int fixes it for most cases anyway
Avatar
heinrich5991 11/8/2023 9:53PM
just cast them to int I guess
Avatar
Jupstar ✪ 11/8/2023 9:53PM
Only Learath, master of all 4 compilers could stop them but when the world needed him most, he vanished
Avatar
GitHub BOT 11/8/2023 9:55PM
This fixes Allow client to still save settings that it doesn't know about. from #6660. Previously if you were to use a different client such as Tater-Client which shares the same config file as DDNet, the settings used from Tater-Client would be lost if you were to launch up DDNet again.

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 (es...
9:57PM
#3108
Avatar
If ppl see white textures its related to #2125 and you need to revert it, bcs thats not fixable, there is no extension for GL_GENERATE_MIPMAP or smth
Avatar
Jupstar ✪ 11/8/2023 9:57PM
😬 😬 😬 😬 😬 😬 😬
Avatar
Avatar
Jupstar ✪
Only Learath, master of all 4 compilers could stop them but when the world needed him most, he vanished
What am I stopping?
9:58PM
Ah printing size_t
10:00PM
Honestly, not printing size_t is the best
Avatar
Jupstar ✪ 11/8/2023 10:01PM
variadic templates are best
😃 1
Avatar
I want to print out the value of a size_t variable using printf in C++ using Microsoft Visual Studio 2010 (I want to use printf instead of << in this specific piece of code, so please no answ...
Avatar
Jupstar ✪ 11/8/2023 10:02PM
sadly mingw still makes trouble
10:03PM
at least that was the reason we removed it
Avatar
I dont even remember the mingw issue. Remind me pls
Avatar
heinrich5991 11/8/2023 10:20PM
apprently you need c99 for %z
10:20PM
perhaps msvc started supporting that nowadays?
Avatar
Ah but msvc refuses to even support c99 properly?
10:22PM
can't figure it out from this
10:22PM
but in theory they wanted to start supporting parts of it
10:23PM
something something fungal plant pathogens of the order pucciniales
Avatar
Avatar
Learath2
I dont even remember the mingw issue. Remind me pls
Jupstar ✪ 11/8/2023 10:25PM
Ask chairn. He uses mingw 1.0 on Windows 98 #6191
Avatar
Counter proposition to #6188. Redefines our own specifiers Checklist Tested the change ingame Provided screenshots if it is a visual change Tested in combination with possibly related configura...
Avatar
No support for z.... I hate Microsoft
10:27PM
With a passion
Avatar
OpenGL question :). Here https://learnopengl.com/Getting-started/Shaders on the More attributes! section it add color to the vertices array which I am not particulary fond of. Instead I made another array named colorsOfVertices and created GLuint VBOs[2] and then glBindBuffer(GL_ARRAY_BUFFER, VBOs[0]); glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(float), (void*)0); glEnableVertexAttribArray(0); glBindBuffer(GL_ARRAY_BUFFER, VBOs[1]); glBufferData(GL_ARRAY_BUFFER, sizeof(colorsOfVertices), colorsOfVertices, GL_STATIC_DRAW); glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(float), (void*)0); glEnableVertexAttribArray(1); instead of glBindBuffer(GL_ARRAY_BUFFER, VBO); glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW); glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 6 * sizeof(float), (void*)0); glEnableVertexAttribArray(0); glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 6 * sizeof(float), (void*)(3* sizeof(float))); glEnableVertexAttribArray(1);
Learn OpenGL . com provides good and clear modern 3.3+ OpenGL tutorials with clear examples. A great resource to learn modern OpenGL aimed at beginners.
Avatar
This mentions that support for %zu was added at VS 2013, but MinGW doesn't?
Avatar
Avatar
Mr.Gh0s7
OpenGL question :). Here https://learnopengl.com/Getting-started/Shaders on the More attributes! section it add color to the vertices array which I am not particulary fond of. Instead I made another array named colorsOfVertices and created GLuint VBOs[2] and then glBindBuffer(GL_ARRAY_BUFFER, VBOs[0]); glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(float), (void*)0); glEnableVertexAttribArray(0); glBindBuffer(GL_ARRAY_BUFFER, VBOs[1]); glBufferData(GL_ARRAY_BUFFER, sizeof(colorsOfVertices), colorsOfVertices, GL_STATIC_DRAW); glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(float), (void*)0); glEnableVertexAttribArray(1); instead of glBindBuffer(GL_ARRAY_BUFFER, VBO); glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_STATIC_DRAW); glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 6 * sizeof(float), (void*)0); glEnableVertexAttribArray(0); glVertexAttribPointer(1, 3, GL_FLOAT, GL_FALSE, 6 * sizeof(float), (void*)(3* sizeof(float))); glEnableVertexAttribArray(1);
This works btw. I forgot to actually ask something xD
10:39PM
Is it bad practice to do this? (create mutlitple VBOs for each to hold vertices and the color of the vertices)?
Avatar
Avatar
Mr.Gh0s7
This works btw. I forgot to actually ask something xD
Classic rainbow triangle :)
owo 1
Avatar
Avatar
Mr.Gh0s7
Is it bad practice to do this? (create mutlitple VBOs for each to hold vertices and the color of the vertices)?
Jupstar ✪ 11/8/2023 10:45PM
Mh hard to say if it's bad practice. It might be slightly less cache friendly because you load memory from two locations. It's maybe a bit more annoying to work with. But if u update your color buffers often, might actually be better. Do depends on your use case i guess. Like always. I personally would not split them
Avatar
Ok, thanks! 🥼 🎩
Avatar
I wouldn't split them either but I'm not a gfxwizard like jupsti
👍 1
Avatar
code question https://i.imgur.com/fUcLlTr.png Row.HMargin(2.0f, &Row); Row.VSplitLeft(Width, &Button, &Row); Button.VSplitLeft((Width - Button.h) / 4.0f, nullptr, &Button); Button.VSplitLeft(Button.h, &Button, nullptr); if(g_Config.m_ClShowChatFriends && !CurrentClient.m_Friend) DoButton_Toggle(&s_aPlayerIDs[Index][0], 1, &Button, false); else if(DoButton_Toggle(&s_aPlayerIDs[Index][0], CurrentClient.m_Foe, &Button, true)) CurrentClient.m_Foe ^= 1;
11:09PM
But button is unclickable
11:10PM
it popUps but, when i pressing, nothing happens
Exported 622 message(s)
Timezone: UTC+0