Cheat.plg decompiler?

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by Ailuros27, Apr 1, 2016.

  1. Ailuros27
    OP

    Ailuros27 GBAtemp Advanced Fan

    Member
    714
    113
    Apr 7, 2015
    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?
     
    Margarine67 likes this.
  2. supermariorick
    This message by supermariorick has been removed from public view by shaunj66, Apr 1, 2016, Reason: Inappropriate.
    Apr 1, 2016
  3. Mandikiri

    Mandikiri GBAtemp Regular

    Member
    120
    44
    Feb 11, 2016
    Rainbow Land
    There's no need to call him that. You're being rude as well.
     
  4. supermariorick

    supermariorick GBAtemp Fan

    Member
    420
    114
    Jun 18, 2010
    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.
     
    Margarine67 likes this.
  5. Ailuros27
    OP

    Ailuros27 GBAtemp Advanced Fan

    Member
    714
    113
    Apr 7, 2015
    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.
     
    Margarine67 likes this.
  6. DesuIsSparta

    DesuIsSparta GBAtemp Advanced Fan

    Member
    540
    174
    Oct 13, 2015
    United States
    Weaboo land
    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..
     
    Margarine67 likes this.
  7. DarkFlare69

    DarkFlare69 GBAtemp Psycho!

    Member
    4,691
    2,516
    Dec 8, 2014
    United States
    Ohio
    Someone was able to get the codes for MK7 speed hacks out of @PabloMK7 plugin
     
    Margarine67 likes this.
  8. supermariorick

    supermariorick GBAtemp Fan

    Member
    420
    114
    Jun 18, 2010
    United States
    how though?
     
    Margarine67 likes this.
  9. Nanquitas

    Nanquitas GBAtemp Addict

    Member
    2,070
    1,696
    Sep 29, 2015
    France
    South of France :)
    Probably using IDA. ;)
     
    BullyWiiPlaza and Margarine67 like this.
  10. BullyWiiPlaza

    BullyWiiPlaza Nintendo Hacking <3

    Member
    1,729
    1,409
    Aug 2, 2014
    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, Apr 1, 2016
    Ailuros27 likes this.
  11. Nanquitas

    Nanquitas GBAtemp Addict

    Member
    2,070
    1,696
    Sep 29, 2015
    France
    South of France :)
    Ailuros27 likes this.
  12. Ailuros27
    OP

    Ailuros27 GBAtemp Advanced Fan

    Member
    714
    113
    Apr 7, 2015
    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.
     
  13. Ailuros27
    OP

    Ailuros27 GBAtemp Advanced Fan

    Member
    714
    113
    Apr 7, 2015
    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.
     
  14. Ailuros27
    OP

    Ailuros27 GBAtemp Advanced Fan

    Member
    714
    113
    Apr 7, 2015
    United States
    Really? No one has anything? Not even a few tips?
     
  15. DesuIsSparta

    DesuIsSparta GBAtemp Advanced Fan

    Member
    540
    174
    Oct 13, 2015
    United States
    Weaboo land
    open game, do something, ram dump, do something, ram dump. compare ram dumps.
     
  16. MarcusCarter

    MarcusCarter Goodra the Great

    Member
    452
    108
    Jan 7, 2012
    United States
    Indianapolis, IN
    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:
     
  17. Nanquitas

    Nanquitas GBAtemp Addict

    Member
    2,070
    1,696
    Sep 29, 2015
    France
    South of France :)
    Use ARM Little Endian mode, then you have to select the whole thing you get and select an option like analize or something like that (it's been a while since I used IDA...).