Metal Gear Solid V Text Encode PC and PS3

Programming related discussions related to game research
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Metal Gear Solid V Text Encode PC and PS3

Post by shadow_lonely »

Hi! I compared PC and PS3 version, they diffirent:

PS3:

Code: Select all

010F00000114000001210000012D0000013E000001440000015C000001650000017D0000017F000001910000019B000001A6000001B0000001BC000001C8000001E1000001E00000020A0000020C0000021F000002380000023200000264000002420000029000000262000002BC00000272000002E80000028400000314000002A600000340000002B80000036C000002D100000398000002EA000003C400000300000003F0000003150000041C0000032A000004480000033D0000047400000350000004A000000372000004CC0000038D000004F8000003A300000524000003BB00000550000003D90000057C000003F1000005A800000409000005D40000041B000006000000042C0000062C000004410000065800000454000006840000046A000006B00000047E000006DC00000496000006F2000004AC0000070C000004C90000071C000004E500000736000004F40000075000000512000007670000052C0000077F0000054A0000079600000569000007AD00000582000007C100000596000007DC000005B4000007F4000005CD0000080D000005E400000823000006000000084100000623000008550000063A0000086D0000065B0000088900000677000008A300000695000008BC000006B5000008D8000006D4000008F6000006F5000009120000070A000009280000071B0000093E0000072E0000095400000745000009800000075B000009AC0000076B000009D80000077600000A04000007BF00000A30000007CE00000A5C000007DE00000A880000080E00000AB40000082700000AE00000086C00000B0C0000088D00000B380000089400000B640000089D00000B90000008DA00000BBC0000092300000BE80000093000000C140000093800000C400000094300000C6C0000097C00000C98000009BB00000CC400000A0400000CF000000A4100000D1C00000A4A00000D4800000A5500000D7400000A9700000DA000000AC300000DCC00000ACF00000DF800000AFC00000E2400000B3100000E5000000B6200000E7C00000B7000000EA800000B8E00000ED400000BB700000F0000000BDD00000F2C00000C0200000F4300000C1A00000F5A00000C3100000F8600000C4A00000FB200000C5C00000FC700000C7400000FDF00000C9800000FF900000CBB0000101300000CDA0000102B00000CFE0000103E00000D1C0000105000000D390000107000000D5D0000108B00000D7B


PC:

Code: Select all

000F01000014010000210100002D0100003E010000440100005C010000650100007D0100007F010000910100009B010000A6010000B0010000BC010000C8010000E1010000E00100000A0200000C0200001F020000380200003202000064020000420200009002000062020000BC02000072020000E80200008402000014030000A602000040030000B80200006C030000D102000098030000EA020000C403000000030000F0030000150300001C0400002A030000480400003D0300007404000050030000A004000072030000CC0400008D030000F8040000A303000024050000BB03000050050000D90300007C050000F1030000A805000009040000D40500001B040000000600002C0400002C060000410400005806000054040000840600006A040000B00600007E040000DC06000096040000F2060000AC0400000C070000C90400001C070000E504000036070000F40400005007000012050000670700002C0500007F0700004A0500009607000069050000AD07000082050000C107000096050000DC070000B4050000F4070000CD0500000D080000E405000023080000000600004108000023060000550800003A0600006D0800005B0600008908000077060000A308000095060000BC080000B5060000D8080000D4060000F6080000F5060000120900000A070000280900001B0700003E0900002E0700005409000045070000800900005B070000AC0900006B070000D809000076070000040A0000BF070000300A0000CE0700005C0A0000DE070000880A00000E080000B40A000027080000E00A00006C0800000C0B00008D080000380B000094080000640B00009D080000900B0000DA080000BC0B000023090000E80B000030090000140C000038090000400C0000430900006C0C00007C090000980C0000BB090000C40C0000040A0000F00C0000410A00001C0D00004A0A0000480D0000550A0000740D0000970A0000A00D0000C30A0000CC0D0000CF0A0000F80D0000FC0A0000240E0000310B0000500E0000620B00007C0E0000700B0000A80E00008E0B0000D40E0000B70B0000000F0000DD0B00002C0F0000020C0000430F00001A0C00005A0F0000310C0000860F00004A0C0000B20F00005C0C0000C70F0000740C0000DF0F0000980C0000F90F0000BB0C000013100000DA0C00002B100000FE0C00003E1000001C0D000050100000390D0000701000005D0D00008B1000007B


Other file:

PS3:

010F00000114000001210000012D0000013E000001440000015C000001650000017D0000017F000001910000019B000001A6000001B0000001BC000001C8000001E1000001E00000020A0000020C0000021F000002380000023200000264000002420000029000000262000002BC00000272000002E80000028400000314000002A600000340000002B80000036C000002D100000398000002EA000003C400000300000003F0000003150000041C0000032A000004480000033D0000047400000350000004A000000372000004CC0000038D000004F8000003A300000524000003BB00000550000003D90000057C000003F1000005A800000409000005D40000041B000006000000042C0000062C000004410000065800000454000006840000046A000006B00000047E000006DC00000496000006F2000004AC0000070C000004C90000071C000004E500000736000004F40000075000000512000007670000052C0000077F0000054A0000079600000569000007AD00000582000007C100000596000007DC000005B4000007F4000005CD0000080D000005E400000823000006000000084100000623000008550000063A0000086D0000065B0000088900000677000008A300000695000008BC000006B5000008D8000006D4000008F6000006F5000009120000070A000009280000071B0000093E0000072E0000095400000745000009800000075B000009AC0000076B000009D80000077600000A04000007BF00000A30000007CE00000A5C000007DE00000A880000080E00000AB40000082700000AE00000086C00000B0C0000088D00000B380000089400000B640000089D00000B90000008DA00000BBC0000092300000BE80000093000000C140000093800000C400000094300000C6C0000097C00000C98000009BB00000CC400000A0400000CF000000A4100000D1C00000A4A00000D4800000A5500000D7400000A9700000DA000000AC300000DCC00000ACF00000DF800000AFC00000E2400000B3100000E5000000B6200000E7C00000B7000000EA800000B8E00000ED400000BB700000F0000000BDD00000F2C00000C0200000F4300000C1A00000F5A00000C3100000F8600000C4A00000FB200000C5C00000FC700000C7400000FDF00000C9800000FF900000CBB0000101300000CDA0000102B00000CFE0000103E00000D1C0000105000000D390000107000000D5D0000108B00000D7B


PC:

Code: Select all

000F01000014010000210100002D0100003E010000440100005C010000650100007D0100007F010000910100009B010000A6010000B0010000BC010000C8010000E1010000E00100000A0200000C0200001F020000380200003202000064020000420200009002000062020000BC02000072020000E80200008402000014030000A602000040030000B80200006C030000D102000098030000EA020000C403000000030000F0030000150300001C0400002A030000480400003D0300007404000050030000A004000072030000CC0400008D030000F8040000A303000024050000BB03000050050000D90300007C050000F1030000A805000009040000D40500001B040000000600002C0400002C060000410400005806000054040000840600006A040000B00600007E040000DC06000096040000F2060000AC0400000C070000C90400001C070000E504000036070000F40400005007000012050000670700002C0500007F0700004A0500009607000069050000AD07000082050000C107000096050000DC070000B4050000F4070000CD0500000D080000E405000023080000000600004108000023060000550800003A0600006D0800005B0600008908000077060000A308000095060000BC080000B5060000D8080000D4060000F6080000F5060000120900000A070000280900001B0700003E0900002E0700005409000045070000800900005B070000AC0900006B070000D809000076070000040A0000BF070000300A0000CE0700005C0A0000DE070000880A00000E080000B40A000027080000E00A00006C0800000C0B00008D080000380B000094080000640B00009D080000900B0000DA080000BC0B000023090000E80B000030090000140C000038090000400C0000430900006C0C00007C090000980C0000BB090000C40C0000040A0000F00C0000410A00001C0D00004A0A0000480D0000550A0000740D0000970A0000A00D0000C30A0000CC0D0000CF0A0000F80D0000FC0A0000240E0000310B0000500E0000620B00007C0E0000700B0000A80E00008E0B0000D40E0000B70B0000000F0000DD0B00002C0F0000020C0000430F00001A0C00005A0F0000310C0000860F00004A0C0000B20F00005C0C0000C70F0000740C0000DF0F0000980C0000F90F0000BB0C000013100000DA0C00002B100000FE0C00003E1000001C0D000050100000390D0000701000005D0D00008B1000007B0D0000


Please help me convent HEX value form PC to PS3. Many thanks!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Metal Gear Solid V Text Encode PC and PS3

Post by aluigi »

Do you mean reading those fields with something like this?

Code: Select all

comtype hex
get SIZE asize
clog MEMORY_FILE 0 SIZE SIZE

get TEST threebyte MEMORY_FILE
if TEST < 0x10000
    endian big
endif
goto 0 MEMORY_FILE
get CHARS asize MEMORY_FILE
math CHARS / 4
for i = 0 < CHARS
    get CHAR threebyte MEMORY_FILE
    get ZERO byte MEMORY_FILE
    print "%CHAR|X%"
next i
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: Metal Gear Solid V Text Encode PC and PS3

Post by shadow_lonely »

aluigi wrote:Do you mean reading those fields with something like this?

Code: Select all

comtype hex
get SIZE asize
clog MEMORY_FILE 0 SIZE SIZE

get TEST threebyte MEMORY_FILE
if TEST < 0x10000
    endian big
endif
goto 0 MEMORY_FILE
get CHARS asize MEMORY_FILE
math CHARS / 4
for i = 0 < CHARS
    get CHAR threebyte MEMORY_FILE
    get ZERO byte MEMORY_FILE
    print "%CHAR|X%"
next i


Yeah!

A:

Code: Select all

000F01 00 001401 00 002101 00 002D01 00 003E01 00 004401

B:

Code: Select all

010F00 00 011400 00 012100 00 012D00 00 013E00 00 014400


I need A (first) be converted to B (final) with a file which I can start and end the file by replace address, because, I need edit more files like that.
Like my example file: i need from 0000007B -> 000003F8
Example file:
Convert.rar


Thanks!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Metal Gear Solid V Text Encode PC and PS3

Post by aluigi »

Code: Select all

idstring "LANG"
get VER long
endian guess VER
getdstring ENDIANESS 4
get STRINGS long
get ENTRIES_OFF long
get STRINGS_OFF long

encryption reverselong ""
log MEMORY_FILE 0 STRINGS_OFF
encryption "" ""
get SIZE asize
math SIZE - STRINGS_OFF
append
log MEMORY_FILE STRINGS_OFF SIZE
append

get NAME basename
get EXT extension

endian little
putvarchr MEMORY_FILE 0 0x474e414c long # "LANG"
if ENDIANESS == "LE"
    string NAME + "_BE."
    putvarchr MEMORY_FILE 8 0x00004542 long
else
    string NAME + "_LE."
    putvarchr MEMORY_FILE 8 0x0000454c long
endif
get SIZE asize MEMORY_FILE
string NAME + EXT
log NAME 0 SIZE MEMORY_FILE
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: Metal Gear Solid V Text Encode PC and PS3

Post by shadow_lonely »

aluigi wrote:

Code: Select all

idstring "LANG"
get VER long
endian guess VER
getdstring ENDIANESS 4
get STRINGS long
get ENTRIES_OFF long
get STRINGS_OFF long

encryption reverselong ""
log MEMORY_FILE 0 STRINGS_OFF
encryption "" ""
get SIZE asize
math SIZE - STRINGS_OFF
append
log MEMORY_FILE STRINGS_OFF SIZE
append

get NAME basename
get EXT extension

endian little
putvarchr MEMORY_FILE 0 0x474e414c long # "LANG"
if ENDIANESS == "LE"
    string NAME + "_BE."
    putvarchr MEMORY_FILE 8 0x00004542 long
else
    string NAME + "_LE."
    putvarchr MEMORY_FILE 8 0x0000454c long
endif
get SIZE asize MEMORY_FILE
string NAME + EXT
log NAME 0 SIZE MEMORY_FILE


Nice! Thanks! But how to use, please!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Metal Gear Solid V Text Encode PC and PS3

Post by aluigi »

Use it on "first" or "final", they will be converted in the other format.
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: Metal Gear Solid V Text Encode PC and PS3

Post by shadow_lonely »

aluigi wrote:Use it on "first" or "final", they will be converted in the other format.


First I open quickbms.exe and select convertpctops3.bms script.
I open first file
I choose folder to save. And cmd show me below error! Thanks

QuickBMS generic files extractor and reimporter 0.6.1d
by Luigi Auriemma
e-mail: aluigi@autistici.org
web: aluigi.org
(Dec 28 2014 - 21:19:39)

http://quickbms.aluigi.org
http://twitter.com/luigi_auriemma
http://zenhax.com

- GUI mode activated, remember that the tool works also from command-line
where are available various options like folder scanning, filters and so on

- select the BMS script or plugin to use
- select the input archives/files to extract, type * or "" for whole folder and
subfolders
- select the output folder where extracting the files
- open input file C:\Users\BanhDuaMienTay\Desktop\Metal Gear Solid V GZ Research
\Convert\first
- open script C:\Users\BanhDuaMienTay\Desktop\Metal Gear Solid V GZ Research\Con
vert\convertpctops3.bms
- set output folder C:\Users\BanhDuaMienTay\Desktop\Metal Gear Solid V GZ Resear
ch\Convert

offset filesize filename
--------------------------------------

Error: unsupported encryption/hashing type (reverselong)

Last script line before the error or that produced the error:
9 encryption reverselong ""

Press RETURN to quit
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Metal Gear Solid V Text Encode PC and PS3

Post by aluigi »

Maybe you should not use a version of quickbms released in December 2014 :)
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: Metal Gear Solid V Text Encode PC and PS3

Post by shadow_lonely »

aluigi wrote:Maybe you should not use a version of quickbms released in December 2014 :)

Nice! It's working perfect! Thanks!
Could you help me with subp file? Similar above file but more inserted between the text area.

000142010200170017000D000400000082
00014C0102170017000D00000400008200


Image

Example file:
subp file.rar


Thanks!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Metal Gear Solid V Text Encode PC and PS3

Post by aluigi »

Eh no, sorry.
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: Metal Gear Solid V Text Encode PC and PS3

Post by shadow_lonely »

aluigi wrote:Eh no, sorry.

Thanks for your help! :)