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

Re: Ren'Py homebrew port to Nintendo Switch

#16 Post by uyjulian »

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

Re: Ren'Py homebrew port to Nintendo Switch

#17 Post by uyjulian »

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

Re: Ren'Py homebrew port to Nintendo Switch

#18 Post by uyjulian »

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

Re: Ren'Py homebrew port to Nintendo Switch

#19 Post by uyjulian »

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

Re: Ren'Py homebrew port to Nintendo Switch

#20 Post by uyjulian »

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

Re: Ren'Py homebrew port to Nintendo Switch

#21 Post by uyjulian »

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

Re: Ren'Py homebrew port to Nintendo Switch

#22 Post by uyjulian »

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

Re: Ren'Py homebrew port to Nintendo Switch

#23 Post by uyjulian »

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: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Ren'Py homebrew port to Nintendo Switch

#24 Post by Imperf3kt »

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.

Current project: GGD Mentor

Twitter

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

Re: Ren'Py homebrew port to Nintendo Switch

#25 Post by uyjulian »

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

Re: Ren'Py homebrew port to Nintendo Switch

#26 Post by uyjulian »

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

Re: Ren'Py homebrew port to Nintendo Switch

#27 Post by uyjulian »

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

User avatar
Andredron
Miko-Class Veteran
Posts: 700
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: Ren'Py homebrew port to Nintendo Switch

#28 Post by Andredron »

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

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

Re: Ren'Py homebrew port to Nintendo Switch

#29 Post by uyjulian »

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

Re: Ren'Py homebrew port to Nintendo Switch

#30 Post by uyjulian »

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