The most up to date glitch repair tool is available through the modification's tab of GTASnP.
Upload your save, choose the appropriate modifications, and download the repaired save to your choice of save slot.
The Savegame Editor 3.x has many excellent repair tools.
Legacy Glitch Repair Tool is available at hmvartak's site: (Includes a stray blip tool) <Online Glitch Repair Tool>
Please Read: The purpose of this topic is to document Glitches in San Andreas that are part of the save file. It is intended for people who can hex edit a save file or create tools that can detect or repair save file glitches. Questions about your specific glitch would be more appropriate in another topic.
Documentation on the structure of the save file can be found on the Wiki at gtamodding.com
SA Save Files
Description: No Basketball appear on the Basketball Courts
Cause: Saving near an "Active" basketball; Madd Dogg's Crib
The Basketball Glitch is active if the following Global Variable is set to 1:
PCv1, PCv2, PS2v1 = $1928
PS2v2 = $1932
iOS = $3315
The Basketball Glitch can be fixed by setting the global variable to 0.
A Basketball fix is available in the form of a "memory hack." I'm not sure how it works but it seems to do the job effectively. As far as I know this is the only utility that can repair the Basketball Glitch.
Basketball Bug Fix
The Basketball Glitch can be prevented by moving Madd Dogg's Save Disk farther from the Basketball. At about 70m, the basketball will unspawn even if CJ continues to watch or face the object.
CODE // Madd Dogg's Library
$886 = 1291.8
$904 = -797.8284
$922 = 1089.5
$940 = 1286.8
$958 = -797.69
$976 = 1089.1
$994 = 90.0
$848 = 0
For PS2v2 add 4 to each global variable (1928 + 4 = 1932)
(PS2 offset does not hold true for all global variables)
The save disk pickup will move when the save routine is executed, but a save file editor may also want to move the associate pickup to complete the modification.
Basketball Fix for PS2
Basketball Fix v1 - RAW
AR Max PS2v1 NTSC
Basketballs Enabled (Tagging Up Turf mission completed)
PCv1, PCv2, PS2v1: $1903 = 1
PS2v2; $1907 = 1
Basketballs Enabled PS2v1 - RAW
AR Max PS2v1 NTSC
Pool Player Glitch
Description: The Pool Player never appears at the pool tables.
Cause: Saving near an active pool player. Normally this will only be a concern for people that add a pool table to a save house, but it may also cause problems for people using a save anywhere mod or CLEO save script. This glitch is included here because the cause and solution are identical to the Basketball Glitch.
The Pool Player Glitch is active if the following Global Variable is set to 1:
PCv1, PCv2 = $9462
PS2v1 = $9461
PS2v2 = $9466
iOS = $10819
Related Objects: Saving near a gambling object does not cause an active casino dealer to glitch. However, I'm not so sure about the random peds that are also associated with these objects. No problems are observed from saving near video games or gym equipment (besides the basketball). The vending cart vendor was not tested.