and this is a shitty .avi file

A Quickie Guide To Hex Editing

Before you start    Here’s some supplies to have
- a computer
- a program capable of re-writing files internally
—- in this case, a “hex editor” (either/both automatic/manual; prefer ROM Corrupter 5.99 by Dwedit for automatic, as it can render loseless AVI files, which are godly for pixel freaks and GIF perfectionists; Cygnus Hex Editor for manual, with ease of access and control)
- a program capable of opening said file (if sound, Audacity can open and re-write internally with some practice; otherwise, for this segment, an NES emulator; I prefer Nestopia)
- if graphics, a good painting program for final touches AKA resizing/animating (I prefer GIMP 2.6, NEVER GIMP 2.8; free, capable of exporting animated GIFs, and can scale without interpolation, even for JPEGs, for that crisp-ass quality)
—- if you’re getting into animated files, and are using the AVI exportation route, pick up a program that can make animated GIFs out of AVI files (the freeware Movie To Animated GIF Converter by Evan Olds is perfect for this)
- and of course, victim files (for this segment, ROMs; best to dupe them, and then edit the dupes; ROM Corrupter 5.99 exports dupes without affecting the original automatically; with manual, you gotta do it yourself)

Now that we have    All our tools gathered    Let’s begin by knowing    Our GUI

The basics for Dwedit 5.99

1. Dwedit location
2. Emulator program (normally Nestopia; re-named it to piss off Steam friends)
3. Target file (doesn’t have to be a ROM; can corrupt anything really)
4. End corruption file (rename it to whatever is easy for you)
5. Start corruption range (for NES, all ROMs start at $10)
6. End corruption range (for NES, most ROMS end at $8000(2^X)+$10 [i.e. $20010 for Metroid]
7. Affected bytes
8. What bytes will become

For those that know    Hexadecimals intimately    We can converse about    All what happens    On a mathematical formula    But for now    Let’s just focus    On the results

Not that hard    To get somewhere    Just requires patience    And experimenting    As you can see    Had to change every 941th to 888th byte    You’ll get CPU jammed at times    If it continues to happen    Just change the range    Or which bytes to corrupt

Once you’re satisfied    With your result    You can either screenshot it    Or save it as a movie file    By naming the original capture file    Recording    And then exporting    When you stop recording    And just export it as loseless AVI    Be mindful that sometimes    What we saw    And what the emulator saw    Can be different    Or even too broken    To save as an AVI

We’ll cover what to do    With the image nuggets later

While that covers automatic    Perhaps you like a more    “Pure” approach    That’s dandy too    I’ll go over manual editing too    I would save this solely    For picture files    Or anything smaller than an NES ROM    But hey, anything’s open season

The basics for Cygnus Hex Editor

1. Range
2. Current hexadecimal bytes
3. Current translated bytes

You can use either 2 or 3    For changing bytes in the file    For 2    It has to be in 16base (0-9, and A-F, from 00 to FF)    For 3    It’s any character that is recognized    By the hexadecimal format    AKA just keyboard smash

Boom    Same idea, different paths    After a while    You get the hang for where    Data for the file is stored    Both for automatics and manuals    For PNGs, it usually    Right at the get-go    JPEGs are after the    File format itself    (You’ll see a bunch of 01s 02s and the translations are in a nice pattern    After that are the pixels themselves)

ROMs are trickier    As one company can put all their    Glossy title screens first    Where others may have them last    A good rule of thumb    All the graphics/placement    Are always clumped in their    Respective group    BUT, not always with the other group    Ex.    Samus’s projectile graphics    Could be in $10010-$10040    And where they’re assigned on-screen    In $14010-14040

To make a simple GIF    We’ll use an even simplier program    If you have an AVI file    From using Nestopia    Or any other emulator    Capable of exporting AVI    We can turn it into a GIF    Right here and now

The basics of MTAGC by Evan Olds

1. Select as starting frame
2. Select as ending frame
3. Frame view slider

Little to go over here    Once you selected    What section you want animated    Just export it    Not only can you save    An animated GIF right off the bat    But also save the current frame separately    For other design usage

Here’s what we got

Please note however    That when we export as a loseless AVI    It’s in real-time (~60 fps)    So when being converted    From MTAGC    It will only capture the first frame    Outta every 10    Becoming a 10 fps GIF    If you wish for a 60 fps GIF    You’ll have to use other means    Even then    At least you can export    Every frame viewable with MTAGC

To finally cap    On our tools    I’ll go over GIMP 2.6 real quick

All you need to know about GIMP 2.6    For pixel-perfect export

Non-animated images
1. Scale image
2. Resize image that’s a ratio of the original aspect ([128x128] x N, where N is a whole integer)

Notice how “none” is selected    For interpolation    I can’t stress this enough    Seriously    This will solve every single problem    With “fuzzy” images    If it’s for video footage    Of an awesome skateboarder    That’s fine    But for glitching    This will save you    From shitty quality

If you have a bunch of captured screenshots    And want to compile them    Into an animated image    W can do that too easily

For animated image files

1. Place your image file here (if already animated through AVI, and proceed to 2)
1a. Your image will flip from lowest to highest in that order
1b. If you need to make an edit, select layer, and shut all eyes above that layer
2. When finished, open all eyes, and “Save As”
3. Enter the file name withextension (for now, “basic done.gif”)
4. Save as an animation (make it looped or not after you’ve chosen)

And here we have it

Do note again    That all GIFs exported    Will be animated at 10 FPS    So even if you got every frame    In GIMP 2.6    It will still be at the same speed    As the one you made    Right off of MTAGC    Another program must be used    To bump the cap for this

Here’s some tips and tricks I use

+ start at $10, end at $1010, change range by $1000, click on auto, and see what happens; rinse and repeat until you hit the end of the game; doing this will not only eventually yield a “sweet spot” (mostly the graphic storage/placement), but allow you to see where and what is located for future reference
+ if you made a good corruption file, make a new one, just in case you want to ever go back to that iteration
+ you can hex edit anything, but image files and NES ROMs are the smallest, which will also mean the easiest to start off with; later you can move onto Playstation ISOs or MP3s/WAVs
+ for NES ROMs, I recommend Metroid, Super Mario Bros., Wrecking Crew, Balloon, basically any old Nintendo game; they’re the first, so they’re the quickest to dissect, and quickest to create some really bizarre glitches from not being ironed out
+ back all your shit up; seriously; I can tell you this from experience; NES roms are tiny as hell; most are only 128/256 kilobytes, and the biggest, only a megabyte (1024 kilobytes)

Quick answers to future questions

“I keep getting a CPU jam!”
Change the range/affected bytes    Not everything corrupted are graphics

“I keep getting the AVI conversion error!”
Hard reset and try again    Chances are it captured invalid file-coding    If it doesn’t work    Make a new file and change the action a bit

“It rendered 30 seconds of [a still image / nothing / something else]!”
Again    What we see    And the computer sees    Are two different things    Try screen capturing    As it saves based on    The current monitor display    Rather than the hexadecimals themselves

“When I put a hex edited image into GIMP 2.6, it only partially loads!”
GIMP 2.6 is fine    It’s just the image that’s broken    A quick fix is to    Open it in paint.exe    And just save    It’ll change the hexadecimals    Back to a displayable image    While retaining the result

“My hex edited image won’t show up!”
You probably borked it’s file-coding    Instead of the pixels and their placement    Reload and move further down the range

“Tumblr’s not allowing me to post my GIF!”
Animated GIF files are huge    Stick with around 400px - 600px    And nothing past 100 frames    Unless you’re feeling lucky punk

That should do it for ya    If you have any further questions    Hit me up

Looking forward to those glitches now

Happy trails pardner

My dad has been ranting and cursing all night about the internet being incredibly slow and not working most of the time, but before he had a chance to reset the modem I assured him that I read online that everyone using our provider was suffering from this…

Little does he know that the problem is actually ME trying to upload a 2GB avi file to YouTube for the Destiel documentary (something that is way too much for our shitty internet, took 6 hours) because I am too much of an idiot to do something about the size of any file without fucking it up.

It’s cool, I’ll just take this to the grave