Is there anyway to know which version of Renpy was used to build a distribution?

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
User avatar
Obscura
Eileen-Class Veteran
Posts: 1431
Joined: Fri Mar 09, 2012 6:58 pm
Projects: Coming Out On Top
Location: United States
Contact:

Is there anyway to know which version of Renpy was used to build a distribution?

#1 Post by Obscura »

Odd question, but say you have the (zipped) distribution file for a project. Is there any way to know which version of Renpy was used to compile that distribution?

I know the log.txt of an ~uncompiled~ project will show you the version number. Once it's compiled though, is there any way to tell?

Thanks!
Coming Out On Top - An Adult Gay Dating Sim
website

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Is there anyway to know which version of Renpy was used to build a distribution?

#2 Post by Remix »

You could (presuming the game has an actual game folder, just drop in a .rpy file with something like:

Code: Select all

screen show_version():
    vbox:
        text "Made with: [renpy.version_only]"
        textbutton "About":
            action ShowMenu("about")
init python:
    config.overlay_screens.append('show_version')
in it. Might work, then again, might not...

Most production games retain their 'About' menu though; so, realistically, if they have removed that they likely do not want you to know the information it provides... so doing the above is a bit hacky
Frameworks & Scriptlets:

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

Re: Is there anyway to know which version of Renpy was used to build a distribution?

#3 Post by Imperf3kt »

Doesn't the about screen already include this (with [renpy.version])
There should be a text file in the game directory called 'version' with the renpy version used at build, written inside

Another way is, if the game isn't archived, simply rename one of the files so renpy cannot find it and gives a traceback (or if archived, rename an archive)
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
PyTom
Ren'Py Creator
Posts: 16088
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: Is there anyway to know which version of Renpy was used to build a distribution?

#4 Post by PyTom »

It's also towards the top of renpy/__init__.py .
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users