News:

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

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Matei

#1
Stunts Related Programs / Re: SDL 3
Yesterday at 11:50:27 PM
https://xmonad.org/news/2023/10/06/wayland.html

QuoteWe think we now have enough contributions coming in monthly to pay for someone to work with us on it.

Problem is, we have no idea who can do this.
#2
Stunts Related Programs / Re: SDL 3
Yesterday at 11:22:03 AM
Attached file graphics.tar.gz. First set the settings in xmoNAd back to where they were and try version from simcarstunts-6.2.0:

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

If the problems still occur, then download file attached here, put files graph2d.c from it in the game source, recompile and see what happens. You can also try with various resolutions in full screen (fullscr=1), with both SDL 3 and SDL 2 (ex.: 960x720).
#3
Stunts Related Programs / Re: SDL 3
Yesterday at 07:42:28 AM
Those red borders bother me when I try to view a video with MPlayer at full screen, but for the game just leave them:

https://wiki.libsdl.org/SDL3/SDL_GetWindowSizeInPixels

I will post the fixed graphics/forsdl3/graph2d.c file for you to test it (I can't), but I just found out there might be other problems:

https://wiki.libsdl.org/SDL2/SDL_GetWindowSizeInPixels

"This function is available since SDL 2.26.0."

So for SDL 2 I'll have to use this:

https://wiki.libsdl.org/SDL2/SDL_GetWindowSize

So I will also post file graphics/graph2d.c which I also can't test, so you should, because as mentioned above, my problems with SDL 2 in xMoNad are others - the pointer given by SDL_GetWindowSurface() and the size of the window change after the rendering starts (function display()).
#4
Chat - Misc / Re: Your Football Team
Yesterday at 12:24:57 AM
#5
Stunts Related Programs / Re: SDL 3
November 23, 2025, 05:49:54 PM
https://disenchant.net/tyrquake/

Tyrquake works, but it uses "SDL_CreateRenderer()" instead of "SDL_GetWindowSurface()".

https://wiki.libsdl.org/SDL2/SDL_CreateRenderer

https://gamedev.stackexchange.com/questions/180077/in-sdl-what-is-the-difference-between-using-a-surfaces-and-a-renderer

However, unlike my game, tyrquake with SDL 2 had a very low framerate on this laptop with Fedora 14, although it worked well with X11:

https://www.miniputer.com/Acer/Aspire_3000.html

https://matei.one/gnxfed14.html
#6
Stunts Related Programs / Re: SDL 3
November 23, 2025, 05:03:16 PM
Quote from: Matei on November 21, 2025, 11:03:44 PMfullscr=0 - the controls didn't work,

Actually they did but the image doesn't update. Edited file graphics/graph2d.c, lines 276...:

#elif SDLVER==2
  if(RGLOB_initgr==0){printf("display(): Screen not initialized\r\n"); exit(1);}
  if(SDL_UpdateWindowSurface(RGLOB_window)<0){
    printf("%s",SDL_GetError());
    exit(1);
  }
#else

Error:

QuoteWindow surface is invalid, please call SDL_GetWindowSurface() to get a new surface

Which version of xMOn@D do you have? I have 0.18.0.
#7
Custom Cars with Stressed / Re: Compatibility issue
November 22, 2025, 10:41:58 PM
https://matei.one/#video

I bought this laptop in 2011, CPU Atom N455:

https://www.techpowerup.com/cpu-specs/atom-n455.c1413

QuoteRelease Date:     Jun 1st, 2010
[...]
Intel 64

And I have 3 of these which I got for free; very good performance, but the electricity they use is a little expensive. I'm using one right now:

https://www.techpowerup.com/cpu-specs/pentium-4-ht-650.c18

QuoteRelease Date:     Feb 20th, 2005
[...]
Intel 64

However, I only compile 32-bit versions of the programs for Wind0w$, because wiN***s is oudated anyway.

https://forum.stunts.hu/index.php?topic=2224.0

QuotePorted to Qt version 5.0.

Oops, problems again.

https://www.allinthedifference.com/difference-between-qt5-and-qt6/

This is what happens when you don't use SDL.
#8
Competition 2025 / Re: ZCT293 - Symmetry
November 22, 2025, 04:32:27 PM
What you recommend is outdated. Version repaired by Mr. HerrNove, DOSBox included:

https://marnetto.net/projects/stunts

I arranged it a little:

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

Details above in the page and in the downloadable file. You can run "SETUP.BAT" and select 2 viewing distances, which work well at about 25000 and 35000 cycles, respectively. I also raised the car a little, as can be seen in the pictures.
#9
Competition 2025 / Re: ZCT293 - Symmetry
November 22, 2025, 02:01:32 PM
Quote from: CTG on November 22, 2025, 01:00:34 PMBtw: please suggest optimal DOSBox settings for W**11! ;D

Yeah, get rid of that malware and install an operating system.

https://matei.one/idxscr.html#story (a little lower):

QuoteEven if you obtain a proprietary program from a legitimate source (see picture above) and don't pay anything, by using it you give free advertising to an organisation that works against you.

Which you just did.
#10
Competition 2025 / Re: Cloned replays, ZCT285 to 292
November 22, 2025, 12:06:59 PM
There's another problem. If someone gets access to someone else's replay, that person can just imitate the other person's driving style, which is made easier by slowing down the emulator with F12 + [ in DOSBox-X or by just increasing the number of cycles to a high enough value in the original DOSBox. Not that I wasted any time doing this, just saying.
#11
Stunts Related Programs / Re: SDL 3
November 22, 2025, 07:44:21 AM
Quote from: Duplode on November 22, 2025, 01:10:04 AMI don't think you'd want to make that change in your code, though, as it has side effects on other environments where everything has been working normally

That's not what I meant. As I wrote above:

Quote from: MateiI will make an update, but I have to think how.

I would have added some instructions in the documentation to edit graph2d.c and add those 2 pixels if necessary, or put some parameters in file "config", but if you read my previous message, that doesn't help:

Quotefullscr=1 - "Set 623x600x32" instead of "Set 800x600x32", so a little more than 2 pixels missing and "Segmentation fault".

Quote from: Duplode-- see e.g. the black lines at the right and bottom of the window

You can imagine that I already tested and saw those, which is how I came to the conclusion that the "workaround" should work for you.

The share of Simcar users is vanishingly small without having to specify other details. People don't like good games, I can't do anything about that.
#12
Stunts Related Programs / Re: SDL 3
November 21, 2025, 11:03:44 PM
Ok I just installed xM0n@d version 0.18.0 on Fedora 41. Worst dependencies I've ever seen, I had to download 110 files besides the updates. I had no problems with SDL 3 or SDL 1, with which the game worked perfectly with fullscr=0 and fullscr=1, but with SDL 2:

fullscr=0 - the controls didn't work, when I pressed any key the caracter just showed in the terminal, SDL_WINDOW_MOUSE_FOCUS|SDL_WINDOW_INPUT_FOCUS|SDL_WINDOW_MOUSE_GRABBED also didn't work, so Ctrl+Alt+F2 and "killall simcar".

fullscr=1 - "Set 623x600x32" instead of "Set 800x600x32", so a little more than 2 pixels missing and "Segmentation fault". DOSBox for SDL 2 also didn't work in full screen (just black rectangle), and ffplay from ffmpeg version 7.1 only shows the image on half of the screen, can't set it to full screen. MPlayer works well, but it doesn't use SDL 2.

There is a good solution for the problems with xMoNaD: don't use it, it's broken (I'll have to put that in the documentation).

[edit]
I forgot: on Fedora 41 I have sdl12-compat instead of SDL1, so with the option for SDL1 the game actually displays the image with SDL2, which worked, but with SDL2 (and MATE) the framerate is ~twice as high as with sdl12-compat. With SDL1, SDL2 and SDL3 used directly the framerates are comparable, of course.
[/edit]

[edit2]
DOSBox for SDL 2 didn't work in full screen with MATE either, but here the whole screen was black instead of the rectangle in center. I typed "exit" and it worked though.
[/edit2]
#13
Stunts Related Programs / Re: SDL 3
November 21, 2025, 05:16:13 PM
https://wiki.libsdl.org/SDL3/SDL_CreateWindow

There might also be some flags here that could ~fix the problem, but I can't test them. Ex.:

SDL_WINDOW_BORDERLESS

This is to be added to the line mentioned above, instead of "0" and without adding 2 to "width" and "height". As I saw, the windows in "Xm0NaD" are without borders anyway, so maybe they have to be set like that from SDL.

https://en.wikipedia.org/wiki/Xmonad
#14
Competition 2025 / Re: Cloned replays, ZCT285 to 292
November 21, 2025, 09:03:25 AM
Quote from: Duplode on November 21, 2025, 01:39:17 AM"You must drive your own replays" is such a self-evident principle.

It's not self-evident. This is how free software works: you take somebody else's work and add your own contribution. Actually in free software people don't present other people's work like their own, but they do it in commercial software:

https://matei.one/opdos.html

QuoteThe system was initially called QDOS, from "Quick and Dirty Operating System" and was largely copied from CP/M, produced by Gary Kildall.

This is how progress occurs.

https://matei.one/compsw.html#indrev

Quotea French weaver and merchant named Joseph Marie Jacquard, who had a passion for gadgets, added a few modifications to some things invented earlier by some other guys and created a new type of loom in 1804, which he called the Jacquard loom,
#15
Stunts Related Programs / Re: SDL 3
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/