Post: Decoded GPAD0.PRF Files!
06-25-2014, 10:02 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hey NGU,

So I had some free time and I was also bored so I started looking at how the MW2 save was structured. With a bit of reversing and analyzing the save files I have decoded parts of the save. Keep in mind how back then on COD4 the .PRF files had .cfg in it.

Here's the original compiled code:
    
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00000000 53 45 4D 56 00 00 00 01 00 00 00 01 00 02 00 01 SEMV............
00000010 02 01 02 05 40 80 00 00 03 05 3F 80 00 00 04 05 ....@€....?€....
00000020 3F 80 00 00 05 05 BC 75 C2 8F 06 05 3F 4C CC CD ?€....¼uÂ...?LÌÍ
00000030 07 05 3F 73 85 1F 08 05 3F 72 8F 5C 09 04 00 00 ..?s…...?r.\....
00000040 02 D8 0A 04 00 00 33 8E 0B 04 00 00 03 AE 0C 04 .Ø....3Ž.....®..
00000050 00 00 00 00 0D 04 00 00 04 4C 0E 04 00 00 00 00 .........L......
00000060 0F 02 01 10 02 01 11 02 00 12 02 00 13 02 00 14 ................
00000070 02 01 16 06 00 00 00 20 62 75 74 74 6F 6E 73 5F ....... buttons_
00000080 64 65 66 61 75 6C 74 00 17 06 00 20 00 20 74 68 default.... . th
00000090 75 6D 62 73 74 69 63 6B 5F 64 65 66 61 75 6C 74 umbstick_default
000000A0 00 .


Like you can see from the spoiler the code is unreadable and don't know what dvar is which, now I'm about to show you the decompiled code which is .cfg:

This is the decoded code from GPAD0_CM.PRF
    [FONT=Courier New]
set input_invertPitch "0"
set input_autoAim "1"
set input_viewSensitivity "10"
set r_brightness "-0.115"
set snd_volume "0.8"
seta safeArea_horizontal "0.95875"
seta safeArea_vertical "0.94375"
set timePlayed "1548"
set percentCompleteSP "0"
set percentCompleteMP "1100"
set percentCompleteSO "2"
set gpad_rumble "1"
set gpad_buttonsConfig "buttons_default"
set gpad_sticksConfig "thumbstick_default"
[/FONT]

This also applies to the other CODs from Infinity Ward and maybe Sledgehammer Games. It's all the same structure and it's going to be a copy + paste from MW2 :P

There is a lot of unknown dvars, but it's at least readable. Maybe this could lead to something in the future, who knows. Smile

Picture:
You must login or register to view this content.
Last edited by Red-EyeX32 ; 06-17-2015 at 05:16 PM.

The following 17 users say thank you to Red-EyeX32 for this useful post:

HackersForHire, ImPiffHD, Kush Friendly, LittleEvo, Luxify, M0T1VAT10N, Mythusala, Notorious, QuantumDev, Rebuged, Script Kiddie, Taylor, Turk_Warrior, WeJailbreakYou
06-25-2014, 10:08 PM #2
Notorious
Caprisuns Is Back
Good job Alex!
06-25-2014, 10:29 PM #3
If I understand correctly, if we were able to recompile, we could load binds/mods on startup? (for non-JB)
If that's the case, I hope there's never going to be a de/recompiler released.
Imagine all those kids who don't need an infection.. It's going to be even more ruined. Sal

The following 5 users say thank you to Joren for this useful post:

Jiggy, $цpєямои, EncepT, G33B0X, CraZy KiD GaMeR
06-25-2014, 10:31 PM #4
Originally posted by xJoren View Post
If I understand correctly, if we were able to recompile, we could load binds/mods on startup? (for non-JB)
If that's the case, I hope there's never going to be a de/recompiler released.
Imagine all those kids who don't need an infection.. It's going to be even more ruined. Sal


Agreed! :p
06-25-2014, 10:31 PM #5
Citadel
Samurai Poster
Originally posted by EyeX32 View Post
Hey NGU,


I hope you never release a program that will decompile and compile this. This would only make mw2 even more unplayable than it is now Happy
06-25-2014, 10:33 PM #6
Originally posted by Citadel View Post
I hope you never release a program that will decompile and compile this. This would only make mw2 even more unplayable than it is now Happy


I already made it. xD
06-25-2014, 10:35 PM #7
Citadel
Samurai Poster
Originally posted by EyeX32 View Post
I already made it. xD


Lol NEVER release it then xD

The following 5 users say thank you to Citadel for this useful post:

Callumeleyy, iifire, John, Obris, TheSaltCracka
06-26-2014, 12:18 AM #8
seb5594
Proud Former Admin
Nice work alex. Glad to see some work done on old games :yes:
06-26-2014, 12:21 AM #9
Script Kiddie
At least I can fight
LOL shit well thats the end of mw2 Winky Winky i honestly still don't see why the servers for that game are still up everygame is modded to hell o:
06-26-2014, 12:45 AM #10
Kush Friendly
League Champion
Originally posted by EyeX32 View Post
Hey NGU,

So I had some free time and I was also bored so I started looking at how the MW2 save was structured. With a bit of reversing and analyzing the save files I have decoded parts of the save. Keep in mind how back then on COD4 the .PRF files had .cfg in it.

Here's the original compiled code:
    [FONT=Courier New]
Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00000000 53 45 4D 56 00 00 00 01 00 00 00 01 00 02 00 01 SEMV............
00000010 02 01 02 05 40 80 00 00 03 05 3F 80 00 00 04 05 ....@€....?€....
00000020 3F 80 00 00 05 05 BC 75 C2 8F 06 05 3F 4C CC CD ?€....¼uÂ...?LÌÍ
00000030 07 05 3F 73 85 1F 08 05 3F 72 8F 5C 09 04 00 00 ..?s…...?r.\....
00000040 02 D8 0A 04 00 00 33 8E 0B 04 00 00 03 AE 0C 04 .Ø....3Ž.....®..
00000050 00 00 00 00 0D 04 00 00 04 4C 0E 04 00 00 00 00 .........L......
00000060 0F 02 01 10 02 01 11 02 00 12 02 00 13 02 00 14 ................
00000070 02 01 16 06 00 00 00 20 62 75 74 74 6F 6E 73 5F ....... buttons_
00000080 64 65 66 61 75 6C 74 00 17 06 00 20 00 20 74 68 default.... . th
00000090 75 6D 62 73 74 69 63 6B 5F 64 65 66 61 75 6C 74 umbstick_default
000000A0 00 .
[/FONT]

Like you can see from the spoiler the code is unreadable and don't know what dvar is which, now I'm about to show you the decompiled code which is .cfg:

This is the decoded code from GPAD0_CM.PRF
    [FONT=Courier New]
set input_invertPitch "0"
set input_autoAim "1"
set input_viewSensitivity "10"
set r_brightness "-0.115"
set snd_volume "0.8"
seta safeArea_horizontal "0.95875"
seta safeArea_vertical "0.94375"
set timePlayed "1548"
set percentCompleteSP "0"
set percentCompleteMP "1100"
set percentCompleteSO "2"
set gpad_rumble "1"
set gpad_buttonsConfig "buttons_default"
set gpad_sticksConfig "thumbstick_default"
[/FONT]

This also applies to the other CODs from Infinity Ward and maybe Sledgehammer Games. It's all the same structure and it's going to be a copy + paste from MW2 :P

There is a lot of unknown dvars, but it's at least readable. Maybe this could lead to something in the future, who knows. Smile


I feel everyone should be able to mod if anyone is able to mod but it would kill off a dying great game.

The following user thanked Kush Friendly for this useful post:

Obris

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo