EOL2 web browser version now available!
Moderator: Moporators
EOL2 web browser version now available!
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), Chrome (52.0.2743.82) and Edge (44.17763.1.0).
It does not (and probably won't ever) work on IE.
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.
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), Chrome (52.0.2743.82) and Edge (44.17763.1.0).
It does not (and probably won't ever) work on IE.
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 31 Oct 2020, 18:52, edited 6 times in total.
Re: Elma 2 web browser version now available!
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..=?
maybe easier not to think abouut alöl things thought than not things thought ... or something..=?
Re: Elma 2 web browser version now available!
This. And it's as easy for Linux and Mac users, as it is for Windows users.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 =)
Re: Elma 2 web browser version now available!
I think it got vsync on or dunno, but keys have too slow reaction time.
Re: Elma 2 web browser version now available!
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.Labs wrote:I think it got vsync on or dunno, but keys have too slow reaction time.
Very very cool that you managed this Smibu! GAA Contribution 2016!
Re: Elma 2 web browser version now available!
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
Prestigious member of 14.6x Tutor14 club
Re: Elma 2 web browser version now available!
Not that bad tho, is there a way to change fps?
Game shows i got 59fps is this value norm?
Game shows i got 59fps is this value norm?
-
- Kuski
- Posts: 59
- Joined: 9 Jan 2013, 19:39
Re: Elma 2 web browser version now available!
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?
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?
Re: Elma 2 web browser version now available!
Wow! How awesome is this 
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!

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!

Thorze wrote:I just wanted to make a cool topic like Juish have cool topics..
- Kopaka
- 39mins club
- Posts: 6586
- 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!
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.
I tested in android chrome, it runs, I can navigate menus, but can't select a level because double click is zooming.
Re: Elma 2 web browser version now available!
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.
Re: Elma 2 web browser version now available!
Same on iphone 5Kopaka 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.
Re: Elma 2 web browser version now available!
pasibel to get left alt as alo? it just activates and opens some menus in chrome


holja
Re: Elma 2 web browser version now available!
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.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.
Thorze wrote:I just wanted to make a cool topic like Juish have cool topics..
Re: Elma 2 web browser version now available!
ez solution: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.
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";})();
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.
Re: Elma 2 web browser version now available!
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.
<veezay> antti also gonna get stabbed later this month
<nick-o-matic> niec
My fake plants died because I did not pretend to water them.
<nick-o-matic> niec
My fake plants died because I did not pretend to water them.
Re: Elma 2 web browser version now available!
It is a temporary solution. Use it until Smibu fix it.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.
Re: Elma 2 web browser version now available!
It took longer for you to write that than the 'hassle' itself.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.
39:37,91
Re: Elma 2 web browser version now available!
I dunno, I write quite fast.8-ball wrote:It took longer for you to write that than the 'hassle' itself.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.
<veezay> antti also gonna get stabbed later this month
<nick-o-matic> niec
My fake plants died because I did not pretend to water them.
<nick-o-matic> niec
My fake plants died because I did not pretend to water them.
Re: Elma 2 web browser version now available!
U has impsy sick web elma version and u still complain...Ruben wrote:I dunno, I write quite fast.8-ball wrote:It took longer for you to write that than the 'hassle' itself.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.
Re: Elma 2 web browser version now available!
Is there whole elma physics in js file or in .mem?
Re: Elma 2 web browser version now available!
Totally amazing work! So cool! I have 14,965 on that external which btw is awesome level 

[i cruise, i lev, i live]
Re: Elma 2 web browser version now available!
Maybe there could be a separate button for starting the level.Kopaka wrote:I tested in android chrome, it runs, I can navigate menus, but can't select a level because double click is zooming.
Not sure if possible to suppress the default Alt behavior, but I'll check it.terba wrote:pasibel to get left alt as alo? it just activates and opens some menus in chrome
Oh, looks like the shortcut bug was fixed only partially. I'll check the æåø'¨ thing too.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.
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.dawid wrote:Is there whole elma physics in js file or in .mem?
Re: Elma 2 web browser version now available!
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:

Also, am I stupid for not understanding how to change keys, or is it not possible on FF or something..?

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!!!
(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
Re: Elma 2 web browser version now available!
Press enter before you select the key you want.Igge wrote:Also, am I stupid for not understanding how to change keys, or is it not possible on FF or something..?
Re: Elma 2 web browser version now available!
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.

- Grace
- 38mins club
- Posts: 4826
- 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!
Very impressive, Smibu.
Wander how to find best times etc tho
Wander how to find best times etc tho


___________________________________________________
Targets: 6 Legendary, 19 WC, 24 Pro, 5 Good | 37 Australian Records | AvgTT: 40:09:92
Re: Elma 2 web browser version now available!
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?
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?
Re: Elma 2 web browser version now available!
Probably currently Average FPS ~ monitor refresh rate.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:
They're not saved anywhere yet.Haruhi wrote:Wander how to find best times etc tho
Not yet. It's near on top of todo list. Currently you can only replay your last ride.kinghias wrote:however, i cannot seem to find a play recs functionality, is there any?
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:also, how can i play externals? an integration of levs of some db (elmaonline?) would be great.
Gz, you beat umiz at least. If he didn't improve.kinghias wrote:btw. i got 14:1x in the external :)
It would make sense definitely. But as the results are not saved anywhere, it's a bit hard to have a competition yet.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?
- bosshunter
- Kuski
- Posts: 5
- Joined: 25 Apr 2022, 02:08
Re: EOL2 web browser version now available!
I know this thread is old but I'm making a tool to add external levels to the browser version.
Is this still something that anyone might find useful?

Is this still something that anyone might find useful?

Re: EOL2 web browser version now available!
Not totally the same thing, but maybe it isn't obvious: you can load external levs using URL parameter, for example:
https://m-l.fi/files/eol2/eol2.html?lev ... vel/542728
or multiple levs (this won't autostart any lev, but levs will appear in the external level menu):
https://m-l.fi/files/eol2/eol2.html?lev ... vel/542720
https://m-l.fi/files/eol2/eol2.html?lev ... vel/542728
or multiple levs (this won't autostart any lev, but levs will appear in the external level menu):
https://m-l.fi/files/eol2/eol2.html?lev ... vel/542720
- bosshunter
- Kuski
- Posts: 5
- Joined: 25 Apr 2022, 02:08
Re: EOL2 web browser version now available!
I didn't know that! Thanks!
Re: EOL2 web browser version now available!
How have i never heard about this? Amazing project!
- bosshunter
- Kuski
- Posts: 5
- Joined: 25 Apr 2022, 02:08
Re: EOL2 web browser version now available!
Is there anyway to get the sound working?