I will post a short tutorial. I will make a better one latter. I hope I will get some feedback with this one.
If the moderators wish to remove the links or move the topic elsewhere feel free.
The Android version of DotP2014 seems very similar to the PC. The big difference seems to be the .TDX card images. They are smaller and their header is also different. I have not been able to convert the PC ones to use in Android. I will need help with this. Seems to be difficult.
The Community WAD with the art images goes close to 2gb in size. The Android DotP 2014 has an apk around 10mb and an .obb that is around 1.5gb. The problem is that the obb maximum size is 2gb. There is a way to add a second obb, called patch obb but it is difficult for me to do it as my programming skills are short. I know how to get the .java classes out of the apk. But it would be necessary to change the code, a lot of work. So until this happen, the maximum size of WADs we can use is around 500mb.
I have managed to understand enough to package a WAD inside the obb. I have tried some and they work with little changes. One that I have tried is sumomole' DotP2014 DLC v9.5. It is a large WAD, more than 80 decks. And apart for the card images it works well. Very cool!
There are some links at the end. But read it first very carefully to understand the process. And I am not responsable if you get banned, brake you android, etc.
Also It is only a taste as it need to be improved. The card images will not appear. Multiplayer will not work with this decks.
The obb file that DotP2014 uses is different from most of Android's, that are only zip files. Using a hex editor you will see it has a header that contains the list of all the files and after this the files themselves concatenated. One problem is that each file has its start location and size in the header. So if you change one file you also have to change in the header all files that goes after that. Even if you change the size of the header itself you have to to that. And there are many considering the audio and video files.
One thing I found out is that the game don't crash if the video subtitles (which are disabled by default) are removed. This make space in the header to add more files at end of the obb. More exactly it leaves space that can be used to point to custom made wads at the end. The apk seems to check only the name of the wad, at least in the first version. And in the first version there are two wads (DATA_CORE.WAD and DATA_DECKS_D14.WAD) and the expansion has more two (DATA_DECKS_E14.WAD and DATA_DLC_0001.WAD. So I used only the name of this two expansion ones to make custom wads. Basically you have to extract the wads with Gibbed.Duels.Unpack.exe then remove DATA_ALL_PLATFORMS from them, put yours and pack them back compressed. Also need to change to content_pack="0" where it can be found. Take care with the case sensitive is also good.
To make a new .obb simply do this (in windows) : copy /b main.1.com.stainlessgames.D14.obb + DATA_DECKS_E14.WAD new.main.1.com.stainlessgames.D14.obb
Of course after this move the original one somewhere eles and remove the “new.”
Have to change the header now. Open the main.1.com.stainlessgames.D14.obb with an hex editor. I use hxd.
Search for the first FF FF FF FF . This FFs separates the header from the contents. You see in the example file (link at the end) I use more FFs than the original 4 just to complete the space because what comes after the FFs must start at the same place. Remember that I deleted some subtitles to make space. See in the example header, at the end of the file. And leave a comment if you have any doubts.
This mod need the DotP2014 apk version 1. Magic 2014 is no more on google play. So I put some links to download. Two files. One apk and one obb. They seem to be the original version and you still have to purchase to unlock some features. The Amazon version is still avaiable for download. It is different. But I can try to use it as well, in the future.
So the links are here:
Apk:
http://lo3.get4mobile.net/android/Ye80F ... c_2014.apkOBB:
http://lo1.get4mobile.net/android/h-yvv ... c_2014.zipAlso try my example header:
https://drive.google.com/file/d/0B8BBPs ... sp=sharingAnd a already packaged wad for that header:
https://drive.google.com/file/d/0B8BBPs ... sp=sharingThis WAD above is from sumomole, I just packaged it again from the link:
viewtopic.php?f=109&t=10914And a example DATA_DECKS_E14.WAD without contents, if you want to build yours. Remember. Unpack, then put your DATA_ALL_PLATFORMS inside it then pack compressed. Have to put ART_ASSETS, CARDS, DECKS etc all in the same wad.
https://drive.google.com/file/d/0B8BBPs ... sp=sharingSo to test Magic on you Android download the first 4 files. Do that copy command I mentioned earlier. Open the new obb in a hex editor. And also the header. And copy all the header and paste replacing. The obb you put inside /Android/obb/com.stainlessgames.D14/ folder in your Android tablet.
I will also make a header for apk version 1.5 soon.
I will try to answer the doubts, though I will not have much time in the new 2 days.
I almost forgot, this header can be used for every wad named DATA_DECKS_E14.WAD. Need to change just the size of the file. Near the end of the file there is this in hex: 06 D0 A4 08.
To get this number get the file size in bytes. In this case it is 145.018.886.
Remove the commas and use a Decimal to
Hex converter. It will be 8A4D006, put a 0 in the beginning if needed then separate, 08 A4 D0 06 then invert. It will become 06 D0 A4 08.
For now better only use 1 wad and change only the size. Can use another, maybe more, but it is more difficult.
This is my first tutorial here.
Sorry if I am not following some rules. And I would like to thank Eglin that made the first script to extract the obb. I will try to answer the questions and I hope I get help with the .TDX files.
Regards
Bamafula