Patch:Save Game (Galaxy)

From KeenWiki
Jump to: navigation, search

This page deals with patches relating to loading, saving and saved games in Keen Galaxy. For saved game filenames see Patch:Files and filenames. Related patches can be found at Patch:Main menu. This page does include patches relating to loading games.

In Galaxy, games can be saved anywhere at any time. They are saved to a file SAVEGMx.CKx and store the entire contents of the level memory including all sprite positions and actions. This allows for 'save scumming' where a random or dangerous situation is replayed over and over from a loaded game until maximum success occurs.


Loaded games switch off God Mode

This patch causes games that are loaded to turn off Keen's God mode when he loads a game. Note that it works by setting the god mode variable to 0.

Patch: Loaded games switch off God Mode
#Loaded games switch off God Mode -Keen 4
%patch $1BDFA $C7 $06 $C629W $0000W $90
#Loaded games switch off God Mode -Keen 5
%patch $1CD98 $C7 $06 $BC91W $0000W $90
#Loaded games switch off God Mode -Keen 6
%patch $1BA6A $C7 $06 $C7B7W $0000W $90


Loaded games aren't paused

This patch stops the Paused window appearing when a game is loaded. Instead gameplay will continue normally.

Patch: Loaded games aren't paused
#Loaded games aren't paused -Keen 4
%patch $1BDFF $EB
#Loaded games aren't paused -Keen 5
%patch $1CD9D $EB
#Loaded games aren't paused -Keen 6
%patch $1BA6F $EB


Saving doesn't ask for savegame name

This patch skips letting the player change the name of their savegame slot. This means all games will be title 'Untitled' or whatever text the modder replaces that with. It makes repeated saving and loading much quicker since only one button press is required, however it also makes accidental save overwriting more likely.

Patch: Don't ask for saved game name
#Don't ask for saved game name -Keen 4
%patch $1C00F $90 $90 $90 $90 $90
#Don't ask for saved game name -Keen 5
%patch $1CFAD $90 $90 $90 $90 $90
#Don't ask for saved game name -Keen 6
%patch $1BC7F $90 $90 $90 $90 $90


Save game name length limits

These patches control the maximum allowable length of the save game slot's name. There are two limits; the first how long the name can be in pixels, the second how long in characters. Usually the pixel limit will cut in first.

Patch: Save game name length limits
#Save game name length limits -Keen 4
%patch $1BFDB $008AW
#Pixels
%patch $1BFDF $0020W
#Characters
#Don't ask for saved game name -Keen 5
#Save game name length limits -Keen 5
%patch $1CF79 $008AW
#Pixels
%patch $1CF7D $0020W
#Characters
#Don't ask for saved game name -Keen 6
#Save game name length limits -Keen 6
%patch $1BC4B $008AW
#Pixels
%patch $1BC4F $0020W
#Characters


Errors

This error occurs quite simply when a saved game demands more memory than the game has. This usually happens if the game was saved in a different mod or different version of the same mod. In this case it is not the saved game or even necessarily the mod that is broken, there is simply an incompatibility between the conditions the game was saved in and the conditions it was loaded in. Even the smallest change can cause this. Working only with games saved in the most recent version of the game should fix this.

If this occurs in a completed or stable mod then it points to deep and unpredictable errors that can be difficult to fix. The best strategy is simply to attempt to discover what conditions cause this to happen, starting with which level\difficulty then looking for more specific subconditions such as the presence of a certain sprite.

There are two situations in which this error can arise and in Keen 4\6 they use different text. In Keen 5 they use the same text.

Patch: Not enough memory to load game error
#Keen 4 :
%patch $5E82 $0259W
#Text called from
%patch $2F0C9 "Not enough memory" $0A "to load game!" $00 %patch $5EFF $0279W
#Text called from
%patch $2F0E9 "Not enough memory" $0A "to load game!" $00
#Keen 5 :
%patch $5E1C $01FEW
#Text called from 1
%patch $5E98 $01FEW
#Text called from 2
%patch $3053E "Not enough memory" $0A "to load game!" $00
#Keen 6 :
%patch $5C56 $019DW
#Text called from
%patch $30ECD "Not enough memory" $0A "to load game!" $00 %patch $5CD3 $01BDW
#Text called from
%patch $30EED "Not enough memory" $0A "to load game!" $00