News:

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

Main Menu

Recent posts

#51
General Chat - ZSC / Re: Statistics!
Last post by alanrotoi - October 08, 2025, 09:47:13 PM
There are 4 leading pipsqueaks about most races won.

You cannot view this attachment.


We could add Renato Biker who matched Ayrton from zct153 to zct166.
The closest to dethrone Duplode is still Renato Biker. He would need at best until zct329 (november 2028).

In zct166 we had three pipsqueaks leading with 23 races won each: Ayrton, Renato Biker and Duplode.
#52
Stunts Reverse Engineering / Re: Restunts repository - Git ...
Last post by Matei - October 08, 2025, 11:07:37 AM
Quote from: Daniel3D on October 08, 2025, 09:55:33 AMif we understand that part fully we can hook it to CAS his graphics engine,

CAS's graphics engine is in FreeBASIC, it's slow and it's not finished. You already have a usable graphics engine which includes CAS's part that reads tracks from Stunts, converted from FreeBASIC to C.

https://matei.one/idxscr.html

https://sourceforge.net/projects/simple3d/files/SDL_grf/

Documentation of the graphical functions included. You can combine the part that renders the graphics from SimcarStunts with the part that reads tracks from Stunts, in the same program. I already fixed the 3D models to be rendered properly. Next:

Quotereplace the track editor with a simplified version of bliss,

Why not just keep the track editor out as a separate program? Much easier.

Quoteand extend the track elements library with new and exciting possibilities.

Which I actually did from the start before using the tracks from Stunts - link above and I also made some programs to edit 3D models, also there.
#53
Stunts Reverse Engineering / Re: Restunts repository - Git ...
Last post by llm - October 08, 2025, 11:04:53 AM
Quote from: Daniel3D on October 08, 2025, 09:44:09 AMStill, the fact remains that IDA is a pain in the but, especially for those that don't use it enough to warrant a paid licence. So whatever way you look at it, the Ghidra conversion makes a huge difference.

100% ACK
#54
Stunts Reverse Engineering / Re: Restunts repository - Git ...
Last post by llm - October 08, 2025, 11:04:26 AM
@dstien

https://github.com/dstien/restunts2/commit/daa05e093c3e56bfa6a7a9610173dc5db2db8cfe

will you also try to compare to the original implementation - something like int_atan2 disassembly + C port over the complete integer range or is something like that too much?

for example: some x/y combinations don't give the same result

range from x/y -1000...1000 - the list contains only different result comparing the C port and the original disassembled function

https://pastebin.com/f9nucieg

my test-code looks somway like this

   
    const int16_t min = -1000;
    const int16_t max = +1000;

    for (int16_t x = min; x < max; ++x)
    {
        for (int16_t y = min; y < max; ++y)
        {
            int16_t a = int_atan2_asm(x, y);
       
            int16_t c = int_atan2(x, y);
           
            if(c != a)
            {
              printf("x=%d, y=%d -> C=%d, ASM=%d %s\n",
                     x, y, c, a, (c == a) ? "OK" : "!!FEHLER!!");
            }
        }
    }

compile with current Watcom V2 on Windows for DOS 16bit Model small exe using wcl+wasm
the test run was done on a real DOS 6.22 on VMWare Player (because dosbox failed to run the complete test without hanging)

but im not sure what the defined range for these functions are

#55
Stunts Reverse Engineering / Re: Restunts repository - Git ...
Last post by Daniel3D - October 08, 2025, 09:55:33 AM
Quote from: Cas on October 06, 2025, 11:33:59 PMAmazing, @dstien8)
Is it possible to isolate the physical engine for analysis?  I feel that many parts of the code, such as the menus, file loading functions, etc., would be easier to rewrite than to port, and the graphics engine, while more significant, is the one that could use an upgrade, but the physics engine is crucial so that we can actually reproduce the behaviour, remain replay-compatible, etc. If we could work shell by shell around the physics engine, great things could be achieved!

If we can isolate the part that replay dump uses I think we are halfway there. Maybe there is a "live" version of that calculation but I'm not sure.

That is the hart of the game, if we understand that part fully we can hook it to CAS his graphics engine, replace the track editor with a simplified version of bliss, replace the car and opponent selection and extend the track elements library with new and exciting possibilities. (For example, add snow, sand and dirt to the grass and water terrain options).

If we don't get to understand it fully, everything except the track elements library is still possible.. 8)
#56
Stunts Reverse Engineering / Re: Restunts repository - Git ...
Last post by Daniel3D - October 08, 2025, 09:44:09 AM
Quote from: llm on October 07, 2025, 10:08:55 AM
QuoteParticularly the database from the program whose vendor has a history of refusing to sell to people outside the infosec clique.

isn't that like the myth that IDA dropped DOS support (which is only true for IDA freeware versions)

i know serveral private people that bought an IDA license - like me - without any infosec background

Still, the fact remains that IDA is a pain in the but, especially for those that don't use it enough to warrant a paid licence. So whatever way you look at it, the Ghidra conversion makes a huge difference.
#57
Season's Chat - CCC / Re: an idea for 2025 Christmas...
Last post by Daniel3D - October 07, 2025, 10:20:15 PM
Quote from: stanceboyCZ on October 03, 2025, 12:31:30 PMHey guys, i was thinking about christmas special for 2025, and it would include rally cars only and the tracks would be snow (it can be dirt or asphalt or mixed).
A race on mixed roads with stunts rally class cars*

*)   For those not familiar with the
distinction: these are cars that are
tuned to perform better on dirt and
ice than average.

I love the idea. Looking forward to it.
#58
Competition 2025 / Re: ZCT291 - The Fjords
Last post by alanrotoi - October 07, 2025, 06:17:25 PM
Quote from: dreadnaut on September 26, 2025, 06:28:45 PMThank you! When you look at the map, or when you drive through?

I mean from the map
#59
Stunts Reverse Engineering / Re: Restunts repository - Git ...
Last post by llm - October 07, 2025, 10:08:55 AM
QuoteParticularly the database from the program whose vendor has a history of refusing to sell to people outside the infosec clique.

isn't that like the myth that IDA dropped DOS support (which is only true for IDA freeware versions)

i know serveral private people that bought an IDA license - like me - without any infosec background

#60
Custom Cars with Stressed / Re: Compatibility issue
Last post by Matei - October 07, 2025, 08:45:24 AM
https://en.wikipedia.org/wiki/ANSI_C

https://en.wikipedia.org/wiki/C_standard_library

SDL is not bloated and those guys took care of everything::

https://github.com/libsdl-org/sdl2-compat/releases

https://github.com/libsdl-org/sdl12-compat/releases

Again:

QuoteOk, then let's statically compile the entire operating system into the program, and while we're at it, the computer and also a nuclear power plant, just to be sure.

Problems with FreeBASIC:

http://freebasic.net/

QuoteEnable JavaScript and cookies to continue

And does it support Wayland? If it doesn't, have you statically linked X11 to your programs? Btw, the distribution I use uses X11 and I still can't run your programs and again:

https://sourceforge.net/projects/simple3d/

QuoteSDL_grf - functions for 2D/3D graphics (lines, circles, discs, rectangles, triangles, text and 2D or 3D models composed of triangles), sound and input, written in C;

That's for both SDL 1 and SDL 2. I suppose that adapting them for SDL 3 wouldn't be very complicated, but it's not necessary, as can be deduced from above.