Thank you Garrett, your border-fix works!
Sorry it took so long, but here is the post I promised. Before I go into details, here is a list of what is possible at the moment:
- It is possible to change the screen resolution the game runs with, while the size of the game-area stays the same (as described by balver)
- It is possible to change the height and width of the game-area, within the following limits:
- The width of the game-area must be smaller than 1310px (0x51E in Hex)
- The height of the game-area can only be increased above ~864px by decreasing the width
- The width can only be increased above ~920px by decreasing the height (making some menus unaccessable)
By "game-area" I mean the area the game itself is played in, without the menu on the left side of the screen. When the game is running at 1024x768, it's default width is 808px (0x328 in Hex).
Before it is possible to increase the game-width, it is necessary to adjust two values:
- Find 81 FF 00 04 00 00 at address 0x0002CEA0 and change the last four bytes to the width of your screen resolution (e.g. for 1680x1050 change to 81 FF 90 06 00 00)
- Find C7 05 0C 0F 73 00 00 04 00 00 at address 0x000C6EDD and change the last four bytes to the width of your screen resolution (e.g. for 1680x1050 change to C7 05 0C 0F 73 00 90 06 00 00)
Now we can change the width of the game-window:
- Find C7 05 18 0F 73 00 28 03 00 00 at address 0x000C6EF2 and change the last four bytes to your desired value (e.g. for the maximum width of 920px change to C7 05 18 0F 73 00 98 03 00 00)
By increasing the width too much, I got the following errors:
Quote:
Structured Exception c0000005 occured at 0x0052243A. Write to 1488a580 failed.
Quote:
Structured Exception c0000005 occured at 0x005FC4F2. Write to 593ef2a failed.
Further notes:
- I'm not sure why the width-limit of 1310px is there, but if you search s3.exe for 1E 05 00 00, you will find the value more than 30 times. Also some of these occurences are near the addresses that are listed in the crash-error-messages
- I won't try to fix the 1310px-limitation, until there is a way to increase the width that far, without decreasing the height.
- I still believe that the game does not allocate enough memory to display a bigger game window. I will keep digging, but to be honest, I don't even know where to look at the moment...