It is currently 26 Feb 2017, 09:56
   
Text Size

ExeStrings (helps getting strings from the executable)

Moderator: CCGHQ Admins

ExeStrings (helps getting strings from the executable)

Postby thefiremind » 21 Jul 2016, 19:19

I made a very small program that probably won't be used by many people, but I thought, why not sharing it anyway?

Each time a new Magic Duels expansion hits, there's a high chance we find more functions inside the executable, which we may use for more modding possibilities. However finding the strings inside the executable is a boring task, and any small help is appreciated. So here comes ExeStrings: drag and drop MagicDuels.exe onto it (or give it the MagicDuels.exe path as argument at the command prompt if you prefer) and it will generate a MagicDuels.txt file inside the same directory as the executable. What will you find inside the text file? All the aggregates of 3 or more characters among [0-9, a-z, a-Z, _]. There will be a lot of garbage, but you'll find functions, constants and XML tags more easily.
Note that some strings will be attached together, that's how you find them inside the executable so it's an unavoidable problem: a human eye is needed in order to figure out where it happened.

It requires .NET Framework 4.0.

I'll try to update the Wiki some time after each expansion, but if I'm late, at least you have a way to find the strings more quickly by yourselves. :wink:
Attachments
ExeStrings.zip
(Program.cs is the source code, you can throw it away if you don't need it)
(4.49 KiB) Downloaded 20 times
< Former DotP 2012/2013/2014 modder >
Currently active in the Magic Duels section.
User avatar
thefiremind
Programmer
 
Posts: 3504
Joined: 07 Nov 2011, 10:55
Has thanked: 117 times
Been thanked: 711 times

Re: ExeStrings (helps getting strings from the executable)

Postby RiiakShiNal » 22 Jul 2016, 10:36

Did you also account for unicode strings?
Problems with base game cards: DotP 2014 Core Fixes
Need a deck builder: DotP 2014 Deck Builder
Problems Modding: DotP 2014 Frequent Modding Mistakes
RiiakShiNal
Programmer
 
Posts: 2076
Joined: 16 May 2011, 21:37
Has thanked: 72 times
Been thanked: 450 times

Re: ExeStrings (helps getting strings from the executable)

Postby thefiremind » 23 Jul 2016, 11:10

RiiakShiNal wrote:Did you also account for unicode strings?
Yes, the program ignores the "00" characters found between readable characters. The high byte is never used in function/tag names so it works.
< Former DotP 2012/2013/2014 modder >
Currently active in the Magic Duels section.
User avatar
thefiremind
Programmer
 
Posts: 3504
Joined: 07 Nov 2011, 10:55
Has thanked: 117 times
Been thanked: 711 times


Return to Utilities

Who is online

Users browsing this forum: No registered users and 4 guests


Who is online

In total there are 4 users online :: 0 registered, 0 hidden and 4 guests (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 4 guests

Login Form