Page 1 of 3

Cheatpack Finder

Posted: May 28th, 2011, 9:01 pm
by Nothinbeter2do
This is just a simple tool I made in 5 minutes the other day. All it does is scan the war3map.j file for popular cheatpacks.

EDIT1: Now detects Fai's. :D
EDIT 2: Decided that while I was at it, might as well add support for SgGuy's cheatpack.
EDIT 3: Added some miscellaneous things. Also added a mass file checker. Will probably be the last version.
EDIT 4: This is the FINAL version. I promise. c: Added some error catching, and it now asks if you would like to copy the activator to your clipboard.

Want to contact me? Send a message to breadroll on USEast.

Re: Cheatpack Finder

Posted: May 28th, 2011, 10:55 pm
by owner123
Thanks for the share.
A few things.
Why does it create the folder "Work" on desktop ;o. You can just like write temp files to some directory like "C:\Temp" then delete them after you close & dispose your archive.

The app fails if you select a map, then delete the map, then check for cheatpacks. Not very important, but you could add

Code: Select all

try {
} catch (exception ex) {
}

And make it say like "File does not exist" at exception.

[Edit 3]
If the war3map.j already exists in "Work" you get an error.
To fix, delete war3map.j after the operation finishes and check for it at the beginning of the operation. If it exists, delete it.

Overall it works well. If you want to make it really useful, have it display all the main CPs. (JJ's, Fai's, Sg's)

Re: Cheatpack Finder

Posted: May 29th, 2011, 1:52 am
by Nothinbeter2do
owner123 wrote:Thanks for the share.
A few things.
Why does it create the folder "Work" on desktop ;o. You can just like write temp files to some directory like "C:\Temp" then delete them after you close & dispose your archive.


It creates the Work folder in the same directory as the executable.

owner123 wrote:The app fails if you select a map, then delete the map, then check for cheatpacks. Not very important, but you could add

Code: Select all

try {
} catch (exception ex) {
}

And make it say like "File does not exist" at exception.


Like you said, it's not very important. The only exception I have ever had it throw was when the map was open in Warcraft 3. I will probably have it copy the map into the Work folder so that doesn't happen, though.

owner123 wrote:[Edit 3]
If the war3map.j already exists in "Work" you get an error.
To fix, delete war3map.j after the operation finishes and check for it at the beginning of the operation. If it exists, delete it.

Overall it works well.


I've never had that happen to me. Maybe you had the file open in another program?

owner123 wrote:If you want to make it really useful, have it display all the main CPs. (JJ's, Fai's, Sg's)


I was going to do that, but just used JJs cause that is all I ever really see,

Re: Cheatpack Finder

Posted: May 30th, 2011, 12:03 pm
by 5566
Can you add a function to detect foreign language map too?

Re: Cheatpack Finder

Posted: May 30th, 2011, 3:43 pm
by Nothinbeter2do
5566 wrote:Can you add a function to detect foreign language map too?


Give me an example map and I will see what I can do.

Re: Cheatpack Finder

Posted: May 31st, 2011, 12:51 am
by 5566
@Nothinbeter2do

FOC 9.1a
http://www.epicwar.com/maps/145377/
Can't wait for it!

Re: Cheatpack Finder

Posted: May 31st, 2011, 12:23 pm
by Kyoshiro
well considering that jass is still in english theres no difference...

Re: Cheatpack Finder

Posted: June 1st, 2011, 3:50 am
by 5566
I got this when I scanned the FOC map
asdf.JPG

Re: Cheatpack Finder

Posted: June 1st, 2011, 3:58 am
by UndeadxAssassin
That's probably because the activator doesn't use English characters or is hidden.

Re: Cheatpack Finder

Posted: June 1st, 2011, 4:07 am
by Kyoshiro
thats because its name activated...