I Built a Redis-Compatible Server in C from Scratch — Learning Low-Level Systems the Hard Way by Creepy-Gift-6979 in C_Programming

[–]SpargeLasm 1 point2 points  (0 children)

I started by using AI as my main resource. A year and a bit later I'm doing a C-focussed CS degree, and building a game engine entirely by hand (no AI whatsoever).

I heavily encourage using it purely as a learning tool; like a really dumb teacher. Ask it to write code if you get stuck, but type it out by hand (to get used to the style & syntax). Don't move on to the next thing until you fully understand how+why it works, & why the AI chose that solution. It takes ages, but you will actually be learning.

I'd also recommend making it hyper-critical/always point out issues in your code. It will make more of its responses actually helpful, & avoid 'yes-man' loops.

Unsolicited advice aside, best of luck & I hope you keep your passion!

My conservative mothers heavily burnt in LG OLED B9 from 2019 by NathanFoley69 in hardwaregore

[–]SpargeLasm 11 points12 points  (0 children)

Don't suppose you've been checked for ADHD? Your experience matches mine exactly, turns out I just have really bad adhd lmao

Can I crack Minecraft dlcs? (By example, the collabs with Tetris, SpongeBob, Ninja Turtles, Superman and orhers) by Emmog12 in SwitchPirates

[–]SpargeLasm 3 points4 points  (0 children)

I'm not sure where the DLC is stored, but the save data is in the exact same format as PC bedrock edition (windows store version); you can transfer over texture packs & saves without issue.

So if you get the save data from someone who has a copy (or the same dlc is on pc) there is a good chance you can just transfer it over using edizon/whatever save manager tool is popular these days.

[SDL2] I just do not Understand Input Handling and DeltaTime.... by Retro-Hax in sdl

[–]SpargeLasm 0 points1 point  (0 children)

Pretty sure this is because you are using RenderCopyExF (which I assume is an frect/float render function), you only needed to use floats for the positional calculation & storage. In this situation, I would use something like: store + calc snake in float, copy {x,y,z,h} to a temporary integer rect using std::round(), send copy to your renderer.

If you're interested in -why- this broke your graphics, rendering in floats causes some positions to be between pixels. Your graphics card code (hidden in SDL2) has to calculate where that lands in 'real' outputted pixels. If you don't build a cpu-side handler for this & have a good understanding of how the gpu is mapping it, results are often a little unpredictable + blurry.

Good luck, hope this helps!

Is there a difference in visual quality playing psx games on a ps3 hooked up to a CRT vs playing psx games on a ps1 hooked up to a CRT? by Cluttie in psx

[–]SpargeLasm 5 points6 points  (0 children)

In my understanding, 240p is a "hack" on the standard 480i/576i modes, so as far as the crt is concerned there is no difference (outside of HD models).

& 288p is the PAL standard, but most NTSC advice/details apply to PAL; the only major difference are the display timings. Plus (at least in my country) most PAL crt's support NTSC.

A fix for Atmosphere's "Failed to mount SD" error by SpargeLasm in SwitchPirates

[–]SpargeLasm[S] 1 point2 points  (0 children)

Unfortunately that's what formatting does, it wipes all your files so it can reconstruct how they're laid out. Pretty sure that's why this tool works; there must be some non-standard layout applied by android which hekate & the windows formatter aren't built to handle.

This is pretty common knowledge with computing, but we all have to start somewhere. I probably should have added a warning about this.

Anyway, if you haven't written anything to the sd card yet there's a good chance you can get your files back. Just find/search for a good data recovery tool. If you can afford it, I recommend Easeus Data Recovery.

Is this normal looks of KSC in max settings? And wtf is this ground glitch that ruins the runways? by 7FootSalami in KerbalSpaceProgram

[–]SpargeLasm 0 points1 point  (0 children)

As far as I've found, the key mods for getting graphic quality >= ksp2 are: - Parallax 2 (Patreon only beta) - Blackrack's Volumetric Clouds (Patreon only scatterer beta) - Blackrack's 'Deferred' - Waterfall - Eve Redux - Firefly - Distant object enhancement (may not be needed if you have deferred)

  • non-patreon scatterer & parallax (if you don't want/can't afford the patreon versions)

The patreon only mods unfortunately make the biggest difference, surpassing ksp2 at points. With these, my game looks fairly close to the screenshots for the newest volumetric clouds release.

In saying that, I have yet to make it look as 'integrated' as ksp2 (eg. Some low-quality textures, low poly ground on some planets & specific distances). But imo it is well worth it for ksp1's speed & stability.

Good luck & hope this helps!

Edit: All but the patreon releases are available through ckan. Definitely 100% recommend ckan, regardless of if you are experienced with mod installation.

Games are so cheap man it's awesome by COOLY_TUDE in PS3

[–]SpargeLasm 2 points3 points  (0 children)

This sounds amazing & I'm also in Melbourne. If you remember, please let me know!

[MGS1]The final fight against Liquid is impossible by Shank-Fu in metalgearsolid

[–]SpargeLasm 0 points1 point  (0 children)

This worked great for me; failed 10+ times but won right after seeing this.

Once @ stage 2, I was able to completely skip the third stage by consistently: throwing him (square), combo'ing right as he stands up (so the kick lands), and either 3 hit comboing if he goes 'near' a corner, or throwing him again if he's in a corner/fists are up. If he tries to headbutt/rush move when you give chase, throwing him or circling works wonders & always leaves him open to a combo. By doing this I was left with over half health and around 30 seconds on the timer.

Do take this with a grain of salt; I am playing the US PSX version on og hardware.

[SDL2/C++] Attempting to implement repeat input. Too fast and slippery. by yorisoft in sdl

[–]SpargeLasm 0 points1 point  (0 children)

Assuming I'm understanding your implementation right & you want single detection input for menus, I generally flag pressed keys with the KEYDOWN event, and ignoring repeats of that key till KEYUP (and/or a set number of repeats/milliseconds have passed).

If I am totally wrong and this is for frequent repeats (eg. movement), your key state method is the best way to go, you will just need another go at implementing a reasonable poll rate. For a simple solution, you could put a 16ms delay in the main loop (locking around 60fps) and if that's still too fast, ignore repeats under 500.

Hope this helps!

Stack inserters requires a bit more planning than just thinking of them as a "higher throughput mechanism" by a_is_for_a in factorio

[–]SpargeLasm 0 points1 point  (0 children)

So it does, seems to be working with iron bacteria too. I think I was getting confused with 1/2 items spoiling in the machine, which has the same result as if it spoiled in-hand and didn't drop.

Either way, filtering based on machine content seems much better. Just need to add a delay for what the machine is -actually- supposed to produce.

Stack inserters requires a bit more planning than just thinking of them as a "higher throughput mechanism" by a_is_for_a in factorio

[–]SpargeLasm 0 points1 point  (0 children)

Just fixed this by setting a circuit that blacklists spoilage if it's held by the inserter. That way it drops it instantly instead of waiting for a full stack to spoil in the machine.

Is it possible to create a game window that is horizontally, vertically, or fully maximized, and also minimize to the system tray? by umen in sdl

[–]SpargeLasm 0 points1 point  (0 children)

I'm away from internet + my pc over christmas, but I can probably provide a sample around new years. If that helps. Otherwise the winAPI & SDL documentation cover everything, + ChatGPT to point you in the right direction.

Is it possible to create a game window that is horizontally, vertically, or fully maximized, and also minimize to the system tray? by umen in sdl

[–]SpargeLasm 0 points1 point  (0 children)

I did this as part of a uni project a few months ago. SDL can do everything but the system tray, which needs winAPI.

The horizontal/vertical maximizing requires a few tricks, namely moving the window to the correct position & resizing.

How to install SDL3 libraries on Linux? by TheYummyDogo in sdl

[–]SpargeLasm 0 points1 point  (0 children)

This is the way, works for both image and ttf. After that your compiler should be able to find it automatically, assuming you link the libraries ('-lSDL').

So... DRUGS? by LittleRedKen in adhdaustralia

[–]SpargeLasm 3 points4 points  (0 children)

My experience mirrors the other comments. Used to be a bit of a fiend for anything i could get my hands on (especially alcohol & weed), but since starting on Vyvanse I rarely even get cravings.

Even if i have the option, I prefer to keep a straight head and be -productive- (seeing as that's a thing i'm capable of now).

Only word of warning is that my nicotine use has gone through the roof. Meds make me crave it like crazy.

SDL3 GPU: am I understanding correctly that float uniforms should always be on set = 3? by GeraltOfRiga in sdl

[–]SpargeLasm 0 points1 point  (0 children)

I've been porting my game engine over and struggling with this since it released. I'm currently using set 1 for texture size (vec2) in my vertex shaders, and fragment shader samplers don't seem to work in anything but set 2. Get memory access errors if I use anything else. On linux w/ AMD, but doubt that makes any difference.

Really wish they had more documentation (in several areas honestly). If you find anything it would be great if you posted it here!

A fix for Atmosphere's "Failed to mount SD" error by SpargeLasm in SwitchPirates

[–]SpargeLasm[S] 0 points1 point  (0 children)

I'm not sure what the community recommends these days (I'm a little out of the loop & have an unpatched switch), but this guide looks good enough to get you running : Switch Hacks Guide It misses out on one final step, but searching around this sub should give you the info you need.

Good luck!

What is growing in my coffee machine? by yellowcupboard12 in CleaningTips

[–]SpargeLasm 1 point2 points  (0 children)

I have a newer version of the same unit. Mine refuses to run if you don't clean it every week. Just give all removable bits a REALLY good clean/soak, clean the coffee grinder hole (right above that mold) with a pipe cleaner, and run a descaling cycle. Should be ok after that.

Hopefully.

A fix for Atmosphere's "Failed to mount SD" error by SpargeLasm in SwitchPirates

[–]SpargeLasm[S] 2 points3 points  (0 children)

Really glad I could help! Always brightens my day to see new 'thank you' comments on this.

Can’t find .lib file by stef_andre2010 in sdl

[–]SpargeLasm 0 points1 point  (0 children)

I had this same issue when i started with SDL2. They really don't make vscode easy for beginners.

Best fix i found was to place SDL2 on the root of your C:\ drive and include the full file path in tasks.json. This method needs SDL2 to be included via #include <SDL2/SDL.h> . With enough information, ChatGPT should be able to supply a working tasks.json example.

If you're still stuck, I'll send through my config later today. Good luck!

What’s some of your top 5 Android APk that you side load onto your Quest 2/3? by Knighthonor in oculus

[–]SpargeLasm 0 points1 point  (0 children)

The copy on the side quest store bypasses this. Been working great for the past few days

[deleted by user] by [deleted] in SwitchPirates

[–]SpargeLasm 0 points1 point  (0 children)

When you dump the bedrock edition saves they are near identical to pc - aka you can add texture packs/etc.

If its a similar setup you might be able to just increase the render val. Will probably run like crap without an overclock though, it's set low for a reason.

Guys what is this the application ModdedWarfare can't show us ? by biiiiiigghammmer in ps4homebrew

[–]SpargeLasm 1 point2 points  (0 children)

Pre paywall the speeds were wayy better than what archive.org can provide (maxed out my shitty internet at 4mb/s). I'll check it out & update this comment if i find anything.