How to finalize a game?
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.
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.
How to finalize a game?
Hello, can you tell me how finalise my game when the game is finish? I don't know how to do.
Re: How to finalize a game?
Double click renpy.exe, be sure your current project is the active one (otherwise "Select Project"), click Tools, click Build Distributions
Re: How to finalize a game?
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
Re: How to finalize a game?
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:
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!
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"
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!
- 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?
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(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: How to finalize a game?
thanx to you, it's work now
Re: How to finalize a game?
How doing an rpa archive?
Re: How to finalize a game?
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
- 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?
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.
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(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: How to finalize a game?
what is non-ASCII character?
Re: How to finalize a game?
Here is a list of ASCII characters. Anything else is non-ASCII
Who is online
Users browsing this forum: Dark79, Google [Bot]