It is currently 20 Jun 2019, 05:21
   
Text Size

Magic.c

Discuss Upcoming Releases, Coding New Cards, Etc.
PLEASE DO NOT REPORT BUGS HERE!

Moderators: BAgate, drool66, stassy, Aswan jaguar, gmzombie, CCGHQ Admins

Re: Magic.c

Postby gmzombie » 17 Jul 2013, 16:52

i think what would be really awesome is if we could get the online portion working again. but i love this too.

Also started to look at the new magic.c and it is awesome already. great job
can I maze of ith your snowstorm?

http://home.comcast.net/~gmzombie/index.html old stuff in here. don't use this stuff right now till I get time to get back into it and readjust.
gmzombie
 
Posts: 855
Joined: 26 Feb 2009, 01:05
Location: Wyoming, Mi
Has thanked: 199 times
Been thanked: 50 times

Re: Magic.c

Postby gmzombie » 17 Jul 2013, 21:30

Korath wrote:What I've got labelled currently.

(If anyone has access to Hex Rays and could post what it comes up with for Shandalar.exe, I'd like to take a look at that eventually, too.)
as promised here is a hex rays shandalar.c that i made i used default options with just resource segment and imports segment checked. everything else is default.
Attachments
Shandalar.rar
(444.43 KiB) Downloaded 215 times
can I maze of ith your snowstorm?

http://home.comcast.net/~gmzombie/index.html old stuff in here. don't use this stuff right now till I get time to get back into it and readjust.
gmzombie
 
Posts: 855
Joined: 26 Feb 2009, 01:05
Location: Wyoming, Mi
Has thanked: 199 times
Been thanked: 50 times

Re: Magic.c

Postby Korath » 17 Jul 2013, 22:05

Honestly, it would probably be easier to build something similar from scratch... but it just wouldn't be the same.

No promises, in any case.
User avatar
Korath
DEVELOPER
 
Posts: 3385
Joined: 02 Jun 2013, 05:57
Has thanked: 482 times
Been thanked: 938 times

Re: Magic.c

Postby Korath » 17 Jul 2013, 22:15

Actually, a re-decompile of Magic.exe would be beneficial, too, since A) you've got a newer Hex Rays version than the one used to dump the Magic.c we've been working with, and B) there's been enough new injections, functions moved, and new cards added directly to the exe since then that I've already been bitten by the differences a couple times.
User avatar
Korath
DEVELOPER
 
Posts: 3385
Joined: 02 Jun 2013, 05:57
Has thanked: 482 times
Been thanked: 938 times

Re: Magic.c

Postby gmzombie » 17 Jul 2013, 22:45

ok here it is fresh off the presses..
Attachments
Magic7132013.rar
(363.65 KiB) Downloaded 204 times
can I maze of ith your snowstorm?

http://home.comcast.net/~gmzombie/index.html old stuff in here. don't use this stuff right now till I get time to get back into it and readjust.
gmzombie
 
Posts: 855
Joined: 26 Feb 2009, 01:05
Location: Wyoming, Mi
Has thanked: 199 times
Been thanked: 50 times

Re: Magic.c

Postby Korath » 18 Jul 2013, 00:22

Initial analysis: The new version recognizes 112 functions that the old one doesn't. The old one recognizes 504 that the new one doesn't. (And the ones I looked at really were still there.) Besides failing completely on only 12 of the 1376 functions it recognized (compared to 207 of 1768 in the old version), the new version has a slight but noticeably improved decompilation quality, as expected.

I can't help but wonder if the newly-missing functions are missing because no calls to them were recognized. It might be worth it to replace one of the larger functions with something that just calls each of them in turn.

One significant problem is with injections that jmp out to ManalinkEx.dll - Hex Rays doesn't see the jmp back to the original address, and so doesn't decompile anything else in the function after it. (This is admittedly weird behavior to expect it to handle, though.) I don't suppose there's an option to decompile both files simultaneously? If so, it'll want ManalinkEx.dll's base address, which is 0x01000000. If not, it can probably be worked around by building an executable that calls those addresses intead of jmping to them. (It'll crash horribly if you try to run it, of course, but it should be decompilable.)
User avatar
Korath
DEVELOPER
 
Posts: 3385
Joined: 02 Jun 2013, 05:57
Has thanked: 482 times
Been thanked: 938 times

Re: Magic.c

Postby gmzombie » 18 Jul 2013, 00:58

hmm im not quite sure if i can do that...about the only thing i can do is force it to allow references with different segment bases. would that work? if so i have decompiled another version here it is..
Attachments
Magicv2.rar
(363.65 KiB) Downloaded 197 times
can I maze of ith your snowstorm?

http://home.comcast.net/~gmzombie/index.html old stuff in here. don't use this stuff right now till I get time to get back into it and readjust.
gmzombie
 
Posts: 855
Joined: 26 Feb 2009, 01:05
Location: Wyoming, Mi
Has thanked: 199 times
Been thanked: 50 times

Re: Magic.c

Postby Korath » 24 Feb 2014, 01:38

.
Last edited by Korath on 19 Dec 2016, 19:28, edited 1 time in total.
User avatar
Korath
DEVELOPER
 
Posts: 3385
Joined: 02 Jun 2013, 05:57
Has thanked: 482 times
Been thanked: 938 times

Re: Magic.c

Postby gmzombie » 24 Feb 2014, 22:32

wow man this is awesome great job! i cant believe you got it down to only 4 decomp failures out of the 2642 functions. this is great.
can I maze of ith your snowstorm?

http://home.comcast.net/~gmzombie/index.html old stuff in here. don't use this stuff right now till I get time to get back into it and readjust.
gmzombie
 
Posts: 855
Joined: 26 Feb 2009, 01:05
Location: Wyoming, Mi
Has thanked: 199 times
Been thanked: 50 times

Re: Magic.c

Postby lujo » 15 Sep 2014, 04:51

It's been almost a year, and I occasionally check in here hoping to see another post in this thread and there's never any... :(
---

My Shandalar deck pack folder is avaliable here:Dropbox
Leave feedback on particular decks here: Google doc
Ask for instructions, give feedback and complaints here: Thread
User avatar
lujo
 
Posts: 557
Joined: 20 Nov 2013, 13:17
Has thanked: 224 times
Been thanked: 70 times

Re: Magic.c

Postby Gargaroz » 14 Jan 2015, 15:14

Well, Korath is the only one amoung us that can read / decode ASM, so until he's back, we're pretty much stuck on this... :(
----
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
Gargaroz
Programmer
 
Posts: 7095
Joined: 06 Nov 2009, 11:11
Has thanked: 82 times
Been thanked: 593 times

Re: Magic.c

Postby gmzombie » 14 Jan 2015, 21:58

hopefully we see korath this year i know how real life things can take you away for a while. :)
can I maze of ith your snowstorm?

http://home.comcast.net/~gmzombie/index.html old stuff in here. don't use this stuff right now till I get time to get back into it and readjust.
gmzombie
 
Posts: 855
Joined: 26 Feb 2009, 01:05
Location: Wyoming, Mi
Has thanked: 199 times
Been thanked: 50 times

Re: Magic.c

Postby gmzombie » 03 Aug 2015, 03:33

this isnt really an update and i dont know if it will help at all but i have taken a copy of the original last update from mok version 8.3 before he left the first time. i dont know if it will help but it is at least there is a hex rays disassembly along with a straight copy of the ollydbg code
Attachments
mok8.3uncompressedASM.zip
(2.15 MiB) Downloaded 127 times
can I maze of ith your snowstorm?

http://home.comcast.net/~gmzombie/index.html old stuff in here. don't use this stuff right now till I get time to get back into it and readjust.
gmzombie
 
Posts: 855
Joined: 26 Feb 2009, 01:05
Location: Wyoming, Mi
Has thanked: 199 times
Been thanked: 50 times

Re: Magic.c

Postby Korath » 12 Apr 2016, 14:36

.
Last edited by Korath on 19 Dec 2016, 19:29, edited 2 times in total.
User avatar
Korath
DEVELOPER
 
Posts: 3385
Joined: 02 Jun 2013, 05:57
Has thanked: 482 times
Been thanked: 938 times

Re: Magic.c

Postby gmzombie » 12 Apr 2016, 22:09

Nice to see this for sure. I'll have to take a look at it when I get home. Again I and everybody appreciates this.
can I maze of ith your snowstorm?

http://home.comcast.net/~gmzombie/index.html old stuff in here. don't use this stuff right now till I get time to get back into it and readjust.
gmzombie
 
Posts: 855
Joined: 26 Feb 2009, 01:05
Location: Wyoming, Mi
Has thanked: 199 times
Been thanked: 50 times

Previous

Return to Development

Who is online

Users browsing this forum: No registered users and 1 guest


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 287 on 31 Mar 2019, 04:11

Users browsing this forum: No registered users and 1 guest

Login Form