What version of Python is Ren'py written in?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Friendbot2000
Regular
Posts: 161
Joined: Tue Feb 15, 2011 8:00 pm
Projects: Mutagen : Journey to Haven's Landing
Contact:

What version of Python is Ren'py written in?

#1 Post by Friendbot2000 » Sat Mar 31, 2012 5:40 pm

I finally have time to resume making games again, but I was wondering if Ren'py is compatible with Python 3.0 code. Can I create modules of 3.0 code or will they not play nice with Ren'Py?
Visit my game development group's Facebook page : Timekeeper Games
Mutagen : Journey to Haven's Landing Facebook Page
Follow our Twitter feed too : TK Games

User avatar
KimiYoriBaka
Miko-Class Veteran
Posts: 636
Joined: Thu May 14, 2009 8:15 pm
Projects: Castle of Arhannia
Contact:

Re: What version of Python is Ren'py written in?

#2 Post by KimiYoriBaka » Sat Mar 31, 2012 6:42 pm

from what I can find in the documentation, it seems that 6.11 and later are base on python 2.6, while the earlier versions were 2.3

I don't know how many changes there are between 2.6 and 3.0, but if 3.0 is backward compatible then you might be able to just include 3.0 with your code and have it work that way. my knowledge of the subject isn't too deep though, so I might be wrong...

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: What version of Python is Ren'py written in?

#3 Post by PyTom » Sat Mar 31, 2012 6:52 pm

Right now, the Windows, Linux, and Mac versions of Ren'Py use Python 2.6. The Android version uses 2.7, and I use 2.7 for day to day development - at some point, I'll be upgrading everything to 2.7.

3.0 is still a ways out. Pygame doesn't support it yet.

That being said, for most Ren'Py specific stuff, the differences don't matter all that greatly.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Friendbot2000
Regular
Posts: 161
Joined: Tue Feb 15, 2011 8:00 pm
Projects: Mutagen : Journey to Haven's Landing
Contact:

Re: What version of Python is Ren'py written in?

#4 Post by Friendbot2000 » Sat Mar 31, 2012 7:17 pm

Who exactly is supporting and developing Pygame?

From what their site says Pygame is compatible with 3.0 minus a few modules.

This was an entry on the pygame.org faq:

"Only the scrap, _movie, surfarray for Numeric, and threads modules have not been ported. The Pygame alternative, pgreloaded (Pygame Reloaded), also supports Python 3.

The installation packages, however, are incompatible with Python 3.x, so you will have to copy - paste files from 2.x to 3.x ."

Are these modules omnipresent in Ren'Py?

PyTom, if I was to download some modules/frameworks from the main Python site/community, would they be compatible with Ren'py? My current game plans will be stretching Ren'Py and Python quite a bit and I need to know what I CAN do with Ren'Py and what I CAN'T do. Overall, I think this is the perfect engine for my game once I figure out how to make my own framework for it.
Visit my game development group's Facebook page : Timekeeper Games
Mutagen : Journey to Haven's Landing Facebook Page
Follow our Twitter feed too : TK Games

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: What version of Python is Ren'py written in?

#5 Post by PyTom » Sat Mar 31, 2012 8:25 pm

Oh, I hadn't realized that pygame was now supporting Python 3. Interesting.

The thing to realize is that Ren'Py is its own environment. Some Python modules will work, and some won't - it depends on what the module does and how it does it.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Friendbot2000
Regular
Posts: 161
Joined: Tue Feb 15, 2011 8:00 pm
Projects: Mutagen : Journey to Haven's Landing
Contact:

Re: What version of Python is Ren'py written in?

#6 Post by Friendbot2000 » Sat Mar 31, 2012 8:43 pm

Ah I see. So if I really wanted a gauranteed compatible module it would be best to tailor it towards Ren'py's environment.

Thanks for the info PyTom :)
Visit my game development group's Facebook page : Timekeeper Games
Mutagen : Journey to Haven's Landing Facebook Page
Follow our Twitter feed too : TK Games

Friendbot2000
Regular
Posts: 161
Joined: Tue Feb 15, 2011 8:00 pm
Projects: Mutagen : Journey to Haven's Landing
Contact:

Re: What version of Python is Ren'py written in?

#7 Post by Friendbot2000 » Sun Apr 01, 2012 3:24 pm

I have another question PyTom. Are the bindings/libraries for DirectX and OpenGL included with the RenPy Distro or do I have to download Python tailored bindings and add them to the distro files?
Visit my game development group's Facebook page : Timekeeper Games
Mutagen : Journey to Haven's Landing Facebook Page
Follow our Twitter feed too : TK Games

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: What version of Python is Ren'py written in?

#8 Post by PyTom » Sun Apr 01, 2012 3:59 pm

They're included, but you have to run setup.py in the module directory to build them.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Friendbot2000
Regular
Posts: 161
Joined: Tue Feb 15, 2011 8:00 pm
Projects: Mutagen : Journey to Haven's Landing
Contact:

Re: What version of Python is Ren'py written in?

#9 Post by Friendbot2000 » Mon Apr 02, 2012 1:10 pm

Ah I see, thanks again.
Visit my game development group's Facebook page : Timekeeper Games
Mutagen : Journey to Haven's Landing Facebook Page
Follow our Twitter feed too : TK Games

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot]