Pikmin, ripped apart for your pleasure.

Discussion in 'Nintendo Game Development' started by CrackNTag, Jul 20, 2011.

  1. CrackNTag

    CrackNTag Rising Member

    Joined:
    Sep 1, 2009
    Messages:
    74
    Likes Received:
    0
    So, I did some digging after my friend Spyke asked me to (he mentioned the EXE file within Pikmin on this forum before), and dsicovered something amazing.

    The EXE that's there isn't meant to be used with the DDH per-se. Or any gamecube development kit. It's a compiled launcher for Pikmin using the PCEMU libraries that came with the SDK.

    Assuming I'm correct and that my decompiler isn't lying to me, Pikmin itself is contained within plugPiki.dll within the "plugins" folder next to the EXE. The rest of the DLLs in there are from the Dolphin SDK's library, for texture conversions iirc.

    Digging even further, it appears the dependancies required for the DLL are mainly OpenGL and a few other Windows libraries. I have no idea why a "top level window" is required, maybe it was used as a child process from a debugger (assuming ProDG, because of it's Visual Studio support, which they used according to the remaining signature on each of the DLLs and sysBootup.exe)

    I'll be doing some digging further, but I've also managed to decompile the EXE, it's library, and Pikmin into raw C code. I never said it was accurate, but it works, to say the least.

    My only question to you guys is, can I release such things here? :)

    EDIT: sysCore.dll is apparently the wrapper library, e.g the compiled PCEMU binary for use. pluginPiki.dll imports it for it's various GC functions.
     
    Last edited: Jul 20, 2011
  2. Annoying_one

    Annoying_one Peppy Member

    Joined:
    Dec 24, 2006
    Messages:
    338
    Likes Received:
    9
    please do so
     
  3. adrianc

    adrianc Spirited Member

    Joined:
    May 26, 2011
    Messages:
    108
    Likes Received:
    0
    whoah. are you saying its pikmin for windows?
     
  4. ASSEMbler

    ASSEMbler Administrator Staff Member

    Joined:
    Mar 13, 2004
    Messages:
    19,394
    Likes Received:
    995
    Remember gamecube has an emulator (official) used as a tool.
     
  5. CrackNTag

    CrackNTag Rising Member

    Joined:
    Sep 1, 2009
    Messages:
    74
    Likes Received:
    0
    It's not like your regular emulator. It's essentially a library for converting GC-based code to PC code. Nintendo distributed it when they were low on devkits, iirc. :p
     
  6. segaloco

    segaloco Enthusiastic Member

    Joined:
    Jun 25, 2009
    Messages:
    531
    Likes Received:
    3
    So if you have the PCEMU software could this actually be run, or is it just a chunk of the actual thing?
     
  7. CrackNTag

    CrackNTag Rising Member

    Joined:
    Sep 1, 2009
    Messages:
    74
    Likes Received:
    0
    I have the PCEMU software, it can ACTUALLY be run.
     
  8. derekb

    derekb Well Known Member

    Joined:
    Jan 7, 2009
    Messages:
    1,964
    Likes Received:
    44
    are you gonna post some shots or.....
     
  9. takeshi385

    takeshi385 Mojarra Frita Bandit

    Joined:
    Mar 29, 2011
    Messages:
    1,856
    Likes Received:
    164
    if its raw c it can be ported to mac so i won't use half øf my ram running parallels, thank god it wasn't written in c sharp !
     
  10. splith

    splith Resolute Member

    Joined:
    May 2, 2010
    Messages:
    997
    Likes Received:
    4
    c# can be ported too, mono.
     
  11. CrackNTag

    CrackNTag Rising Member

    Joined:
    Sep 1, 2009
    Messages:
    74
    Likes Received:
    0
    Indeed it can...

    One note to people, IT'S DECOMPILED into C, ergo not the original source. I don't have it running on ANYTHING yet but you can find the resources in the Pikmin CD.

    Here's the Pikmin source: http://www.mediafire.com/?r5fl4yrcqciu8vk

    I'm currently working with a friend to see what I can do about writing a wrapper. Still figuring out how the PCEMU libraries work (thanks to Splith for helping me with the SDK).

    Will post when I have more info.
     
  12. adrianc

    adrianc Spirited Member

    Joined:
    May 26, 2011
    Messages:
    108
    Likes Received:
    0
    good luck compiling that :p
     
  13. CrackNTag

    CrackNTag Rising Member

    Joined:
    Sep 1, 2009
    Messages:
    74
    Likes Received:
    0
    It's DEFINATELY not compilable, but with an export viewer you can view both it's and sysCore.dll's (the PCEMU DLL's) exported functions, classes etc. to use in your program.

    e.g a way to write a wrapper. :)
     
  14. segaloco

    segaloco Enthusiastic Member

    Joined:
    Jun 25, 2009
    Messages:
    531
    Likes Received:
    3
    Alright, I know what I'm doing tonight :)
     
  15. CrackNTag

    CrackNTag Rising Member

    Joined:
    Sep 1, 2009
    Messages:
    74
    Likes Received:
    0
    Lol, you have the PCEMU libraries as well? Good luck. :)
     
  16. segaloco

    segaloco Enthusiastic Member

    Joined:
    Jun 25, 2009
    Messages:
    531
    Likes Received:
    3
    How'd you get it to work? I've got pcemu in C:/pcemu and I tried sysBootup in both the directory I extracted to and in the C:/Development...etc. directory to no avail :confused:
     
  17. CrackNTag

    CrackNTag Rising Member

    Joined:
    Sep 1, 2009
    Messages:
    74
    Likes Received:
    0
    ... I hate to break it to you but you need to know a fair amount of programming to get something working like this. I myself still don't know how to use the libraries very well.

    P.S: It's no use moving anything around, you won't get it to work, that's not how it works.
     
    Last edited: Jul 22, 2011
  18. syntax error

    syntax error Spirited Member

    Joined:
    Jan 29, 2011
    Messages:
    108
    Likes Received:
    0
    There is a (free) update for your decompiler to the latest version available.
    It reportedly generates much better code from C++ binaries.
     
  19. segaloco

    segaloco Enthusiastic Member

    Joined:
    Jun 25, 2009
    Messages:
    531
    Likes Received:
    3
    Oooooooooooooooooooooooooh, I didn't even take that into consideration, silly me. Anyway, I do look forward to trying this out if you do get it working :D
     
  20. CrackNTag

    CrackNTag Rising Member

    Joined:
    Sep 1, 2009
    Messages:
    74
    Likes Received:
    0
    Really? Where?

    (This is from IDA, by the way. I'm ashamed to say I'm using a pirated version.)
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page