Amber Client

Forum for alternative clients, mods & discussions on the same.
User avatar
cLick1338
Posts: 24
Joined: Tue Jan 11, 2011 9:43 pm

Re: Custom client for Haven & Hearth - Amber

Post by cLick1338 »

The update works great so far, thanks for your efforts.

Got a question though - how can I get rid of the cmd window that stays open after I launch the game? Takes up my limited taskbar space for no reason. Closing it closes the game too. Tried some batch file trickery but the best I got was a "title-less", blank, unresponsive java console.

Also I threw together a little batch script that automatically stitches the map from your most recent session. Just put it together with the Stitch.class inside your "map" folder and run it. Get rid of the pause command at the end if you want to.

Code: Select all

@echo off
for /F "delims=" %%i in ('dir /b /ad-h /t:c /o-d') do (
	echo Stitching %%i . . .
	java -cp . Stitch "%%i" "%%i.png"
	goto :done  
)
echo Something went wrong!
:done
echo Done!
pause
User avatar
Paradoxs
Posts: 294
Joined: Tue Aug 25, 2015 7:16 am

Re: Custom client for Haven & Hearth - Amber

Post by Paradoxs »

cLick1338 wrote:The update works great so far, thanks for your efforts.

Got a question though - how can I get rid of the cmd window that stays open after I launch the game? Takes up my limited taskbar space for no reason. Closing it closes the game too. Tried some batch file trickery but the best I got was a "title-less", blank, unresponsive java console.

Also I threw together a little batch script that automatically stitches the map from your most recent session. Just put it together with the Stitch.class inside your "map" folder and run it. Get rid of the pause command at the end if you want to.

Code: Select all

@echo off
for /F "delims=" %%i in ('dir /b /ad-h /t:c /o-d') do (
	echo Stitching %%i . . .
	java -cp . Stitch "%%i" "%%i.png"
	goto :done  
)
echo Something went wrong!
:done
echo Done!
pause

Code: Select all

start "" [java code]
exit
cmd window will flash for a second game will open it will vanish
User avatar
cLick1338
Posts: 24
Joined: Tue Jan 11, 2011 9:43 pm

Re: Custom client for Haven & Hearth - Amber

Post by cLick1338 »

Exactly what I did and got the result I had described. Oh well. Probably something weird with my Java setup or OS (Windows 10).

Also noticed that run.bat or stitching scripts don't want to run as administrator for me at all. A console window briefly flashes (eventhough there's a pause command) and that's all.
impendio
Posts: 28
Joined: Thu Aug 06, 2015 7:01 am

Re: Custom client for Haven & Hearth - Amber

Post by impendio »

I'm getting this error in mac osx with java 8.
Exception in thread "main" java.lang.UnsupportedClassVersionError: haven/MainFrame : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
User avatar
romovs
Posts: 1472
Joined: Sun Sep 29, 2013 9:26 am
Location: The Tabouret

Re: Custom client for Haven & Hearth - Amber

Post by romovs »

impendio wrote:I'm getting this error in mac osx with java 8.
Exception in thread "main" java.lang.UnsupportedClassVersionError: haven/MainFrame : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)Java Preferences
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
See this http://stackoverflow.com/a/12757565/217039 But flag the latest version you have instead of the one in that screenshot.
D00mHouse
Posts: 64
Joined: Wed Jun 09, 2010 7:17 am

Re: Custom client for Haven & Hearth - Amber

Post by D00mHouse »

What is the easy way to make the stitcher work? It seems like all I have to do is edit in the name of the folder where the maps are saved... but I can't???
Edit: nevermind, I found the thread with the salem mapping tool, works like a charm.
Treetheater
Posts: 44
Joined: Wed Jul 14, 2010 6:57 am

Re: Custom client for Haven & Hearth - Amber

Post by Treetheater »

So I've just downloaded the latest update to the client and I don't see any option for the font in my display settings. Anybody else having this problem?
User avatar
romovs
Posts: 1472
Joined: Sun Sep 29, 2013 9:26 am
Location: The Tabouret

Re: Custom client for Haven & Hearth - Amber

Post by romovs »

Treetheater wrote:So I've just downloaded the latest update to the client and I don't see any option for the font in my display settings. Anybody else having this problem?
Font isn't changeable from settings. I just replaced that awful gothic font with something more readable.
User avatar
romovs
Posts: 1472
Joined: Sun Sep 29, 2013 9:26 am
Location: The Tabouret

Re: Custom client for Haven & Hearth - Amber

Post by romovs »

Client updated.
  • Floating minimap. Also increased the size a bit. Will do other map improvement later.
  • Dropping/transferring identical items. See main post for the key combinations.
  • Hotfix for ArrayIndexOutOfBoundsException error in the vanilla code
User avatar
MagicManICT
Posts: 18435
Joined: Tue Aug 17, 2010 1:47 am

Re: New Controls?

Post by MagicManICT »

Koru wrote:How to rotate lifted items, for example chairs to have them in front of the table?
MagicManICT wrote:right click the item while you're holding it to get a ghost, and then you can rotate and shift the ghost to where you want it, and the item you're lifting will be set down in that postion.
Should work for aligning items to the grid, too.
Opinions expressed in this statement are the authors alone and in no way reflect on the game development values of the actual developers.

Return to “The Wizards' Tower”