ROM Hack Cheat.plg decompiler?

Ailuros27

Well-Known Member
OP
Member
Joined
Apr 7, 2015
Messages
732
Trophies
0
XP
421
Country
United States
With all these plugins being released right and left (here and on other sites) but few people actually releasing source or addresses, the NTR scene feels like the dark days of old. You know, when good codes were rare and you had to hope and pray companies like Datel and Mad Catz would make the ones you wanted. A lot of people seem to be asking for plugins to be ported or improved to use the newer menus instead of button triggers, but without source or addresses, asking is about all they can do.

So my question is this: Is it possible to create a decompiler for these plugins so people can obtain the source to port and improve them? Because waiting on the original authors to do it takes forever. Worse, expecting them to do all the work flies in the face of the kind of collaborative community we have here. Over on the Wii U scene, to use codes, you need the addresses because there are no plugins, so a lot more stuff gets shared, and more people can contribute without needing to know how to compile things. So is this possible? I know decompiling things in general is possible. Maybe I'm wrong, but since NTR plugins mostly work on ANY 3DS hardware and there are just a few major versions of NTR, shouldn't this be feasible?
 
  • Like
Reactions: Margarine67

Mandikiri

Princess
Member
Joined
Feb 11, 2016
Messages
351
Trophies
0
Age
33
Location
Rainbow Land
XP
1,639
Country
United States
you can't decompile a plugin made in C, retard. you'd need something that reads the data of the plugin. i believe @BullyWiiPlaza made or has something that looks at .exe files to figure out the source when it's not open source but as for .plg I have no idea if they can even be reverse engineered for source code.

There's no need to call him that. You're being rude as well.
 

supermariorick

Well-Known Member
Member
Joined
Jun 18, 2010
Messages
640
Trophies
1
XP
816
Country
United States
There's no need to call him that. You're being rude as well.
the thing is the same question has been asked over and over with the same answer and it's getting to the point where newly released utilities and mods are being pushed down on the page by stupid questions. call me salty all you want but I think we need a sticky for information like this or an FAQ so people stop asking the same questions and getting the same answers. it's been well known for a while that cheat plugins can't be edited directly and require the source code and that there's usually no way to get them without asking the creators of the plugins themselves. my post may have come off as rude but you can't just ignore that I at least gave a lead on the information he's actually looking for. I am just tired of the same questions being asked over and over and flooding this forum so now i have to click through a few pages of threads with pointless posts just to get to new contributions and projects. how hard is it to actually look before asking? you don't have to make a new thread every time you ask a question. at least ask it in a thread that has already been made. i suggest moving this discussion to my thread on building cheat plugins in tutorials and faqs so we dont need this unnecessary thread to ask a question that can be asked there. also some idiot is offering money to get answers to questions.
 
  • Like
Reactions: Margarine67

Ailuros27

Well-Known Member
OP
Member
Joined
Apr 7, 2015
Messages
732
Trophies
0
XP
421
Country
United States
You know, maybe if the forum search actually allowed me to search for things like "plg" that are shorter than 5 characters, I could've actually found my answer instead of asking for it to be handed to me. Still, thank you for the information. I guess people will have to learn how to share their source, or the NTR scene will continue to languish.
 
  • Like
Reactions: Margarine67

DesuIsSparta

Well-Known Member
Member
Joined
Oct 13, 2015
Messages
580
Trophies
0
XP
1,037
Country
United States
Shortest answer is to use IDA pro and go from there. Or even better, just use all of the open-source code provided by the NTR Plugin framework source, and just reverse it..
 
  • Like
Reactions: Margarine67

DarkFlare69

Well-Known Member
Member
Joined
Dec 8, 2014
Messages
5,147
Trophies
2
Location
Chicago
XP
4,752
Country
United States
the thing is the same question has been asked over and over with the same answer and it's getting to the point where newly released utilities and mods are being pushed down on the page by stupid questions. call me salty all you want but I think we need a sticky for information like this or an FAQ so people stop asking the same questions and getting the same answers. it's been well known for a while that cheat plugins can't be edited directly and require the source code and that there's usually no way to get them without asking the creators of the plugins themselves. my post may have come off as rude but you can't just ignore that I at least gave a lead on the information he's actually looking for. I am just tired of the same questions being asked over and over and flooding this forum so now i have to click through a few pages of threads with pointless posts just to get to new contributions and projects. how hard is it to actually look before asking? you don't have to make a new thread every time you ask a question. at least ask it in a thread that has already been made. i suggest moving this discussion to my thread on building cheat plugins in tutorials and faqs so we dont need this unnecessary thread to ask a question that can be asked there. also some idiot is offering money to get answers to questions.
Someone was able to get the codes for MK7 speed hacks out of @PabloMK7 plugin
 
  • Like
Reactions: Margarine67

BullyWiiPlaza

Nintendo Hacking <3
Member
Joined
Aug 2, 2014
Messages
1,932
Trophies
0
XP
2,477
Country
Germany
You can't, except for using a disassembler like IDA Pro. C programs can't be decompiled perfectly since too much information is lost on compilation but you can get whatever you desire out of the assembly with some efforts ;)
 
Last edited by BullyWiiPlaza,
  • Like
Reactions: Ailuros27

Ailuros27

Well-Known Member
OP
Member
Joined
Apr 7, 2015
Messages
732
Trophies
0
XP
421
Country
United States
Thanks. I'm not sure if it'd be easier to just find some simple addresses myself, or to mess with IDA, given my current level of skill. I'd love to help get a working plugin going for Hyrule Warriors Legends for those playing US and EU versions. While I'm acquainted with finding codes for Wii U, I have zero experience with using 3DS tools for that purpose. And less than zero compiling addresses as plugins. Perhaps I could find a partner who can focus on compiling, at least at first, while I could focus on finding working addresses.
 

Ailuros27

Well-Known Member
OP
Member
Joined
Apr 7, 2015
Messages
732
Trophies
0
XP
421
Country
United States
Does anyone have a good tutorial for someone learning how to use the NTR debugger to find addresses? I thought I had one saved somewhere but can't find it.
 

Maq47

Lord of Pyro
Member
Joined
Jan 7, 2012
Messages
1,260
Trophies
1
Location
Your basement
Website
idont.have.one
XP
3,327
Country
United States
You can't, except for using a disassembler like IDA Pro. C programs can't be decompiled perfectly since too much information is lost on compilation but you can get whatever you desire out of the assembly with some efforts ;)

What language do you choose for cheat.plg files? Metapc, or ARM? I tried metapc, ARM Big Endian, and ARM Little Endian. But each one results in an almost completely garbled mess when decompiled. I used the IDA plugin that @Nanquitas linked above in all 3 modes as well, and got assembly, but they made no logical sense. Am I only supposed to disassemble a certain region of the cheat.plg? There's jumbled text mixed in with the assembly code as well, so that's why I'm asking. :unsure:
 

masagrator

The patches guy
Developer
Joined
Oct 14, 2018
Messages
6,311
Trophies
3
XP
12,107
Country
Poland
Has there been any developments regarding this?
There is no way to do it as OP wants to. With AI and supercomputer it would take months to make something that can reverse modern apps at base level.

Reverse Engineering code requires high coding skill, deep understanding of assembler for this platform and experience.
This is not something that you will do as hobby unless you are fan of some project (like Super Mario 64 decompilation project) or they pay you.
 
  • Like
Reactions: PabloMK7

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    Maybe a ghost writer?
  • BigOnYa @ BigOnYa:
    "Oh my God the graphics are so realistic looking." Lol of course it was the shiznit back then tho.
  • BigOnYa @ BigOnYa:
    I've never stood in line overnight or for hours, to buy anything. I can just wait and buy it later.
  • RedColoredStars @ RedColoredStars:
    I have never done that either.
  • RedColoredStars @ RedColoredStars:
    closest ive done is getting to target a couple hours early in the moring to get some amiibos.
  • Xdqwerty @ Xdqwerty:
    Im back
  • RedColoredStars @ RedColoredStars:
    But that topic makes me sad. :(
  • RedColoredStars @ RedColoredStars:
    Abusive narcissistic ex shame guilted me into selling them becasue my gaming and interests were childish like a little kid collecting toys. :(
  • RedColoredStars @ RedColoredStars:
    I had soooooooooooo many of them. All still sealed.
    +1
  • RedColoredStars @ RedColoredStars:
    I eventually had to contact a domestic abuse advocate to help me get out of the apartment I was in a lease with her. And filed a restraining order on her cuz she kept harassing me after i left her.
  • Xdqwerty @ Xdqwerty:
    I didnt bring my Charger and nobody here has one compatible with my phone
  • RedColoredStars @ RedColoredStars:
    either you have usb C and no one else does, or everone else has usb c except you. haha
    +1
  • Xdqwerty @ Xdqwerty:
    @RedColoredStars, i don't have usb c
  • RedColoredStars @ RedColoredStars:
    That happened to me for like a year. lol. I was the only one of all my friends and family to still have an old phone.
  • Xdqwerty @ Xdqwerty:
    @RedColoredStars, my phone is from around 2019
  • RedColoredStars @ RedColoredStars:
    Mine was from 2017. lolol. I just got this new one like 6 months ago. Not even new, second hand cheapo $40 phone. But it has usb c. lol
  • RedColoredStars @ RedColoredStars:
    I cant justify $1k+ on a nice ass phone. I can spend that on a 75" tv screen. Why a 6" screen device cost me the same? lol
    +2
  • BigOnYa @ BigOnYa:
    I had a iPhone 5 for like 6 years, till last year, and had to get new phone, when phone companies stop using the cdna networks, which the iphone5 used.
  • K3Nv2 @ K3Nv2:
    A phone can do more than a TV
    +2
  • BigOnYa @ BigOnYa:
    These smart TVs are getting close tho. Gonna be like "back to future" TVs before long.
    +1
  • K3Nv2 @ K3Nv2:
    Nah a phones going to always be more powerful than a TV if the TVs $2grand maybe but why when I can put a smaller device in my pocket that does basically everything a TV already does
    +1
  • K3Nv2 @ K3Nv2:
    I can justify a decent $800 smartphone that'll last 3 years when I could get a 65" TV for $400 and buy a decent micro computer for $100 more
  • K3Nv2 @ K3Nv2:
    Tbf there are decent $400 smartphones in today's market that make top end spec phones unjust it's just what you want
    K3Nv2 @ K3Nv2: Tbf there are decent $400 smartphones in today's market that make top end spec phones unjust...