Quote:
Originally Posted by qlob
According to the search, It seems that the only time JPanel occurs in a thread is here in this thread. I'm probably not looking hard enough, though...
|
Hmm. I am hurting my brain but I seem to recall it being in... err.. A very early Collections manager thread maybe? I dunno. I will go look.
deal with that later. other fish to fry. Got the recompiler to swallow the reference to the Amazon libs.
Quote:
== ERRORS FOUND ==
src/minecraft/net/minecraft/client/Minecraft.java:803: cannot find symbol
symbol : method isActive()
location: class net.minecraft.client.MinecraftApplet
if (this.mcApplet != null && !this.mcApplet.isActive())
^
src/minecraft/net/minecraft/client/Minecraft.java:2195: cannot find symbol
symbol : method setStub(net.minecraft.src.MinecraftFakeLauncher)
location: class net.minecraft.client.MinecraftApplet
var15.setStub(var14);
|
That sounds like I need to extend the amazon class to include a fake isActive or patch the code to not need it. Thinking on that.
EDIT:
Okay. I went with fixing the code.
I got around the first error by a simple change of the test.
The send one I'm not so sure about
Im reading this and this to try and understand what is being asked.
here is the code that throws the error (looks to be init code)
Code:
var1.put("demo", "" + var2);
var1.put("stand-alone", "" + var3);
var1.put("username", var5);
var1.put("fullscreen", "" + var4);
var1.put("sessionid", var6);
Frame var13 = new Frame();
var13.setTitle("Minecraft");
var13.setBackground(Color.BLACK);
JPanel var12 = new JPanel();
var13.setLayout(new BorderLayout());
var12.setPreferredSize(new Dimension(854, 480));
var13.add(var12, "Center");
var13.pack();
var13.setLocationRelativeTo((Component)null);
var13.setVisible(true);
var13.addWindowListener(new GameWindowListener());
MinecraftFakeLauncher var14 = new MinecraftFakeLauncher(var1);
MinecraftApplet var15 = new MinecraftApplet();
var15.setStub(var14);
var14.setLayout(new BorderLayout());
var14.add(var15, "Center");
var14.validate();
var13.removeAll();
var13.setLayout(new BorderLayout());
var13.add(var14, "Center");
var13.validate();
var15.init();
var15.start();
Runtime.getRuntime().addShutdownHook(new ThreadShutdown());
Heres the error:
Code:
me@dev ~/Downloads/MCPR $ ./recompile.sh --client
== MCP 7.19 (data: 7.19, client: 1.4.2, server: 1.4.2) ==
# found wine, ff, ff patches, srgs, name csvs, doc csvs, param csvs, renumber csv, astyle, astyle config
== Recompiling client ==
> Cleaning bin
> Recompiling
'"javac" -Xlint:-options -deprecation -g -source 1.6 -target 1.6 -classpath "lib:lib/*:jars/bin/minec...' failed : 1
== ERRORS FOUND ==
src/minecraft/net/minecraft/client/Minecraft.java:2202: cannot find symbol
symbol : method setStub(net.minecraft.src.MinecraftFakeLauncher)
location: class net.minecraft.client.MinecraftApplet
var15.setStub(var14);
^
src/minecraft/net/minecraft/client/Minecraft.java:2204: cannot find symbol
symbol : method add(net.minecraft.client.MinecraftApplet,java.lang.String)
location: class net.minecraft.src.MinecraftFakeLauncher
var14.add(var15, "Center");
^
Thinking on that... yep, so this is linked to the fact that we dont have
http://docs.oracle.com/javase/1.4.2/...ppletStub.html as outlined by error one not having an isActive() method... Sigh wish I knew more java. : )