Code: Select all
pause Code: Select all
pause 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
In IntelliJ there is an option with source control to create a pull request. So assuming you followed the tutorial and cloned the repository and haven’t redirected it to your own private one then all you would need to do is Click the menu options VCS -> GIT -> Fetch and then VCS -> GIT -> PULL. Note if there is merge conflicts then you must resolve them and then pull again. If you are using ardennes source for instance then you must reset the branch to master to amber or loftar’s source and go through the lovely pain of trying to figure out what to merge and what might break and won’t break which I highly recommend you do not even attempt to do if you want to save your valuable time on client maintenance.TurtleHermit wrote:How does one merge latest and non-latest changes with loftar's code?


Go into MainFrame.java and replace the main method with this 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
Code: Select all
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();
}Code: Select all
//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;
}
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>
You can do this too but it nice for when after it is built that you can just double click the jar and run it without the need for a run.bat.Aoyama wrote:I suggest you edit the build.xml file instead of changing client code
example, edit the run command to your likingCode: 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>
