Sly 1:Anticrack: Difference between revisions

Tweaked layout and wording
(Added infobox and navbox)
(Tweaked layout and wording)
Line 1:
{{Infobox game mechanic
| titlename= Anticrack
| image= [[File:ITM anticrack firewall.png]]
| official= y
Line 6:
}}
 
'''Anticrack''' is a feature of {{Sly 1}} designed to inhibit modifying the game binary. It performs periodic integrity checks using a checksum to ensure that the elf has not been altered. If a check fails, one of four penalties areis activated.
 
{{todo|Add the function and flag memory offsets}}
 
==Firewall==
If the integrity check in the function at offset 0x0x12b760 fails, the flag at 0x0x261080 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, saving the game makes it permanent, corrupting the save file even if anticrack is disabled on the next boot.
 
== Anti-grab==
If the check in the function at 0x0x15edb8 fails, the flag at 0x0x261080 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 0x0x18f610 fails, the flag at 0x0x269b48 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===
This penalty has two effects. The first is that the van's velocity iswill be capped at 40% of it's normal speed, making the race levels impossible to win. This is accomplished in the function <code>UpdateSuvActive</code> which is called to update the van every frame it is active.
* It first checks if the flag for the vehicle penalty is set.
* It then updates the van's velocity target value, <code>svTarget</code>, to some value calculated by the physics engine.
* If the vehicle penalty is active, <code>svTarget</code>) is multiplied by 0.4.
 
===Hover Blaster===
The second effect is that the blaster's cannon will be fully disabled on the hover blaster levels.
 
==Collectibles==
If the check in the function at 0x0x1e9b30 fails, the flat at 0x0x275c34 is set, which activates the collectibles penalty. This penalty has two effects.
 
===Keys===
This penalty has two effects. The first is that the key count on the [[WS|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===
The secondThis effect takes effectbegins 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 <code>fclue</code> flags from the current [[LS#Clue values|level state]] and setting them to 0 when the level is loaded. For each bit that is unset, the <code>cclue</code> is decreased by 1.
* Each clue bottle in the level will have a 20% chance to turn invisible, making it practically impossible to open vaults. This is accomplished by iterating over each clue bottle in the level and turning it invisible.
 
{{Navbox Sly 1}}