Pikmin, ripped apart for your pleasure.

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.
please do so
whoah. are you saying its pikmin for windows?
Remember gamecube has an emulator (official) used as a tool.
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
So if you have the PCEMU software could this actually be run, or is it just a chunk of the actual thing?
I have the PCEMU software, it can ACTUALLY be run.
are you gonna post some shots or.....
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 !
c# can be ported too, mono.
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.
good luck compiling that :p
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. :)
Alright, I know what I'm doing tonight :)
Lol, you have the PCEMU libraries as well? Good luck. :)
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:
... 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.
There is a (free) update for your decompiler to the latest version available.
It reportedly generates much better code from C++ binaries.
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
Really? Where?

(This is from IDA, by the way. I'm ashamed to say I'm using a pirated version.)

Original thread: https://assemblergames.com/threads/pikmin-ripped-apart-for-your-pleasure.34351/