Ren'Py for the web browser

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Message
Author
User avatar
Beuc
Regular
Posts: 65
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py for the web browser

#31 Post by Beuc » Sun Feb 10, 2019 4:24 pm

https://www.patreon.com/posts/week-6-report-24604617


Upgrade Ren'Py to 7.1.4 pre-release - go test the pre-release!

Upgrade Emscripten to 1.38.27 and continue pushing fixes

Disable downloading game.zip from another website for security (XSS-like)

User avatar
Beuc
Regular
Posts: 65
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py for the web browser

#32 Post by Beuc » Sun Feb 24, 2019 4:36 pm

presplash-1_2-comp.png
https://www.patreon.com/posts/week-8-report-24928862

RenPyWeb - Ren'Py in your HTML5 web browser

- Upgrade Ren'Py to current 7.1.4.0 pre-release
- Upgrade Emscripten to 1.38.28
- Minor fixes and clean-ups in RenPyWeb and python-emscripten
- Renpytom plans to work on official integration as soon as the 7.1.4 is ready!
- Update default splash screen :) What do you think?

User avatar
ComputerArt.Club
Veteran
Posts: 409
Joined: Mon May 22, 2017 8:12 am
Completed: Famous Fables, BoPoMoFo: Learn Chinese, Santa's workshop, Cat's Bath, Computer Art Club
Location: Taiwan
Contact:

Re: Ren'Py for the web browser

#33 Post by ComputerArt.Club » Sun Feb 24, 2019 6:43 pm

Well done! This is a very cool project. Is the ball going to be a globe? The sketch kinda looks like Europe and Africa and I can see one island floating beside Europe... better make it two so you have the Britain and Ireland. 8)

User avatar
Beuc
Regular
Posts: 65
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py for the web browser

#34 Post by Beuc » Sun Feb 24, 2019 7:52 pm

Thanks!
I initially meant to use a globe, since all browsers' icons are round and earth-ish.
But now I'm considering keeping things a bit abstract like this - plus I can see we're nearing a regionalism war ;)
I'm open to suggestions / contributions :)

jwilliams77
Newbie
Posts: 20
Joined: Sun Apr 19, 2015 8:35 pm
Contact:

Re: Ren'Py for the web browser

#35 Post by jwilliams77 » Mon Mar 25, 2019 11:11 am

This is very awesome! I just tried one of my games after I read the instructions to make the web version, worked almost perfect in Firefox / Windows 10.

One bug I saw was the 'back' in the tiny menu at the bottom would take me not just to the previous screen, but, way far back in the game when I tested. Also my Ren'py was out of date, but, the same version that worked in Firefox did not work in Google Chrome (error'd out after the loading was done).

Happy to help test, debug or what not further if I can, very, very happy that I found this project on Saturday :)

User avatar
Beuc
Regular
Posts: 65
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py for the web browser

#36 Post by Beuc » Mon Mar 25, 2019 12:47 pm

Thanks for the feedback!

Do you have a testable URL (possibly send it to me in private)?
I never hit the "back button" issue you describe.

Also what error do you get in Chrome?

jwilliams77
Newbie
Posts: 20
Joined: Sun Apr 19, 2015 8:35 pm
Contact:

Re: Ren'Py for the web browser

#37 Post by jwilliams77 » Mon Mar 25, 2019 1:11 pm

In Chrome (incognito or regular) I get the "Aw, Snap!" error message that links to this page:
https://support.google.com/chrome/answer/95669

I did build it with an older version of Ren'py (prior to the 7.2.1.457 update that I have now. I'll try to update the build with the newer version and then send it a server; if I can do that I'll send you a private message with details.

Thanks for the fast reply, I appreciate it.

User avatar
Beuc
Regular
Posts: 65
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py for the web browser

#38 Post by Beuc » Mon Mar 25, 2019 4:25 pm

Last time we hit a chrome crash, it was a size limitation (e.g. splitting a large archive.rpa in multiple files helped).
In the recent RenPyWeb this should be mitigated so unless you have a 800MB file that shouldn't crash for that reason.

Also I just made a new RenPyWeb version that matches the latest Ren'Py (7.2.1.457) - please grab it, as it's better when the versions match :)

jwilliams77
Newbie
Posts: 20
Joined: Sun Apr 19, 2015 8:35 pm
Contact:

Re: Ren'Py for the web browser

#39 Post by jwilliams77 » Mon Mar 25, 2019 4:55 pm

Ah, was going to say, my file is ~1.1 gigabytes or something, which to me was crazy that it even worked locally. I did upload to server to test out and Firefox had persistant messages about the browser being stuck (on Mac) and right now it's gotten all the way to the loading screen.

My PNG files I did run through some basic compression, but, I think a jpg or similar could bring the file down by more than half which would make it more reasonable to test. I'll work on that and post another update in the next day or so.

BTW, how does one split an archive.rpa file into smaller chunks? That could be as easy as the image optimization so I'd be curious to test it out. Also I will update the RenPyWeb as well (download via Github right)?

User avatar
Beuc
Regular
Posts: 65
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py for the web browser

#40 Post by Beuc » Mon Mar 25, 2019 7:41 pm

RenPyWeb currently needs to download the full game before playing, so you'll need to optimize your game if you want your players to be patient enough to play it (100-150MB tops)!
I'm thinking of download and cache strategies that will help with that. But even then this is the web, things need to be lighter.

Splitting archive.rpa probably won't help right in this situation, but you can check https://www.renpy.org/doc/html/build.html#archives .
I don't know what kind of game you're making so depending on the content you can drop audio, use layered images, make a low-res version, split in chapters, etc.

The updated RenPyWeb is at https://renpy.beuc.net/ :)

User avatar
Beuc
Regular
Posts: 65
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py for the web browser

#41 Post by Beuc » Sun Apr 07, 2019 11:12 am

https://www.patreon.com/posts/week-14-report-25937570

- Add playable test on Newgrounds: https://www.newgrounds.com/portal/view/729314
- Start-up time optimization by adding more download compression methods
- Document the current sound jitter, comments welcome
- Panic when renpytom started moving things around in the renpyweb repo ;)

Thanks to everybody who gave feedback in Patreon and Newgrounds comments as well as private messages - I really appreciate it :)

By the way, if you made a NaNoRenO entry this year, may I suggest you test a web version of it? If you did, I would love to hear from you.

Next week I plan to work some more on start-up time / download compression.

User avatar
ComputerArt.Club
Veteran
Posts: 409
Joined: Mon May 22, 2017 8:12 am
Completed: Famous Fables, BoPoMoFo: Learn Chinese, Santa's workshop, Cat's Bath, Computer Art Club
Location: Taiwan
Contact:

Re: Ren'Py for the web browser

#42 Post by ComputerArt.Club » Sun Apr 07, 2019 11:31 am

well done!

User avatar
Beuc
Regular
Posts: 65
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py for the web browser

#43 Post by Beuc » Sun Apr 14, 2019 4:28 pm

https://www.patreon.com/posts/week-15-report-26104744

- Improved sound at last! Sound jitter should be mostly fixed, feedback welcome.
- Work-around chromium's (controversed) autoplay policy, as Newgrounds users reported sound was sometimes muted #6511
- Freshen-up zee.js, laying ground for index.wasm compression (15MB->4MB) on Itch & Newgrounds.

User avatar
ComputerArt.Club
Veteran
Posts: 409
Joined: Mon May 22, 2017 8:12 am
Completed: Famous Fables, BoPoMoFo: Learn Chinese, Santa's workshop, Cat's Bath, Computer Art Club
Location: Taiwan
Contact:

Re: Ren'Py for the web browser

#44 Post by ComputerArt.Club » Mon Apr 15, 2019 10:15 am

Keep on fighting the good fight! It sounds like you are making excellent progress.

User avatar
Beuc
Regular
Posts: 65
Joined: Sat Sep 29, 2018 3:38 pm
Contact:

Re: Ren'Py for the web browser

#45 Post by Beuc » Mon Apr 15, 2019 2:34 pm

Haha, thanks!

Post Reply

Who is online

Users browsing this forum: No registered users