@raptor85@mastodon.gamedev.place avatar

raptor85

@raptor85@mastodon.gamedev.place

Just making the games I want to, linux/gentoo enthusiast, addicted to C++.

I block stupid people, life isn't long enough to talk to a brick wall.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

grumpygamer, to random
@grumpygamer@mastodon.gamedev.place avatar

Implemented throwable bombs today. Lot of fun, but they can kill NPCs, which is interesting, but it can really screw over players. Maybe this is OK. Instead of dying NPCs run away and respawn later.

raptor85,
@raptor85@mastodon.gamedev.place avatar

@notverymoe @grumpygamer Be "forgiven" like in dark souls by paying their bills to get them out :D I actually really like that, teaches a lesson, forces you to be considerate around NPCs, but still lets you get them back.

vwbusguy, to Disneyland
@vwbusguy@mastodon.online avatar

How good is the battery life on my 11? I spent all day at , leaving at close. Relatives with iPhones had their batteries die around noon to mid-afternoon. Disneyland sells portable chargers everywhere. I never charged my phone once, used it all throughout the day (pretty much have to run Disneyland app), didn't use any power saving mode, etc, and when I got back in around 1:30am, I still had 55% left.

raptor85,
@raptor85@mastodon.gamedev.place avatar

@vwbusguy my work uses iphones so I have to carry one around alongside my personal, even with a brand new battery my work phone has always at best lasted like 1/2-1/3 as long as any other phone I've owned in the past 10 years, even my 6 year old worn battery on my current personal phone (LGv30) lasts like 3 times as long as my work iphone with it's brand new battery....I really don't understand how apple is so bad with battery life, i couldn't engineer it worse if i tried.

stephann, to random
@stephann@mastodon.gamedev.place avatar

If you are on MacOS and want to post GIFs of your game here on Mastodon:

  • CMD+SHIFT+5 to use native record tool
  • ffmpeg -i original_file.mov -vcodec h264 -acodec mp2 new_file.mp4

This will convert your .mov to .mp4 (no audio), decreasing your file size (eg. my last video went from 31mb to 3mb), and mastodon will not compress your video too much.

raptor85,
@raptor85@mastodon.gamedev.place avatar

@stephann that's not quite correct, you're not converting to a mp4 file with no audio, you're converting to a mp4 file with mp2 audio which most mastodon servers likely won't have installed due to license reasons, so they fail to convert it on upload and just leave out the audio. (if they do have it installed, you'll have audio though!) Instead of "-acodec mp2" use "-an" to simply not transcode the audio, this will also run faster and be a smaller file.

raptor85,
@raptor85@mastodon.gamedev.place avatar

@stephann np, ffmpeg is a great tool, once you learn how the flags work it starts to become second nature. Also don't forget to use it's paired ffprobe tool to inspect video files, a handy trick on most upload sites is to download the transcoded version and inspect it to get the exact settings the site uses for audio/video, then use those when you convert with ffmpeg yourself, most sites will then just do a stream copy instead of re-converting, keeping better quality.

dhry, to random
@dhry@mastodon.social avatar

Applying for a position where one of the questions is asking for your sexual orientation. Never ever been asked that before. Not entirely sure how I feel about it or how relevant it is to a tech support role.

raptor85,
@raptor85@mastodon.gamedev.place avatar

@cetan @dhry pretty sure asking a question like that for hiring isn't in most if not all states in the US. (and likely most of europe because they're almost always ahead of us)

Professor_Stevens, to random
@Professor_Stevens@mastodon.gamedev.place avatar

Mastsdonians: does anyone know what this thing is?

raptor85,
@raptor85@mastodon.gamedev.place avatar

@Professor_Stevens folded arm of a cement pouring crane maybe? looks very similar to the ones I've seen but never seen a rooftop one.

lritter, to random
@lritter@mastodon.gamedev.place avatar

xfce4 really is the best choice for this tiny intel atom laptop. it's not just the frugal use of resources. it's also that window title bars are narrower. optimal for this 1366 x 768 display.

raptor85,
@raptor85@mastodon.gamedev.place avatar

@Doomed_Daniel @lritter yeah, XFCE gets TONS of updates but unlike the other wm's they tend to be iterative improvements. Compared to gnome where each new set of patch notes is like "removed more user options, also made it harder to override styles and themes, also we've decided nobody ever needs a scrollbar anymore, everyone uses touchscreens on their desktop right?"

lritter, to random
@lritter@mastodon.gamedev.place avatar

if a novice programmer can code something that runs in a safe language, then an experienced programmer can translate this program to optimized, high-performance semantics.

i theorize that the experienced programmer's job can be sufficiently automated, provided that we control the novice's language, without requiring silly differentiable algorithms.

raptor85,
@raptor85@mastodon.gamedev.place avatar

@lritter @morten_skaaning really cool but I'd likely never get anything done, I OBSESS about performance and size enough as it is that I constantly have to stop myself from over-optimizing, having to wait to profile the program until I'm actually running and testing it is...probably for the best.

raptor85,
@raptor85@mastodon.gamedev.place avatar

@lritter @morten_skaaning to a point, but I know myself, I'll see that number, then keep re-implementing over and over to get it lower, and before you know it I've re-implemented parts of the standard library and am knee deep in asm blocks full of extended instructions and re-ordering everything to maximize the efficiency of keeping data in registers instead of on the heap....

raptor85,
@raptor85@mastodon.gamedev.place avatar

@Doomed_Daniel @lritter @morten_skaaning s/realize that you'd have to/look forward to

MrLovenstein, to random
@MrLovenstein@mastodon.social avatar

Secret Panel HERE 💥 https://tapas.io/episode/3005249

raptor85,
@raptor85@mastodon.gamedev.place avatar

@MrLovenstein easyeffects and clamp the volume :D It's life changing, no longer constantly turning it up or down because of terrible mixing on the remote end.

https://github.com/wwmm/easyeffects
https://github.com/Digitalone1/EasyEffects-Presets

killyourfm, to random
@killyourfm@layer8.space avatar

The top ~50 Google searches are people typing in websites without the .net or .com because they can't remember the full domain name. (Including "google" which is hilarious.)

Is this a sad reflection on society, or proof that we need a more advanced search engine that actually answers questions rather than simply serving up promoted links and SEO-optimized clickbait.

I'm tentatively excited about this rumored ChatGPT search engine, even if I still have reservations about the future of AI.

raptor85,
@raptor85@mastodon.gamedev.place avatar

@killyourfm I think it's actually a whole different problem, a lot of those likely come from the built in browser search as it's not only quicker but often SAFER to allow the search engine to take you to the legit version of a URL I think those stats are a reflection mostly of how broken the DNS system currently is with the monopolized holders having no disincentive to ban bad actors so long as they keep paying, until they're FORCED to.

ParadeGrotesque, to random
@ParadeGrotesque@mastodon.sdf.org avatar

For various reasons, I looked for 'mg' editor, and it turns out slackbuilds.org has, not just one but TWO versions of mg in its repo. 🤔

And also two versions of 'mgba' which is something I would be very interested in, if only I knew how to copy GBA cartridges to a PC.

raptor85,
@raptor85@mastodon.gamedev.place avatar

@ParadeGrotesque rom dumping boards are cheap and easy to get, you can even pretty easily build one yourself on an arduino https://github.com/sanni/cartreader

lritter, to random
@lritter@mastodon.gamedev.place avatar

updating ubuntu on an old laptop.

image/jpeg
image/jpeg

raptor85,
@raptor85@mastodon.gamedev.place avatar

@lritter grub 2.12? I hit a bug in that version that keeps detecting secure boot on even though it 120% isn't (and grub 2.06 works fine....). I figured...you know...nothing wrong with grub 2.06....i'll just version lock myself to this one for a while....

raptor85,
@raptor85@mastodon.gamedev.place avatar

@lritter in my case I couldn't even get grub to complete without crashing in 2.12 unless I explicitly call --disable-shim-lock as an option. There's been a decent number or reported secure-boot related bugs in 2.12 :/

raptor85,
@raptor85@mastodon.gamedev.place avatar

@lritter oh I don't even use it...2.12 was just ASSUMING I had secure boot on for some reason unless I was explicit then failing because it couldn't find the secure boot hooks... so the secure boot bugs in 2.12 hit you whether you even have it or not :/

stungeye, to gamedev
@stungeye@mastodon.gamedev.place avatar

Created an example C++ project using the Simple DirectMedia Layer library () with Visual Studio on Windows.

https://github.com/stungeye/VSVcpkgSDL2

Uses for dependency management. Build instructions are at the bottom of the readme.

Good starter project if you want to try some low-level coding.

raptor85,
@raptor85@mastodon.gamedev.place avatar

@stungeye With SDL you shouldn't use OS specific entry points like winmain, SDL handles that stuff for you in it's "real" main function, just use a standard "main". Using WinMain actually breaks some of SDLs functionality as you'll be lacking the callbacks and other background stuff it normally sets up for you. ( this also unnecessarily makes an otherwise cross-platform "game" only compile on windows)

raptor85,
@raptor85@mastodon.gamedev.place avatar

@stungeye for SDL2 "SDL_MAIN_HANDLED" is telling it to not use any of the SDL functionality in setting up callbacks/etc, that your program will be doing all that itself, this should only really be done in some very specific, advanced cases, or implementing for a new platform. With SDL.h included make sure your main function is defined EXACTLY as the standard (do not use the visualc allowed shorthand)

int main(int argc, char* argv[])

or the SDL main macro will not work.

raptor85,
@raptor85@mastodon.gamedev.place avatar

@stungeye this will automatically create a winmain function for you will all callbacks/hooks on windows, or web hooks on emscripten, or android hooks on android/etc(this isn't a "real" main function, it's redefined in SDL_main.h)

raptor85,
@raptor85@mastodon.gamedev.place avatar

@stungeye on win32 so long as your main function template is correct it's actually "really" winmain in the background, as win32 doesn't use a standard main. You were getting this because you had a mismatched/non standard definition of main (likely either using "void main() or int main() without parameters") so the macro wasn't replacing your main function correctly, making it use that as the entry point instead of sdl's winmain.

raptor85,
@raptor85@mastodon.gamedev.place avatar

@stungeye how this works is in the SDL headers there's this, which makes your "main" function actually compile as SDL_main, and lets the SDL library itself handle main, calling your function after it's done it's setup. This is partially for callbacks, but also allows SDL to set up OS specific things in the background without you having to do it yourself for each OS you support. See below for how it works and a link to the windows code that actually executes.

https://github.com/libsdl-org/SDL/blob/SDL2/src/main/windows/SDL_windows_main.c

raptor85,
@raptor85@mastodon.gamedev.place avatar

@stungeye yes, in sdl1 and sdl2 linking to sdl2main is required, though it's generally provided as a static library (sdl2main.a), most compilers should auto resolve the correct file to use with the linker settings -lSDL2 and -lSDL2main.

SDL actually provides a tool, sdl2-config you can execute with "sdl2-config --libs" and "sdl2-config --cflags" to get the correct settings for your system, most ide's/compilers can use this directly but iirc visual studio you have to copy the output.

raptor85,
@raptor85@mastodon.gamedev.place avatar

@stungeye this actually changes a little in SDL3, SDL3 removes the separate library for main and moves it to a single header library, requiring you to explicitly include sdl_main.h in your file with the main function, but removes the extra lib and a lot of old cruft. (SDL3 is both a nice upgrade on some functionality and a cleanup of old api stuff)

arstechnica, to random
@arstechnica@mastodon.social avatar

Microsoft shuts down Bethesda’s Hi-Fi Rush, Redfall studios

Xbox maker wants to "prioritiz[e] high-impact titles" according to letter to staff.

https://arstechnica.com/gaming/2024/05/microsoft-shuts-down-bethesdas-hi-fi-rush-redfall-studios/?utm_brand=arstechnica&utm_social-type=owned&utm_source=mastodon&utm_medium=social

raptor85,
@raptor85@mastodon.gamedev.place avatar

@furbyonsteroids @arstechnica to translate, they want to focus 100% on live service games loaded with micro-transactions because it's basically an infinite money hack. A negatively reviewed game with a battle pass makes FAR more money than an overwhelmingly positively reviewed single player game, unfortunately, so you'll see more and more AAA focusing ONLY on this.

dhry, to ubuntu
@dhry@mastodon.social avatar

Uninstalled the snap of #htop in #Ubuntu, then installed it straight from #apt.

Now I can't run it. sudo snap remove htop doesn't work either. Says it's already uninstalled.

Getting tired of having to google forums to fix problems for even the simplest thing in #Linux.

raptor85,
@raptor85@mastodon.gamedev.place avatar

@dhry there's many reasons most of us linux people hate ubuntu (snap and apt being awful user experiences being two of them), lets focus on your problem though

run "which htop" and it'll tell you what the problem is.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • kavyap
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • cubers
  • mdbf
  • Youngstown
  • osvaldo12
  • slotface
  • rosin
  • everett
  • vwfavf
  • PowerRangers
  • provamag3
  • Durango
  • khanakhh
  • ethstaker
  • cisconetworking
  • GTA5RPClips
  • thenastyranch
  • tacticalgear
  • ngwrru68w68
  • normalnudes
  • anitta
  • modclub
  • tester
  • megavids
  • All magazines