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,326
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,309
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
  • BigOnYa @ BigOnYa:
    If your internet speeds are fast enough. Streaming 4k takes alot. I used to only have 20mb sec, and 4k struggled. Now I have 300mb sec and 4k plays fine.
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, i only have like 1 or 2 mb sec
  • BigOnYa @ BigOnYa:
    Did you feed the hamster in your internet router? It prob died and is running slow now.
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, why did you start saying my pc has a hamster in the first place?
    +1
  • BigOnYa @ BigOnYa:
    Its actua!ly just a old joke, meaning its slow. Was just kidding around with you.
    +1
  • BigOnYa @ BigOnYa:
    I bet @AncientBoi has some hamsters hidden somewhere tho....
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    I think Game streaming should work like this.... Local Hardware able the run the game fine, game engine and common assets stored locally, all FMV and music and textures could be streaming
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Some temporary storage
  • Xdqwerty @ Xdqwerty:
    also @BigOnYa im making some progress on my gdevelop project, implemented various mechanics
  • Psionic Roshambo @ Psionic Roshambo:
    They went all in on streaming, should have been more of a hybrid approach
    +1
  • BigOnYa @ BigOnYa:
    Or free government supplied high speed internet be nice also. Like Obama care. Xdqwerty that's cool, its time consuming but rewarding once done or playable, to see what you've made from scratch. Animations take forever, but worth it.
    +1
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, although the bullets are a bit buggy
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Not to mention this would be a massive pain to pirate
  • Xdqwerty @ Xdqwerty:
    @BigOnYa,
    and the visual aspect of the game is quite crude (the sprite that looks best is that of the protagonist just because he is a stickman with sunglasses)
    +1
  • BigOnYa @ BigOnYa:
    There is a bullets behaviour you assign to your character, that makes the code easier, under "behaviours"
  • Xdqwerty @ Xdqwerty:
    i meant that when the character is pointing to the right, the bullets spawn where they should, but when he is on the right, they move to the right but the spawn point is incorrect
  • BigOnYa @ BigOnYa:
    Itch.io has lots of free assets also. Under the bullets behavior tab, there is a "rotate bullets" option, can try that. Or in the code can try
    - fire bullet Player.X(PlayerDirection)
  • Xdqwerty @ Xdqwerty:
    im taking a break for today anyway
    +1
  • BigOnYa @ BigOnYa:
    YEa gotta after a while, looking at code for long periods will bug your eyes.
    +1
  • BigOnYa @ BigOnYa:
    That's cool tho, I'm proud of you going back to it, not giving up. It is difficult at first to learn, but fun once you get the hang of it. I think I've watched every tutorial video there is, but I still struggle sometimes to get stuff to work right. But gotta keep trying dif things, and eventually you will get it right.
    +1
  • K3Nv2 @ K3Nv2:
    Lol McDonald's has a grandma mcflurry
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, furry grandma?
    Xdqwerty @ Xdqwerty: @K3Nv2, furry grandma?