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: 476
Joined: 15 Jun 2007, 13:17
Location: Finland

EOL2 web browser version now available!

Post by Smibu »

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.
Last edited by Smibu on 31 Oct 2020, 18:52, edited 6 times in total.
epp
Kuski
Posts: 553
Joined: 19 Aug 2002, 16:54
Location: denmark

Re: Elma 2 web browser version now available!

Post by epp »

Amazing!
Image ^_^
User avatar
Lousku
Kuski
Posts: 2925
Joined: 5 Feb 2010, 00:25
Team: BAP
Location: expensive land of dads

Re: Elma 2 web browser version now available!

Post by Lousku »

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: 413
Joined: 21 Feb 2016, 17:59

Re: Elma 2 web browser version now available!

Post by Sunshine »

very nice!
User avatar
8-ball
39mins club
Posts: 4496
Joined: 9 May 2003, 13:30
Team: MiE
Location: Riga, Latvia

Re: Elma 2 web browser version now available!

Post by 8-ball »

nice af!
39:37,91
User avatar
Lukazz
36mins club
Posts: 5241
Joined: 4 Jul 2004, 12:10

Re: Elma 2 web browser version now available!

Post by Lukazz »

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
37mins club
Posts: 1213
Joined: 2 May 2005, 14:20
Team: SPEED
Location: Hungary
Contact:

Re: Elma 2 web browser version now available!

Post by Labs »

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

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

Re: Elma 2 web browser version now available!

Post by Bjenn »

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
37mins club
Posts: 1552
Joined: 14 Apr 2008, 17:58
Team: MiE
Location: smedjebacka

Re: Elma 2 web browser version now available!

Post by roope »

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
37mins club
Posts: 1213
Joined: 2 May 2005, 14:20
Team: SPEED
Location: Hungary
Contact:

Re: Elma 2 web browser version now available!

Post by Labs »

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

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

Image
farnsworth
Kuski
Posts: 59
Joined: 9 Jan 2013, 19:39

Re: Elma 2 web browser version now available!

Post by farnsworth »

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

Re: Elma 2 web browser version now available!

Post by Smibu »

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: 995
Joined: 7 Jun 2007, 20:35
Team: TR
Location: Sandnes, Norway

Re: Elma 2 web browser version now available!

Post by Polarix »

This is fun.
Image
User avatar
Xiphias
39mins club
Posts: 4098
Joined: 23 Nov 2004, 23:05

Re: Elma 2 web browser version now available!

Post by Xiphias »

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
39mins club
Posts: 6610
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 »

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: 995
Joined: 7 Jun 2007, 20:35
Team: TR
Location: Sandnes, Norway

Re: Elma 2 web browser version now available!

Post by Polarix »

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: 995
Joined: 7 Jun 2007, 20:35
Team: TR
Location: Sandnes, Norway

Re: Elma 2 web browser version now available!

Post by Polarix »

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: 19
Joined: 29 Apr 2003, 14:11

Re: Elma 2 web browser version now available!

Post by terba »

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

:beer:
holja
User avatar
Zweq
34mins club
Posts: 4055
Joined: 28 Nov 2002, 15:54
Location: suo mesta

Re: Elma 2 web browser version now available!

Post by Zweq »

wow nobel prize. This is definitely the future
Image
User avatar
Xiphias
39mins club
Posts: 4098
Joined: 23 Nov 2004, 23:05

Re: Elma 2 web browser version now available!

Post by Xiphias »

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: 176
Joined: 10 May 2014, 19:23

Re: Elma 2 web browser version now available!

Post by dawid »

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: 836
Joined: 31 Dec 2012, 18:07
Location: Oslo, Norway

Re: Elma 2 web browser version now available!

Post by Ruben »

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.
User avatar
dawid
Kuski
Posts: 176
Joined: 10 May 2014, 19:23

Re: Elma 2 web browser version now available!

Post by dawid »

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: 4496
Joined: 9 May 2003, 13:30
Team: MiE
Location: Riga, Latvia

Re: Elma 2 web browser version now available!

Post by 8-ball »

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: 836
Joined: 31 Dec 2012, 18:07
Location: Oslo, Norway

Re: Elma 2 web browser version now available!

Post by Ruben »

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.
<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.
User avatar
dawid
Kuski
Posts: 176
Joined: 10 May 2014, 19:23

Re: Elma 2 web browser version now available!

Post by dawid »

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: 176
Joined: 10 May 2014, 19:23

Re: Elma 2 web browser version now available!

Post by dawid »

Is there whole elma physics in js file or in .mem?
User avatar
umiz
Kuski
Posts: 381
Joined: 22 Oct 2005, 09:32

Re: Elma 2 web browser version now available!

Post by umiz »

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: 476
Joined: 15 Jun 2007, 13:17
Location: Finland

Re: Elma 2 web browser version now available!

Post by Smibu »

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: 6393
Joined: 7 Apr 2007, 12:15
Location: Stockholm, Sweden

Re: Elma 2 web browser version now available!

Post by Igge »

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: 5469
Joined: 21 May 2002, 08:05
Location: Oslo, Norway
Contact:

Re: Elma 2 web browser version now available!

Post by SveinR »

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: 176
Joined: 10 May 2014, 19:23

Re: Elma 2 web browser version now available!

Post by dawid »

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
38mins club
Posts: 4843
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 »

Very impressive, Smibu.

Wander how to find best times etc tho
Image Cyberscore! Image
___________________________________________________
Image
Targets: 6 Legendary, 23 WC, 20 Pro, 5 Good | AvgTT: 39:59:96
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 »

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: 476
Joined: 15 Jun 2007, 13:17
Location: Finland

Re: Elma 2 web browser version now available!

Post by Smibu »

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.
User avatar
bosshunter
Kuski
Posts: 5
Joined: 25 Apr 2022, 02:08

Re: EOL2 web browser version now available!

Post by bosshunter »

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?

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

Re: EOL2 web browser version now available!

Post by Smibu »

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
User avatar
bosshunter
Kuski
Posts: 5
Joined: 25 Apr 2022, 02:08

Re: EOL2 web browser version now available!

Post by bosshunter »

I didn't know that! Thanks!
iltsu
37mins club
Posts: 248
Joined: 25 Aug 2011, 19:15
Team: EF

Re: EOL2 web browser version now available!

Post by iltsu »

How have i never heard about this? Amazing project!
User avatar
bosshunter
Kuski
Posts: 5
Joined: 25 Apr 2022, 02:08

Re: EOL2 web browser version now available!

Post by bosshunter »

Is there anyway to get the sound working?
Post Reply