How to finalize a game?

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
kraken
Newbie
Posts: 23
Joined: Tue Oct 23, 2007 7:41 am
Contact:

How to finalize a game?

#1 Post by kraken »

Hello, can you tell me how finalise my game when the game is finish? I don't know how to do.

monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

Re: How to finalize a game?

#2 Post by monele »

Double click renpy.exe, be sure your current project is the active one (otherwise "Select Project"), click Tools, click Build Distributions :)

kraken
Newbie
Posts: 23
Joined: Tue Oct 23, 2007 7:41 am
Contact:

Re: How to finalize a game?

#3 Post by kraken »

thanks, but, I have this message when I do this:
I'm sorry, but an exception occured while executing your Ren'Py
script.

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 1: ordinal not in range(128)

After initialization, but before game start.

-- Full Traceback ------------------------------------------------------------

File "E:\renpy-6.2.0-full\renpy-6.2.0\renpy\bootstrap.py", line 197, in bootstrap
File "E:\renpy-6.2.0-full\renpy-6.2.0\renpy\main.py", line 282, in main
File "E:\renpy-6.2.0-full\renpy-6.2.0\renpy\lint.py", line 328, in lint
File "E:\renpy-6.2.0-full\renpy-6.2.0\renpy\lint.py", line 117, in check_image
File "E:\renpy-6.2.0-full\renpy-6.2.0\renpy\lint.py", line 44, in report
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 1: ordinal not in range(128)

After initialization, but before game start.

Ren'Py Version: Ren'Py 6.2.0c

User avatar
DaFool
Lemma-Class Veteran
Posts: 4171
Joined: Tue Aug 01, 2006 12:39 pm
Contact:

Re: How to finalize a game?

#4 Post by DaFool »

Please playtest your game first and correct all syntax errors in your scripts.

NOTE: PLEASE MAKE SURE THAT YOUR GAME ACTUALLY LAUNCHES BEFORE DOING ANY OF THESE STEPS.

1.) Create readme.txt, presplash images
2.) Edit icons
3.) Pack resources into RPA archive
4.) Build distributions
5.) Final Testing

-----------------------

Let's go into more detail
1.) The readme.txt (or call it any file you want) summarizes the license you give for your game, installation instructions or how to play instructions. You place this file just outside the /game directory. For example, C:\renpy-6.3.2\MyGame\README.txt

The presplash image is optional, it's just a presplash.png image that loads before everything else. You have to separate it from other .png images such as sprites while you are packing the resources into RPA archive, because otherwise it won't work. See step 3.)

2.) There are two types of icons... one that is part of the game window, and one that launches your game. Both are optional -- the game will work regardless.

For the first icon that is part of the game window, you create a small 16x16 .png image and place it in the game directory. You declare it in a single line on your script, usually in options.rpy:

Code: Select all

init -1:
    python hide:

        config.developer = False
        
        config.screen_width = 800
        config.screen_height = 600

        config.window_title = u"My Game"
        
        config.window_icon = "MyGame_icon.png"
The second icon is the actual .exe that launches your game. You use a third party icon editor to do that, by editing the properties of the renpy.exe before building your distributions. If someone can make a step-by-step tutorial for that, I'd appreciate it, since I've never been able to get this icon-changing to work.

3.) This selection is done automatically as part of the Launcher. I usually choose *.png and *.jpg. Don't forget to separate out the presplash.png so it doesn't get packed in while creating the RPA file. Just place it back into the directory afterwards. The unpacked resources will go to a separate Archive directory.

During this point, it starts to get messy, so I advise making multiple directories of your game before packing them. Multiple backups can help as long as you keep track of them.

4.) Now the tricky part. Make sure the game runs well on the final versions of your game scripts. Go inside the game directory and delete the saves folder. Also, if you don't plan to open-source your game, now is also the time to delete the original .rpy files, leaving only the .rpyc executables.

Then use the Launcher to build your distributions. If you're using Windows, don't touch the Mac and Linux, but extract the Windows build to test it. Check to make sure that your README.txt, and all scripts and resources are inside the correct directories. You will also notice a new script_version.rpy which was added by the Launcher -- you can leave that it.

5.) After final playtesting, if it's all okay and you don't have to redo any steps 1-4, then your game is ready to distribute!

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: How to finalize a game?

#5 Post by PyTom »

Kraken: I _think_ that error is fixed in a more recent version of Ren'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

kraken
Newbie
Posts: 23
Joined: Tue Oct 23, 2007 7:41 am
Contact:

Re: How to finalize a game?

#6 Post by kraken »

thanx to you, it's work now

kraken
Newbie
Posts: 23
Joined: Tue Oct 23, 2007 7:41 am
Contact:

Re: How to finalize a game?

#7 Post by kraken »

How doing an rpa archive?

kraken
Newbie
Posts: 23
Joined: Tue Oct 23, 2007 7:41 am
Contact:

Re: How to finalize a game?

#8 Post by kraken »

Code: Select all

I'm sorry, but an exception occured while executing your Ren'Py
script.

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 1: ordinal not in range(128)

While running game code:
 - script at line 104 of renpy-6.3.3/data/distribute.rpy
 - python at line 243 of renpy-6.3.3/data/distribute.rpy.
 - python at line 97 of renpy-6.3.3/data/distribute.rpy.
 - python at line 68 of renpy-6.3.3/data/distribute.rpy.
 - python at line 26 of renpy-6.3.3/data/distribute.rpy.

-- Full Traceback ------------------------------------------------------------

  File "E:\renpy-6.3.3-full\renpy-6.3.3\renpy\bootstrap.py", line 209, in bootstrap
  File "E:\renpy-6.3.3-full\renpy-6.3.3\renpy\main.py", line 293, in main
  File "E:\renpy-6.3.3-full\renpy-6.3.3\renpy\main.py", line 88, in run
  File "E:\renpy-6.3.3-full\renpy-6.3.3\renpy\execution.py", line 194, in run
  File "E:\renpy-6.3.3-full\renpy-6.3.3\renpy\ast.py", line 499, in execute
  File "E:\renpy-6.3.3-full\renpy-6.3.3\renpy\python.py", line 861, in py_exec_bytecode
  File "renpy-6.3.3/data/distribute.rpy", line 243, in <module>
  File "renpy-6.3.3/data/distribute.rpy", line 97, in tree
  File "renpy-6.3.3/data/distribute.rpy", line 68, in include
  File "renpy-6.3.3/data/distribute.rpy", line 26, in ignored
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 1: ordinal not in range(128)

While running game code:

Ren'Py Version: Ren'Py 6.3.3a
I have this error

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: How to finalize a game?

#9 Post by PyTom »

Unfortunately, you can't distribute a game with non-ascii characters in the directory name. This is because the zip file format doesn't define the encoding used for filenames, so there's no way to create a zip file that works portably between locales, except by using ascii, which is accepted everywhere.

If anyone knows a solution for this, I'd love to know what it is.

To fix it, you need to go in and rename the directory containing your game to something consisting of only ascii characters. Then re-pick it using the launcher, and you'll be able to build distributions.
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

kraken
Newbie
Posts: 23
Joined: Tue Oct 23, 2007 7:41 am
Contact:

Re: How to finalize a game?

#10 Post by kraken »

what is non-ASCII character?

denzil
Veteran
Posts: 293
Joined: Wed Apr 20, 2005 4:01 pm
Contact:

Re: How to finalize a game?

#11 Post by denzil »

Here is a list of ASCII characters. Anything else is non-ASCII
Practice makes purrrfect.
Finished projects: Broken sky .:. colorless day .:. and few more...

Post Reply

Who is online

Users browsing this forum: Dark79, Google [Bot]