You seriously overanalyze this stuff bro. I guess it is hex but I called them binaries because in OllyDbg the button you press is BINARY PASTE and BINARY COPY to get and use them.
@Ralren: You have to select "Add resource" with Resource Hacker and follow the steps and such. I've not actually done this myself yet but DB seems to be able to make it work and anyway his whatchamacallit adds the resources by itself anyway doesn't it?
Okay Ima break it down step by step:
1) open the text document. This is usually achieved by the double-click but there are other methods.
2) You will notice a line or two of "=" characters at the very top. Please do not be alarmed as this is for decorative purposes only.
3) The next line will have the numbers "427040". If you are using OllyDbg as your instrument of choice then this is the address you must go to using the "ctrl-g" thing. If you are using a hex editor then you may have to subtract "400000" to find the right one! This is critical.
4) Past the address you will see many hex numbers. Place the cursor before before the first number of the first hex pair (in this case, 55) and *click* and drag the mouse down until you have highlighted the last number of the last hex pair (here 90). With the selection still highlighted, right click with the mouse and select "Copy" or with the keyboard press "ctrl-c". Be careful not to press "c" before "ctrl" or it will not work!
--- From here the instructions apply specifically to OllyDbg as I have no experience with these procedures in Hex editors. Oh well. ---
5) Go back to Olly, which should be at the proper address, "427040". With the mouse, left click the command at "427040" and hold the left mouse button in while
dragging the mouse downwards to highlight a selection. You must highlight a large selection to be sure that all the code gets applied - in this case it will be the entire function. If you are not sure you have enough then keep going. If you then thing you might have enough keep going further. A bit more. Okay, stop now, that should be fine.
6) With the selection highlighted, release the left mouse button. Now, put the mouse cursor anywhere within the gray "highlighted" area and click the right mouse button; a menu will pop up. Move the mouse over the item labelled "Binary" and a second menu will pop up. From this second menu, select "Binary Paste". A portion of the selection should turn red to indicate that changes have been made.
7) Now that this selection has been changed, return to the text document and, repeating steps 3-6 as necessary, continue until all the changes have been made.
8) Once all the changes have been made, we must commit the changes or all this work will have been for naught. In OllyDbg, right-click anywhere on the code to summon the menu. Select the option "Copy to executable..." and then from the next set of options select "All modifications". When the popup dialogue box appears, select the "Copy All" option. Once it has finished, there will be another popup window with what appears to be code in it. When you try to close it with the "X" in the top-right, you will be prompted to save. Save it under a new name, and once that is complete you have finished!
Wow you are right this is an extremely difficult and arduous process involving eight (8!) steps, some of which must be repeated multiple times. Clearly I am asking too much the onus should be on me to learn a programming language well enough to write the code required to make hex edits to cave story automajically.
EDIT: I think I scrood up the thing this line here
Code:
41b440
68 90 37 49 00 8D 55 E4 52 E8 E2 5B 06 00 83 C4 0C 85 C0 75 06 C6 45 F7 01 EB 19 6A 06 68 98 37
49 00 8D 45 E4 50 E8 C5 5B 06 00 83 C4 0C 90 90 C6 45 F7 02 0F BE 4D F7 85 C9 75 07 33 C0 E9 11
05 00 00 6A 6C 8B 55 FC 52 8D 85 70 FF FF FF 50
should be 41bb40 not 41b440 as there are two 41b440 and this should not be. The first of the two is the one that probably needs to be changed