#GEEKDOME!
832 messages Β· Page 1 of 1 (latest)
Yaaaaaaaay I'm gonna do some stuff with Hydra and talk about it here
In case anyone's interested
Also any type of project inspiration would be great
might have to mess around with that during build times today
holy shit this is beautiful
It would be cool to do live as a paired DJ/Visual artist thing
I played around with this c compiler for the Gameboy a bunch last winter, it's really cool https://github.com/gbdk-2020/gbdk-2020
More technical or silly?
made a mtg life tracker lol
Either is fine! I just need better and more interesting experience
I'd be down to work on Pwnagotchis or flippers too
Do you know any HTML, JavaScript, or CSS?
Yup. Currently working with React and Java Spring boot
And I have an unnecessary amount of Cobol experience
I'm so sorry
Try making a simple note-taking website, maybe even use stuff like localStorage to save the notes.
If you wanna challenge yourself, try making it as efficent as possible or only use static hosting(no server code, just client code)
Gonna look into it
You can use InputArea element btw, it might really help
Also this runs on GB hardware
https://shin.itch.io/elden-ring-gb
Yeah, probably. I was using that for something at work
yo that's cool af
my friend and I are starting to consider saturn or Dreamcast homebrew for our next project but idk
I'd like to do larger gb projects buuuut being part of a company that has formal agreements with Nintendo means that's a weird legal ground
Nintendo is a stickler for that kind of thing too
making my game (resized here to have a good file size)
exactly. meanwhile Sega is like lol go for it nerd
May you inform me of what one?
gearbox software
Been thinking about getting into modding games like botw or elden ring. It looks fun
you def should, sometimes I wish I stuck with level design more
Huh, neat, thought they pretty much stopped game development after Alien, and stuck to publishing
nah borderlands is too big to fail at this point 
top 25 selling game series ever or something
I just do silly engine code stuff though
online code, but all in the game client. so like socket code in unreal engine up to implementing the game side of friends lists, matchmaking and any other social features. which blends into boring stuff like controller mapping, managing user logins to various backend services, etc
if it involves this interface in any way, my team handles it https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/Online/
socket programming is actually hell
it's not that bad once it clicks tbh
damn
Huh, thought controller mapping was as simple as "just press the input and name it, maybe change the sensitivity or specify what controller", but maybe Unreal isn't that easy.
as part of my grad school program yes, but that code is owned by the university. I think a lot about starting a new one but I'm more interested in actually making games in my spare time now so I use Godot and am slowly working through a set of rust and bevy tutorials
it's consoles that make it complicated
we historically support split screen, and that got really messy in the PS3/360 gen and later
yooo im using bevy rn :3
Ahh, because they don't use standard drivers and have special ones that only work with their controllers. (response about console controller mapping)
it is so good
What was your grad program about? Did you do a bachelor's in cs?
it's actually more because they console OS keeps the concept of "User" and "Controller" separate to support being able to change users without closing the game. So the game ends up being responsible for keeping that mapping accurate. Which isn't hard under normal circumstances, but once you start thinking about controllers running out of battery, consoles being put into suspend mode, or people yanking their Ethernet cable in the middle of logging in
For example, Xbox allows you to have four controllers all actively controlling the same user, and also let's you have four users actively logged in when only one controller is connected
Why don't they do what Steam Input does and make the gamepads virtual and handle everything outside of the game?
Couple reasons, one being that Xbox historically had the Kinect which involved biometric logins - where they'd use facial recognition to log someone in even if they weren't holding a controller. Another being that console users are used to things "just working" with minimal configuration
third being that you can log in and out of the platform without closing the game
on Xbox you have to allow the game to be controlled to some minimal degree with no users logged in lol
PlayStation is a little more straightforward but has their own quirks
Honestly, that sounds overcomplicated by Xbox. They literally made the standardised XInput drivers
I believe you, I just don't know why they would do that
It is, it ultimately boils down to making things simple for the user while also providing maximum flexibility
even on PC though, it gets complicated at times with how unreal handles dynamic detection of controllers being added and removed
are you implying that microsoft is not going to try to make something overcomplicated?
every project, I spend a significant amount of time fixing bugs related to them changing the low level input code in some slight way that breaks an edge case
I am lucky I am not on Windows on this PC, I can't deal with another 10 menus and 10 left clicks as welll as 5 right clicks to do something simple.
By that I mean you got a point
YIPPIE THE PIXELATION SHADER WORKS
you are using linux?
Yeah, just got Fedora Workstation 40 on a Old office PC
By just I mean about a week ago
nice :3
Honestly, my only problem have been that the mesa drivers don't fully support my ancient integrated graphics.
But Windows only supported a ancient version of OpenCL with it, meaning you could only run a browser and that's about it on that OS, not to mention how it had so much stuff going on at all times for no reason
I guess I gotta wait a bit tho for those drivers, finding a GPU for a Small Form Factor PC is near impossible
First one is original, second one compressed, tbh it's pretty damn good
Looks close enough for being 1/4th the original file size (if it's my format)
by having made dozens of games before
and having Annapurna money behind it
i made the filter even more subtle
geekdome where are you :(
at work!!!
good luck on your c++ grind π
Fighting for my life in elden ring
haii
Just learned of it, is it like Panda for Python?
Or is it more like a graphical game engine like Godot?
Btw, do you have a event input handler like in Godot?
I remember that detecting a keypress was a mess though Python and JavaScript too.
Have you considered making a script that captures the input then communicates it to all other scripts?
That way you only have to change one script as you can make the sender script change the input to work correctly before you send it forward.
Like translation middle man
Makes all the weird console languages a normal one
see the thing is unreal has multiple layers of input handling already, and the issues tend to crop up in those. and part of the issue is that unreal recently introduced a completely new input system called EnhancedInput which requires lots of fixes to my company's code that sits on top of it
like in unreal the input stack is something like
drivers -> OS -> low level engine stuff -> Slate (which is the basis of unreal's user interface) -> a mess of like three different interconnected systems -> my teams code
and even that's an oversimplification π
I suggest you download the unreal source for yourself and be awestruck by the nightmare that is a 20+ year old engine 
Geez, I thought they used something like XInput and DInput, already made standards
They do. That's what OS means in my oversimplification
I can barely understand my own code I wrote myself 10 minutes ago.
Is it some
func copy(Copy, Array, Array2):
Array = Array2 + [Copy,]
copyArray = []
for Copy in originalArray:
copy(Copy, copyArray, originalArray)
-type code?
it's more like monolithic 2,000 line functions that handle every edge case that every unreal developer has run into in the past 20 years
The function that processes keyboard state every frame is legit thousands of lines long, and that's only for keyboard input. Same thing applies to controllers, analog input, mouse events, touch screen, various VR controllers, etc. etc. lol
and that's all before it gets routed in to the old InputAction or new EnhancedInput systems which take those key events generated at the lower level and map them to gameplay concepts. those are complicated systems in their own right, and unreal has two that solve the same problem in different ways that you can use at the same time lol
Well, I'm starting to get a headache trying to understand that while also doing something else.
Maybe I'll revisit the nightmare looking description you just made later.
lmao
trust me this shits complicated, programmers who have been at my company for 15+ years doing this stuff aren't all that confident in their understanding of it either
I hope Godot is easier to work with if I ever wanna release to consoles.
I thought my multiplayer Input handler was a bit overcomplicated, didn't realise how simple it was compared to some other stuff
Why wouldn't they save the input in RAM(until it gotta be removed or a specific ammount of time) when it does happen, and if someone wants to check input they just check there?
I don't get why you gotta check every frame, because performance and what if you want it before a frame is processed?
Also, will it just run more checking scripts the more input methods you support?
Will it still check for controller input if you only support keyboard?
Or do you manually choose what input sources to check in the project settings or something?
.
This Unreal Engine input system is making me so damn confused.
it is an engine for rust, it is plugin based meaning that everything in it is made using plugins, even the engine itself
So the editor is simply the standard code editor you use for rust?
Does it have a integrated input handler?
- ye, i use vscode
- idk, but you can do stuff like this
Ahhh, so it has the input keycodes saved as variables, that itself makes things a lot easier to work with.
using rust is actually amazing, because on macos all include/library paths are broken having the ability to just cargo add bevy and then start coding is amazing
I somehow made my compressed image format download make the file 10 times larger than the original and not readable by my own damn algorithm.
That download function did some magic shit and generated new useless data that obliterates the compressed data and makes some unreadable gibberish.
I think I need a GUI interface for a bit longer.
Bevy may be great, but I don't know the first thing about Rust and I can barely use the programming languages I already know.
damn, anyway if you ever want to learn a low level language you should always start with c, it inspired the syntax of pretty much every language + its quite simple with its features since it only has 33 keywords
I should try it again, even though I somehow obliterated the compiler last time I tried.
...how?
I think mixed float and double in some math equation, I was just trying make a simple area calculator based on width and height
It's literally just width * height.
Or I declared the type wrong
you should use floats, most of the time doubles are completely useless
I think I was trying to use some input method and it kinda didn't have one of them, like I don't know.
In Sweden we write "5,1" instead of "5.1", maybe it's that
ohhhh, well actually everyone in europe write "5,1"
I have to read entire documentations to see if a function is spelled using "color", "colour" or some abbreviation.
And individual APIs use their own names.
I can't be sure something supports "5,1"
It's Zem dammned Americons foult!!
well , is an operator in c, so instead they use . for floats/doubles
Don't let me go on a tandrum on how the American company Microsoft ruined the meaning of Kilo(ALWAYS 1000) in kb(KiloBytes).
It's not 1024, boo!
My metric system knowing ass is looking at you with shame Bill.
real
@untold badger has leveled up! (11 β 12)
This stuff is so confusing, certain fields only accept "," yet other places use metric units and only accept "."
You follow the metric rules of measurements because you don't have a foot fetish or got a portable field with you at all times.
But you refuse to follow the metric standards for numbers, or even allow using them at all.
.
Godot uses meters yet calls it "color", but please don't stop using meters ffs.
Look at this damn chart and don't get a headache trying to understand it.
performance doesn't matter here, polling input takes maybe a microsecond or two, and checking every frame is necessary so that you don't miss player input
checking input happens very early in the game loop too, way before any gameplay systems are processed.
There are ways to check raw input state but unreal's input system lets you assign gameplay events to chorded inputs (multiple keys held), double inputs, inputs held for a certain time and a whole lot more.
Remember, it's a general input system designed to work in as many AAA games as possible without modification, so they try to handle literally every possible case. You always trade simplicity and performance for safety and flexibility when writing an engine that's supposed to work for everything
and yeah it tracks input for all connected devices, think about splitscreen. imagine I have three friends all trying to play a game each with our own controller. I launch a game on my steam account and navigate the main menu with my controller. how would the game know that other players are pressing to join the game? again it's not really a performance concern though because we are talking a microsecond or so for all input processing, when we have ~16 milliseconds per frame
and yeah you could disable controller support if you'd like and unreal will ignore it
oh you also gotta remember, a massive portion of unreal developers never touch c++. they stick to blueprint and so all of this stuff has.to be abstracted away
Ahh, okay. I guess Unreal engine doesn't really target lower end hardware such as old PCs and phones, so checking every frame wouldn't be a problem.
Or any phones for that matter, even the best popular ones aren't really that powerful.
They support Android and iOS, but phones are more powerful than you might think these days
I got a Galaxy S22 that has lags significantly if I scroll fast and have Spotify on in the background or something.
It also overheats from charging, hosting a hotspot, or playing any game.
I got this new
engineers make modern computer parts
developers dont optimise their code
the cycle begins again
unreal and most other engines use opengl, essentially we use the same graphics as ~13 years ago but more complex because some people want to see every individual piece of hair on a character
For Samsung and many other phones add:
Forget that electrical devices need any type of cooling and should handle charging without burning.
Don't add a big enough battery or make it easy to change it.
Market their device to do stuff that would make the phone hot and pull a lot of energy from the battery.
this
They keep marketing that their phone is great for the few things that they don't do well.
Like Apple saying you can game on your iPhone, while not giving you a way to add physical controlls or releasing a phone case with a gamepad glued on or something.
Sure you might game for a bit, but your hands will be hot and you can't check what buss to take home becuase the battery is dead
And you won't see anything because a phone is tiny and your fingers cover everything
also this
On paper they are, if it would have only been running only what you want like on a PC (I guess not anymore because Microsoft) then that would be great.
But those resources are split between a million different tasks, a phone wants to constantly:
Check if you got new eMail or messages.
Sync all files to some cloud storage.
Run apps so they can send you notifications.
Update all your apps.
Send marketing notifications.
Check for any new Bluetooth devices to automatically try to connect to (It literally does that for headphones that strangers on the buss are wearing).
Check for best cell tower connection.
Check if there is a WiFi network nearby and see if they are saved.
Make sure your phone assistant is always ready.
Can you tell I own a Galaxy? I literally can't uninstall OneDrive.
all of those things aren't really going to eat up CPU time if properly made, they'll spend more time waiting on networking than processing anything
most use vulkan and/or dx12 these days
at least at professional scale
oh for sure, I have many complaints about web and mobile devs ignore perg
but phones also give heavy scheduling priority to which ever app is on screen which balances it out some
i know
I don't know how this happened, this image doesn't have 78,800 pixels, and it's literally supposed to be one byte per pixel in the compressed version
I guess it does, but I still can't read this with my own algorithm
When times are rough economically people spend less money.
If you want a GPU you buy it second-hand because it's significantly cheaper and you can no longer afford a new one, so for example NVIDIA Corp loses sales profits money.
These companies don't make things that are really necessary or need to be bought often like food. So people can just choose not to spend money on those things.
that shit is so inflated, corrections have to happen at some point
- Microsoft's move to shut down DEI and the former lead of that team going public against it, + ai hype slowing down
it's still up almost 20% since the start of the year anyway
Saw a username called "FAANG-regret"
I will Uber before I go FAANG
i hope microsoft finally dies, like yeah, itll result in so much shit but being able not to support windows in an app is a blessing tbh
Can't wait for shitty AI theft and art mimics to go the way of nfts
And actually do something useful
Microsoft is too big to fail, the US govt would literally sacrifice a third world country to keep it alive
This is true
unfortunately true
The people working in govt can barely handle Windows
They'd melt
No one would be able to do shit
even if it died, do you think the government would allow a foreign competitor to take it's place? we have a monopoly on the world's operating systems lol
not to mention everything else they do
idk Microsoft and apples success is part of the national defense strategy - prevent other countries from gaining a foothold in electronics as much as possible
God forbid it would be.... CHINESE
fun fact: a former CIA director sat on activision's executive team for years. kinda funny how that happened when they tripled down on call of duty as the only game they make and pushed it as a propaganda tool
a good chunk of their execs were in the bush admin too actually, like I know it's common for those types to land executive jobs after holding office but still, it's a lil weird
My hot take is that CoD and fifa/nba players are the phonies people think animal crossing players are
not wrong
Whenever someone says they mostly play those i know I'll never get a good media recommendation from them
Feels like committing to propaganda or pro USA cope after the fact
THE YIFFOS IS REAL
If I wanted incest and domestic violence I could simply ask my ex how he's doing
it's weird cuz early call of duty games had a pretty explicit anti-war message (whether it was effective while portraying soldiers as heroic badasses aside). at some point they dropped that and went all in on the military fetish
Idk if it works the way it does with movies but it might be the whole dept of defense and cops thing. Like when they allow for use of their property, image and funding if a movie makes them look good
nah, its because if you can sell the game to anyone itβll probably make more money, so corporations are turning everything into marketable slop :/
there's 100% some of that going on. Like I know for sure Lockheed and Boeing and other manufacturers have strict rules on how they can display their tech or products, from obvious ones like you can't show them being used to commit war crimes, to smaller things like you can't show them dirty or damaged or malfunctioning
It's easy to sell a bs "stick it to the man" type game too though
BioShock
not to mention they consult with the military directly for the sake of """""realism"""""
Even though they're definitely used for war crimes lmao
oh absolutely
People making pro-US media and consulting with the government for it are probably ops
If you look up credits for modern call of duty they'll 100% have the names of various units and individuals who are or were in the military listed under consulting
What I would give to see DoD and DHS contacts blow away in the wind
Mostly because they want me to put in my time every day for compliance instead of just at the end of the week
Also I'm hit with imposter syndrome again this week
felt
the weekly rollercoaster of going between "oh I guess I am doing pretty okay" and "fuck I am going to get fired any day" is uhhhhh not fun
Yessssss
Especially because there's nothing assigned to me and my teammate is basically doing everything himself
Including every bug fix in like 20 min
And I can't keep up because he did the whole front end aspect for the last 2 features
I don't feel bad for stealing time for 2/3 weeks but I don't want to feel stupid either
yippie ai companies cant afford to exist π lets hope ml is left for nerds in universities
And ML is actually interesting and fun when you're not a dick
true
damn araxis merge does NOT like me opening a diff of 40 files at once lol
no way
I do live in the right district to be a game developer, it's just that most positions are either full-time or aren't available rn.
(Swedish district is like a American state, and Swedish state is like American government)
(The districts also kinda have less power and such, it's also a completely different system from the core but anyways)
I hope the local ones stay tho, using it for wacky obviously fake voices is kinda fun tho.
AI is entertaining when it's bad, get too good and it's kinda creepy.
.
I don't know why we decided the first thing this "being" without emotion should do is something that requires human emotion.
.
AI can't understand the emotional meaning of and communication art is used for.
Use it as a librarian for e-Books or something, something that still requires a more dynamic understanding of language than a search engine, but can't exist in human form.
π« or
can't tell if you really like it lol
it's just ridiculous that people have been given this tool for very practical and helpful applications and people were like "let's make it do art so we can continue to work". so unbearably capitalism brained and dystopian
Or Finnish, they have seen what Linus does to transphobes.
And I don't think I need to elaborate what certain people in power in the USA thinks about trans people.
But the Swedish national army straight up offered jobs to someone who could use a Linux server. So maybe we are finally moving away from Windows as a standard.
π linus torvalds is my goat
I think they might have gotten stuck on "It kind of has neurons like a human brain" to forget that it's like a very underdeveloped baby that only really can copy what it has seen and heard.
Puts sense into transphobes the most Finnish way possible and passes on the opportunity to sell their OS like Microsoft as a thanks to the people who helped him.
Dude just backwards engineered the entire Unix OS that a big company worked on.
Well linux was actually based on minix, but yeah, linus is actually cracked at c
I spent several hours to barely print 2 letters in assembly, he knows how to use that shit too.
Literally most of my free time for a bit over 2 days
oof, i guess that's a problem of x86's assembly, its much easier in arm assembly

Damn I still have to use this janky ass green text terminal for zOS at work
Fuckin mainframe
Does it allow aliases?
Not really. I'm developing the alternative rn as a work project
just googled it, im sorry for the brain damage you might get for it π
it literally burns a hole into my eyes
If you get functions or aliases in the future, then you might really save yourself a lot of time and make your job a single command that you maybe change the input info if needed, that's the cool thing with terminals
What programming/terminal language does it use?
COBOL
I thought it was either Bash or Grub(a lighter bash-like that is more meant for managing hardware and important OS details).
Can't help there, these old programming languages tend to be unforgiving and without stuff like inbuilt help or manual pages
OH NO
You have to explain what everything is instead of it understanding for example that a "+" means addition.
And it tries to pretend to be jank English, so it used full words instead of quick to type abbreviations
AND IT DOESN'T EVEN HAVE LOCAL VARIABLES, or a way to dynamically reserve memory
I feel so sorry for you @lament jasper
you see what i endure now
it doesn't even let me compile and run without writing 2 jobs first
imagine going from an ide to a literal notepad screen that looks like shit
I'm good, I don't need more than the title with stuff like this
Lmao
Unfortunately my job was not impacted
But we have to restart a couple thousand servers
I sure love when a website has 3 simultaneous screen-covering popups that automatically trigger when you open a website
cooking up my game π
web3 moment
Dealer simulator
real lmao
the game is going to be a coop tactical shooter, i want to make the enemu ai extra smart, like they will follow any sound the player makes, even when they're talking
:3
probably lan, i want to have a builtin proximity chat because having the ability to have all information from all of the map is too powerful
A Swedish number just called me claiming to be a European bank-fraud agent and saying that I have committed bank fraud with huge amounts of money and I can pay to fix it.
It was also a obviously AI generated phone voice, making the deepest voice to ever exist
If I had that money I wouldn't be where I am rn. Like what did they expect? It was literally grandma bait directed at a young person who is most likely poor.
That's like trying to rob a homeless beggar with an empty cup.
Makes sense, at least it's not dependent on some online servers, that's expensive for you and a hassle for players.
true
Whoever made that a requirement should be shot
EU decided you should have a choice to say no, ofc they never make that the default when making websites
So they put the choice to say no to cookies behind like 3 menus
But the stupid "You can't use adblock", "OMG PLEASE MAKE AN ACCOUNT AND START A SUBSCRIPTION", and "sign up for this newsletter" got no damn exuse
trying to code is hard with a headache
Does that include solving that one error that doesn't show up as an error but just makes things act weird, and it's just a single typo?
sometimes
most bugs I fix are like, two systems designed by different people interacting in unintended ways
Imma share a bash program cuz why not
echo -ne "\033]0;PCTempπ€\007"
read -n 4 -p 'Measurement update wait time in whole seconds: ' WAIT_TIME
if [[ $WAIT_TIME =~ [^0-9] ]] || [ -z $WAIT_TIME ]
then
echo -e "\nSorry whole seconds (integers) only, reverting to the standard 5 seconds."
echo "Press any key to continue..."
read -s -n 1
WAIT_TIME=5
fi
echo -e "\nThe status will be updated every $WAIT_TIME seconds. Ctrl+C will stop the program.\n"
echo "Press any key to begin monitoring..."
read -s -n 1
temp_src=$(find /sys/class/thermal/thermal_zone*/temp | wc -l)
while true
do
clear
echo -e "Following is the measured temperature in mili-celsius:\n"
for (( c=0; c<=temp_src-1; c++ ))
do
echo "$c: $(</sys/class/thermal/thermal_zone$c/temp) mβ"
done
sleep $WAIT_TIME
done```
@reef leaf has leveled up! (8 β 9)
Measures your PC temperature on Linux
Didn't even know I was level 8
Idk why I put an emoji in there, I don't even know if that one supports emojis
dead channel lmao
Geekyness insues
Nooooo don't say thatttt
I'm just checked out of coding because I'm on pto this week
It's not as fun to do in spare time when you do it for a living lol
I kinda made a algorithm that removes every other pixel and replaces them with the normal of the surrounding pixels when rendering, but only every other pixel that wasn't removed needs to be stored
The results look pretty much the same except for small things line text and edges sometimes looking weird
Also made a regular square compression algorithm that saves as normal PNG and doesn't need any special algorithm, it's just a regular down scaled PNG
But if either the height or width is uneven it gets a bit wonky
Sometimes it's fine, other times not, IDK
how tf do i write network code and not go insane
damn.
network code for a game
anyway it isnt that bad
depending on the framework you use yeah it's not that bad
Btw, since you seem experienced, how hard is it working with the Steam api? More specifically with Godot 4.2.2 or the to be released 4.3.x
I have not used it in Godot but it's pretty easy to use tbh
I don't think there's anything that complicated, it's mostly a pretty straightforward web api
Great, then I hope my time playing with it works well.
Thank you Sol.
Idk where else to say this... but I finally got a GPU that fits my SFF office PC!
Does anyone know how to use Pulsar/
Atom? I can get both installed and running but I can't install packages on either
atom is deprecated, the package system is dead
i haven't used atom since maybe 2016
every time i try a new text editor i just go back to sublime after a few weeks
well, other than using visual studio for unreal projects
atom officially had a sunset in 2022
I figured it might work because pulsar is still using basically the same ones but yeahhhhh
I'd use something else but the repo I'm working with has specific instructions for atom and pulsar
Huge wins, I'm really happy for them
Though the blizzard union only covers the world of Warcraft team
I just removed a broken dvd drive and put in a fan that blows air into the side wall of the case.
THE MECHANIC
tf2 theme plays
.
I really need some spacers
.
It's so damn jank and it works barely, it might be more the open hole than the wall loving fan that improves the cooling
I fixed up the fan, gave it a silencer and tilted it so it would be blowing in air instead
nvm i just started writing my own engine
Game or network engine?
Geez, in rust?
yes, i use opengl + sdl
OHHHH, I thought you were gonna remake the 3d rendering from scratch, that's a lot of work!
i will probably add some scripting language to it tho
Your own or a existing one?
existing, probably python
Huh, wouldn't it be good to do your own or one you can compile?
You can kinda compile python, but I'm unsure how good the tools are.
i just like python more, + its really easy to embed using https://github.com/PyO3/pyo3
Rust bindings for the Python interpreter. Contribute to PyO3/pyo3 development by creating an account on GitHub.
scripting languages shouldn't be compiled, i just want to have python for easy scripts for console etc
the engine is going to be like source, like youll be able to do stuff in the console etc :3
Ahhh, makes sense, good luck!
I can do my best to help if you get stuck, but it was a while since I used python. I may not always be helpful, but I want to help where I can, because making a game engine is pretty cool.
there's no reason why scripting languages can't be compiled
also true
They kinda want to make it so you can edit it live and change values and such.
So that's why I think they can't do that.
.
You might be able to do that compiled, but I am yet to see a example.
no, you can compile dynamic languages, the thing is that devs usually embed scripting languages to cut down on compilation time
yeah, using interpreted languages is usually done to speed up iteration, and (broad generalization) common interpreted languages are easier for non-programmer devs to learn c++, rust or c#
but, the two biggest engines out there use compiled scripting languages
unreal's blueprint is translated into c++ and then compiled
it's kind of crazy how optimized unreal's build process is tbh
yippie my first segfault in this project
YES LETS FUCKING GO I FIXED IT
all my loved ones flashed before my eyes :3
chat did i cook?
I like cyan so yeah
Close enough, games have colour.
No need for a fancy monitor, the wonderful 1x1 resolution
Looks great no matter the screen
im actually tweaking rn
The Goofy Gaby/Gabber Organisation
we do be silly today
The project can be called S.I.L.L.Y(Synchronously Interpreted Live Language Yielder) Game Engine
nice actually
To yield can also mean to let arguments or demands pass and do their thing
Thank you :>
Hope you like it!
I love it, I want to threaten my machine and make it plead, not that I'm already doing that hardware-wise... but not the software isn't free either!!!
ok so I definitely don't recommend installing pulsar unless you REALLY need it
it's a pain in the ass and you install visual studio on the way anyway
Since you seem to have used a lot of different IDEs, have you tried Kate?
If so, how was it?
They put mice in a detached head state
constructor function
look inside
another function which is only called here
default text editor for kde plasma
im gonna hire webbop to make a text editor using tauri >;3
I mean, I already know a bit of HTML, JS, and CSS, as well as python(+ python3), so sure, maybe I can do something :>.
Some IDEs just get their data from MDN, so that may be something I can check out.
once again
why does this even exist? you can just make the members βconstβ instead of doing whatever this is
Are they returning dynamically changing variables?
Because I think they were trying to avoid the value being statically copied, so the new changes made to the variable would show up .
Isn't there a alias thingy in many languages that just simplifies the path, so you get the new value directly from the reference path instead of this overengineered workaround?
c++ const is a little silly sometimes, but those functions are returning copies of the member variables. const in that context is saying that this method does not change any internal state of the object it's called on
which in turn allows them to be called in other const methods
you can do whatever you want with the copies those functions return, it has nothing to do with the constness of either the member variables or the returned copy
if you made the member variables const you would not be able to change them after construction
basically, they provide read-only access to the data
what's really silly is when people do that PLUS add public set functions for private data too. it only makes sense to do that if the set functions do extra work - like on a camera class, setting the fov might update an internal projection matrix or something
anyway, c++ is both beautiful and horrifying
with great power great responsibility or something
no, this is a config class with everything there being an int, float or a string
Const should make it not a worry if someone tries to change a variable, if so I don't see the point, they aren't changing the output anyways.
But Sol did just warn us about the concerning silliness of Const, so it may not do as I think.
And I somehow fucked up C multiplication, geez this is gonna be a transition period when I learn how to make apps from scratch.
const means different things in a few different contexts
const std::string const* FindString(const std::string& key) const;
- const std::string - a const string
- const* - a const pointer to the const string
- const std::string& - a const reference to a string as a parameter
- FindString() const; - FindString is a constant method, meaning there is a guarantee that the method will not mutate the object is being called on
and then there's constexpr which is a completely different concept....
Ah yes, marking a expression with const and constexpr totally had to be different
Or at least share a similar name
constexpr usually means this thing is known at compile time, but I rarely use it so I don't remember all of the different use cases for it. I have to look up a reference for it every time lol
So, why not name it compexpr that stands for "compile expression" or something and would make more sense?
getting good at c++ means getting good at understanding cppreference.com
because "constant time" which refers to anything that can be evaluated at compile time
Yet they left out the time part in the name that would differentiate it from variable const that can also work on expressions.
The day I gotta learn c++ my mind will melt.
This is literally one if their examples
static constexpr int const& x = 42;I...
i know about them, ive been reading cppreference like my own bible for the past year lmao
god i wish we would all just abandon c++ and move onto better langs
So... there was no need to make this already read-only variable read-only again with these functions?
Just like you said
the variables weren't even const in the thingie i sent, i literally don't understand oop, why add so much boilerplate??
@untold badger has leveled up! (15 β 16)
were they public or private?
private
yeah but also there are so many foundational pieces of software written in c++ that I doubt it will ever happen
but why not make the members const then?
I got the perfect replacement
Olympus
they would have to be set at construction and could not be modified at all past that, even internally
the class doesn't modify them in any way
do you have the corresponding cpp file?
or is it a pre compiled library you're including
its header only π
then you don't know what they're doing internally
Nah JavaScript, your OS will just not work if you don't use 20+ yo first version Internet Explorer compatible code.
I would rather die than try to write an operating system in javascript
I am now tempted to try, you only need one core anyways, the other 3 are a waste of space
The wonderful 1 core OS where Grammarly or something has full control
But I have actually used a service where they did exactly that
It was called sky or something
And it had special skyOS(I think it was that) apps, storage used localstorage
It's also always possible that they did this as a habit, many c++ programmers get certain 'rules' hammered in their head by teachers and leads and just follow patterns without thinking about it
oop and its consequences on the industry standards has been a disaster on the programming race
they could've also declared a friend class somewhere internally that can modify things
but also remember, const is only a suggestion in c++ ππππ
thou shalt never use const_cast
WHAT THE FUCK IS CONST CAST
why is it that when i wake up there's another random feature added to c++ which has never appeared in any piece of code ever π
blood magic
genuinely, you should never use const cast without a really really good reason
"programming race", I knew the terrors of inconsistency and syntax bullshit had gotten to us, but damn π
having used c++ for over 15 years now, I have never seen a valid use of const_cast
BUT
you can make any const variable non-const
it was a play on ted kazsynski's "The Industrial Revolution and its consequences have been a disaster for the human race."
thankfully i will never ever have to use it because im only gonna use rust/c from now on π
const int i = 4; const_cast<int>(i) = 5;
WHY WOULD ANYONE NEED THIS
valid c++ that sets i to 5
istg gnu just be adding anything π
I am sure there have been valid reasons in very low level coding cases
I've done arcane things with void* before lol
Ohhh, I accidentally found it funny then.
there are certain features and syntax in c++ where if you find yourself thinking about using them, you should take a step back and reevaluate everything
Is it bad to say that I would actually use something like that?
I often have a variable that really should be a const, but is a let because I sometimes, maybe, under certain conditions, need to change it.
why not just make it mutable?
Yes, I would argue that in 99.9% of cases where you might be tempted to do this, you could've done something different that is more simple
the 0.1% of cases are exclusively when writing like drivers and weird low level stuff
That's what I'm doing, and it makes me wanna explode, because I was so close to making it const and thus more efficient.
wym efficient? constants only exist for the compiler
The only other reason I could see someone needing const_cast is when using a legacy external library that can't be modified and needs to be hacked in some way, but again that's an extremely specific thing that most people will never do
declaring things const opens up more optimizations for compilers, but it's not a guarantee that it will have a performance impact
and if you use const_cast you're throwing that out the window
I guess I could have used my guilty pleasure of almost 100+ character one-line bracket-hell if else statements.
webbop you are even more unhinged than me and i thought that i was the *strange one*
They help me so much at times, but they hurt me trying to read them later.
threatening aura fr
readability >>>>> efficiency
in a good way tho
If I got something like that in a code review I would be tempted to fire the person in the spot

Nahh, I'm probably never touching that function again, I love the "hide lines" tools in IDEs, I can hide my "it just works but they're disgusting" solutions.
truly spoken like someone who has never worked in a code base as old as them π
If you want to make a living programming, you should keep your hobby projects at least close to a professional standard
You mean I shouldn't have 50% of the code be code I regretted but didn't wanna delete so they're just comments? 
ok ok let me rephrase
you should keep your hobby projects at a higher standard than professionals 
I at least name my functions better than Google that uses a 1000+ character one-line function called "t" extensively
And have such charming class names as "aGhuJn5787Ghj"
I will say, my team at work does keep a very high code standard, nearly every submission is reviewed by at least one other
ngl if i had to use camelCase for everything i'd name everything like that 
Their classes are probably extremely descriptive and transparent, they just happened to use camelCase 
Game developers tend to be really good at naming stuff
Too good actually
Not uncommon to name a class six or seven words if that's necessary to explain what it does lol
And I'm here like
func Killed(_killed):
#[some other stuff]
killed = _killed;```
And not in the "ThingManagerFactoryManagerInterface" kind of way
oop fans be like: god i love my AbstractSingletonFactoryGeneratorImplementsIterationPixelCreator
fp fans be like: god i love my <..>(0) -> 10 => 20 <=> (7..8)(run_function) -> Ξ»x.(x + 10)
whatever, this shit works fans are safe from my roasting
whar :3c
No joke this is very similar to actually code I use, same killed situation too.
I know what you're thinking, I can't go to hell, Satan didn't want me to corrupt him with my evil habits.
He uses exclusively for-loops and newarray.append for array modification, he's not much better.
Earth Updates All JavaScript framework developers have been banned from heaven
Sometimes I just make a new function just to call these (and a bit else, I gotta validate it).
I don't have the patience to write a whole novel in Yoda-speech just to make my stupid program that is literally just a lesser version of something that is open-source and easily accessible for everyone.
You haven't seen the terrors of jQuery if you think JavaScript is bad.
isnt jquery a js framework technically?
Yes, but it has the worst syntax I have ever seen, and 50% of JavaScript answers on StackOverflow are in jQuery
You got a point, it is a JS framework
we need to get rid of c++ everywhere and start a new era of programming without bad standards π
js relies on c++
we'll rewrite it but only as typescript which uses snake_case
bwahahahahaa
Guess what I primarily develop in?
I think one of the reasons Godot is so fun to work with is GDscript, I miss it so bad when I gotta use JS again.
And like 50% of all JS functions are deprecated
Maybe even more
btw if you hate js you could always try https://gleam.run/, it can compile to js
I'm too far from saving, I have already gotten used to the jank and my development methods include a lot of testing when I edit anything, even the slightest thing, sadly I do not have the privileges of compiling time.
daaamn, gleam is really nice tho
psh
bshoo
remember when apple created another config language, which can compile to yml/toml/json, but it also has a type system for some reason??? i still don't know which issue they tried to solve there
I can see that being useful actually
let her cook
I will let specifiedAct = (evilLaugh, isBad, evilPose, sadPose) => new AudioPlayer.play(evilLaugh).then(((evilPose) if (isBad) else (sadPose))());
incomprehensible, have a great day
Having made an engine where everything is super data driven via config files, it was always annoying having to manually check why things would break
assert?
The average JavaScript experience.
of course, but it was always annoying having to run the game to hit those
would be nice to have a way to validate before that
the average "any language which came out before 2010 and isn't python or c" experience.
You are seriously telling me you don't know what x64 processor byte location to read in order to switch the terminal mode to keyboard input for a single letter???
0xb800
or smth if im not mistaken
i was trying to develop an os once
never touching c++ after that
I don't even remember myself, I just remember my Assembly code never working.
arm64 > x86 assembly
I could successfully print a "P" without stealing code, that was my goddamn peak!
No more than that tho
I didn't even get that far
osdev wiki is amazing tho
Yes, it was thanks to them I got literally anywhere, and people were arguing that you didn't even need this Assembly bootloader and could start with C
I should have copied that damn 5 line bootloader script
we need to combine our powers and create the SillyOS
it will randomly delete data on your hard drive (it forgor :( ), and replace them with kitty images
Proton is integrated into the kernel, ready for gaming as always
We can call it a humaine OS because it has the memory of a human
Ram memory maxes out at 4 gb, my short-term memory is shorter than that
RAM data will randomly be removed for no reason also, because you forget like that
wtf mine maxes out at 128kb
On mondays mine is 128kb, as in 128 * 1000, not the KiB kibbabytes 1024
Dawg, you need RAM to store all those cat pictures for easy access
i use extreme compression algorithms
So you have extremely washed out cats?
Dementia cats
the voices are telling me to start building communism & my game engine again
baiii
Well good luck, make your game engine communist to do both, everything made with it has to be open source and available for the people
copyleft is the future
Finally people will realise "I refuse to show you what this program does. But trust me, it's totally safe, I am keeping it a secret what we are doing on your computer for your safety." doesn't hold up.
unfortunately in the context of multiplayer games, obfuscation is actually an important part to slowing down the development of cheats
It's also the reason people have to worry that their game will destroy their PC.
Why not have the server handle it?
not all cheats can live on the server + not all games can or should use dedicated servers
Movement being completely handled in the server that also checks if they can move in that way, how would you movements cheat that?
you may not be able to cheat that, but aimbots just simulate human input for example
the most you can do is have a validation heuristic to try and detect unnatural movement, but that's not perfect and a sophisticated aimbot will be tuned against it
rendering related cheats are another thing, if the game knows where an enemy is even if they're behind a wall, a cheater could find some way to display it
Wouldn't implementing illogical stuff or mechanics make it harder for bots, since they're driven by logic?
And humans are illogical creatures that can understand that
The more you shoot and don't move, the more tired your arms get and your aim gets offset it a way that a bot wouldn't understand since they use the middle crosshair or other fixed spot
And bots tend to shoot and not look away that much
I'm not talking about bots, I'm talking more about someone playing with a program that basically acts like aim assist by calculating the exact mouse inputs needed to target something
But please, tell me your thoughts @agile mango, outside input is always good
It's still mostly a player in control, just with a tool that gives them near perfect aim and reaction times
And if a bot maker is motivated enough, they can design it to have whatever behaviors they need to avoid detection
Well, human hands shake, the program is used to keep it really steady and not shaking
And arms too
which brings me back to obfuscation - that doesnt prevent cheats from happening in the long term, but it can stop a game from being completely broken by hackers within the first few months of the game releasing (as in the time period where games make more than half of all the money it'll ever make usually)
you can make the aimbot simulate unsteady hands, or to give a maximum adjustment per frame. even if it takes a few frames to finish aiming at an enemy, it's still gonna be faster than a human almost every time
i gotta sleep now though
gn
They can at least use some decent anti-cheat that doesn't brag about how many "cheaters" it has caught, that means it most likely has a bunch of false positives.
@reef leaf has leveled up! (9 β 10)
Night sol
I have several times gotten falsely reported as a bot, and the program didn't even give me any way prove that I'm not
I don't like multiplayer that much, it's mostly try-hards that make it not fun, as well as slow servers and stupid anti-cheat.
I like Super Animal Royale because it's pretty balanced, most try-hards can be killed with counter-weapons.
some vim shortcuts thrown in there too
I have been thinking about what you would call a initiative based on making apps touch accessible or at least have a touch version, that way converting them into mobile versions is easy or just works.
Like, Linux Fedora Workstation 40 has so much interaction that you can do with the mouse/touch so you almost don't need a keyboard at all. Just a few modifications and you can make that a phone OS, and thus run stuff like Steam on it, because there are a bunch of mobile-intended apps on the Gnome store, it shows that people want and some are already using a pure Linux(No modified kernel that make things not work) mobile OS.
I came up with R.A.T (Reactive Accessible Touch), a play on the mouse too.
Reactive means also considering things like gestures. I want these desktop apps on my phone, because phone apps generally suck.
My computer is godless
geekdome is dying π
@quartz bay yo youβll probably like it here :3
I was just scrolling through like "oh wow, this is just my niche," lmao
We're not beating the software developers have word music taste allegations, lmao
I guess I'll do a little intro in here too! My name is Faye, and I'm wrapping up my Computer Engineering bachelors at UT Arlington this year. I've had a job as a VR software developer using Unity for the past few years. Would love to talk about any VR stuff yall have worked on!
what is your favourite programming language btw?
I'm probably gonna lurk around here and respond to stuff sometimes
dont forget to get #roles
I'm partial to C# since I use it so much with Unity, also Java since it's so similar. C is like a well respected but feared elder to me, I have a love hate relationship with it
im a rust fan because functional programming is too fun
also having snake_case is a cherry on top
I've been wanting to learn rust!
@quartz bay has leveled up! (0 β 1)
Didn't the white house put out a thing recently telling people to use rust instead of C?
the white house had a skill issue π
but yeah they did
oh nice, im from fort worth
went to smu unfortunately
conpsci undergrad -> professional cert of interactive technology programming from guildhall
My null pointers are safe as long as I don't dereference them
I actually almost went there!
If it wasn't 45k a year after scholarship I probably would have, lmao
UTA is cheap
yeah that's why I regret it lmao
The campus is beautiful though
$125k in debt .. with half of my undergrad paid by scholarship....
Dang π
yeah LMAO
Private schools have crazy tuition
but it's chill I got the """"dream job""""" and live comfortably
I think they do it to try and keep out people who don't have daddy's money
for sure, being on scholarship and wanting to go into gamedev made me an outsider
At least you went for a major that'll allow you to pay off the debt
I feel like most of the people there are there for business or something similar
legit had my academic advisor try to convince me to not go into gamedev every appointment I had with him
A childhood friend of mine almost went for classical upright bass
I think the music school is pretty alright tbh
That's what I've heard!
engineering sucks there bc they just want you to be a servant to the business school students
She ended up going to UNT so it worked out. But she chose not to go to SMU for money reasons too
"hey build this app for me, I'll pay you $5k with no ownership in the startup"
UNT is better for music anyway
At UTA half of the business students are engineering dropouts, so we tease them
Noooooooo
half the students in compsci classes in smu are business students who heard that knowing programming will make them better at running startups
Honestly they're not wrong, having a boss with zero knowledge of programming is the worst
But maybe a boss that knows just enough to think they know what they're talking about is worse, actually
I do research at UTA and my boss is in industrial engineering, so sometimes she asks for something she thinks is a small change but it actually means I have to refactor everything
It sucks have to do group projects with people that don't care for the topic, and it's entirely optional even going the course.
yippie i can write web ui in rust :3
i just found out that the youtube api allows to upload videos
what if i just make an automated python bot which scrapes popular subreddits for stories, downloads satisfying videos and then puts together shorts and automatically posts them
Reddit has done a bunch of stuff to block scrapers, YouTube too, both APIs cost money or are very limited free
I wanted to make a silly website that gives you a random dankpods video but YouTube said no.
well the youtube api is limited to 10000 calls a day
redditβs api is priced when the client makes too many calls
essentially if i make the bot post a fixed amount of vids then im completely fine
YouTube is always priced I believe, I tried to use it and I couldn't.
100 free calls/min doesnt sound so bad
ehhh
But you have to go into your account, make a special key, and that limit I believe is different, because a unit is not one request.
but ill only have to use the yt api for uploads
But if it's just uploading, then you can maybe see, I am not sure if it varies depending on file size or something.
welp, time to abandon all morals and fill youtube with even more slop π
im creating the slop machine π
You sound like a low budget childrens TV series villan.
because i am one lmao
omfg the slop machine is kinda working
few tweaks and the video generator will work
@untold badger
That's kinda it, if you want it
I'm actively using it myself btw, really useful to make sure it doesn't get hot, I keep it on 300 seconds to minimise the CPU impact.
dead ass channel lmao
in a call with coworkers
one of them looks visibly annoyed
my lead goes: "hey Brenden, you good?"
brenden: "fucking JavaScript"
the rest of us nod solemnly
javascript 
Fucking Javascript indeed
SPANKY!!
That works less well when someone is called "Spanky"
(Dw, it's nothing)
Did they try the code in 5 different browsers, as well as the many mobile browsers based on these desktop browsers?
.
Welcome to hell (being a web dev)
Hello hello
I am in the sippy cup of trying to find affordable home ownership and I am being sipped dry
I also haven't actually done my job in weeks so I'm extremely rusty lol
it's actually game UI, check out https://coherent-labs.com/products/coherent-prysm/ if you're curious (you won't be able to actually use it I think, it's enterprise middleware)
damn i forgot about the existence of this lmao
same lol
too real
my dumbass once ran "find . .DS_Store -delete" to get rid of all directory configs and it deleted all of the code in the directory i was in
if not for git i wouldve lost like 3 days of progress
and like looking back at old-er projects (like less or man) you can see that most of the source code is like in the root directory of the project
seen it on mastodon today lmao
it's actually evil
i think tho this might be different in different browser engines
using new Date(0) in the dingle dongle browser engine will remove your root directory and crash your entire os
anyway i have no idea why js is like this
it provides exceptions to make it so invalid state is unrepresentable yet at the same time it doesnt use them when you create invalid Date objects for example
As a JavaScript web dev, totally.
JavaScript was meant to be a portable language that work the same on all platforms and browsers.
βI use Linux as my operating system,β I state proudly to the unkempt, bearded man. He swivels around in his desk chair with a devilish gleam in his eyes, ready to mansplain with extreme precision. βActuallyβ, he says with a grin, "Linux is just the kernel. You use GNU+Linux!β I donβt miss a beat and reply with a smirk, βI use Alpine, a distro that doesnβt include the GNU coreutils, or any other GNU code. Itβs Linux, but itβs not GNU+Linux.β The smile quickly drops from the manβs face. His body begins convulsing and he foams at the mouth and drops to the floor with a sickly thud. As he writhes around he screams βI-IT WAS COMPILED WITH GCC! THAT MEANS ITβS STILL GNU!β Coolly, I reply βIf windows was compiled with gcc, would that make it GNU?β I interrupt his response with β-and work is being made on the kernel to make it more compiler-agnostic. Even you were correct, you wont be for long.β With a sickly wheeze, the last of the manβs life is ejected from his body. He lies on the floor, cold and limp. Iβve womansplained him to death.
lmao i found you on mastodon
intentionally or incidentally?
accidentally, i was scrolling the local tech.lgbt feed
i see
What's the tag?
ceridwen15
@quick halo expect a follow :3
-# (If I'm not already doing that)
the tech.lgbt enjoyers are numerous
now that i think about it i should migrate from tech.lgbt, ive recently found out that the head admin has been doing some nasty stuff which has resulted in tech.lgbt getting defederated from a lot of other servers
weh
ive also been meaning to but for nonspecific purposes
that sucks tho
another reason i suppose
lowk i wanna try hosting my own mastodon instance but i just need a tsl certificate now
exciting
hosting my own mastodon instance is somewhere on the 'list' of things i want to do at some point maybe soon, but its kinda low priority because id prefer to try and get my shit together and just put stuff on my website
(which is NOT happening anytime soon i dont think)
π
looking thru issues of gotosocial and found this absolute gem https://codeberg.org/superseriousbusiness/gotosocial/issues/4221
Hi,
I noticed in the latest release, you added the trans / LGBT flags to the footer.
Can you remove these by default or at least make it opt-in? There are people (myself included) who may not agree or feel comfortable with this and wish not to have it hosted on their own server.
You eve...
bro just end me i have no idea how to fix this
okay im not really into programming/pc stuff
my laptop has 475GB of storage in total and 4.18GB are free
is a 512GB memory stick worth the money to store all my music stuff on it? my music prod stuff is most likely taking up most of my storage
Keep in mind that the stick will most likely be slower
the DAWs will be on my actual laptop storage the demos will be on the stick
ive finally got it to work, i can get you an account if you want
oh cool yes please
ok ill do it tomorrow (well today but like in 8-10 hours hehe)
ive been up for 18 hours now good lord
alright cool, ill be back from school around then so that works out nicely
wuh
sun rose up very early today so i woke up at like 6 am
and its 00:42 for me rn
yeah utc+3
i see
me when i realize there's geekdome 
i'm messing around with yt-dlp rn
gonna try and set up a nice bash alias for downloading videos
already got this one setup for mp3s but i wanna make my video archiving efforts a bit easier as well
# first parameter: a video / playlist link (several possible, space-separated)
# second parameter: output folder (optional)
# example: youtubemp3 https://youtu.be/nhbGVa0Y60w /home/milo/Music
youtubemp3() {
if [ $# -eq 1 ]; then
downloadfolder="/home/milo/Downloads"
else
downloadfolder="$2"
fi
yt-dlp --paths "$downloadfolder" --output "%(title)s.%(ext)s" --extract-audio --audio-format mp3 "$1"}
ok, figured it out for now i think.
these are the underlying yt-dlp commands:
# mp3
yt-dlp --paths "DOWNLOADFOLDER" --embed-metadata --output "%(title)s.%(ext)s" --extract-audio --audio-format mp3 "INSERTYOUTUBELINK"
# mp4
yt-dlp --paths "DOWNLOADFOLDER" --embed-metadata --embed-subs --sub-format srt --sub-langs all,-live_chat --format "bv*[height<=MAXVIDEOHEIGHT][vcodec~='^((he|a)vc|h26[45])']+ba/b[height<=MAXVIDEOHEIGHT]" --output "%(title)s.%(ext)s" "INSERTYOUTUBELINK"
and these are the corresponding bash aliases:
# 1st parameter: a video / playlist link
# 2nd: output folder (optional, default: userhomefolder/Downloads)
# example: youtubemp3 https://youtu.be/nhbGVa0Y60w /home/milo/Music
youtubemp3() {
if [ -z "$1" ]; then
echo "No YouTube link given!"
return
fi
if [ $# -eq 1 ]; then
downloadfolder="~/Downloads"
else
downloadfolder="$2"
fi
yt-dlp --paths "$downloadfolder" --embed-metadata --extract-audio --audio-format mp3 --output "%(title)s.%(ext)s" "$1"
}
# 1st parameter: a video / playlist link
# 2nd parameter: maximum video height (optional, default: 720)
# 3rd parameter: output folder (optional, default: userhomefolder/Downloads)
# example: youtubemp4 https://youtu.be/nhbGVa0Y60w 1080 /home/milo/Music
youtubemp4() {
if [ -z "$1" ]; then
echo "No YouTube link given!"
return
fi
if [ $# -eq 1 ]; then
videoheight="720"
downloadfolder="~/Downloads"
elif [ $# -eq 2 ]; then
videoheight="$2"
downloadfolder="~/Downloads"
elif [ $# -eq 3 ]; then
videoheight="$2"
downloadfolder"$3"
fi
yt-dlp --paths "$downloadfolder" --embed-metadata --embed-subs --sub-format srt --sub-langs all,-live_chat --format "bv*[height<=$videoheight][vcodec~='^((he|a)vc|h26[45])']+ba/b[height<=$videoheight]" --output "%(title)s.%(ext)s" "$1"
}
shit that's a huge block of stuff,, apologies if that's kind of spammy!! let me know if i gotta shorten anything or smth
Guys I nedx
Help meo
I have homwrork
Does anybody jnow C++ so I can steal your brain π₯Ή
not especially well, and i am outside but depending on your query i could help
I'm making a MUD for one of my assignments and I'm stuck trying to figure out why it's not printing items in the correct order
i (unfortunately) have some experience with c++
mud?
Like a videogame
hmm do you have any multithreading stuff in your game?
Wdym??
like are you sharing game state across several threads?
I don't think so? I'm not sure what a thread is so probably not
basically your computer has these things called threads, they are responsible for actually running cpu instructions and they work independently of each other HOWEVER they can share data
this leads to some situations where they try to write to the same place which results in some silly errors, for example i had this bug where i was using std::cout from multiple threads to print debug info but it just kind of corrupted the output
yeah you probably arent then
could you show the source code then?
I hate you C++
the only way this wouldnt output the items in the correct order is if the shop->next pointers arent ordered properly
also some notes
- id recommend using a vector instead of a linked list, so youd have a vector<ShopItem> and that would mean less work with raw pointers
- if a function returns a boolean you dont have to compare it with true, so remove the == true in the comparets line
- in shop::enter you use scanf on a char buffer, the thing is that your scanf has no constraints so if a user enters than 5 characters its undefined behaviour, consider using std::string w std::cin or make it scanf("%5s")
generally just use c++ apis instead of c ones to make the program safer
Wdym??
so since there is a shop->next i assume its a linked list, in this code youre iterating over this list until you hit nullptr, so if it outputs items in the wrong order then it meand the list youre giving it is ordered in the wrong way
whats up
ive been professionally doing c++ for like 6 years now
I gotta go to work but I'll let y'all know when I'm working on it again
Basically I'm having trouble passing the tests for this assignment for whatever reason, it seems to be working fine (I think)
Okay so
Right now I'm failing one test, essentially the program is printing the wrong information when I do n after p
so walk me through what is supposed to happen when you use n
I have a file with all of these items in it, when you type n it's supposed to display the next 10 in the list
Including the search term in the name if applicable
I think there's an issue with my pointer assignment
what is listItems() supposed to do? specifically, what does it do to your parameters, and what does it return?
It reterns a shopItem and it lists the 10 items
which shopItem?
i ask for a reason
explain it to me. I have an idea what its doing but i want to know the intent
I'm trying to get the program to go forwards and then backwards once and then forwards again, but when I try to go forwards that last time it prints the wrong menu
what is searchTerm set to? why do you need to check against it when iterating backwards?
Wdym check against it ??
line 95, are you comparing the name of a shopItem and the search term to decide if you should increment your counter?
The count only increments if the item name has the search term in it, so even though it iterates through all of the in-between items, it only matters if the search key is included
Search term is determined by user input
search term is set to an empty string at the beginning of that function and doesn't seem to be set anywhere? unless im missing something
That's what I have it initialized to at the beginning, so if the user doesn't want to search for anything the code still works
ok. my first guess here is when you're building your linked list, you're setting prev incorrectly somewhere
unless the incorrect behavior is that its off by one
I HAVE ANOTHER PROBELM
Hey Sol,
huh
Oh I was gonna ask if you can help me with my homework again idk
im writing my own programming language rn and ive decided to use an arena allocator
made my own one and it randomly stops working sometimes and causes a segfault
Stay strong.
Solid interpeted language with a rust backend is such a cool idea
So many new FOSS projects are suddenly using Rust now, so there is interest :3

a guy in my class has "coded" up a simulation of space and is saying that it is better than nasaβs simulation, the code is 124k loc and is split between like 4 files
at the infosec class rn im genuinely going insane one of the ppl here is talking about how an sql db is no better than a python dict
I mean, SQL is not entirely in RAM and you can use SQL stuffs to fetch what you need.
sql databases and python dictionaries serve different purposes, so they should not be compared
lol what
people just be saying shit
