Launcher icon indicating copy to clipboard operation
Launcher copied to clipboard

No HTML5 support

Open Samistine opened this issue 8 years ago • 12 comments

This isn't working for me: https://samistine.com/modloader/news

Result: https://drive.google.com/a/samistine.com/file/d/0Bxlo02bHRnwzX3VObVh1U1JTWnc/view?usp=drivesdk

Samistine avatar May 17 '16 04:05 Samistine

Unfortunately the "browser" in Java is very bad and there's no straightforward alternative. Java 8+ comes with a proper browser (WebKit) but that would force users to need Java 8 to run the launcher.

If/when I make a new version of the launcher, I'll prob switch out of Java entirely (Electron maybe?).

sk89q avatar May 17 '16 04:05 sk89q

I hate to suggest it but perhaps moving to Java 8 isn't a bad idea @sk89q

Java 7 become EOL after April 2015 (Source) unless the user (highly unlikley) has a support contact with Oracle.

spannerman79 avatar May 17 '16 04:05 spannerman79

The main problem with moving to Java 8 is that a lot of users unknowingly have an old version of Java, and the launcher simply won't run and won't even emit a useful error message to the user.

With Windows, the problem can somewhat be rectified by wrapping the .jar in an .exe but I'm not sure what the situation is with Mac OS X.

sk89q avatar May 17 '16 04:05 sk89q

Also despite Java 7 being EOL, the number of users who still use it is possibly as high as 30%.

wizjany avatar May 17 '16 04:05 wizjany

Is it possible to use java 8 features only when being run by a java 8 jre?

Samistine avatar May 17 '16 05:05 Samistine

Yes, in this particular case. I've considered it but I haven't gotten around to it.

I also haven't actually used the new WebKit browser so I don't know how well it works or how easily it integrates into the UI framework the launcher is currently using.

sk89q avatar May 17 '16 06:05 sk89q

Electron! sounds interesting

James137137 avatar May 17 '16 06:05 James137137

I think Electron is a nice idea but I think the biggest problem is that Electron is a normal binary. Electron is based on Chromium and Chromium is REALY BIG. You can't compile Chromium with 32 Bit because 32 Bit computer havn't enough RAM 😂. Although I had problems with rendering SVG's, its just a news page...

dscso avatar May 23 '16 13:05 dscso

I tried added html5 support to my launcher (forked for this project), about 2 months ago I removed it because I wasn't happy with how much ram it was using plus it required java 8

James137137 avatar May 23 '16 20:05 James137137

Well most people have broadband now, so it's not that big. I'm more worried about memory usage, but in comparison, Java uses a lot of memory as well.

The main plus of Electron is (1) making the launcher look good (like the Battle.net launcher) is extremely easy and (2) it's an active project with a lot of people doing the same thing. There are other options (i.e. C++ and Qt) if you you want to use HTML/CSS UIs but you end up embedding Chrome again anyway, though at least things like the log window don't have to be in Chrome.

sk89q avatar May 23 '16 21:05 sk89q

I Agree the Battle.net Launcher would be amazing!

jtrent238 avatar Oct 07 '16 22:10 jtrent238

See #163 for some code that may help.

jtrent238 avatar Oct 07 '16 23:10 jtrent238