Category:Save Data
GPADX.PRF Files
These files (GPADX_MP.PRF, GPADX_CM.PRF, and GPADX_SP.PRF, "X" being the controller number) contain variables related to game settings.
Call of Duty 4: Modern Warfare, World at War
Call of Duty 4 stores the GPAD files in plaintext. The max size the file can be is 1000 bytes. It was then later patched by Infinity Ward because users started to edit the files to exploit the game.
World at War in the other hand, is encrypted using Sony's AES encryption algorithm. After decrypting that layer the GPAD's is going to be plaintext just like Call of Duty 4. Treyarch hasn't bothered in patching the files, which allows modifications on the game.
Both games use .cfg codes, which is easy to manipulate dvars (Developer Vars).
Black Ops & Black Ops II
Treyarch has added additional protection on the save data. It is first encrypted using Sony's AES algorithm, after decrypting that layer it is additionally encrypted using the TripleDES-CBC algorithm.
3DES key:
unsigned char black_ops_3des_key[24] = "Md8ea20lPcftYwsl496q63x9"3DES IV (Initialization Vector)
unsigned char black_ops_3des_iv[24] = "0Peyx825J4S2ndpr54rW312z"After decrypting this TripleDES layer it is then plaintext in Black Ops and you are able to edit the file to your liking, allowing you to edit dvars and .cfg code. On Black Ops II in the other hand, it has hard-coded dvars that has a structure stored in the DDL asset.
Modern Warfare 2, Modern Warfare 3, Ghosts, Advanced Warfare
Ever since Modern Warfare 2, Infinity Ward started compiling the saves because of people taking advantage of cfg code in Call of Duty 4. They are hard-coded dvars that can only mod in-game settings like sensivity, in-game volume, and button configurations etc...
For each entry, first a 32 bit integer is stored as an id. After that, the value is stored. The values are stored like so:
enum GamerProfileDataType
{
TYPE_INVALID = 0x0,
TYPE_BYTE = 0x1,
TYPE_BOOL = 0x2,
TYPE_SHORT = 0x3,
TYPE_INT = 0x4,
TYPE_FLOAT = 0x5,
TYPE_STRING = 0x6,
#if defined(IW5) || defined(IW6) || defined(S1) // If it is Modern Warfare 3, Ghosts, or Advanced Warfare...
TYPE_BITFIELD = 0x7,
#endif
};
union GamerProfileDataUnion
{
char byteVal;
bool boolVal;
__int16 shortVal;
int intVal;
float floatVal;
const char *stringVal;
};
struct GamerProfileData
{
GamerProfileDataType type;
GamerProfileDataUnion u;
};The id's are listed below.
Ghosts
Common
enum GamerProfileCommonSettings
{
invertPitch = 0x0,
autoAim = 0x1,
viewSensitivity = 0x2,
safeAreaHorz = 0x3,
safeAreaVert = 0x4,
blacklevel = 0x5,
volume = 0x6,
safeareaHorizontal = 0x7,
safeareaVertical = 0x8,
timeplayedsp = 0x9,
timeplayedmp = 0xA,
timeplayedso = 0xB,
percentcompletesp = 0xC,
percentcompletemp = 0xD,
percentcompleteso = 0xE,
hasEverPlayed_MainMenu = 0xF,
hasEverPlayed_SP = 0x10,
hasEverPlayed_SO = 0x11,
hasEverPlayed_MP = 0x12,
canSkipOffensiveMissions = 0x13,
rumble = 0x14,
// unused
gpadButtonsConfig = 0x16,
gpadSticksConfig = 0x17,
viewedPatchNotesVersion = 0x18,
viewedGameInfosVersion = 0x19,
cardIcon = 0x1A,
cardTitle = 0x1B,
experience_MP = 0x1C,
experience_Aliens = 0x1D,
prestige_MP = 0x1E,
prestige_Aliens = 0x1F,
iconUnlocked = 0x20,
titleUnlocked = 0x21,
iconNew = 0x22,
titleNew = 0x23,
unlock = 0x24,
unlockNew = 0x25,
clanPrefix = 0x26,
leanEnabled = 0x27,
useEliteClanTag = 0x28,
eliteClanTagText = 0x29,
eliteClanLevel = 0x2A,
initialGameMode = 0x2B,
// unknown
facebook = 0x2D,
unlockedAliens = 0x2E,
renderColorBlind = 0x2F,
// unused
// unused
firstTimePlayedSPTime = 0x32,
knowsAboutAliens = 0x33,
speechReduced = 0x34,
COMMON_SETTINGS_TOTAL_COUNT = 0x35,
};Multiplayer
enum GamerProfileExeSettings // MP
{
playlist = 0x0,
voiceSpeakerGain = 0x1,
spareBool0 = 0x2,
spareBool1 = 0x3,
spareBool2 = 0x4,
spareBool3 = 0x5,
spareBool4 = 0x6,
spareBool5 = 0x7,
spareBool6 = 0x8,
spareBool7 = 0x9,
spareBool8 = 0xA,
spareBool9 = 0xB,
spareBool10 = 0xC,
spareBool11 = 0xD,
spareBool12 = 0xE,
spareBool13 = 0xF,
spareBool14 = 0x10,
spareBool15 = 0x11,
motd = 0x12,
EXE_SETTINGS_TOTAL_COUNT = 0x13,
};Singleplayer
enum GamerProfileExeSettings // SP
{
difficulty = 0x0,
takeCoverWarnings = 0x1,
cheat_points = 0x2,
intelp1 = 0x3,
intelp2 = 0x4,
cg_subtitles = 0x5,
highestMission = 0x6,
missionspecops = 0x7,
// 0x20 array of unknown (unused?) ints
motd = 0x28,
missionhighestdifficulty = 0x29,
missionsohighestdifficulty = 0x2A,
sv_lastSaveGame = 0x2B,
EXE_SETTINGS_TOTAL_COUNT = 0x2C,
};FILE.SVG
Call of Duty: Classic
struct qtime_s
{
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday;
int tm_isdst;
};
struct SaveHeader
{
int saveVersion;
char mapNameLen;
char mapName[mapNameLen];
char buildNumberLen;
char buildNumber[buildNumberLen];
char unknown1[20];
char campaignLen;
char campaign[campaignLen];
char screenShotNameLen;
char screenShotName[screenShotNameLen];
int unknown2;
char descriptionLen;
char description[descriptionLen];
qtime_s time;
int bodySize;
};SAVEGAME.SVG
World at War
struct qtime_s
{
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday;
int tm_isdst;
};
struct SaveHeader
{
int saveVersion;
int gameCheckSum;
int saveCheckSum;
int saveId;
bool isUsingScriptChecksum;
int scrCheckSum[3];
char mapName[256];
char buildNumber[128];
char campaign[256];
char screenShotName[64];
char description[256];
char filename[64];
int health;
int skill;
bool internalSave;
qtime_s time;
int server_bodySize;
int client_bodySize;
};Black Ops & Black Ops II
enum SaveType
{
SAVE_TYPE_INTERNAL = 0x0,
SAVE_TYPE_AUTOSAVE = 0x1,
SAVE_TYPE_CONSOLE = 0x2,
};
struct qtime_s
{
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday;
int tm_isdst;
};
struct SaveHeader
{
int saveVersion;
int gameCheckSum;
int saveCheckSum;
int saveId;
bool demoPlayback;
bool splitscreen;
int scrCheckSum[3];
char mapName[256];
char buildNumber[128];
char gametype[256];
char buildVersionSuffix[16];
unsigned int networkProtocol;
char screenShotName[64];
char description[256];
char filename[64];
SaveType saveType;
qtime_s time;
int bodySize;
unsigned int pad[8];
};Ghosts
enum SaveType
{
SAVE_TYPE_INTERNAL = 0x0,
SAVE_TYPE_AUTOSAVE = 0x1,
SAVE_TYPE_CONSOLE = 0x2,
SAVE_TYPESCOUNT = 0x3,
};
struct qtime_s
{
int tm_sec;
int tm_min;
int tm_hour;
int tm_mday;
int tm_mon;
int tm_year;
int tm_wday;
int tm_yday;
int tm_isdst;
};
struct SaveHeader
{
int saveVersion;
int gameCheckSum;
int saveCheckSum;
int saveId;
bool demoPlayback;
bool splitscreen;
int scrCheckSum[3];
char mapName[256];
char buildNumber[128];
unsigned int omnvarPerGameCount;
unsigned int omnvarPerClientCount;
char gametype[128];
char buildVersionSuffix[16];
unsigned int networkProtocol;
char screenShotName[64];
char description[256];
char filename[64];
SaveType saveType;
qtime_s time;
int bodySize;
unsigned int pad[6];
};This category currently contains no pages or media.