# Install
pip install sc2reader pandas numpy scikit-learn
import sc2reader import pandas as pddef replay_to_dataframe(path): replay = sc2reader.load_file(path) rows = [] for event in replay.tracker_events: if event.name == 'UnitBornEvent': rows.append( 'game_id': replay.filename, 'time_sec': event.second, 'player': event.control_player.name, 'unit': event.unit.name, 'x': event.location.x, 'y': event.location.y ) return pd.DataFrame(rows)
df = replay_to_dataframe("sample.SC2Replay") df.to_parquet("linked_data.parquet")
If the cache wasn't the issue, a game file might be corrupted.
The "Preparing game data" prompt in StarCraft II typically indicates that the Battle.net launcher is downloading missing assets, localizing language files, or reconfiguring game data after an update. While often a standard process, players frequently report being stuck on this screen due to language mismatches or account synchronization issues. Common Fixes for "Preparing Game Data"
If the process is stuck or repeats every time you launch the game, try these specific solutions:
Align Language Settings: A common cause is a mismatch between the Battle.net launcher language and the in-game settings. Open the Battle.net Desktop App. starcraft 2 preparing game data link
Select StarCraft II and click the Gear icon (Options) next to the Play button.
Go to Game Settings and ensure both "Text Language" and "Spoken Language" are set to English (or your preferred native language).
Restart the game to allow the correct language pack to download.
Force Region Sync: If the game hangs after "Preparing Data," switching your region in the launcher (e.g., from Europe to Americas) can force a re-synchronization of account data. Launch the game in the new region once, then switch back to your original region.
Bypass the Launcher: You can launch the game directly to skip the "download of doom" by using the SC2Switcher_x64.exe found in your installation folder (typically StarCraft II/Support64/).
Repair Game Files: Use the Scan and Repair tool in the Battle.net launcher (under Options > Game Settings) to fix corrupted data. # Install pip install sc2reader pandas numpy scikit-learn
Clear Cache Folders: Corrupted temporary files can cause the launcher to stall.
Close Battle.net and all Blizzard processes via Task Manager.
Press Win + R, type %ProgramData%, and delete the Blizzard Entertainment and Battle.net folders. Repeat for %AppData%, %LocalAppData%, and %Temp%. Known Issues & Causes
If you're stuck on the "Preparing Game Data" screen in StarCraft II
, it's usually due to a language mismatch between your Battle.net launcher and the game client or corrupted cache files. 🛠️ Core Solutions
Sync Languages: Ensure your Battle.net app language and in-game audio/text settings are both set to English (US). If the cache wasn't the issue, a game
Wipe Cache: Delete the Battle.net Tools and Cache folders in %ProgramData% to force the launcher to rebuild clean data.
Move to C: Drive: Moving your game installation to the default path (C:\Program Files (x86)\StarCraft II) has fixed persistent looping for many users.
Use the Switcher: Bypass the launcher entirely by running SC2Switcher.exe found in your game's Support folder. Why This Happens Preparing game data - Technical Support - SC2 Forums
CREATE TABLE games ( game_id TEXT PRIMARY KEY, map_name TEXT, duration_sec INTEGER, patch TEXT, replay_date DATE );CREATE TABLE players ( player_id TEXT, game_id TEXT REFERENCES games, race TEXT, mmr INTEGER, result TEXT, -- win/loss PRIMARY KEY (player_id, game_id) );
CREATE TABLE unit_events ( event_id BIGSERIAL, game_id TEXT REFERENCES games, timestamp_sec FLOAT, player_id TEXT, unit_type TEXT, event_type TEXT, -- born, died, upgraded x REAL, y REAL, parent_unit_id TEXT, -- linked to other event FOREIGN KEY (game_id, player_id) REFERENCES players );
CREATE TABLE kill_matrix ( killer_event_id BIGINT REFERENCES unit_events, victim_event_id BIGINT REFERENCES unit_events, game_id TEXT );