- Code: Select all
pause
to the .bat file
Ardennesss wrote:Client still discontinued but I made the source public again, will require some recent merges from loftar to function. Enjoy, and stuff.
https://github.com/Ardenneslol/ArdClient
TurtleHermit wrote:How does one merge latest and non-latest changes with loftar's code?
ladygrey wrote:I followed the tutorial and tried to run the client from build folder and all it showed me is blank black screen... what should i do?
+or, is there any other way that i can build that client source? im trying to find way how to build in eclipse, but im completely new with this thing, and its kind of hard to figure out... x.x wish i could find simple and easy way
public static void main(final String[] args) {
String[] a = argCheck(args);
/* Set up the error handler as early as humanly possible. */
ThreadGroup g = new ThreadGroup("Haven main group");
String ed;
if(!(ed = Utils.getprop("haven.errorurl", "")).equals("")) {
try {
final haven.error.ErrorHandler hg = new haven.error.ErrorHandler(new java.net.URL(ed));
hg.sethandler(new haven.error.ErrorGui(null) {
public void errorsent() {
hg.interrupt();
}
});
g = hg;
new DeadlockWatchdog(hg).start();
} catch(java.net.MalformedURLException e) {
}
}
Thread main = new HackThread(g, new Runnable() {
public void run() {
main2(a);
}
}, "Haven main thread");
main.start();
}
//LJ
public static String[] argCheck(String[] args)
{
System.out.println("Running client!");
ArrayList<String> list = new ArrayList<>();
if(!contains("-U", args))
{
list.add("-U");
list.add("https://game.havenandhearth.com/res/");
list.add("game.havenandhearth.com");
}
else
{
Arrays.stream(args).forEach(x -> list.add(x));
}
//Arrays.stream(args).forEach(x -> list.add(x));
String[] a = list.toArray(new String[0]);
return a;
}
private static boolean contains(String s, String[] a)
{
for(int i = 0; i < a.length; i++)
{
if(a[i].equals(s))
return true;
}
return false;
}
<target name="run" depends="jars">
<java fork="true" jar="build/hafen.jar">
<sysproperty key="haven.defserv" value="game.havenandhearth.com" />
<sysproperty key="haven.resurl" value="http://game.havenandhearth.com/render/res/" />
<sysproperty key="haven.cachebase" value="http://game.havenandhearth.com/render/" />
</java>
</target>
Aoyama wrote:I suggest you edit the build.xml file instead of changing client code
example, edit the run command to your liking
- Code: Select all
<target name="run" depends="jars">
<java fork="true" jar="build/hafen.jar">
<sysproperty key="haven.defserv" value="game.havenandhearth.com" />
<sysproperty key="haven.resurl" value="http://game.havenandhearth.com/render/res/" />
<sysproperty key="haven.cachebase" value="http://game.havenandhearth.com/render/" />
</java>
</target>
Users browsing this forum: No registered users and 98 guests