It is currently 27 Apr 2024, 11:20
   
Text Size

Information pending...

Moderator: CCGHQ Admins

Re: Information pending...

Postby thefiremind » 23 Aug 2015, 12:45

Just throwing random thoughts here. I'm still thinking about the problem of finding the Duels ZED key, and I was wondering: isn't there a tool that allows to make a memory dump "over time"? In theory it doesn't seem out of this world: it should intercept all writes in memory and copy the written data into a file, so that if a program writes "Hello world" in memory, then substitutes "world" with "friend", in my dump file I'll have "Hello world" somewhere, and "friend" somewhere after that. Maybe this practice exists and has a name that I don't know so I can't search for it... or maybe nobody thought about that yet, but it would seem strange to me.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 721 times

Re: Information pending...

Postby regodian » 08 Sep 2015, 19:35

sorry if my post is irrelevant
i need your help in getting the videos from magic duels origins
since i've finished all 5 stories, i can see all the videos
but i need it as a file for our next expo in our town, so i can display it
i've tried to extract the ZED files (which is i think it's where the videos is) but i failed. i've tried the zedtozip (seriously, i totally can't use it, sorry, i'm a total dumb here) and failed.
so, i need your help to extract it. in a dumb ways
thanks
regodian
 
Posts: 17
Joined: 19 Mar 2015, 06:22
Has thanked: 0 time
Been thanked: 1 time

Re: Information pending...

Postby thefiremind » 08 Sep 2015, 20:27

You can't. ZedToZip works for DotP2015, but the decryption key for the ZED files in Magic Duels is different. That's exactly what we are missing here in order to make Magic Duels moddable.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 721 times

Re: Information pending...

Postby Xander9009 » 08 Sep 2015, 20:35

Speaking of which, is anyone still working on that? I know it's not an overnight thing, just knowing that someone's looking for it is enough for me. I'm still hopeful that the limit imposed in 2015 is absent, but we won't know until we can open it up.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Information pending...

Postby GrovyleXShinyCelebi » 09 Sep 2015, 00:56

Xander9009 wrote:Speaking of which, is anyone still working on that? I know it's not an overnight thing, just knowing that someone's looking for it is enough for me. I'm still hopeful that the limit imposed in 2015 is absent, but we won't know until we can open it up.
Spirolone said that he was working on it. He also said that he didn't know how to add ids greater than 999, so the profile might be built in a way to prevent more cards from being added...
User avatar
GrovyleXShinyCelebi
 
Posts: 294
Joined: 12 Jun 2013, 18:23
Has thanked: 14 times
Been thanked: 37 times

Re: Information pending...

Postby spirolone » 09 Sep 2015, 04:34

regodian wrote:sorry if my post is irrelevant
i need your help in getting the videos from magic duels origins
since i've finished all 5 stories, i can see all the videos
but i need it as a file for our next expo in our town, so i can display it
i've tried to extract the ZED files (which is i think it's where the videos is) but i failed. i've tried the zedtozip (seriously, i totally can't use it, sorry, i'm a total dumb here) and failed.
so, i need your help to extract it. in a dumb ways
thanks
Yes, we can! :mrgreen:
You need an hex editor (for example HxD or Xvi32); open MOVIES_000.ZED in hex editor and copy bytes of each video in a different new file; you can find beginning of a video searching for "42 49 4B 69" hex sequence (BIKi); after last video you'll find a subtitles file; rename any just created file adding ".bik" extension and use a Bik player to view it! If you need help, let me know!
spirolone
Programmer
 
Posts: 190
Joined: 31 Aug 2014, 23:14
Has thanked: 7 times
Been thanked: 107 times

Re: Information pending...

Postby spirolone » 09 Sep 2015, 04:47

GrovyleXShinyCelebi wrote:
Xander9009 wrote:Speaking of which, is anyone still working on that? I know it's not an overnight thing, just knowing that someone's looking for it is enough for me. I'm still hopeful that the limit imposed in 2015 is absent, but we won't know until we can open it up.
Spirolone said that he was working on it. He also said that he didn't know how to add ids greater than 999, so the profile might be built in a way to prevent more cards from being added...
In these days I didn't work on it, but I hope I'll can try something in future...
I experienced problems with ids over 1023 but they add more bits for any card in decks, then I think 1023 it's not the limit; but I don't know how to edit profiles to unlock cards with id over 1023 still... :?
spirolone
Programmer
 
Posts: 190
Joined: 31 Aug 2014, 23:14
Has thanked: 7 times
Been thanked: 107 times

Re: Information pending...

Postby Xander9009 » 09 Sep 2015, 05:02

spirolone wrote:
GrovyleXShinyCelebi wrote:
Xander9009 wrote:Speaking of which, is anyone still working on that? I know it's not an overnight thing, just knowing that someone's looking for it is enough for me. I'm still hopeful that the limit imposed in 2015 is absent, but we won't know until we can open it up.
Spirolone said that he was working on it. He also said that he didn't know how to add ids greater than 999, so the profile might be built in a way to prevent more cards from being added...
In these days I didn't work on it, but I hope I'll can try something in future...
I experienced problems with ids over 1023 but they add more bits for any card in decks, then I think 1023 it's not the limit; but I don't know how to edit profiles to unlock cards with id over 1023 still... :?
I wasn't aware any kind of modding for Origins had been managed. That's good news in itself. :)
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Information pending...

Postby regodian » 09 Sep 2015, 09:35

spirolone wrote:
regodian wrote:sorry if my post is irrelevant
i need your help in getting the videos from magic duels origins
since i've finished all 5 stories, i can see all the videos
but i need it as a file for our next expo in our town, so i can display it
i've tried to extract the ZED files (which is i think it's where the videos is) but i failed. i've tried the zedtozip (seriously, i totally can't use it, sorry, i'm a total dumb here) and failed.
so, i need your help to extract it. in a dumb ways
thanks
Yes, we can! :mrgreen:
You need an hex editor (for example HxD or Xvi32); open MOVIES_000.ZED in hex editor and copy bytes of each video in a different new file; you can find beginning of a video searching for "42 49 4B 69" hex sequence (BIKi); after last video you'll find a subtitles file; rename any just created file adding ".bik" extension and use a Bik player to view it! If you need help, let me know!
wow man, thanks for the help, i don't even need any bik players. i just open it with media player classic and it's work. big thanks
regodian
 
Posts: 17
Joined: 19 Mar 2015, 06:22
Has thanked: 0 time
Been thanked: 1 time

Re: Information pending...

Postby spirolone » 12 Sep 2015, 12:16

GREAT NEWS!!!!!
I received a private message with the key!!! It comes from a new account named "imfromthefuture" and I wish to thank him publicly: THANKS!!! =D>
Here is the message:
imfromthefuture wrote:
Code: Select all
30 82 01 20
   30 0D
      06 09
         2A 86 48 86 F7 0D 01 01 01
      05 00
   03 82 01 0D
      00
      30 82 01 08
         02 82 01 01
            00
            95 BC 0F DB B0 EE F3 70 AC E1 0B B8 24 1F B6 10
            2B B9 B6 7E A8 FE 65 23 77 85 C9 FC A4 53 D2 AC
            EB FF 89 29 C2 F5 F5 83 4B B2 14 1E DF CA 37 04
            03 83 13 24 87 2F 89 D0 8A 9B 89 3E 2C D5 EA 2B
            6F 86 2B E6 37 5B D1 95 5F 76 4E 07 7C 1E 19 13
            DF 22 6E 5B A7 FA 7D EB FD 70 3E 45 60 08 5D 4D
            46 12 A7 D6 EC 27 FB 6F 4A 4C E4 BB F0 79 DA 7E
            87 FD D2 FD 6E 80 AF EB 2F 19 77 D3 A3 C8 3C 8D
            9E 12 EB C6 34 46 C1 2E 37 BA 47 EC D9 59 11 45
            41 7B 37 54 C0 56 EB 7C 64 DA FE A0 A4 22 2F 24
            3A 55 6B 99 43 2F F2 67 B0 20 FA C8 FA 77 68 B9
            FA 72 1B CF 14 DC 42 2F 42 63 F9 DD 42 49 8C 35
            E1 D1 1E 8B 3A 15 24 9D EB 95 37 1A C1 E5 02 6E
            76 48 28 4C 36 F2 BB 70 63 88 DB AD 92 E8 3B ED
            21 58 1D 0D B5 53 56 3B C0 5C E2 12 A1 34 0D A7
            89 C2 51 70 97 11 90 78 9D 34 93 30 F1 1E 8E 75
         02 01
            11
github(dot)com(slash)atom0s(slash)Steamless

Have fun ;)
I already verified it works!
I attach updated ZedToZip, but I think I'll create a new thread in Utility section with encode/decode tools for Magic Duels... :mrgreen:
Attachments
ZedToZip.zip
(3.56 KiB) Downloaded 531 times
spirolone
Programmer
 
Posts: 190
Joined: 31 Aug 2014, 23:14
Has thanked: 7 times
Been thanked: 107 times

Re: Information pending...

Postby Xander9009 » 12 Sep 2015, 12:46

That's awesome! Thank you imfromthefuture! And of course thank you spirolone for the quickly updated tool. :)
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Information pending...

Postby petercal » 12 Sep 2015, 13:04

Thank you imfromthefuture & spirolone!

Does this mean this tool can be used to check the ZED files from the recently updated Duels to see if any of the BFZ cards have been already packed in (ready for activation)?
petercal
 
Posts: 13
Joined: 07 Sep 2012, 05:12
Has thanked: 12 times
Been thanked: 0 time

Re: Information pending...

Postby Xander9009 » 12 Sep 2015, 13:13

petercal wrote:Thank you imfromthefuture & spirolone!

Does this mean this tool can be used to check the ZED files from the recently updated Duels to see if any of the BFZ cards have been already packed in (ready for activation)?
I see 251 cards in the player's card pools which matches the original 251 cards available according to Reddit, so I don't think they're added. My game may not have updated, though.

EDIT:My wad was seemingly last modified August 18.

EDIT2: Unrelated - I'll definitely test sometime soon whether or not we can appear to add the entirety of the CW's bulk.
_______________________________
Community Wad - Community Wad Website - How to Help and Report Bugs
Discord: discord.gg/4AXvHzW
User avatar
Xander9009
Programmer
 
Posts: 2905
Joined: 29 Jun 2013, 07:44
Location: Indiana, United States
Has thanked: 121 times
Been thanked: 445 times

Re: Information pending...

Postby thefiremind » 12 Sep 2015, 14:36

Thanks a lot imfromthefuture, whoever you may be, and spirolone for the quick integration! =D> I'm going to open the ZED files as soon as possible. Can't wait to see how double-faced cards are implemented.

EDIT: I have changed my Duels library and my D15 Tool (maybe one day I'll make another tool specific for Magic Duels if it's worth it) so that they can use external keys for decrypting ZED files. DATA_000.ZED is very large this time and I get an OutOfMemoryException if I try to preview it while running the tool through Visual Studio, but it works if I run the tool by itself.
All that's left to do is make the tool able to create ZED files with the new Data.bin. It's larger than the old one, I guess it's because the file list for DATA_000 is so large... unfortunately, it seems it doesn't work with the old code that used the data from DATA_041: I generate a ZED file but it's unreadable.
So, here's a question for spirolone: would it be possible to make a single program that works for both DotP2015 and Magic Duels and can use Data.bin from ZED files of both generations? If not, I can accept to throw away the backwards compatibility and make a new tool that works only with the newest Data.bin, but I would still need the Java source of your MDO_CreateZed, could you please share it?
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 721 times

Re: Information pending...

Postby spirolone » 13 Sep 2015, 02:37

thefiremind wrote:... unfortunately, it seems it doesn't work with the old code that used the data from DATA_041: I generate a ZED file but it's unreadable.
So, here's a question for spirolone: would it be possible to make a single program that works for both DotP2015 and Magic Duels and can use Data.bin from ZED files of both generations? If not, I can accept to throw away the backwards compatibility and make a new tool that works only with the newest Data.bin, but I would still need the Java source of your MDO_CreateZed, could you please share it?
It didn't work cause this instruction:
Code: Select all
byte[] filesFromData = new byte[1746];
In my code it was at line 18. I changed it for new Data.bin cause length of that part is variable (it contains two files: Header.xml and FileData.xml) and I wrote 0x1F43F. Now I changed that instruction again, to gain backwards compatibility:
Code: Select all
byte[] filesFromData = new byte[(int)(data.length()-422)];
If you need whole code, let me know and I'll share it, but I think you will not need it.
:mrgreen:
spirolone
Programmer
 
Posts: 190
Joined: 31 Aug 2014, 23:14
Has thanked: 7 times
Been thanked: 107 times

PreviousNext

Return to 2015

Who is online

Users browsing this forum: No registered users and 2 guests


Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 2 guests

Login Form