News:

Herr Otto Partz says you're all nothing but pipsqueaks!

Main Menu

Recent posts

#51
Competition 2025 / Re: Cloned replays, ZCT285 to ...
Last post by KyLiE - November 21, 2025, 08:52:17 AM
This is unfortunate to hear.  I was under the impression that this kind of thing was checked automatically, but perhaps that only applies to replays that are cloned in their entirety.  @dreadnaut or @Duplode, can you confirm if that's the case?
#52
Stunts Related Programs / Re: SDL 3
Last post by Matei - November 21, 2025, 07:55:39 AM
Possible workaround for "XMonad". Add 2 pixels to the width and height of the created window, file graphics/forsdl3/graph2d.c, line 139:

RGLOB_window = SDL_CreateWindow(title,width+2,height+2,0);
If it doesn't work with 2 (it should), try more. I will make an update, but I have to think how. Fortunately, this problem doesn't occur very often; I never saw it and I tested:

https://matei.one/#performance

with SDL 2, but the problem also appears with SDL 2. I will have to update all my programs though and this could be a problem...

https://sourceforge.net/u/matei_v/profile/
#53
Stunts Reverse Engineering / Re: Restunts repository - Git ...
Last post by llm - November 21, 2025, 06:48:14 AM
Quote from: Cas on November 20, 2025, 11:13:40 PMI realise all this may not matter to many people. Some of us may be very picky with their food, but can sleep anywhere, while others can eat rubbish, but then need a comfy mattress. I like clean, logical, comprehensive code... I don't like using black boxes

so in short: you like only your own code, written in your own style - tottaly fine
#54
Chat - Misc / Re: Association game
Last post by alanrotoi - November 21, 2025, 02:04:03 AM
Clue
#55
Competition 2025 / Re: Cloned replays, ZCT285 to ...
Last post by Duplode - November 21, 2025, 01:39:17 AM
Quote from: MiDiaN on November 21, 2025, 12:40:54 AMThis is really not cool, but from what I can tell, the rules page only talks about this under the Team section, where it says you can't use teammates' replays.

"You must drive your own replays" is such a self-evident principle that we do expect people to follow it even in the absence of an explicit bullet point in the rules -- though it probably wouldn't hurt to add another nod to it besides the one currently in the teams section.
#56
Competition 2025 / Re: Cloned replays, ZCT285 to ...
Last post by MiDiaN - November 21, 2025, 12:40:54 AM
This is really not cool, but from what I can tell, the rules page only talks about this under the Team section, where it says you can't use teammates' replays.

Good idea Cas! It might be hard to detect automatically with good accuracy but it's still better than nothing.
#57
Chat - Misc / Re: Association game
Last post by Erik Barros - November 21, 2025, 12:15:41 AM
mrs. peacock
#58
Stunts Related Programs / Re: SDL 3
Last post by Matei - November 20, 2025, 11:48:35 PM
Quote from: Duplode on November 20, 2025, 11:35:14 PMbut if so, why just from the width and not the height?

This is why:

Quoteprintf("Set %dx%dx%d\n",8*RGLOB_screen->pitch/BITSPERPIXEL,height,BITSPERPIXEL);

File graphics/forsdl3/graph2d.c, line 153. The height reported is just the value sent to the function, not the resulting height of the window, which was obviously also reduced, but as mentioned above, I don't know how to find it.
#59
Stunts Reverse Engineering / Re: Restunts repository - Git ...
Last post by Matei - November 20, 2025, 11:40:20 PM
Quote from: Cas on November 20, 2025, 11:13:40 PMIt may seem so because we now see everyday programs taking up hundreds or megabytes or gigabytes,

Try my game:

https://matei.one/idxscr.html#download

QuoteBesides, if you only need to load a PNG file and then save it, you depend on code that can also process compressed audio, for example. It's like carrying the computer with your program.

Not with my functions, which draw graphics and save BMP files only with the standard C library. I didn't need to read BMP files until now though, but I could do that.

QuoteWhich brings me to this. If you send somebody a letter in a random language

That's the C language, it's not random, and "somebody" is the hardware to which you send it, which also has who knows what drivers and other programs on it.

Quoteand you accompany it with a guy who speaks a hundred languages including it,

That's SDL and it will translate your letter to anyone to whom you sent it. The idea is that you don't know who you send it to, but SDL will translate it to anyone. No DOS though.

https://matei.one/idxchess.html

Quotebut the version for DOS/DOSBox, which is available below, uses some graphical functions available with Open Watcom, as SDL has no support for DOS.

Quote from: CasBut SDL not only does this, it also doesn't even provide the translator guy:

As mentioned, SDL is the translator.
#60
Stunts Related Programs / Re: SDL 3
Last post by Duplode - November 20, 2025, 11:35:14 PM
Quote from: Duplode on November 20, 2025, 11:04:39 PMGood catch; I wonder if my environment is somehow interfering with the window size (will try to find out later).

Yes, it is my environment. I normally use XMonad (a tiling window manager) on this computer; switching to a Xfce session I get no segfaults, and the expected 800x600 size is reported. Maybe the two pixels taken by the window borders are somehow being deduced from the available window size (but if so, why just from the width and not the height?). It's mostly academical now, but if I find a workaround for XMonad (and I guess there must be one) I'll post it here.