Alternative Client

Thoughts on the further development of Haven & Hearth? Feel free to opine!

Re: Alternative Client

Postby theTrav » Thu Oct 15, 2009 2:46 am

farmchamp wrote:WHAT? No Mac! Noooo! That looked so great.. *sniff*

argh.

It's a java app and is therefore not tied to a specific OS, merely a VM.

the Jogl libraries for mac are available here:
http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1a/jogl-1.1.1a-macosx-ppc.zip
http://download.java.net/media/jogl/builds/archive/jsr-231-1.1.1a/jogl-1.1.1a-macosx-universal.zip

No idea what the difference between ppc and universal is, you can work that out yourself. If you're running solaris or bsd or any other crazy assed OS that I haven't included you can find the libraries yourself :P
User avatar
theTrav
 
Posts: 3464
Joined: Fri May 29, 2009 11:25 pm

Re: Alternative Client

Postby loftar » Thu Oct 15, 2009 3:18 am

theTrav wrote:No idea what the difference between ppc and universal is, you can work that out yourself.

"Universal" uses the Mach-O object file format that OSX uses (yes, it's a Unix variant but doesn't use ELF!) to package both PPC and Intel object code into the same file. It's an immensely useful feature that I wish that ELF could share. It would be very useful when using the same NFS server for machines of different architectures, such as I do.

theTrav wrote:If you're running solaris or bsd or any other crazy assed OS that I haven't included you can find the libraries yourself

I use Plan9 on one machine and QNX on another! Give me one!
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: Alternative Client

Postby bajuba » Thu Oct 15, 2009 4:54 pm

I like the part about chat windows in outside of the frame, I was wondering if you could do the same with map windows? The map windows are large and take up a lot of screen, it would be a lot easier to map if I could have it open outside of the H&H frame. Thanks.
Was Lawspeaker of Macomb in W2.
User avatar
bajuba
 
Posts: 185
Joined: Wed Sep 09, 2009 8:00 am

Re: Alternative Client

Postby theTrav » Thu Oct 15, 2009 10:52 pm

bajuba wrote:I like the part about chat windows in outside of the frame, I was wondering if you could do the same with map windows? The map windows are large and take up a lot of screen, it would be a lot easier to map if I could have it open outside of the H&H frame. Thanks.

My eventual goal is to move all widgets outside of the main H&H view frame.

I think flower menus would stay in and that's about it. Everything else just obscured viewable area un-necessarily
User avatar
theTrav
 
Posts: 3464
Joined: Fri May 29, 2009 11:25 pm

Re: Alternative Client

Postby bajuba » Fri Oct 16, 2009 9:56 pm

theTrav wrote:
bajuba wrote:I like the part about chat windows in outside of the frame, I was wondering if you could do the same with map windows? The map windows are large and take up a lot of screen, it would be a lot easier to map if I could have it open outside of the H&H frame. Thanks.

My eventual goal is to move all widgets outside of the main H&H view frame.

I think flower menus would stay in and that's about it. Everything else just obscured viewable area un-necessarily


awesome!
Was Lawspeaker of Macomb in W2.
User avatar
bajuba
 
Posts: 185
Joined: Wed Sep 09, 2009 8:00 am

Re: Alternative Client

Postby Onionfighter » Mon Oct 19, 2009 3:43 am

So, since much of what Thetrav and Loftar say is foreign to me, I used these instructions to get the ant thing running:

http://omrudi.wordpress.com/2008/11/08/how-to-install-ant-in-windows-xp/

From there, I followed the rest of the instructions, couldn't find a run.bat file, but by clicking on Haven.jar, it seemed to start the client. Unfortunately, when I try to log on I get the error: refused connection: connect, which I don't get when running the standard client.
Cheerleader
User avatar
Onionfighter
 
Posts: 2957
Joined: Sat May 30, 2009 8:45 am
Location: Mordor

Re: Alternative Client

Postby loftar » Mon Oct 19, 2009 5:28 am

FYI, theTrav (and anyone else building a custom client), I've made a separate JNLP file for haven-res.jar, so it should now be possible and easy for you to make a JNLP launcher for your client. If you just publish your compiled haven.jar on Github's download section, you should be able to put a JNLP file next to it that looks like this (copied and slightly modified from my own version):
Code: Select all
<?xml version="1.0" ?>
<jnlp spec="1.0+" codebase="http://github.com/thetrav/haven-client/downloads/" href="haven.jnlp">
  <information>
    <title>Haven and Hearth (Trav's Extendo)</title>
    <vendor>theTrav Custom Software Inc.</vendor>
    <homepage href="http://www.havenandhearth.com/" />
    <description>The Haven game</description>
    <shortcut online="false">
      <desktop />
      <menu submenu="Haven and Hearth" />
    </shortcut>
  </information>
  <security>
    <all-permissions />
  </security>
  <resources>
    <j2se version="1.5+" max-heap-size="256M" />
    <jar href="haven.jar" />
    <property name="haven.errorhandler" value="on" />
    <property name="haven.defserv" value="sh.seatribe.se" />
    <property name="haven.fullscreen" value="off" />
    <extension name="jogl" href="http://www.havenandhearth.com/java/haven-res.jnlp" />
    <extension name="jogl" href="http://www.havenandhearth.com/java/jogl/jogl.jnlp" />
  </resources>
  <application-desc />
</jnlp>

Note that the jnlp/information/title tag is what names the start menu item on Windows, so it's useful to give it some meaningful distinguisher from name of the official client.

EDIT: The things you should have to replace if you're not theTrav is the codebase attribute of the jnlp tag itself, and the jnlp/information/title tag. Everything else should at least kinda sorta work if you haven't made any other changes.
"Object-oriented design is the roman numerals of computing." -- Rob Pike
User avatar
loftar
 
Posts: 9045
Joined: Fri Apr 03, 2009 7:05 am

Re: Alternative Client

Postby theTrav » Mon Oct 19, 2009 5:29 am

Onionfighter wrote:couldn't find a run.bat file, but by clicking on Haven.jar, it seemed to start the client. Unfortunately, when I try to log on I get the error: refused connection: connect, which I don't get when running the standard client.

The run.bat should be in the build folder (the ant target copies it from etc) and should have the following contents:
Code: Select all
java -Dhaven.authserv=sh.seatribe.se -Dhaven.defserv=sh.seatribe.se -jar haven.jar

those two -D arguments are the reason your double clicking the jar doesn't work... They are necessary.

In hind sight I should just code them in as defaults as I doubt anyone's going to be changing the server url terribly often
User avatar
theTrav
 
Posts: 3464
Joined: Fri May 29, 2009 11:25 pm

Re: Alternative Client

Postby Onionfighter » Mon Oct 19, 2009 11:13 am

I couldn't actually find a run file, so I reinstalled the source. This time, there was a run file, so I was able to log in, but once I select a char it crashes, saying something like :"out of heap memory". Would you like me to PM you the full error?
Cheerleader
User avatar
Onionfighter
 
Posts: 2957
Joined: Sat May 30, 2009 8:45 am
Location: Mordor

Re: Alternative Client

Postby theTrav » Mon Oct 19, 2009 10:57 pm

Possibly your JVM is configured to run with a small heap.
http://www.jguru.com/faq/view.jsp?EID=424214

where -Xms<size> specifies the initial Java heap size and -Xmx<size> the maximum Java heap size.



so edit the batch file to have -Xms1024m -Xmx1024m right after java.

If that's not enough, make the number bigger but if the client is sucking up more than a gig of memory then something is up.
User avatar
theTrav
 
Posts: 3464
Joined: Fri May 29, 2009 11:25 pm

PreviousNext

Return to Critique & Ideas

Who is online

Users browsing this forum: Claude [Bot] and 1 guest