Sunday, October 29, 2023

Re: [update/wip] games/renpy 7.3.5 => 8.1.1 (and change to python3)

Hi Stefan --

On 10/29/2023 3:38 PM, Stefan Hagen wrote:
> Hello,
>
> I'm trying to update our python2 renpy 7.3.5 to the python3 renpy 8.1.1.
>
> Why renpy 8.1.1? (8.1.3 is out):
>
> Ideally I wanted to update to renpy 8.1.0, because the dependency
> pygame_sdl2 is coming from the official repository, which only has the
> version renpy 8.1.0 needs. 8.1.1 wants a newer, unreleased, pygame_sdl2.
>
> But renpy 8.1.0 is missing libhydrogen and the build fails. Libhydrogen
> got added to renpy in version 8.1.1.
>
> Therefore I'm mixing renpy 8.1.1 with the slightly too old pygame_sdl2
> 8.1.0. More about that later.
>
> Attached are two diffs:
> - An update for pygame_sdl2 from 7.3.5.606 to 8.1.0.23050902 that also
> enables it for python3.
> - An update for renpy from 7.3.5 to 8.1.1 + change to python3.
>
> So far, renpy 8 is working with the example games, and one I bought from
> gog.com
>

Thanks for this.

I will try with some of the games I have too. IIRC, last time trying to
move renpy into the py3 world broke a number of games. Maybe that has
been fixed now. I'll try some games out.

> When renpy starts up, it spams a few pages with errors like this:
>
> Traceback (most recent call last):
> File "/usr/local/share/renpy/renpy/script.py", line 699, in load_file
> with open(rpycfn, "wb") as f:
> PermissionError: [Errno 13] Permission denied: '/usr/local/share/renpy/renpy/common/00action_data.rpyc'
>
> Renpy tries to compile rpy and rpym files to rpyc and rpymc.
> This doesn't work for files we install to /usr/local/.
>

Looking at the Debian package, it also doesn't have the rpyc files, only
the rpy files. So I'm guessing this is likely OK.

> I searched the web, and it seems that there is no commandline only
> tool that can do this compilation. Only the renpy gui program and the
> launcher are doing it.
>
> This doesn't keep renpy from starting the games!
>
> Questions I have for this port:
>
> - Is it okay to mix pygame_sdl2 8.1.0 with renpy 8.1.1? I think we can
> go for it and fix it when the official repository provides 8.1.1.
>

I don't see why not. Maybe leave a comment somewhere stating this so we
remember why.

I'll test with some of my games and get back to you.

~Brian

No comments:

Post a Comment