Help for a minimal Linux support

Discussion in 'Tech Support' started by EnkiSand, Mar 27, 2014.

  1. EnkiSand

    EnkiSand New Member

    Greetings!
    I'm trying to run PoxNora naively on Linux. To do so I just installed the client using WINE, then I copied the installation in my home directory. I need to replace the OpenJDK7 with the Oracle JDK because JavaFX is needed and it won't be available in the OpenJDK until version 8 (AFAIK).
    However if I try to run the launcher.jar the Launcher will stuck on "Checking for updates". I imagine that the executable initializes some kind of things for the launcher itself, but is it possible to make it work directly from the jar?
    This is not properly an "easy" installation for Linux, but it could be a beginning, isn't it?

    Thanks for your support!
    EnkiSand
     
    Nemuz likes this.
  2. Nemuz

    Nemuz New Member

    Salute!
    I did what you said about Oracle JDK and got the JavaFX. Then I tryed to make some terminal tests, but there is a need of something more to do, like put a address for authentication or something. check what I did, and if anyone can help me to finish the .sh :

    Got and error that said that cant download the updates.

    terminal command = ~/Games/poxnora/java -Xmx512M -jar launcher.jar
    -----------------------------------
    Site : http://poxnora.devel-int.desertowlgames.com/client/content/
    Remote: http://poxnora.devel-int.desertowlgames.com/client/remote/
    App : App Name
    host : poxnora.devel-int.desertowlgames.com
    port : 22322
    web : http://poxnora.devel-int.desertowlgames.com/
    cltsvc: http://poxnora.devel-int.desertowlgames.com:8080/
    sessio: http://poxnora.devel-int.desertowlgames.com/
    ef:/home/apu/Games/Pox%20Nora/launcher.jar
    ef:/home/apu/Games/Pox%20Nora/launcher.jar
    LOadig: /home/apu/Games/Pox Nora/launcher/index.html
    Loading: ./launcher.index
    Fetching: http://poxnora.devel-int.desertowlgames.com/client/content/launcher.index
    Update Failed: poxnora.devel-int.desertowlgames.com
    REquest action!Exit
    ----------------------------
    launcher_error.png
    Then I decide to try wine, I did it , download the updates. But the fonts looks bad and after push play, the screen go black and the game never load up. wine just did not work for me.

    launcher_wine.png
    So I try again java native, but there still something more needed, maybe because I bypassing jars when using native, not sure, erros is bellow:
    Terminal-command: $~/Games/poxnora/poxnora/java -Xmx512M -jar poxnora.jar
    -----------------------------------------------
    libEGL warning: DRI2: failed to authenticate
    FPSAnimator P1:Thread[GL Display Thread-FPSAWTAnimator-Timer0,6,main]: Task[thread Thread[GL Display Thread-FPSAWTAnimator-Timer0,6,main], stopped false, paused false shouldRun true, shouldStop false -- started true, animating true, paused false, drawable 1, drawablesEmpty false]
    java.net.MalformedURLException: no protocol: UNDEFINED REALM
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at java.net.URL.<init>(Unknown Source)
    at com.poxnora.client.webinterface.WebInterface.getPost(Unknown Source)
    at com.poxnora.client.webinterface.WebInterface.access$100(Unknown Source)
    at com.poxnora.client.webinterface.WebInterface$WebHit.run(Unknown Source)
    JSON OBJECT: {"username":"Nemuz","password":"***"}
    SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
    SLF4J: Defaulting to no-operation (NOP) logger implementation
    SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
    VALIDATING REQUEST: POST http://localhost:8080/client-service/login/auth HTTP/1.1
    HTTPUtil execute ERROR on : http://localhost:8080/client-service/login/auth METHOD: POST
    org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:8080 refused
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190)
    at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:640)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:479)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1066)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1044)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:1035)
    at com.sony.soe.poxnora.shared.http.HTTPUtil.execute(HTTPUtil.java:177)
    at com.poxnora.client.util.LoginUtil.userLogin(Unknown Source)
    at com.poxnora.client.login.LoginForm.getPostGUID(Unknown Source)
    at com.poxnora.client.login.LoginForm.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:127)
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
    ... 12 more
    java.lang.NullPointerException
    at com.poxnora.client.login.LoginForm.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    java.lang.NullPointerException
    at com.poxnora.client.login.LoginForm.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 1/1, reusable (open, marked uncloseable): 1, pending (open in creation order): 2)
    X11Util: Open X11 Display Connections: 1
    X11Util: Open[0]: NamedX11Display[:0, 0x7fac2459fa00, refCount 1, unCloseable true]
    -------------------------------------------------------------------
    poxnora_error.png

    Someone can help?
     
    Last edited: Jun 16, 2014
  3. Senshu

    Senshu Administrator Octopi

    Wow, getting to the login screen is a pretty big improvement. Although we are focusing on the Revamp at some time we would like to look into natively supporting Linux, but if you can get it working on your own that would be a great temporary solution.
     
    Nemuz likes this.
  4. Nemuz

    Nemuz New Member

    Ok, but without the source, navigating in .jars and .class is a huge labyrinth and a mess. So far all I could do, is to make it to update. Took me 5 hours to find how the launcher.jar calls the update, I found that the addresses on it where not updated. Meaning that is the poxnora.exe who give them.

    The solution was not the option I wanted, but I had to hexedit Main.class in Launcher.jar, the code was :

    ...
    (args = new String[8])[0] = "http://poxnora.devel-int.desertowlgames.com/client/content/";
    args[1] = "http://poxnora.devel-int.desertowlgames.com/client/remote/";
    args[2] = "App Name";
    args[3] = "poxnora.devel-int.desertowlgames.com";
    args[4] = "22322";
    args[5] = "http://poxnora.devel-int.desertowlgames.com/";
    args[6] = "http://poxnora.devel-int.desertowlgames.com:8080/";
    args[7] = "http://poxnora.devel-int.desertowlgames.com/";
    ...
    -------------------
    I changed it for :

    ...
    (args = new String[8])[0] = "http://content.poxnora.desertowlgames.com/client/content/";
    args[1] = "http://content.poxnora.desertowlgames.com/client/remote/";
    args[2] = "Pox Nora";
    args[3] = "game.poxnora.desertowlgames.com";
    args[4] = "22322";
    args[5] = "http://poxnora.desertowlgames.com/";
    args[6] = "http://poxnora.desertowlgames.com:8080/";
    args[7] = "http://poxnora.desertowlgames.com/";
    ...
    -------------------
    And that was just luck, find a "output.log" in logs with the new addresses, but that just make the Launcher do the update, nothing more.

    launcher_update-fine_everything-else-error.png

    There is not easy solution, it have to be done by editing the .jars. I make it download the update, but without knowing the addresses for the news, promotion, knowing if the launcher.jar throw the address for the authentication to poxnora.jar or how is that poxnora.jar authenticate user and password I cant go further than this.

    I have a limited knowledge of java, not the tools, neither the information required. The poxnora.exe do more than just call jar, it does override information. I cant just bypass it.

    I will give a try to study the .jar codes, but without alot of help, I dont think I can do it. But if you the developers, update the launcher.jar and poxnora.jar update addresses and authentication addresses, plus avoid the override of that information from poxnora.exe, they can be call from a simple command in linux and let to play the game native on linux. Thanks 8^D
     
    Last edited: Jun 16, 2014
  5. Nemuz

    Nemuz New Member

    Java SE 8 (Java - JDK , JRE, JFX) is available for Linux now. Check Oracle download page to do the download, remember to purge/remove the old version before install the new version 8. For Ubuntu/Debian and similar variants use this Easy Step By Step page, it had PPA.

    This is just the first step, I trying to find out why the game it does not work by just calling the java files. My guess so far is that the windows executables (pandora.exe and restart.exe) create some extra instructions to make it work, meaning that the game is not full java anymore. Next step is try to find what those executables do, to then try to emulate the effect. Anyone who can help, please do. Thanks
     
  6. iPox

    iPox Forum Royalty

    I run Pox Nora with PlayOnLinux, Wine 1.7.9, which works just fine.
    Except for the fonts, which look ugly.
     

Share This Page