THREAD: How to Mod TROPTRNS.DAT - Modding Trophy Files
  1. 01-13-2013, 07:44 PM
    Sonoro's Avatar
    Sonoro
    I like anteaters
    Sonoro's Avatar
    Sonoro
    I like anteaters
    1,149
    Posts
    27,463
    Reputation
    Mar 2012
    NextGenUpdate
    CFW ONLY


    Note: consoleid in global.conf can be all "00" , so enter the "00" byte 16 times for it to work (32 0 total)


    You must login or register to view this content.What is this?You must login or register to view this content.


    This is basically the method to hack every trophy on Playstation 3, from editing the TROPTRNS.DAT, the file that is installed, everytime you run a game, and it's basically the files that actually stores the trophy status and unlock date.



    Difference between TROPTRNS.DAT and TROPUSR.DAT


    The difference between the two files is:

    TROPTRNS.DAT: Actually stores trophy unlocks and status
    TROPUSR.DAT: Stores trophy timestamps and displays them in the trophy collection (XMB)


    Occurrent:


    • Trophy Modding Toolkit:
    You must login or register to view this content.


    • HxD
    You must login or register to view this content.


    • Ps3 Timestamp Generator
    You must login or register to view this content.




    Steps:


    • Step 1: Download the folder and modify the global.conf as stated. (New update includes already made global.conf)


    • Step 2: Take your NPWR0XXXX_00 from your Ps3 (dev_hdd0/home/000000XX/trophy/)


    • Step 3: Put your NPWR Folder in (C:\) in your Computer.

    You must login or register to view this content.




    • Step 4: Open TRNS Tool.exe , and input "d" to decrypt, then you will be asked to insert you NPWR folder name, stored in C:\.

    You must login or register to view this content.




    • Step 5: Now your TROPTRNS.DAT will be decrypted. Open it in HxD and look for Offset 0x2C0, this is the trophy installation date , you will se two timestamps, first timestamps is Block 2C1-2C7, second is block 2C9-2CF , as you can see each timestamps is composed by 7 bytes. You do not need to modify these timestamps.

    You must login or register to view this content.




    • Step 6: First trophy is block 340-3EF , to unlock it you are going to change these bytes:

    Offset: 357 is the status, for each trophy block , the status is located at second line, seventh coloumn. To unlock the trophy, change it to "02" , it means the trophy is unlocked

    Offset: 373 is the trophy id, you can see id's in the TROPCONF.SFM file, stored in the NPWR folder, the first trophy in the Hex (first block) is going to be the 2nd trophy cause the Platinum is going to be the last one with id "00" , to set the id at Offset 373, just copy the byte that is over this one example:

    You must login or register to view this content.


    Block: 377-37A is the trophy type, its gonna be:

    Bronze: 04 00 00 10
    Silver: 03 00 00 10
    Gold: 02 00 00 10
    Platinum: 01 00 00 10



    Now you will have to look at TROPCONF.SFM and see which trophy has the ID you set and print the bytes for the trophy type. You can do the same thing since copying the byte that is over.


    You must login or register to view this content.


    Offset: 380 Here you will have to print your 2 timestamps. In a legit earned TROPTRNS.DAT the 2 timestamps are different (milliseconds difference) , but now you can put the same for both entries, so generate it with Ps3 timestamp generator and paste it. See Step 5 for positions and blocks.


    You must login or register to view this content.


    Each Trophy Block starts with:

    00 00 00 04 00 00 00 A0 00 00 00 ID 00 00 00 00


    and ends with:


    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00



    • Step 7: First trophy is unlocked. Now repeat this action for all trophies. Then look for these positions:

    Offset: 110 Here is stored your Sen ID , if you're using a TROPTRNS.DAT from a user where you already did access Sen, there will be bytes with your sen ID, otherwise they will be nulled.

    Offset: 167 Here is stored the number of total entries, to determinate this, you will have to insert the number of trophies you unlocked , +1 , for example: You unlocked 51 trophies. In Hex: 51 = 33. So you will put 34.


    • Step 8: To unlock the platinum trophy or the one with ID 00 (Games without plat) , you will have to insert it at the end, as last trophy.

    • Step 9: When you're done editing your TROPTRNS.DAT, save it and open TROPTRNS Tool.exe again, input "e" and your NPWR Folder. Upload it to your Ps3 , log in your SEN account and Sync the trophies.


    FAQ:

    Q: Your tool is not working for me, how can i fix it?
    A: If my tool is not working for you just use these commands on pfdtool to decrypt:
    Encryption: -g NPWR*****_00 -e (your Path) TROPTRNS.DAT

    Decryption: -g NPWR*****_00 -d (your Path) TROPTRNS.DAT


    Q: Timestamp generator wont generate my hex value, what can i do?
    A: Make sure you did add all values in textboxes.


    Credits:


    • BuC-ShoTz: Helping me with structure
    • DEREKTROTTER: Trophy type and other useful help
    • flatz: Pfdtool developer
    Last edited by Sonoro ; 01-25-2013 at 04:28 PM. Reason: Edit

  2. The Following 153 Users Say Thank You to Sonoro For This Useful Post:

    , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , See more...

  3. The Following 12 Users Groaned At Sonoro For This Awful Post:

    , , , , , , , , , , ,

  4. 05-05-2015, 04:10 PM
    Bersekz's Avatar
    Bersekz
    Keeper
    Bersekz's Avatar
    Bersekz
    Keeper
    10
    Posts
    10
    Reputation
    May 2015
    NextGenUpdate
    Originally Posted by ryu2050 View Post
    1.multiman

    2.its optional

    I changed user and console ID (got from a SFO file of a save) in global.conf and still the same problem. When I start the game "checking trophy data" dies at 10%. Also, no trophy can be unlocked during the gameplay since it seems not to recognize them as legitimate.
    Last edited by Bersekz ; 05-05-2015 at 05:30 PM.

  5. 05-05-2015, 08:30 PM
    ryu2050's Avatar
    ryu2050
    Treasure hunter
    ryu2050's Avatar
    ryu2050
    Treasure hunter
    819
    Posts
    6,895
    Reputation
    Jun 2012
    NextGenUpdate
    Originally Posted by Bersekz View Post
    I changed user and console ID (got from a SFO file of a save) in global.conf and still the same problem. When I start the game "checking trophy data" dies at 10%. Also, no trophy can be unlocked during the gameplay since it seems not to recognize them as legitimate.


    which game??
  6. 05-06-2015, 05:53 AM
    Bersekz's Avatar
    Bersekz
    Keeper
    Bersekz's Avatar
    Bersekz
    Keeper
    10
    Posts
    10
    Reputation
    May 2015
    NextGenUpdate
    Originally Posted by ryu2050 View Post
    which game??

    Onechanbara Z Kagura With NoNoNo!
  7. 05-07-2015, 07:08 PM
    ryu2050's Avatar
    ryu2050
    Treasure hunter
    ryu2050's Avatar
    ryu2050
    Treasure hunter
    819
    Posts
    6,895
    Reputation
    Jun 2012
    NextGenUpdate
    Originally Posted by Bersekz View Post
    Onechanbara Z Kagura With NoNoNo!


    is the secure file id of the game present in games.conf ??
  8. 05-08-2015, 01:22 PM
    Bersekz's Avatar
    Bersekz
    Keeper
    Bersekz's Avatar
    Bersekz
    Keeper
    10
    Posts
    10
    Reputation
    May 2015
    NextGenUpdate
    Originally Posted by ryu2050 View Post
    is the secure file id of the game present in games.conf ??

    Yes, as you can see: You must login or register to view this content.

    The fact is that I can see the trophies unlocked by PTIG but, since it isn't able to validate the trophy data, if I complete some missions, it doesn't unlock anything since my trophy list is like "freezed".

    And a thing I noticed, as I said, is that the original .DAT file is always the same dimension, also when I unlock new trophies, it's always 25.7KB, while after using PTIG it's 28KB size.

    Could it be because the game has been patched for the English translation?
    Last edited by Bersekz ; 05-08-2015 at 01:30 PM.

  9. 05-08-2015, 02:22 PM
    ryu2050's Avatar
    ryu2050
    Treasure hunter
    ryu2050's Avatar
    ryu2050
    Treasure hunter
    819
    Posts
    6,895
    Reputation
    Jun 2012
    NextGenUpdate
    Originally Posted by Bersekz View Post
    Yes, as you can see: You must login or register to view this content.

    The fact is that I can see the trophies unlocked by PTIG but, since it isn't able to validate the trophy data, if I complete some missions, it doesn't unlock anything since my trophy list is like "freezed".

    And a thing I noticed, as I said, is that the original .DAT file is always the same dimension, also when I unlock new trophies, it's always 25.7KB, while after using PTIG it's 28KB size.

    Could it be because the game has been patched for the English translation?


    no idea bro

    btw .dat file after modding comes as 28.3 kb
    where as the original is 25.3
  10. 05-09-2015, 02:29 PM
    Bersekz's Avatar
    Bersekz
    Keeper
    Bersekz's Avatar
    Bersekz
    Keeper
    10
    Posts
    10
    Reputation
    May 2015
    NextGenUpdate
    Originally Posted by ryu2050 View Post
    no idea bro

    btw .dat file after modding comes as 28.3 kb
    where as the original is 25.3


    Have you tryed it also by yourself? So it's a problem of this specific game?
  11. 05-09-2015, 02:33 PM
    ryu2050's Avatar
    ryu2050
    Treasure hunter
    ryu2050's Avatar
    ryu2050
    Treasure hunter
    819
    Posts
    6,895
    Reputation
    Jun 2012
    NextGenUpdate
    Originally Posted by Bersekz View Post
    Have you tryed it also by yourself? So it's a problem of this specific game?


    nope it happens for all games you try to mod with PS3TIG
    Dont have your game bro
  12. 05-09-2015, 03:45 PM
    Bersekz's Avatar
    Bersekz
    Keeper
    Bersekz's Avatar
    Bersekz
    Keeper
    10
    Posts
    10
    Reputation
    May 2015
    NextGenUpdate
    Originally Posted by ryu2050 View Post
    nope it happens for all games you try to mod with PS3TIG
    Dont have your game bro


    So, what's the purpose of PTIG? Maybe, when you synchronize with PSN, if you redownload your trophy data, it generates it in the right way. I don't know anyway if rebuilding the database could do the same thing and fixes bad .DAT files of PTIG.