Author Topic: Hex Editing Super Hexagon Binary  (Read 14416 times)

kando

  • Crewmate
  • **
  • Posts: 23
    • View Profile
Hex Editing Super Hexagon Binary
« on: November 07, 2012, 12:59:35 PM »
So for some fun, I tried to see what fun I can do with hex editing the binary file.

I managed to find out the following:

a) Can get rid of the glados style voice.

b) Can make main title screen music the creepy music from Super Hyper Hexagonest mode!

c) Can make main title screen music the ending music!

D) CANNOT slow down, speed up, or adjust any controls.

Will update as I play around :)
« Last Edit: November 07, 2012, 01:02:51 PM by kando »

PyNe

  • Crewmate
  • **
  • Posts: 21
    • View Profile
Re: Hex Editing Super Hexagon Binary
« Reply #1 on: November 07, 2012, 09:10:05 PM »
Hahaha, glados-style voice :)
This looks pretty cool, what program do you use for editing? :vitellary:

kando

  • Crewmate
  • **
  • Posts: 23
    • View Profile
Re: Hex Editing Super Hexagon Binary
« Reply #2 on: November 08, 2012, 05:41:17 PM »
Hahaha, glados-style voice :)
This looks pretty cool, what program do you use for editing? :vitellary:

Just any standard hex editor...I'm using 010 editor. Copy binary to pc, hex edit, copy it back, then in the ios terminal do "chmod 0755 SuperHexagon" and then ldone SuperHexagon -s, both while in the app directory. That will resign the binary and allow it to run.

You will know if something hexed was not accepted (which happened quite a lot trying to adjust speed), such as the game will sit at the loading screen.

If you want some exact addresses to edit, ask away!

ThePaSch

  • Doctor
  • ***
  • Posts: 79
  • I do programming, video compositing and music.
    • View Profile
Re: Hex Editing Super Hexagon Binary
« Reply #3 on: November 09, 2012, 04:43:06 AM »
Maybe - with a little snooping - it'd be possible to, say, make clicking play on Hexagon lead to Hyper Hyper Hexagon? That'd be sweet.  :viridian:

kando

  • Crewmate
  • **
  • Posts: 23
    • View Profile
Re: Hex Editing Super Hexagon Binary
« Reply #4 on: November 09, 2012, 03:46:14 PM »
Maybe - with a little snooping - it'd be possible to, say, make clicking play on Hexagon lead to Hyper Hyper Hexagon? That'd be sweet.  :viridian:
its POSSIBLE, but you are talking about a 10MB file...its all guess and try, but that was somewhat of the goal :)
Unfortunately no success yet.
May never have success.

kando

  • Crewmate
  • **
  • Posts: 23
    • View Profile
Re: Hex Editing Super Hexagon Binary
« Reply #5 on: November 10, 2012, 10:22:35 AM »
Blah, somehow i gave myself a score of 300 seconds on hyper hexagonest...and it went up on game center. Crap.
Just removed game and removed all scores from leaderboard, this sucks :(

ThePaSch

  • Doctor
  • ***
  • Posts: 79
  • I do programming, video compositing and music.
    • View Profile
Re: Hex Editing Super Hexagon Binary
« Reply #6 on: November 10, 2012, 11:28:50 AM »
Your score's still there, assuming you are kandowontu.

kando

  • Crewmate
  • **
  • Posts: 23
    • View Profile
Re: Hex Editing Super Hexagon Binary
« Reply #7 on: November 10, 2012, 11:46:26 AM »
Your score's still there, assuming you are kandowontu.

Grrr..is there any way to remove this? I deleted the game and said YES, remove game center scores...

kando

  • Crewmate
  • **
  • Posts: 23
    • View Profile
Re: Hex Editing Super Hexagon Binary
« Reply #8 on: November 10, 2012, 08:36:44 PM »
And the fruits of my labor is going to be a hack, released soon, that allows you to run this "hack" and then view the super hexagon ending again (beating hyper hexagonest of course).

Hope thats worth screwing up the leaderboard :(

FIQ

  • Captain
  • *****
  • Posts: 810
  • https://github.com/FredrIQ/
    • View Profile
    • FIQ
Re: Hex Editing Super Hexagon Binary
« Reply #9 on: November 11, 2012, 05:50:42 AM »
The fact that leaderboard is possible to screw up at all shows lack of security...

pointless

  • Crewmate
  • *
  • Posts: 2
    • View Profile
Re: Hex Editing Super Hexagon Binary
« Reply #10 on: January 27, 2013, 02:39:55 PM »
Big necro incoming.

If you (or anyone else) are still working on this, don't spoil the leaderboards, please. I know some are already cheating, but at least some of the top 10 people are legit.

For the current version (SHA-256 of the exe file should be 69411CB275202B21C3E0428A5C27704E97663A17723497B61BD7DFEAA1534BDD), I can tell the following can be done with a hex (hax? :D) editor:

To disable highscores:
change 2 bytes at 3C50D from 7D3F to 9090
change 1 byte at 3C51D from 7F to EB

To disable arcade mode highscores:
change 6 bytes at 2187D from 0F8E01030000 to E90203000090

To disable level completion (unlocks a new hypermode or marks a hypermode as complete and also shows the endings):
change 1 byte at 2C768 from 75 to EB
change 1 byte at 2C7AE from 75 to EB

To disable forward collisions:
find this on your own :P

To enable all modes:
change 2 bytes at addresses 3C1E8, 3C202, 3C21D from 750D, 750F, 750F to 9090
change 2 bytes at addresses 2596F, 259D2, 25A43 from 7556, 7565, 7554 to 9090
change 6 bytes at addresses 2B5B6, 2B872, 2BB14 from 0F85A7020000, 0F858E020000, 0F85AC020000 to 909090909090
change 2 bytes at addresses 41438, 41456, 41478 from 7511, 7516, 7529 to 9090
change 6 bytes at address 2BF71 from 0F85A3000000 to 909090909090

If anything is not right, you don't have the correct version.

Grrr..is there any way to remove this? I deleted the game and said YES, remove game center scores...
I think it is possible to overwrite the scores.
This code from Open SteamWorks looks interesting to me:
Code: [Select]
enum ELeaderboardUploadScoreMethod
{
        k_ELeaderboardUploadScoreMethodNone = 0,
        k_ELeaderboardUploadScoreMethodKeepBest = 1,    // Leaderboard will keep user's best score
        k_ELeaderboardUploadScoreMethodForceUpdate = 2, // Leaderboard will always replace score with specified
};
« Last Edit: January 27, 2013, 02:53:32 PM by pointless »

Chillius

  • Captain
  • *****
  • Posts: 451
  • I'm back.
    • View Profile
Re: Hex Editing Super Hexagon Binary
« Reply #11 on: January 28, 2013, 07:54:31 AM »
And the fruits of my labor is going to be a hack, released soon, that allows you to run this "hack" and then view the super hexagon ending again (beating hyper hexagonest of course).

Hope thats worth screwing up the leaderboard :(

Don't worry. i am the one hex-editing the phone version :)

pointless

  • Crewmate
  • *
  • Posts: 2
    • View Profile
Re: Hex Editing Super Hexagon Binary
« Reply #12 on: January 28, 2013, 11:43:53 AM »
@Chillius03: Oh, was this about iOS version? I somehow just assumed it was about the steam version. My comment about reversing the score may apply only for the steam version then.

Nikachu

  • Crewmate
  • *
  • Posts: 7
    • View Profile
Re: Hex Editing Super Hexagon Binary
« Reply #13 on: January 28, 2013, 05:59:11 PM »
Lol at the 300 sec hyper hexagonest score. You can definitely beat it if you play all year.

Chillius

  • Captain
  • *****
  • Posts: 451
  • I'm back.
    • View Profile
Re: Hex Editing Super Hexagon Binary
« Reply #14 on: February 16, 2013, 12:54:36 PM »
i found a way to play the super hyper hexagon song to play on the title!