Hallo guys,
strange thing happend to me and my first mod attempt (so it means I suck at knowing the unwritten rules and MCP + forge API alike)
I wrote my first mod, that correctly worked while running from eclipse. I built it and packaged used my adapted Ant Build (see here if need: http://hoppo.hopto.org/download/build.xml ). Then I tried using it in .minecraft space (with the commonly played minecraft.jar = vanilla + forge + player API; but I tried also basic vanilla + forge, which crashed too). Shortly after starting up and showing main menu it crashed with this log:
after checking the line of code and field obfuscation CSV file it made me sure it is because of this code:
if (mcinstance.theWorld != null && mcinstance.thePlayer != null)
{
which I actualy taken from AtomicStryker's mod source (his mod worked fine on the same "to play" minecraft.jar configuration) and this condition to theWorld and thePlayer fields is commonly used over many minecraft, forge and mod sources (as I've seen while googling the issue)
so after about 8 hours of brainless searching and trying I turn to you good sirs
I owe you MCP configuration:
MCP 7.23
Forge src-1.4.5-6.4.0.395
followed forge install tutorials and readme file
used eclipse IDE and 1.6.0_20 JDK
I have feeling I have made a mistake with building process - something with reobfuscation (I exec reobfuscate.py from Ant build), but have no idea how to fix it
any suggestions or fix is welcome
thanks
PROBLEM SOLVED (yay):
So for the future reference of my NOOBness I post here how I solved it (after a good amount of sleep).
I installed 1.7 JDK and it was all it needed (1.7.0_11). Looks like the MCPs runtime python scripts are not backward compatible with Java 1.6 (which is worth noting if you have your jobs JDK isntalled as do I)