Sly 1:Anticrack

From SlyMods
Revision as of 02:27, 31 July 2022 by TheOnlyZac (talk | contribs) (TheOnlyZac moved page Anticrack to Sly 1:Anticrack: Moved to gamespace)
Jump to navigation Jump to search
Anticrack
Game Mechanic
An invisible wall of fire in Into The Machine blocks you from completing the level
GameSly Cooper and the Thievius Raccoonus

Anticrack is a feature of Sly Cooper and the Thievius Raccoonus designed to prevent modifying the game. It performs periodic integrity checks using a checksum to ensure that the code has not been altered. If a check fails, one of four penalties is activated.

Firewall

If the integrity check in the function at 0x12b760 fails, the flag at 0x261080 is set, which activates the firewall penalty. This penalty spawns an invisible wall of fire in the level Into the Machine once the final segment of the map has been loaded for 1 minute and 27 seconds.

Once the firewall is active it sets a scene variable which persists on the save file, making it permanent once you save the game. This means the firewall will be active even if anticrack is disabled on the next boot.

Anti-grab

If the check in the function at 0x15edb8 fails, the flag at 0x261080 is set, which activates anti-grab. This penalty is activated in two stages:

  • After 30 seconds of in-game time, jumping and pressing circle to climb will fail intermittently.
  • After 2 minutes, climbing is disabled altogether.

Vehicles

If the check in the function at 0x18f610 fails, the flag at 0x269b48 is set, which activates the vehicles penalty. This check occurs after an FMV is played for 3 seconds. Since the game starts with an FMV of the Sucker Punch logo, this check is triggered when the game is booted. This penalty has two effects.

The Van

The van's acceleration will be capped at 40%. The function UpdateSuvActive, which is called every frame, is supposed to set the van's velocity target value, svTarget, to some value calculated by the physics engine. However, if the vehicle penalty is active, svTarget is multiplied by 0.4. This speed limit makes the race levels impossible to win.

Hover Blaster

The blaster's cannon will be fully disabled on the hover blaster levels.

Collectibles

If the check in the function at 0x1e9b30 fails, the flat at 0x275c34 is set, which activates the collectibles penalty. This penalty has two effects.

Keys

The key count on the world state will not increase when collecting a key. Since you need a certain number of keys to reach some areas, this effectively halts all progress.

Clue bottles

This effect begins after 2 minutes and 55 seconds of in-game time and only affects clue bottles.

  • Upon dying or loading a level, each clue bottle you previously collected will have a 20% chance to be un-collected. This is accomplished by randomly selecting 20% of the fclue flags from the current level state and setting them to 0 when the level is loaded. For each bit that is unset, the cclue is decreased by 1.
  • Each clue bottle in the level will have a 20% chance to turn invisible, making it practically impossible to find them all. This is accomplished by iterating over each clue bottle in the level and turning it invisible.