EOL2 web browser version now available!

Feature requests and ideas for the new unofficial versions of Elma and general talk related to those.

Moderator: Moporators

Post Reply
Smibu
Kuski
Posts: 458
Joined: 15 Jun 2007, 13:17
Location: Finland

EOL2 web browser version now available!

Post by Smibu » 24 Jul 2016, 19:35

It took some effort, but it's finally done!

eol2.html

It has only a few differences/shortcomings compared to the desktop version:

* Ingame fullscreen options have no effect. It is fullscreen by default (the size of the browser window).
* Clicking Exit does not do anything - just close the browser tab etc.
* Any customized settings are lost if you close the tab.

(List updated for v0.5.1.)

I think most/all of these problems are fixable.

I've tested it successfully on Firefox (47.0.1) and Chrome (52.0.2743.82). Both work, but playing on Chrome might be slightly slower, not sure.

It currently does not work on IE or Edge because it uses an extra WebGL feature (vertex array objects) which is not available on those browsers. IE is unlikely to ever work because it has been discontinued.

I didn't test other browsers. But I'm sure someone else can now - so go and test! :)

Btw, you can also run it locally. Download this zip and simply open eol2.html with Firefox. Chrome requires more - you need to launch a local HTTP server to get it working. For example, type "python -m http.server" in command line in the directory where the 4 files are and go to localhost:8000/eol2.html.
Last edited by Smibu on 22 Dec 2017, 23:29, edited 4 times in total.

epp
Kuski
Posts: 549
Joined: 19 Aug 2002, 16:54
Location: denmark

Re: Elma 2 web browser version now available!

Post by epp » 24 Jul 2016, 19:46

Amazing!
Image ^_^

User avatar
Lousku
Kuski
Posts: 2866
Joined: 5 Feb 2010, 00:25
Team: BAP
Location: expensive land of dads

Re: Elma 2 web browser version now available!

Post by Lousku » 25 Jul 2016, 02:01

This could be pretty big in terms of new players. No need to go through that installation process just to try an old game you vaguely remember playing 16 years ago. It's not actually difficult but that step probably deters a lot of potential players. Now they can try it in seconds. Nice job Smibu =)
then again i don't know anything
maybe easier not to think abouut alöl things thought than not things thought ... or something..=?

User avatar
Sunshine
Kuski
Posts: 343
Joined: 21 Feb 2016, 17:59

Re: Elma 2 web browser version now available!

Post by Sunshine » 25 Jul 2016, 06:53

very nice!
Elma Online DL: HERE.

User avatar
8-ball
39mins club
Posts: 4467
Joined: 9 May 2003, 13:30
Team: BAP
Location: Valmiera, Latvia

Re: Elma 2 web browser version now available!

Post by 8-ball » 25 Jul 2016, 07:12

nice af!
39:37,91

User avatar
Lukazz
36mins club
Posts: 5218
Joined: 4 Jul 2004, 12:10

Re: Elma 2 web browser version now available!

Post by Lukazz » 25 Jul 2016, 08:20

Lousku wrote:This could be pretty big in terms of new players. No need to go through that installation process just to try an old game you vaguely remember playing 16 years ago. It's not actually difficult but that step probably deters a lot of potential players. Now they can try it in seconds. Nice job Smibu =)
This. And it's as easy for Linux and Mac users, as it is for Windows users.
TT: 36:59:53 || Avg TT: 38:09:65

User avatar
Labs
38mins club
Posts: 1007
Joined: 2 May 2005, 14:20
Team: SPEED
Location: Hungary
Contact:

Re: Elma 2 web browser version now available!

Post by Labs » 25 Jul 2016, 12:52

I think it got vsync on or dunno, but keys have too slow reaction time.
Team SPEED

Image

i love everyone :*

User avatar
Bjenn
35mins club
Posts: 2318
Joined: 25 Apr 2007, 14:23
Team: EF
Location: Östersund, Sweden

Re: Elma 2 web browser version now available!

Post by Bjenn » 25 Jul 2016, 13:55

Labs wrote:I think it got vsync on or dunno, but keys have too slow reaction time.
That's because it's webbased, it's not very efficient I guess, it had a bit slow reaction time for me as well in Chrome, haven't tried Firefox.

Very very cool that you managed this Smibu! GAA Contribution 2016!

User avatar
roope
38mins club
Posts: 1515
Joined: 14 Apr 2008, 17:58
Team: MiE
Location: smedjebacka

Re: Elma 2 web browser version now available!

Post by roope » 25 Jul 2016, 14:10

Said this in IRC but can say here too; I have very good high fps touch in it, so I don't think your problem is because it's web based.
Team MiE - MiE Cup 1
Prestigious member of 14.6x Tutor14 club

User avatar
Labs
38mins club
Posts: 1007
Joined: 2 May 2005, 14:20
Team: SPEED
Location: Hungary
Contact:

Re: Elma 2 web browser version now available!

Post by Labs » 25 Jul 2016, 17:59

Not that bad tho, is there a way to change fps?

Game shows i got 59fps is this value norm?
Team SPEED

Image

i love everyone :*

farnsworth
Kuski
Posts: 41
Joined: 9 Jan 2013, 19:39

Re: Elma 2 web browser version now available!

Post by farnsworth » 26 Jul 2016, 13:47

Amazing

Smibu
Kuski
Posts: 458
Joined: 15 Jun 2007, 13:17
Location: Finland

Re: Elma 2 web browser version now available!

Post by Smibu » 26 Jul 2016, 17:04

Labs: I have about 60 fps too. I haven't tried yet if it's possible to adjust it in browser.

But you can change the physics FPS from options of course. Default is 500.

I heard it also works on Opera (Chris tested). Anyone tried with iPad or similar?

User avatar
Polarix
Kuski
Posts: 994
Joined: 7 Jun 2007, 20:35
Team: TR
Location: Sandnes, Norway

Re: Elma 2 web browser version now available!

Post by Polarix » 26 Jul 2016, 21:49

This is fun.
Image

User avatar
Xiphias
39mins club
Posts: 4052
Joined: 23 Nov 2004, 23:05

Re: Elma 2 web browser version now available!

Post by Xiphias » 27 Jul 2016, 10:40

Wow! How awesome is this :D
I tested on Safari Version 9.1 (11601.5.17.1)
The game works, but fullscreen button in that emscripten tool does not work. And I cannot change player keys so it is difficult to play the game since I have global hotkeys on Mac that use ctrl+arrows to change desktops.

FPS permanently displays as 59-60 fps after each run, but in-game I cannot get vsync bug so the FPS must be higher. I tried with 500 and 999 fps in-game.

Amazing work! :beer:
Thorze wrote:I just wanted to make a cool topic like Juish have cool topics..

User avatar
Kopaka
Kuski
Posts: 6420
Joined: 23 May 2002, 13:59
Team: LAME
Location: In a northern danish city beating YOUR record.
Contact:

Re: Elma 2 web browser version now available!

Post by Kopaka » 27 Jul 2016, 11:32

Browsers tend to run at 60fps, so I doubt you can get it higher.

I tested in android chrome, it runs, I can navigate menus, but can't select a level because double click is zooming.

User avatar
Polarix
Kuski
Posts: 994
Joined: 7 Jun 2007, 20:35
Team: TR
Location: Sandnes, Norway

Re: Elma 2 web browser version now available!

Post by Polarix » 27 Jul 2016, 16:10

Are you sure you can not change player keys? Mouseclick on the button you want to change so the color becomes green, and then press "Enter" and then press designated button.
Image

User avatar
Polarix
Kuski
Posts: 994
Joined: 7 Jun 2007, 20:35
Team: TR
Location: Sandnes, Norway

Re: Elma 2 web browser version now available!

Post by Polarix » 27 Jul 2016, 16:15

Kopaka wrote:Browsers tend to run at 60fps, so I doubt you can get it higher.

I tested in android chrome, it runs, I can navigate menus, but can't select a level because double click is zooming.
Same on iphone 5
Image

terba
Kuski
Posts: 15
Joined: 29 Apr 2003, 14:11

Re: Elma 2 web browser version now available!

Post by terba » 29 Jul 2016, 08:50

pasibel to get left alt as alo? it just activates and opens some menus in chrome

:beer:
holja

User avatar
Zweq
35mins club
Posts: 3912
Joined: 28 Nov 2002, 15:54
Location: suo mesta

Re: Elma 2 web browser version now available!

Post by Zweq » 29 Jul 2016, 08:56

wow nobel prize. This is definitely the future
Image

User avatar
Xiphias
39mins club
Posts: 4052
Joined: 23 Nov 2004, 23:05

Re: Elma 2 web browser version now available!

Post by Xiphias » 29 Jul 2016, 12:59

Polarix wrote:Are you sure you can not change player keys? Mouseclick on the button you want to change so the color becomes green, and then press "Enter" and then press designated button.
You are right it was possible to change. I didn't know you had to press Enter key first. Although there are many keys which are not possible to set such as æåø'¨characters and "c" for instance, because c is the shortcut for Cancel on that window and therefore the window closes.
Thorze wrote:I just wanted to make a cool topic like Juish have cool topics..

User avatar
dawid
Kuski
Posts: 171
Joined: 10 May 2014, 19:23

Re: Elma 2 web browser version now available!

Post by dawid » 1 Aug 2016, 20:25

Smibu wrote:* If your screen is very small, you may get a vertical scrollbar because the page elements (header + canvas) don't fit in the page. In that case, playing with arrow keys becomes a bit annoying because up/down arrows will also move the scroll position. You can probably remove the header with browser dev tools to get more space or press F11 to get rid of the browser menus.
ez solution:
1. Add new bookmark. In bookmark address paste this shit:

Code: Select all

javascript:(function(){document.getElementsByClassName("emscripten_border")[0].style.position="fixed";document.getElementsByClassName("emscripten_border")[0].style.top="0px";})();
2. Open elma2 in browser. Click on your bookmark.
3. enjoy.

It eliminate scrollbar problem but if elma window is too large (can't see bottom of the window) try press F11 or just zoom page with ctrl + mousewheel.

User avatar
Ruben
Kuski
Posts: 758
Joined: 31 Dec 2012, 18:07
Location: Oslo, Norway

Re: Elma 2 web browser version now available!

Post by Ruben » 2 Aug 2016, 00:27

How about the programmers just fix it (it shouldn't be too hard?), in stead of requiring the players to go through all that hassle. I also have this problem.
My fake plants died because I did not pretend to water them.

User avatar
dawid
Kuski
Posts: 171
Joined: 10 May 2014, 19:23

Re: Elma 2 web browser version now available!

Post by dawid » 2 Aug 2016, 06:29

Ruben wrote:How about the programmers just fix it (it shouldn't be too hard?), in stead of requiring the players to go through all that hassle. I also have this problem.
It is a temporary solution. Use it until Smibu fix it.

User avatar
8-ball
39mins club
Posts: 4467
Joined: 9 May 2003, 13:30
Team: BAP
Location: Valmiera, Latvia

Re: Elma 2 web browser version now available!

Post by 8-ball » 2 Aug 2016, 11:20

Ruben wrote:How about the programmers just fix it (it shouldn't be too hard?), in stead of requiring the players to go through all that hassle. I also have this problem.
It took longer for you to write that than the 'hassle' itself.
39:37,91

User avatar
Ruben
Kuski
Posts: 758
Joined: 31 Dec 2012, 18:07
Location: Oslo, Norway

Re: Elma 2 web browser version now available!

Post by Ruben » 2 Aug 2016, 12:39

8-ball wrote:
Ruben wrote:How about the programmers just fix it (it shouldn't be too hard?), in stead of requiring the players to go through all that hassle. I also have this problem.
It took longer for you to write that than the 'hassle' itself.
I dunno, I write quite fast.
My fake plants died because I did not pretend to water them.

User avatar
dawid
Kuski
Posts: 171
Joined: 10 May 2014, 19:23

Re: Elma 2 web browser version now available!

Post by dawid » 2 Aug 2016, 13:25

Ruben wrote:
8-ball wrote:
Ruben wrote:How about the programmers just fix it (it shouldn't be too hard?), in stead of requiring the players to go through all that hassle. I also have this problem.
It took longer for you to write that than the 'hassle' itself.
I dunno, I write quite fast.
U has impsy sick web elma version and u still complain...

User avatar
dawid
Kuski
Posts: 171
Joined: 10 May 2014, 19:23

Re: Elma 2 web browser version now available!

Post by dawid » 2 Aug 2016, 20:07

Is there whole elma physics in js file or in .mem?

User avatar
umiz
Kuski
Posts: 312
Joined: 22 Oct 2005, 09:32

Re: Elma 2 web browser version now available!

Post by umiz » 3 Aug 2016, 07:08

Totally amazing work! So cool! I have 14,965 on that external which btw is awesome level :)
[i cruise, i lev, i live]

Smibu
Kuski
Posts: 458
Joined: 15 Jun 2007, 13:17
Location: Finland

Re: Elma 2 web browser version now available!

Post by Smibu » 3 Aug 2016, 11:47

Kopaka wrote:I tested in android chrome, it runs, I can navigate menus, but can't select a level because double click is zooming.
Maybe there could be a separate button for starting the level.
terba wrote:pasibel to get left alt as alo? it just activates and opens some menus in chrome
Not sure if possible to suppress the default Alt behavior, but I'll check it.
Xiphias wrote:Although there are many keys which are not possible to set such as æåø'¨characters and "c" for instance, because c is the shortcut for Cancel on that window and therefore the window closes.
Oh, looks like the shortcut bug was fixed only partially. I'll check the æåø'¨ thing too.
dawid wrote:Is there whole elma physics in js file or in .mem?
I don't know more about those two files than what is said in the documentation: https://kripken.github.io/emscripten-si ... ialization So I guess .mem does not contain any code but may have some initial variable values etc.

User avatar
Igge
38mins club
Posts: 6295
Joined: 7 Apr 2007, 12:15
Location: Stockholm, Sweden

Re: Elma 2 web browser version now available!

Post by Igge » 4 Aug 2016, 20:33

Very cool! FPS seems to be based on monitor frequency rather than the browser itself? Using a 120hz monitor I get 119 FPS average on any level I play:
Image

Also, am I stupid for not understanding how to change keys, or is it not possible on FF or something..?
John: lol hittade ett popcorn i naveln
(19:52:06) (@Madnezz) The Golden Apple Award goes to.....
(19:52:36) (@Madnezz) ib9814.lev by igge!!!
Zweq wrote:99.9999% of nabs haven't even opened the book yet and most of those that have are still on the first pages

User avatar
SveinR
Moporator
Posts: 5372
Joined: 21 May 2002, 08:05
Location: Oslo, Norway
Contact:

Re: Elma 2 web browser version now available!

Post by SveinR » 4 Aug 2016, 22:01

Igge wrote:Also, am I stupid for not understanding how to change keys, or is it not possible on FF or something..?
Press enter before you select the key you want.
Was it cast for the mass who burn and toil?
Or for the vultures who thirst for blood and oil?
Rules | FAQ

User avatar
dawid
Kuski
Posts: 171
Joined: 10 May 2014, 19:23

Re: Elma 2 web browser version now available!

Post by dawid » 14 Aug 2016, 02:36

So littel response :( everybody plays web elma (welma?) and has no tiem to discuss? Smibu, it has so little response that it looks like there is no reason to continue this project even if it is mega great and GAA project ofc. Is it now easier to convert ur every elma2 update to web version or u'll have many problems with each update? Dunno how do u develop elma2 and elmanager but imo u should focus on elma2. The progress goes very slowly.

User avatar
Grace
39mins club
Posts: 4685
Joined: 19 Nov 2005, 10:45
Location: Deep in your Imagination, Twirling your Dreams and Weaving your thoughts.

Re: Elma 2 web browser version now available!

Post by Grace » 20 Aug 2016, 07:10

Very impressive, Smibu.

Wander how to find best times etc tho
Image Cyberscore! Image
___________________________________________________
Image
Targets: 4 Legendary, 15 WC, 30 Pro, 5 Good | 35 Australian Records | AvgTT: 40:14:34

User avatar
kinghias
Kuski
Posts: 860
Joined: 9 May 2004, 08:56
Location: Vienna

Re: Elma 2 web browser version now available!

Post by kinghias » 12 Sep 2016, 21:16

very nice, thanks a lot!

haven't touched elma in felt years, this got me cruising again. however, i cannot seem to find a play recs functionality, is there any?

also, how can i play externals? an integration of levs of some db (elmaonline?) would be great.

btw. i got 14:1x in the external :)

edit: i also love to see (max.) speed during the run which left me wondering if there is a competition about the highest (rotational) speeds in internals?

Smibu
Kuski
Posts: 458
Joined: 15 Jun 2007, 13:17
Location: Finland

Re: Elma 2 web browser version now available!

Post by Smibu » 13 Sep 2016, 18:46

Igge wrote:Very cool! FPS seems to be based on monitor frequency rather than the browser itself? Using a 120hz monitor I get 119 FPS average on any level I play:
Probably currently Average FPS ~ monitor refresh rate.
Haruhi wrote:Wander how to find best times etc tho
They're not saved anywhere yet.
kinghias wrote:however, i cannot seem to find a play recs functionality, is there any?
Not yet. It's near on top of todo list. Currently you can only replay your last ride.
kinghias wrote:also, how can i play externals? an integration of levs of some db (elmaonline?) would be great.
There's only one external bundled in the web version to keep the size small. Would be easy to add more. It can't see what's in your hard drive. Integration is of course on todo list at some position.
kinghias wrote:btw. i got 14:1x in the external :)
Gz, you beat umiz at least. If he didn't improve.
kinghias wrote:edit: i also love to see (max.) speed during the run which left me wondering if there is a competition about the highest (rotational) speeds in internals?
It would make sense definitely. But as the results are not saved anywhere, it's a bit hard to have a competition yet.

Post Reply