Ren'Py homebrew port to Nintendo Switch

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
uyjulian
Regular
Posts: 64
Joined: Sun Mar 08, 2015 1:40 pm
Github: uyjulian
Contact:

Re: Ren'Py homebrew port to Nintendo Switch

#16 Post by uyjulian » Sat Aug 24, 2019 1:58 pm

Note about launching taking a couple of minutes: Compile your py and rpy files before you package them up in romfs.

User avatar
uyjulian
Regular
Posts: 64
Joined: Sun Mar 08, 2015 1:40 pm
Github: uyjulian
Contact:

Re: Ren'Py homebrew port to Nintendo Switch

#17 Post by uyjulian » Tue Sep 03, 2019 1:27 am

Version 1.3 is now out. Please download from https://github.com/uyjulian/renpy-switc ... s/tag/v1.3 . The port has been rebased on top of Ren'Py 7.3.2, and more modules have been added.

User avatar
uyjulian
Regular
Posts: 64
Joined: Sun Mar 08, 2015 1:40 pm
Github: uyjulian
Contact:

Re: Ren'Py homebrew port to Nintendo Switch

#18 Post by uyjulian » Sat Sep 14, 2019 7:03 pm

To reduce the amount of data aborts, set "config.autosave_frequency" to "None" and "config.autosave_on_choice" to "False".

I'm working on figuring out why data abort occurs when using Album override with nx-hbmenu v3.1.1.
I'm working on figuring out why data abort occurs sooner when "config.use_cpickle" is set to "False" compared to when "config.use_cpickle" is set to "True".

User avatar
uyjulian
Regular
Posts: 64
Joined: Sun Mar 08, 2015 1:40 pm
Github: uyjulian
Contact:

Re: Ren'Py homebrew port to Nintendo Switch

#19 Post by uyjulian » Tue Sep 17, 2019 1:56 am

Before porting your Ren'Py project using this project... check to make sure that it works with mainline Ren'Py 7.3.2. If it doesn't work there, it probably won't work here.

Next release will probably be when I upstream touch event code.

User avatar
uyjulian
Regular
Posts: 64
Joined: Sun Mar 08, 2015 1:40 pm
Github: uyjulian
Contact:

Re: Ren'Py homebrew port to Nintendo Switch

#20 Post by uyjulian » Wed Sep 18, 2019 4:47 pm

Autosave does work.

Threading... not so much. Leaked resources? Not sure.

On line 511 of loadsave.py, change

Code: Select all

def force_autosave(take_screenshot=False, block=False):
to

Code: Select all

def force_autosave(take_screenshot=False, block=True):

User avatar
uyjulian
Regular
Posts: 64
Joined: Sun Mar 08, 2015 1:40 pm
Github: uyjulian
Contact:

Re: Ren'Py homebrew port to Nintendo Switch

#21 Post by uyjulian » Sun Sep 22, 2019 2:13 am

Version 1.4 has been released. Please check out the changelog and binaries. https://github.com/uyjulian/renpy-switc ... s/tag/v1.4

User avatar
uyjulian
Regular
Posts: 64
Joined: Sun Mar 08, 2015 1:40 pm
Github: uyjulian
Contact:

Re: Ren'Py homebrew port to Nintendo Switch

#22 Post by uyjulian » Wed Oct 02, 2019 2:24 am

Version 1.5 has been released. Please view the changelog. https://github.com/uyjulian/renpy-switc ... s/tag/v1.5

User avatar
uyjulian
Regular
Posts: 64
Joined: Sun Mar 08, 2015 1:40 pm
Github: uyjulian
Contact:

Re: Ren'Py homebrew port to Nintendo Switch

#23 Post by uyjulian » Thu Oct 03, 2019 12:24 am

I noticed an issue with controllers not working. This will be fixed in the next release.

The next release is going to be focused on stability, ensuring that no errors occur while running aging tests.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 2713
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Ren'Py homebrew port to Nintendo Switch

#24 Post by Imperf3kt » Thu Oct 03, 2019 12:30 am

Following your progress makes me regret not owning a Switch.
Keep up the good work.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Todo list:
Actually finish a project

User avatar
uyjulian
Regular
Posts: 64
Joined: Sun Mar 08, 2015 1:40 pm
Github: uyjulian
Contact:

Re: Ren'Py homebrew port to Nintendo Switch

#25 Post by uyjulian » Sat Oct 05, 2019 11:35 pm

Good news: The error causing a data abort (due to a memory allocation failure) has been fixed and will be in the next release.
Bad news: Ren'Py has a memory leak, so you will need to roll back, save the game, restart the game, and load the game.

User avatar
uyjulian
Regular
Posts: 64
Joined: Sun Mar 08, 2015 1:40 pm
Github: uyjulian
Contact:

Re: Ren'Py homebrew port to Nintendo Switch

#26 Post by uyjulian » Wed Oct 09, 2019 12:48 pm

Version 1.6 has been released. Please view the changelog and try out the binaries. https://github.com/uyjulian/renpy-switc ... s/tag/v1.6

This will probably be the last release for a while unless show-stopping bugs show up.
If nvdec gets implemented, I'll release another version with hardware video decoding support.

User avatar
uyjulian
Regular
Posts: 64
Joined: Sun Mar 08, 2015 1:40 pm
Github: uyjulian
Contact:

Re: Ren'Py homebrew port to Nintendo Switch

#27 Post by uyjulian » Sat Nov 02, 2019 1:12 am

I finally got myself a PlayStation Vita, so I'll be doing a port there also.

User avatar
Andredron
Veteran
Posts: 345
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: Ren'Py homebrew port to Nintendo Switch

#28 Post by Andredron » Sat Nov 16, 2019 8:24 pm

uyjulian wrote:
Sat Nov 02, 2019 1:12 am
I finally got myself a PlayStation Vita, so I'll be doing a port there also.
Hi, question. Do you have a playpay or whatever calculation, send you a denyuzhku?

I be a pig if I don’t support you
I know, I'm writing terribly in English.

I'm writing a Renpy textbook (in Russian). https://yadi.sk/d/ZX_DonP63USRru Update 22.06.18

Honest Critique

User avatar
uyjulian
Regular
Posts: 64
Joined: Sun Mar 08, 2015 1:40 pm
Github: uyjulian
Contact:

Re: Ren'Py homebrew port to Nintendo Switch

#29 Post by uyjulian » Sun Nov 17, 2019 1:01 am

Andredron wrote:
Sat Nov 16, 2019 8:24 pm
uyjulian wrote:
Sat Nov 02, 2019 1:12 am
I finally got myself a PlayStation Vita, so I'll be doing a port there also.
Hi, question. Do you have a playpay or whatever calculation, send you a denyuzhku?

I be a pig if I don’t support you
Go ahead and support upstream: https://www.patreon.com/renpytom

User avatar
uyjulian
Regular
Posts: 64
Joined: Sun Mar 08, 2015 1:40 pm
Github: uyjulian
Contact:

Re: Ren'Py homebrew port to Nintendo Switch

#30 Post by uyjulian » Mon Nov 18, 2019 2:20 am

A PlayStation Vita port won't happen just yet.
I need to fix the out of memory errors first by inhibiting memory growth (by manually deleting objects instead of garbage collection), and also implementing an SDL_Renderer based render backend for fast drawing performance with small size.
Nintendo Switch has 4GB of memory (less addressable by application), and I'm running out of memory, so those errors will be more annoying on the Playstation Vita's 512MB of memory (less addressable by application).

... First, a Python port needs to be done.

Post Reply

Who is online

Users browsing this forum: No registered users