Moderator: Phades
burgingham wrote:We are all Gato, and Gato is Delamore of course. Goons blablabla...
Caradon wrote:Gato, the anti-ghandi
Sabinati wrote:yeah we're gonna kill you gato!!!
public class UI {
static public UI instance; // Unable to create more UIs
public UI(Coord sz, Session sess) {
instance = this;
...
}
...
}
Ulrika wrote:This isn't working. Someone, please tell me what to do. I'm very confused.
This is my code:
start "C:\Program Files (x86)\Java\jre6\bin" -Djava.library.path= C:\Users\user\Desktop\HnH_Ender_x64\HnH_Ender_x64" -Xms256m -Xmx512m -jar haven.jar moltke.seatribe.se
It keeps giving me the error "Windows cannot find -Djava.library.path=. Make sure you typed the name correctly, and then try again."
What am I doing wrong?
start "C:\Program Files (x86)\Java\jre6\bin" -Xms256m -Xmx512m -jar haven.jar moltke.seatribe.se
burgingham wrote:We are all Gato, and Gato is Delamore of course. Goons blablabla...
Caradon wrote:Gato, the anti-ghandi
Sabinati wrote:yeah we're gonna kill you gato!!!
ElGato wrote:Ulrika wrote:This isn't working. Someone, please tell me what to do. I'm very confused.
This is my code:
start "C:\Program Files (x86)\Java\jre6\bin" -Djava.library.path= C:\Users\user\Desktop\HnH_Ender_x64\HnH_Ender_x64" -Xms256m -Xmx512m -jar haven.jar moltke.seatribe.se
It keeps giving me the error "Windows cannot find -Djava.library.path=. Make sure you typed the name correctly, and then try again."
What am I doing wrong?
try
- Code: Select all
start "C:\Program Files (x86)\Java\jre6\bin" -Xms256m -Xmx512m -jar haven.jar moltke.seatribe.se
Momoka wrote:Hi Ender.
Could you do something about this variable you added to Vanilla? The static-ness makes the client unstable if another UI is created. I see you use it seldomly and I can think in plenty alternatives to implement something similar.
- Code: Select all
public class UI {
static public UI instance; // Unable to create more UIs
public UI(Coord sz, Session sess) {
instance = this;
...
}
...
}
I am implementing multiple sessions and it works perfectly under Vanilla Client. Under your client it crashes in a few instances (kind of works until that variable is called, the most glaring time is when user enters into a house or a cave). I could get around by setting instance everytime a session gets focus but I would like to make this library client agnostic, maybe you are interested in helping.
If you are willing, I can provide a patch with some work but I think it would be best if you were to edit it out since you are more knowledgable about the innars of the client.
diff --git a/src/haven/HavenPanel.java b/src/haven/HavenPanel.java
index 57ae4d0..9454e5b 100644
--- a/src/haven/HavenPanel.java
+++ b/src/haven/HavenPanel.java
@@ -29,6 +29,8 @@ package haven;
import java.awt.Cursor;
import java.awt.GraphicsConfiguration;
import java.awt.Toolkit;
+import java.awt.event.FocusAdapter;
+import java.awt.event.FocusEvent;
import java.awt.event.InputEvent;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
@@ -186,6 +188,12 @@ public class HavenPanel extends GLCanvas implements Runnable {
}
}
});
+ addFocusListener(new FocusAdapter() {
+ @Override
+ public void focusGained(FocusEvent e) {
+ UI.instance = ui;
+ }
+ });
inited = true;
}
Ulrika wrote:ElGato wrote:Ulrika wrote:This isn't working. Someone, please tell me what to do. I'm very confused.
This is my code:
start "C:\Program Files (x86)\Java\jre6\bin" -Djava.library.path= C:\Users\user\Desktop\HnH_Ender_x64\HnH_Ender_x64" -Xms256m -Xmx512m -jar haven.jar moltke.seatribe.se
It keeps giving me the error "Windows cannot find -Djava.library.path=. Make sure you typed the name correctly, and then try again."
What am I doing wrong?
try
- Code: Select all
start "C:\Program Files (x86)\Java\jre6\bin" -Xms256m -Xmx512m -jar haven.jar moltke.seatribe.se
Windows cannot find "-Xms256m". Make sure you typed the name correctly, and then try again.
"C:\Program Files (x86)\Java\jre6\bin\java.exe" -Xms256m -Xmx512m -jar haven.jar moltke.seatribe.se
Phades wrote:Ulrika wrote:ElGato wrote:try
- Code: Select all
start "C:\Program Files (x86)\Java\jre6\bin" -Xms256m -Xmx512m -jar haven.jar moltke.seatribe.se
Windows cannot find "-Xms256m". Make sure you typed the name correctly, and then try again.
It would be so much easier if people would read the entire first page.... sigh.
This is the code you should use if you are using 64bit windows with 32bit java (most likely what you have):
- Code: Select all
"C:\Program Files (x86)\Java\jre6\bin\java.exe" -Xms256m -Xmx512m -jar haven.jar moltke.seatribe.se
Users browsing this forum: Claude [Bot] and 4 guests