Solved: Abiathar & CK4 from source

Anything related to Keen Modding.
Post Reply
c64cosmin
Posts: 2
Joined: Sun Oct 22, 2023 10:28 pm

Solved: Abiathar & CK4 from source

Post by c64cosmin »

Hello everyone!

I managed to compile CK4 from source code: https://pckf.com/viewtopic.php?t=11505
The game works and plays as expected.
Next step I imported the levels in Abiathar using the template for Commander Keen 4
When playing the game, entering a new game, the game crashes with "RF_NewMap: Map too tall!"
I noticed that Abiathar will generate a MAPHEAD.CK4 file that is 1KB
Inside the the sources in static I get a MAPHEAD.CK4 file that is 23KB
I tried to build with both and neither will solve the issue.
Patching the game will fail because CK4PATCH.EXE won't recognize the .EXE file, as I did small modifications to it.
How do I get over this crux?
Last edited by c64cosmin on Mon Oct 23, 2023 6:42 pm, edited 1 time in total.
c64cosmin
Posts: 2
Joined: Sun Oct 22, 2023 10:28 pm

Re: Abiathar & CK4 from source

Post by c64cosmin »

Solution: The files MAPHEAD.CK*, EGADICT.CK*, EGAHEAD.CK* need to be copied to ./static folder
Then you have to run the make.bat file to generate the .obj files for those.
Rebuild the whole game and that will do the trick.
Post Reply