Hi,
I'm having little problems with adjusting "KKND 2 Krossfire" to higher resolutions.
I manage to hack game to run in 1280x1024 resolution but only with partial success.
Main menu in 1280x1024
Game run fine in higher resolution, everything is almost good, movies runs fine, but when you
start any map you get unhandled exception and game crushes.
PARTIAL SOLUTION
I've found why and when this happends so here everything I know:
- game uses external program "options.exe" to set resolution, you can choose from 640x480, 800x600 and 1024x768
- whey you click "OK" it saves that settings in "options.cfg" file (line "SCREENMODE")
- in this file you will find line "SCREENMODE" it's values can be 0, 1 or 2
(0 - means 640x480 resolution, 1 - 800x600 and 2 - 1024x768)
- when you run "KKND2.exe", game first loads "options.cfg" file and reads all configuration including
resolution ("SCREENMODE"), then depending on value of "SCREENMODE" it uses one of hardcoded resolutions found here (open "KKND2.exe" in your hex editor):
(My hack so far is to replace those values with my own)
- game crushes in routine where it decides whether to display attact or select cursor, this routine trys to read nonexistent memory address which causes exception
- if someone manage to adjust this routine that so it no more trys to read nonexistant memory address game will run perfectly in any resolution