Patch:Save Game (Galaxy)

From KeenWiki
Jump to navigation Jump to 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.

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.

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


Don't ask for confirmation when loading game during gameplay

This patch changes things so that the game does not as a player whether they are sure they want to load a game during regular gameplay. This makes things a lot faster when players have to load many times.

Don't ask before loading game during gameplay

#Don't ask before loading game during gameplay -Keen 4
%patch $1AFDA $EB $36

#Don't ask before loading game during gameplay -Keen 5
%patch $1BF78 $EB $36

#Don't ask before loading game during gameplay -Keen 6
%patch $1AC4A $EB $36


What key confirms game load

This patch changes what key confirms a game load that overwrites a current game. By default this is 'Y' (scancode $15.) The second set of patches sets this to 'any key but Esc' for quicker gameplay.

This also works in other circumstances such as starting a new game while playing a game, so be cautious!

What key confirms game load

#What key confirms game load -Keen 4
%patch $1AF68 [$15]

#What key confirms game load -Keen 5
%patch $1BF06 [$15]

#What key confirms game load -Keen 6
%patch $1ABD8 [$15]

Any key but esc confirms game load

#Any key but esc confirms game load -Keen 4
%patch $1AF68 [$01] {$74}

#Any key but esc confirms game load -Keen 5
%patch $1BF06 [$01] {$74}

#Any key but esc confirms game load -Keen 6
%patch $1ABD8 [$01] {$74}


Saved game names

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.

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.

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


Default saved game name

his is the name given to a saved game file if the player simply presses enter after choosing to save in an empty savegame slot.

Default saved game name

#Keen 4:
%patch $1C02C [$4DBAW]
%patch $33C2A "Untitled" $00

#Keen 5:
%patch $1CFCA [$42EAW]
%patch $3462A "Untitled" $00

#Keen 6:
%patch $1BC9C [$4834W]
%patch $35564 "Untitled" $00


Menu texts

These patches cover the texts displayed in the Load\Save screen in the Main Menu. Note that in Keen 5 the YOU'RE IN A GAME text is also used when trying to start a new game during gameplay, so altering it will alter that too.

Keen 4

#Saving game
%patch $1C04B [$4DC3W]
%patch $33C33 "Saving" $00

#Initial empty slot name when first saving game
%patch $19834 [$46B2W]
%patch $33522 "Empty" $00

#Centered empty slot text
%patch $1BF3B [$4D9CW]
%patch $33C0C "Empty" $00

#Loading during game
%patch $1AFDB [$497AW]
%patch $1AFE0 [$498BW]
%patch $337EA "YOU'RE IN A GAME" $00
%patch $337FB "PRESS Y TO LOAD GAME" $00

Keen 5

#Saving game
%patch $1CFE9 [$42F3W]
%patch $34633 "Saving" $00

#Initial empty slot name when first saving game
%patch $1A7D2 [$3CE9W]
%patch $34029 "Empty" $00

#Centered empty slot text
%patch $1CED9 [$42CCW]
%patch $3460C "Empty" $00

#Loading during game
%patch $1BF79 [$3F6BW]
%patch $1BF7E [$3F7CW]
%patch $342AB "YOU'RE IN A GAME" $00
%patch $342BC "PRESS Y TO LOAD GAME" $00

Keen 6

#Saving game
%patch $1BCBB [$483DW]
%patch $3556D "Saving" $00

#Initial empty slot name when first saving game
%patch $194A4 [$40B2W]
%patch $34DE2 "Empty" $00

#Centered empty slot text
%patch $1BBAB [$4816W]
%patch $35546 "Empty" $00

#Loading during game
%patch $1AC4B [$43F4W]
%patch $1AC50 [$4405W]
%patch $35124 "YOU'RE IN A GAME" $00
%patch $35135 "PRESS Y TO LOAD GAME" $00


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.

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


Misc

Blank the load\save screens

This patch makes the load and save screen blank, preventing the player from doing either, though they can access the screen itself. The first patch leaves the menu totally blank while the second allows the load\save menu to be shown, but offers no options. Which is preferable is an aesthetic choice only.

Completely blank load\save screen

#Completely blank load\save screen -Keen 4
%patch $1BE11 $CB

No save\load options

#No save\load options -Keen 4
%patch $1BC20 $CB