{"action":"created","issue":{"url":"https://api.github.com/repos/xvortex/ps4-dumper-vtx/issues/11","repository_url":"https://api.github.com/repos/xvortex/ps4-dumper-vtx","labels_url":"https://api.github.com/repos/xvortex/ps4-dumper-vtx/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/xvortex/ps4-dumper-vtx/issues/11/comments","events_url":"https://api.github.com/repos/xvortex/ps4-dumper-vtx/issues/11/events","html_url":"https://github.com/xvortex/ps4-dumper-vtx/issues/11","id":326854223,"node_id":"MDU6SXNzdWUzMjY4NTQyMjM=","number":11,"title":"[Feature Request] Add DLC dumping support [now with complete steps to recreate in dumper]","user":{"login":"TheRadziu","id":7728545,"node_id":"MDQ6VXNlcjc3Mjg1NDU=","avatar_url":"https://avatars3.githubusercontent.com/u/7728545?v=4","gravatar_id":"","url":"https://api.github.com/users/TheRadziu","html_url":"https://github.com/TheRadziu","followers_url":"https://api.github.com/users/TheRadziu/followers","following_url":"https://api.github.com/users/TheRadziu/following{/other_user}","gists_url":"https://api.github.com/users/TheRadziu/gists{/gist_id}","starred_url":"https://api.github.com/users/TheRadziu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheRadziu/subscriptions","organizations_url":"https://api.github.com/users/TheRadziu/orgs","repos_url":"https://api.github.com/users/TheRadziu/repos","events_url":"https://api.github.com/users/TheRadziu/events{/privacy}","received_events_url":"https://api.github.com/users/TheRadziu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-27T21:51:30Z","updated_at":"2018-06-22T05:32:01Z","closed_at":null,"author_association":"NONE","body":"After game is run, decrypted DLC files are stored in `/mnt/sandbox/pfsmnt/CUSAXXXXX_00-DLCID-ac/` directories. If user uses any theme there will be additional -ac directory that DOES NOT MATCH CUSAXXXXX directory of a game user run.\r\nSince `*-ac/sce_sys/` directories is empty, you have to extract param from `/user/addcont/CUSAXXXXX/DLCID/ac.pkg` file. \r\nso in a nutshell step would be:\r\n1. Wait for user to run the game (dumper does it right now)\r\n2. Copy all detected directories [that have same CUSAXXXXX as game that is running] from `/mnt/sandbox/pfsmnt/CUSAXXXXX_00-DLCID-ac/` to `/mnt/usb0/CUSAXXXXX-ac/CUSAXXXXX_00-DLCID-ac/`\r\n3. Get proper param.sfo for those directories from matching `/user/addcont/CUSAXXXXX/DLCID/ac.pkg`\r\n\r\nThis part fully covers dumping DLCs WITH EXTRA DATA.\r\n\r\nNow for DLCs WITH NO EXTRA DATA: currently I have no clue where console stores their contentids and/or names. The closest thing I found is: `user/home/0000xx/license/regioncode+somenumber_CUDAXXXXX_00.rif` (example: EP0002-CUSA07399_00.rif``) you can get all installed contentids from this file and:\r\n-skip first contentid in this file since its basegame contentid\r\n-skip any contentids that have their -ac directories in `/mnt/sandbox/pfsmnt/` \r\nand for the ones that do not have their directories:\r\n-create new `/mnt/usb0/CUSAXXXXX-ac/CUSAXXXXX_00-DLCID-ac/` create subdir sce_sys in it + generate param.sfo file (from hardcoded template) with proper CONTENTID. Title does not matter (it cant be displayed under options -> information -> installed dlcs anyway) so you can name them DLC 1 (and increase this number for every next detected unlock dlc)\r\nThere is one downside by using this workaround for unlock dlcs - if user had other/any dlcs installed previously it will create DLCs with no extra data despite dlc probably being dlc with extra data since ps4 does store licenses for uninstalled games and dlcs. \r\n\r\nI successfully dumped 2 DLCs with additional data and about 10 DLCs without additional data(unlock dlcs) and installed them - they are working just fine. \r\n\r\nedit: gengp4 does not support any kind of DLC, so its needs to be updated as well. In the meantime, user can manually create fpkg.\r\n![image](https://user-images.githubusercontent.com/7728545/40593290-e4a5557a-6227-11e8-83de-f154999a75e6.png)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/xvortex/ps4-dumper-vtx/issues/comments/399325334","html_url":"https://github.com/xvortex/ps4-dumper-vtx/issues/11#issuecomment-399325334","issue_url":"https://api.github.com/repos/xvortex/ps4-dumper-vtx/issues/11","id":399325334,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTMyNTMzNA==","user":{"login":"xvortex","id":445263,"node_id":"MDQ6VXNlcjQ0NTI2Mw==","avatar_url":"https://avatars1.githubusercontent.com/u/445263?v=4","gravatar_id":"","url":"https://api.github.com/users/xvortex","html_url":"https://github.com/xvortex","followers_url":"https://api.github.com/users/xvortex/followers","following_url":"https://api.github.com/users/xvortex/following{/other_user}","gists_url":"https://api.github.com/users/xvortex/gists{/gist_id}","starred_url":"https://api.github.com/users/xvortex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xvortex/subscriptions","organizations_url":"https://api.github.com/users/xvortex/orgs","repos_url":"https://api.github.com/users/xvortex/repos","events_url":"https://api.github.com/users/xvortex/events{/privacy}","received_events_url":"https://api.github.com/users/xvortex/received_events","type":"User","site_admin":false},"created_at":"2018-06-22T05:32:01Z","updated_at":"2018-06-22T05:32:01Z","author_association":"OWNER","body":"Anyone please provide example content for CUSAXXXXX_00-DLCID-ac folder.\r\nI'll include the support into upcoming gengp4"}}
{"actor":{"display_login":"xvortex"}}