Skip to content

Gemcraft: Chapter Zero - Hacks

-migrated-

This discussion is linked to GemCraft chapter 0. View game

6 posts

Gemcraft: Chapter Zero - Hacks

Posted Nov 3, 2010 10:07 am

http://www.kongregate.com/games/gameinabottle/gemcraft-chapter-0
Well, I've been taking a look at gemcraft and managed to write a few cheats

Here's a gem creation hack that allows you to customize mods, modify damage, etc for gems.. you can add as many mods as you want based on the guideline below:

First, here are the AoB's

Search String data

Code: [Select]

4a230080232a630424006155d0660166e30460046004461700d0660166e304660f2fc101a1a2461f0166ff017563055d9701d24697010111100000d2620712be01007562071262030063056205620712a00200240062072a1103000029d17612dc000014ce000062082a1203000029d276113d04006204247f617c6204662b620712280600240562072a1103000029d076129900004fd102016204662b620811710600240a4fc602016204662b2f05241e620811950200a362072a1103000029d27612840200240162072a1103000029d376123b03002f01d0660162082a1203000029d17611ad0400602066a506465c0162072a1103000029d37612250300a2a0a261c9016204662b620712eb0300240362072a1103000029d376123d0300618602620811fe01006204662b
This section of code is search string data that can be customized to fit the values that you're adding

Alright, now this is how a replacement string is arranged:

                     Necessary to enable the cheat to work:
Every AoB you customize to change gem modifiers is going to be pre-fixed with this line:

Code: [Select]

[4a230080232a2a2a63042400615524006305600446170025e702a273617c662b]

Modifier Changes (NOTE: Every modifier EXCEPT FOR THE LAST ONE ENTERED gets pre-fixed with a 2a; if you only use one modifier, you do not need to prefix with 2a)

You can add as many as you want of these, change their values, etc..

NOTE: The instructions are seperated by spaces; the first one being duplicate, the second one pushing a value onto the stack, and the third on setting the variable.. if you see a hex value between ( and )'s, that means it's a flash u30 value which can be converted at u30 Hex converter. U30 values are used with the pushshort (0x25). pushbyte (0x24) uses a single byte hex representation

Code: [Select]

Min Damage set to: 6666 (8a 34)
[2a 258a34 4fd10201]

Max Damage set to: 9999 (8f 4e)
[2a 258f4e 4fc60201]

RangeModifier set to: 900 (84 07)
[2a 258407 618602]

Firing speed modifier set to: 3000 (b8 17)
[2a 25b817 61c101]

Chance of critical hit set to: 100%
[2a 2401 619302]

Chance of bouncing set to: 100%  
[2a 2401 619c02]

Chance of reducing armor set to: 100%
[2a 2401 61bd02]

Chance of shock set to: 100%
[2a 2401 61f201]

Splash radius set to: 3000 (b8 17)
[2a 25b817 61cd01]

Slow Multiplier set to: 100%
[2a 2401 61d602]

Slow duration set to: 127
[2a 247f 61e601]

Mana add per hit set to: 127
[247f 619902]

And finally, every AoB you customize is going to be suffixed with a jump(0x10) that's generated based on this formula:

(1710 - Length Of current AoB string without jump)
in other words, if you'r current AoB string is 110 bytes (110 hex sets), your jump value would be 1600(1710 - 110) or 00 06 40 in hex, which gets converted into 40 06 00

Code: [Select]


 [10400600]

When you're finished, you'll end up with a replace string that looks like this:

Code: [Select]

4a230080232a2a2a63042400615524006305600446170025e702a273617c662b 2a258a344fd10201 2a258f4e4fc60201 2a258407618602 2a25b81761c101 2a2401619302 2a2401619c02 2a240161bd02 2a240161f201 2a25b81761cd01 2a240161d602 2a247f61e601 247f619902 10400600

Just paste your AoB line below the search data to copy as much search data as you need.. there should be plenty there to copy from (250 bytes)

You'll end up with two strings that are the same length:

Code: [Select]

Random color Hue
Min Damage set to: 6666 (8a 34)
Max Damage set to: 9999 (8f 4e)
RangeModifier set to: 900 (84 07)
Firing speed modifier set to: 3000 (b8 17)
Chance of critical hit set to: 100%
Chance of bouncing set to: 100%  
Chance of reducing armor set to: 100%
Chance of shock set to: 100%
Splash radius set to: 3000 (b8 17)
Slow Multiplier set to: 100%
Slow duration set to: 127
Mana add per hit set to: 127

//GemCraft Chapter-zero Gem Hack
4a230080232a630424006155d0660166e30460046004461700d0660166e304660f2fc101a1a2461f0166ff017563055d9701d24697010111100000d2620712be01007562071262030063056205620712a00200240062072a1103000029d17612dc000014ce000062082a1203000029d27611
4a230080232a2a2a63042400615524006305600446170025e702a273617c662b2a258a344fd102012a258f4e4fc602012a2584076186022a25b81761c1012a24016193022a2401619c022a240161bd022a240161f2012a25b81761cd012a240161d6022a247f61e601247f61990210400600

The first one being the search string, the second one being the replacement..
If you have any questions, post them here..
Here are the opcodes that set various attack modifiers:

Code: [Select]


setDamageMin 4f d1 02 01
setDamageMax 4f c6 02 01
rangeModifier 61 86 02
firingSpeedModifier 61 c1 01
chanceofCriticalHit 61 93 02
chanceOfBouncing 61 9c 02
chanceOfReducingArmorLevel 61 bd 02
chanceOfShock 61 f2 01
splashRadius 61 cd 01
slowMultiplier 61 d6 02
slowDuration 61 e6 01
manaAddPerHit 61 99 02

Re: Gemcraft: Chapter Zero - Hacks

Posted Nov 3, 2010 3:12 pm

Looks pretty much like copy&paste to me, he stopped writing after "Here are the opcodes that set various attack modifiers:". Also, I read through this several times and still have no idea how to use it in CE, it has nothing to do with the hacking methods we are using here. Looks more likely like this is used to make a prehack.

This post was imported from an account that no longer exists!
Previous Name: phreneticus

Re: Gemcraft: Chapter Zero - Hacks

Posted Nov 3, 2010 4:55 pm

Well basically, I describe how to create your own custom gem modifier and then provide you with one I pre-manufactured to use as an example:

Code: [Select]

//GemCraft Chapter-zero Gem Hack
4a230080232a630424006155d0660166e30460046004461700d0660166e304660f2fc101a1a2461f0166ff017563055d9701d24697010111100000d2620712be01007562071262030063056205620712a00200240062072a1103000029d17612dc000014ce000062082a1203000029d27611
4a230080232a2a2a63042400615524006305600446170025e702a273617c662b2a258a344fd102012a258f4e4fc602012a2584076186022a25b81761c1012a24016193022a2401619c022a240161bd022a240161f2012a25b81761cd012a240161d6022a247f61e601247f61990210400600

Random color Hue
Min Damage set to: 6666 (8a 34)
Max Damage set to: 9999 (8f 4e)
RangeModifier set to: 900 (84 07)
Firing speed modifier set to: 3000 (b8 17)
Chance of critical hit set to: 100%
Chance of bouncing set to: 100%  
Chance of reducing armor set to: 100%
Chance of shock set to: 100%
Splash radius set to: 3000 (b8 17)
Slow Multiplier set to: 100%
Slow duration set to: 127
Mana add per hit set to: 127

Re: Gemcraft: Chapter Zero - Hacks

Posted Jan 17, 2012 10:01 am

For CE you need to space the bytes out, tried it twice without spacing on CE 6.1 and it crashed, with spacing it found the array. I'll post the spaced AoB from that last post here.
search array:

Code: [Select]

4a 23 00 80 23 2a 63 04 24 00 61 55 d0 66 01 66 e3 04 60 04 60 04 46 17 00 d0 66 01 66 e3 04 66 0f 2f c1 01 a1 a2 46 1f 01 66 ff 01 75 63 05 5d 97 01 d2 46 97 01 01 11 10 00 00 d2 62 07 12 be 01 00 75 62 07 12 62 03 00 63 05 62 05 62 07 12 a0 02 00 24 00 62 07 2a 11 03 00 00 29 d1 76 12 dc 00 00 14 ce 00 00 62 08 2a 12 03 00 00 29 d2 76 11
replacement array:

Code: [Select]

4a 23 00 80 23 2a 2a 2a 63 04 24 00 61 55 24 00 63 05 60 04 46 17 00 25 e7 02 a2 73 61 7c 66 2b 2a 25 8a 34 4f d1 02 01 2a 25 8f 4e 4f c6 02 01 2a 25 84 07 61 86 02 2a 25 b8 17 61 c1 01 2a 24 01 61 93 02 2a 24 01 61 9c 02 2a 24 01 61 bd 02 2a 24 01 61 f2 01 2a 25 b8 17 61 cd 01 2a 24 01 61 d6 02 2a 24 7f 61 e6 01 24 7f 61 99 02 10 40 06 00