It is currently 03 Aug 2025, 00:02
   
Text Size

Information pending...

Moderator: CCGHQ Admins

Re: Information pending...

Postby thefiremind » 07 Aug 2015, 14:54

spirolone wrote:But are you able to use breakpoints without crashes?? What do you use? Still OllyDbg v1 with HideOD plugin?
With OllyDbg 2 I still can't make ScyllaHide work. With OllyDbg 1, I can start the game, but the debugger catches an exception almost immediately, and from that I can trace for some time, after which it gets totally stuck (again I don't know why it worked for the first couple of times). With IDA 6.1 and the IDAStealth plugin I can run the game as long as I want, but if I put a breakpoint it's very likely to crash (if we knew the exact place to put it, it wouldn't be a problem), anyway I find that debugger very confusing so even if I ran into what we search for, I would probably not know where to look at.

EDIT: Just in case someone is interested, here's the ALI213 Steam emulator working for Magic Duels.
[Link is dead, please go here]
I can't see any enhancement in trying to use any debugger with this one rather than the original Steam, but who knows, maybe the experience will be different for someone else. I made it so that it's easy to commute: unzip into the game directory, then run SteamSwitch.bat each time you want to switch between original Steam and emulator (the unused DLLs will be renamed with .bak extension). I also enabled "FullBlockNetwork" in the INI file, in case someone is afraid to be caught online with the emulator.
Last edited by thefiremind on 02 Nov 2016, 12:54, edited 2 times in total.
< 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: 722 times

Re: Information pending...

Postby spirolone » 07 Aug 2015, 16:01

I uploaded my patch to unlock all the cards ( viewtopic.php?f=99&t=17553 )! :mrgreen:
spirolone
Programmer
 
Posts: 190
Joined: 31 Aug 2014, 23:14
Has thanked: 7 times
Been thanked: 107 times

Re: Information pending...

Postby spirolone » 08 Aug 2015, 14:46

Some little nice news: I updated my program to create a Zed file and it works, that is we can add files to a zed archive that game reads! I successfully added some AI cards to my CardPools... :mrgreen:
In this zip file, there is a "DATA_000" dir with an example xml file.
Attachments
MDO_CreateZed.zip
(129.02 KiB) Downloaded 417 times
spirolone
Programmer
 
Posts: 190
Joined: 31 Aug 2014, 23:14
Has thanked: 7 times
Been thanked: 107 times

Re: Information pending...

Postby GrovyleXShinyCelebi » 08 Aug 2015, 19:20

Did you successfully look into the game's ZED files, or did you get the file names for those cards some other way?

Also, the cards start locked. Is there a way to set the cardpool file so the cards are automatically unlocked or will we have to mod the profile?
User avatar
GrovyleXShinyCelebi
 
Posts: 294
Joined: 12 Jun 2013, 18:23
Has thanked: 14 times
Been thanked: 37 times

Re: Information pending...

Postby merdok » 08 Aug 2015, 20:45

spirolone wrote:Some little nice news: I updated my program to create a Zed file and it works, that is we can add files to a zed archive that game reads! I successfully added some AI cards to my CardPools... :mrgreen:
In this zip file, there is a "DATA_000" dir with an example xml file.
Good job. How did you manage to make the game load the new ZED? Do you somehow copied the header from the original DATA_000.ZED?
And i would be also interested how did you find out those cards and the file name? Just by guessing or did you decrypt the original ZED?
merdok
 
Posts: 24
Joined: 31 May 2015, 20:33
Has thanked: 1 time
Been thanked: 11 times

Re: Information pending...

Postby spirolone » 08 Aug 2015, 23:05

I didn't find public key, so I cannot decrypt first 256 bytes of any file. Luckly first 256 bytes of central dir have infos about FileData.xml (I think) and Header.xml; rest of central dir is encrypted with a simple xor. I attached central dir content.
To create zed file, I used same code I wrote for Magic 2015, changing Data.bin, file that contains part of original DATA_000.
I'm preparing a complete xml file with AI cards. I didn't test if old cards are compatible, still...
Attachments
Data_000_CentralDir.zip
(1.41 MiB) Downloaded 365 times
spirolone
Programmer
 
Posts: 190
Joined: 31 Aug 2014, 23:14
Has thanked: 7 times
Been thanked: 107 times

Re: Information pending...

Postby GrovyleXShinyCelebi » 08 Aug 2015, 23:17

spirolone wrote:I didn't find public key, so I cannot decrypt first 256 bytes of any file. Luckly first 256 bytes of central dir have infos about FileData.xml (I think) and Header.xml; rest of central dir is encrypted with a simple xor. I attached central dir content.
To create zed file, I used same code I wrote for Magic 2015, changing Data.bin, file that contains part of original DATA_000.
I'm preparing a complete xml file with AI cards. I didn't test if old cards are compatible, still...
I successfully added in the cards from Magic 2015 into Origins using that ZED file creation utility. Unfortunately they're locked so I can't test them in a duel.

http://www45.zippyshare.com/v/DhiUp4wn/file.html

The good news is that the game doesn't crash on startup anymore when you use a card ID higher than 1024; I don't know how high the new limit goes.
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 Aug 2015, 03:21

GrovyleXShinyCelebi wrote:I successfully added in the cards from Magic 2015 into Origins using that ZED file creation utility. Unfortunately they're locked so I can't test them in a duel.

http://www45.zippyshare.com/v/DhiUp4wn/file.html

The good news is that the game doesn't crash on startup anymore when you use a card ID higher than 1024; I don't know how high the new limit goes.
Here is a jar that unlocks cards from id 500 to id 999 (set name of profile file as argoment or use 1.profile), so you can test cards in game! :mrgreen:
Attachments
Unlock500-999.zip
(2.3 KiB) Downloaded 352 times
spirolone
Programmer
 
Posts: 190
Joined: 31 Aug 2014, 23:14
Has thanked: 7 times
Been thanked: 107 times

Re: Information pending...

Postby GrovyleXShinyCelebi » 09 Aug 2015, 14:02

spirolone wrote:
GrovyleXShinyCelebi wrote:I successfully added in the cards from Magic 2015 into Origins using that ZED file creation utility. Unfortunately they're locked so I can't test them in a duel.

http://www45.zippyshare.com/v/DhiUp4wn/file.html

The good news is that the game doesn't crash on startup anymore when you use a card ID higher than 1024; I don't know how high the new limit goes.
Here is a jar that unlocks cards from id 500 to id 999 (set name of profile file as argoment or use 1.profile), so you can test cards in game! :mrgreen:
Huge thanks, spirolone! Could you also add a patch that unlock ids 1000-1499? I wanna make 100% sure it doesn't break anything.
User avatar
GrovyleXShinyCelebi
 
Posts: 294
Joined: 12 Jun 2013, 18:23
Has thanked: 14 times
Been thanked: 37 times

Information pending...

Postby Scion of Darkness » 09 Aug 2015, 20:30

Just a question here,since we have all this .zed new cards, is there a way to make the game save without being on original steam? I did try the ali file posted by firemind, but since game is offline no save progress =(
User avatar
Scion of Darkness
 
Posts: 235
Joined: 27 Aug 2012, 13:14
Has thanked: 17 times
Been thanked: 23 times

Re: Information pending...

Postby GrovyleXShinyCelebi » 10 Aug 2015, 13:40

Scion of Darkness wrote:Just a question here,since we have all this .zed new cards, is there a way to make the game save without being on original steam? I did try the ali file posted by firemind, but since game is offline no save progress =(
Campaign progress won't be saved, but you can unlock all the cards with a profile patch. Skirmish decks and progress are saved offline. I'd figure it's impossible to make the game save offline without access to the source code, but profile hacks should substitute.
User avatar
GrovyleXShinyCelebi
 
Posts: 294
Joined: 12 Jun 2013, 18:23
Has thanked: 14 times
Been thanked: 37 times

Re: Information pending...

Postby Scion of Darkness » 10 Aug 2015, 19:24

can i use offline someone's save with campain completed? If thats possible can someone share =P???
User avatar
Scion of Darkness
 
Posts: 235
Joined: 27 Aug 2012, 13:14
Has thanked: 17 times
Been thanked: 23 times

Re: Information pending...

Postby spirolone » 11 Aug 2015, 07:37

GrovyleXShinyCelebi wrote:Huge thanks, spirolone! Could you also add a patch that unlock ids 1000-1499? I wanna make 100% sure it doesn't break anything.
I'm sorry but it's not as easy as ids below 1024 and I don't know how to do. Did you notice that, if you use an id like 1026, card is locked but "coloured"? It's strange...
spirolone
Programmer
 
Posts: 190
Joined: 31 Aug 2014, 23:14
Has thanked: 7 times
Been thanked: 107 times

Re: Information pending...

Postby GrovyleXShinyCelebi » 11 Aug 2015, 13:57

spirolone wrote:
GrovyleXShinyCelebi wrote:Huge thanks, spirolone! Could you also add a patch that unlock ids 1000-1499? I wanna make 100% sure it doesn't break anything.
I'm sorry but it's not as easy as ids below 1024 and I don't know how to do. Did you notice that, if you use an id like 1026, card is locked but "coloured"? It's strange...
OK, I understand. I did notice the "colored" locked cards in the card collection, thought it might be because of something like the bits after the 1024th leak off into another part of the profile data (like quests or something like that) but because the bits are nonzero the cards are locked but colored... Anyways huge thanks for trying!
User avatar
GrovyleXShinyCelebi
 
Posts: 294
Joined: 12 Jun 2013, 18:23
Has thanked: 14 times
Been thanked: 37 times

Re: Information pending...

Postby spirolone » 11 Aug 2015, 15:00

GrovyleXShinyCelebi wrote:OK, I understand. I did notice the "colored" locked cards in the card collection, thought it might be because of something like the bits after the 1024th leak off into another part of the profile data (like quests or something like that) but because the bits are nonzero the cards are locked but colored... Anyways huge thanks for trying!
Indeed I'll need some tests... :?
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 1 guest

Main Menu

User Menu

Our Partners


Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 1 guest

Login Form