[LEGACY] Apoc Lite client - now without installing JOGL!

Forum for alternative clients, mods & discussions on the same.

[LEGACY] Apoc Lite client - now without installing JOGL!

Postby the_portals » Sat Feb 13, 2016 6:27 pm

Now the client no longer needs a custom JOGL installation to function. Cheers!

Changes made from Xcom's source code:
  • Changed 2 URLs in haven/config.java from http://www.havenandhearth.com/res to legacy.havenandhearth.com/res
  • Changes 1 URL in haven/music.java from http://www.havenandhearth.com/res to legacy.havenandhearth.com/res
  • Created several .res sources that were missing for custom commands
  • In haven/rootwidget.java, changed 1 import to work with the most recent version of JOGL
  • Tweaked some hotkeys in the "XTend" menu


DISCLAIMER: I did NOT make this client, I only compiled Xcom's source code. The reason I did this is because there were 7(-ish?) .res files that were missing from Xcom's custom action menu. These included the files necessary for keyboard shortcuts to the inventory, equipment screen, etc., as well as reimplementing Xcom's "blue thunder" combat action.

GITHUB: https://github.com/theportals/Apoc-Lite-for-Legacy
Download link (dropbox): https://www.dropbox.com/s/cv6agqxf4aae8 ... d.zip?dl=0

Installation instructions:

  • Build the source code (instructions below) or download "build.zip"
  • Take all of the files out of build.zip
  • Drag them to your location of choice
  • Double-click run.bat
  • To Build:
  • You will need apache ant
  • Change directory so you can see the folders "src", "resources", and the file build.xml
  • Run ant to build build.xml
  • The completed client will be within the newly created "build" folder
Last edited by the_portals on Thu Apr 28, 2016 3:29 am, edited 4 times in total.
I was in the Northern Army once and you can never take that from me
User avatar
the_portals
 
Posts: 217
Joined: Fri Sep 06, 2013 3:42 am
Location: Brotherhood of the Oak

Re: [LEGACY] Apoc Lite client

Postby shubla » Sat Feb 13, 2016 6:38 pm

I wonder if its keylogged.
I suggest everyone to compile it yourselves from xcoms code. It might be safer
Image
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
User avatar
shubla
 
Posts: 13043
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: [LEGACY] Apoc Lite client

Postby the_portals » Sat Feb 13, 2016 7:09 pm

shubla wrote:I wonder if its keylogged.

It isn't.
I mean, you can check the source code yourself, aside from the .res I literally changed 4 lines of code :P
I was in the Northern Army once and you can never take that from me
User avatar
the_portals
 
Posts: 217
Joined: Fri Sep 06, 2013 3:42 am
Location: Brotherhood of the Oak

Re: [LEGACY] Apoc Lite client

Postby NineWorlds » Sun Feb 21, 2016 6:07 am

Error Im getting.
Also if you could message me, I have a few questions?

Code: Select all
C:\Users\NineWorlds\Desktop\apoc built>Java -Xms256m -Xmx512m -jar haven.jar legacy.havenandhearth.com -r ./res
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/opengl/awt/GLCanvas
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$100(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
        at java.lang.Class.privateGetMethodRecursive(Unknown Source)
        at java.lang.Class.getMethod0(Unknown Source)
        at java.lang.Class.getMethod(Unknown Source)
        at sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
        at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
Caused by: java.lang.ClassNotFoundException: javax.media.opengl.awt.GLCanvas
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 19 more
User avatar
NineWorlds
 
Posts: 84
Joined: Fri Aug 28, 2015 11:01 pm

Re: [LEGACY] Apoc Lite client

Postby the_portals » Mon Feb 22, 2016 7:20 pm

You need to install the JOGL I included, drag all of the files into your JRE's /lib/ext directory
I was in the Northern Army once and you can never take that from me
User avatar
the_portals
 
Posts: 217
Joined: Fri Sep 06, 2013 3:42 am
Location: Brotherhood of the Oak

Re: [LEGACY] Apoc Lite client

Postby tobi » Sun Mar 06, 2016 8:21 am

the_portals wrote:You need to install the JOGL I included, drag all of the files into your JRE's /lib/ext directory


could you plase make screenshots where to attach the other file, cant find it
concrazs on your 200-th post :D
tobi
 
Posts: 115
Joined: Sat Aug 30, 2014 1:37 pm

Re: [LEGACY] Apoc Lite client

Postby borka » Sun Mar 13, 2016 5:22 pm

the way portals suggested:

assuming you've got 64 Bit Windows with actual 64 Bit Java JRE, this would be the folder to copy them over:

Code: Select all
C:\Program Files\Java\jre1.8.0_74\lib\


files needed from apoc build\lib\

Code: Select all
gluegen.jar
gluegen-rt.jar
gluegen-rt-natives-windows-amd64.jar
jogl-all.jar
jogl-all-natives-windows-amd64.jar


While i don't think it's a proper way to do it you might test on your own risk ......better save a copy of untouched Java/lib folder first
Last edited by borka on Thu Mar 24, 2016 2:47 am, edited 1 time in total.
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: [LEGACY] Apoc Lite client

Postby PELMESHK0 » Tue Mar 22, 2016 9:41 pm

I copied all the files from the "lib" directory to my java folder and got the client running, but after I've done that all my Hafen clients like amber stopped working :( Also tried copying just the files that borka suggested and it didn't work.
User avatar
PELMESHK0
 
Posts: 45
Joined: Thu Feb 04, 2010 8:36 pm
Location: Russia, Moscow

Re: [LEGACY] Apoc Lite client

Postby borka » Thu Mar 24, 2016 2:45 am

The first problem you might solve by using 2 ren batch files before and after playing Legacy Apoc - prolly caused by a version conflict with romovs and other hafen clients use newer ones ... and the ones in Java Lib are used as priority ... you might also test whether copying the appropriate Amber libaries to Java/lib (and overwriting) let's you run protals Apoc ...

The second might be caused because no Win 64Bit and Java 64Bit ? for 32 Bit you'd need the 586 natives, on OsX the mac/OsX natives...
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: [LEGACY] Apoc Lite client

Postby Sebthegrand » Tue Apr 05, 2016 3:00 am

Please explain more
how2 win again?
User avatar
Sebthegrand
 
Posts: 133
Joined: Fri Nov 29, 2013 9:08 pm

Next

Return to The Wizards' Tower

Who is online

Users browsing this forum: No registered users and 5 guests