Magic addresses
I do not have an answer for Sharangad's question above, however I wanted to share something different I discovered. I don't know how useful this is to anyone but it is my first foray into disassembling the EXE and modifying something.


Bytes BC726 and BC72A in the normal DOS exe control how many opponents can be selected from the options menu. They are both set to "1F" by default which is '31'. Changing this to hex for 32 (20) or more allows the selection of more opponents from in the game without having to use a program to edit the gameopts.cfg directly


The section in the DOS exe:
[Image: image.png]

I have modified mine to be "83 FA 20 7E 05 BA 20 00" which allows for 32 opponents to be selected in the menu:
[Image: image.png]

I suppose the max value would be 38 like NASCAR racing which would allow full use of the 40-car carsets. Im not sure if higher would do anything
Reply
Great find! Now I need to find same bytes in windy.exe.

I also don't know exactly where common data parts in different exe files are. I think there are maybe several parts.
Reply
Yeah I would love to have a regular dos icr2.exe that runs in dosbox widescreen!
Reply
This is great!! I have added it to parameters.csv for my ICR2 editing tool: https://github.com/skchow03/icr2_physedi...meters.csv

Sharangad I don't have a great answer for you yet, there are certainly blocks of code that are in common - like the engine/chassis tables have the same bytes but in a different place in the exe file. I haven't looked into the particular functions related to the logic of the physics and still don't know much of anything regarding the overall organization of the exe file.
Reply
(07-01-2025, 01:19 AM)jxeboy Wrote: I do not have an answer for Sharangad's question above, however I wanted to share something different I discovered. I don't know how useful this is to anyone but it is my first foray into disassembling the EXE and modifying something.


Bytes BC726 and BC72A in the normal DOS exe control how many opponents can be selected from the options menu. They are both set to "1F" by default which is '31'. Changing this to hex for 32 (20) or more allows the selection of more opponents from in the game without having to use a program to edit the gameopts.cfg directly


The section in the DOS exe:
[Image: image.png]

I have modified mine to be "83 FA 20 7E 05 BA 20 00" which allows for 32 opponents to be selected in the menu:
...
I suppose the max value would be 38 like NASCAR racing which would allow full use of the 40-car carsets. Im not sure if higher would do anything
Excellent find! In the Rendition version these two string appear to be at at C3294 (Cart.exe and Indycar).
Reply
(07-01-2025, 03:56 AM)checkpoint10 Wrote: This is great!! I have added it to parameters.csv for my ICR2 editing tool: https://github.com/skchow03/icr2_physedi...meters.csv

Sharangad I don't have a great answer for you yet, there are certainly blocks of code that are in common - like the engine/chassis tables have the same bytes but in a different place in the exe file. I haven't looked into the particular functions related to the logic of the physics and still don't know much of anything regarding the overall organization of the exe file.

Thanks dude! I'll keep digging.
Reply
(07-01-2025, 03:40 AM)samsepi0l Wrote: Yeah I would love to have a regular dos icr2.exe that runs in dosbox widescreen!

The modelview/projection matrix should be the same in both since they have the same camera angles. There is a way to get the Rendition version running at 320x240. I abandoned it halfway since there was no point wasting time on it.
Reply
(07-01-2025, 05:28 AM)sharangad Wrote: Excellent find! In the Rendition version these two string appear to be at at C3294 (Cart.exe and Indycar).

Added to my list: https://github.com/skchow03/icr2_physedi...meters.csv
Reply
Nice!

I've been trying to locate the clamp values for the number of cars drawn but its been harder than I expected. The game doesnt seem to store it in the same way as the number of opponents, but I will keep looking!
Reply
I have made v0.4 of what I now call ICR2Edit. It now features a friendlier user interface! Please let me know if this works.

Windows binary: https://skchow.com/icr2/icr2edit/icr2edit_0.4.zip
Python source: https://github.com/skchow03/icr2edit

[Image: attachment.php?aid=2439]


Attached Files Thumbnail(s)
   
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)