Code.bin and exh.bin to elf?

coolmodder

Member
OP
Newcomer
Joined
Apr 3, 2024
Messages
11
Trophies
0
Age
24
XP
87
Country
United States
I am trying to convert these two files in to an elf for ida pro, but Patchrom's script doesn't work (I've tried debugging it.) Is there a better way to do this?
 

Kwyjor

Well-Known Member
Member
Joined
May 23, 2018
Messages
4,323
Trophies
1
XP
4,470
Country
Canada
Please don't start multiple threads needlessly.
https://gbatemp.net/threads/how-to-extract-code-bin.653494/

You left the important question in your other post.
Now my brain is on fire trying to debug patchrom's script to convert code.bin and exh.bin to an elf, none of the functions are working, and windows cmd can't take a file path with spaces... Is there a better way to do this?

See, instead of asking "how can I do this", shouldn't you be asking "how can I use file paths with spaces"?

The most straightforward way would be to simply put your files in a new path without spaces in it. Alternatively, you can enclose the path in double quotes. If you use "dir /x" on the command line you can also get the corresponding short file name for each file or folder and use that instead. (Often it ends in "~1", but things get complicated when there are many files with similar names.)
 

coolmodder

Member
OP
Newcomer
Joined
Apr 3, 2024
Messages
11
Trophies
0
Age
24
XP
87
Country
United States
Please don't start multiple threads needlessly.
https://gbatemp.net/threads/how-to-extract-code-bin.653494/

You left the important question in your other post.


See, instead of asking "how can I do this", shouldn't you be asking "how can I use file paths with spaces"?

The most straightforward way would be to simply put your files in a new path without spaces in it. Alternatively, you can enclose the path in double quotes. If you use "dir /x" on the command line you can also get the corresponding short file name for each file or folder and use that instead. (Often it ends in "~1", but things get complicated when there are many files with similar names.)
Program Files for the gcc arm compiler? I've also attempted double quoting, escape characters, but can't move the arm compiler out of program files without messing with environmental variables. The folder structure inside the folder has spaces in the folders names themselves. "dir /X" returns what dir normally returns.
Help Log:
Code:
 If no short name is present, blanks are displayed in its place.
The short name is not present, and yes, the registry values confirm my C drive has short names available.

I have tried searching before posting, but I also asked for an alternative for patchrom (a 10 year old script collection made for a previous version of windows, not for 11, and not the most recent version of python either.) Finally, sorry for starting a new thread, but keep in mind I still am learning this forum's etiquette. (Then again, that is not a good excuse.)
 

Kwyjor

Well-Known Member
Member
Joined
May 23, 2018
Messages
4,323
Trophies
1
XP
4,470
Country
Canada
Well, I could try to offer suggestions about what you could do differently, but it's a bit pointless to do so without knowing more about what you tried.
 

coolmodder

Member
OP
Newcomer
Joined
Apr 3, 2024
Messages
11
Trophies
0
Age
24
XP
87
Country
United States
Well, I could try to offer suggestions about what you could do differently, but it's a bit pointless to do so without knowing more about what you tried.
Gave what I tried. You skimmed through what I wrote.
See if this script works better for you, that's what I personally use for getting ELFs: https://github.com/NWPlayer123/ctr-elf2
Worked without a hassle. Thank you.
Post automatically merged:

What should I do next? I see strings relating to ingame objects, but no code (C or ASM). Edit: Using IMHEX.
 
Last edited by coolmodder,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    Yea is sad. His 2 movies were good. Informative about our food industry.
  • BigOnYa @ BigOnYa:
    This was one of the craziest movies I've seen about our food industry, lots of stuff I didn't know. A must see. https://youtu.be/OqzjC-ENrl8?si=GYxmdY5nShzGniVi
  • OctoAori20 @ OctoAori20:
    Oh, that dude?
  • OctoAori20 @ OctoAori20:
    I stopped believing or caring about that dude when I found out about some of the more questionable nonsense he did in his life.
  • BigOnYa @ BigOnYa:
    Like what? I didn't know or hear.
  • K3Nv2 @ K3Nv2:
    You mean like every famous person that ever existed
    +1
  • K3Nv2 @ K3Nv2:
    I get so tired of hearing oh I liked him until...
  • OctoAori20 @ OctoAori20:
    I just know dude was a chronic alcoholic and such.
  • BigOnYa @ BigOnYa:
    I've been to his chicken restaurant he started in his 2nd movie, Holy Chicken, was pretty good. It is only 15-20 miles from me in Ohio. It only lasted 1 yr or so then closed tho.
  • OctoAori20 @ OctoAori20:
    There are very few people I just have just an immense dislike of and he's one of those very few people, the only other example is Gene Simmons. My musician uncle on my mother's side of the family actually met Gene once during some event and said he was the most unpleasant person to be around.
  • K3Nv2 @ K3Nv2:
    I met myself once turns out that guy is a giant piece of shit that doesn't deserve any of my respect
  • BigOnYa @ BigOnYa:
    Damn alcoholics! (Sshhh- Opens another beer)
  • OctoAori20 @ OctoAori20:
    Agreed, Ken
  • OctoAori20 @ OctoAori20:
    I can't say I've ever tried even a sip of beer tbh-
  • K3Nv2 @ K3Nv2:
    You met yourself also and is a giant piece of shit?
    +1
  • OctoAori20 @ OctoAori20:
    Then again, I don't think I'd really enjoy it //shrug
  • OctoAori20 @ OctoAori20:
    I'm sure it's an acquired taste :P
  • K3Nv2 @ K3Nv2:
    Poor lad can never enjoy the amazing taste of four loko
    +1
  • BigOnYa @ BigOnYa:
    Root beer is a gateway drink, don't ever try it either.
  • K3Nv2 @ K3Nv2:
    @BigOnYa, don't you love how smooth MD20 is
  • BigOnYa @ BigOnYa:
    Mad dog 20 20? Oh yea fixed the typo. I haven't seen that or had forever. Do they still make it?
  • K3Nv2 @ K3Nv2:
    I think it's why I'm alive
    +1
  • BigOnYa @ BigOnYa:
    What happens if when playing Paper Mario, you start a fire in-game?
    K3Nv2 @ K3Nv2: https://youtu.be/vja8uoOy5XE?si=d2qo7jYK9TiyaOZ2 +1