Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building MySlither #2

Closed
dickbalaska opened this issue Jul 10, 2019 · 5 comments
Closed

Building MySlither #2

dickbalaska opened this issue Jul 10, 2019 · 5 comments

Comments

@dickbalaska
Copy link

dickbalaska commented Jul 10, 2019

I built MySlither / dev branch and had three issues.

  1. Java-WebSocket-1.4.0 required changes to the MySlitherWebSocketClient
    -import org.java_websocket.drafts.Draft_17;
    +import org.java_websocket.drafts.Draft_6455;
    -super(serverUri, new Draft_17(), HEADER);
    +super(serverUri, new Draft_6455(), HEADER);

  2. Java-WebSocket also required slf4j-api and slf4j-simple

  3. I couldn't get darcula to work. Maybe there's a font not on my Ubuntu system?
    Exception in thread "main" java.lang.ExceptionInInitializerError
    at com.bulenkov.iconloader.IconLoader.(IconLoader.java:53)
    at com.bulenkov.darcula.DarculaLaf.getDefaults(DarculaLaf.java:97)
    at javax.swing.UIManager.setLookAndFeel(UIManager.java:539)
    at javax.swing.UIManager.setLookAndFeel(UIManager.java:583)
    at de.mat2095.my_slither.Main.main(Main.java:11)
    Caused by: java.lang.NullPointerException
    at com.bulenkov.iconloader.util.UIUtil.initSystemFontData(UIUtil.java:254)
    at com.bulenkov.iconloader.util.JBUI.calculateScaleFactor(JBUI.java:47)
    at com.bulenkov.iconloader.util.JBUI.(JBUI.java:33)
    ... 5 more

After that, it looks really good!

@Mat2095
Copy link
Owner

Mat2095 commented Jul 11, 2019

Hm, I really should add a build-script. I was unsing an older version of Java-WebSocket, where also I had no slf4j dependencies.

There seems to be two issues with darcula:

@Mat2095
Copy link
Owner

Mat2095 commented Jul 11, 2019

In the mean time, this fork seems to fix some things (haven't tried it though):
https://github.com/Flame239/slitherio
It is a maven-project, seems to use a newer websocket-library and has the darcula workaround.

@dickbalaska
Copy link
Author

I added a build.gradle so I could build/run an uberjar (vs. running in the memory hog eclipse)
https://github.com/dickbalaska/MySlither/blob/dev/build.gradle

@Mat2095
Copy link
Owner

Mat2095 commented Jul 11, 2019

I fixed these issues on master and updated to protocol version 11.

@dickbalaska
Copy link
Author

Thank you for the darcula fix. I'm going to stick to branch dev for now because EaterBot is my favorite feature. (I'm using it on my server.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants