Ren'Py 5.6.2 Released

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.
Message
Author
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:

#16 Post by PyTom »

Fix for the unicode issue:

Go into SciTE, and change the encoding to utf-8 (not utf-8 (Cookie)). Put the line

# coding: utf8

as the first line of the file. It should work.
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

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

#17 Post by denzil »

Doesn't help:

Code: Select all

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

SyntaxError: unknown parsing error (renpy-5.6.2/template/launcherinfo.py, line 1)

While executing game script on line 269 of T:\ab\renpy/data/launcher.rpy.
While executing python code on line 270 of T:\ab\renpy/data/launcher.rpy.
While executing python code on line 225 of T:\ab\renpy/data/launcher.rpy.
While executing python code on line 198 of T:\ab\renpy/data/launcher.rpy.

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

  File "c:\lukas\renpy-5.6.2\renpy\bootstrap.py", line 164, in bootstrap
  File "c:\lukas\renpy-5.6.2\renpy\main.py", line 273, in main
  File "c:\lukas\renpy-5.6.2\renpy\main.py", line 92, in run
  File "c:\lukas\renpy-5.6.2\renpy\execution.py", line 97, in run
  File "c:\lukas\renpy-5.6.2\renpy\ast.py", line 379, in execute
  File "c:\lukas\renpy-5.6.2\renpy\python.py", line 800, in py_exec_bytecode
  File "T:\ab\renpy/data/launcher.rpy", line 270, in <module>
  File "T:\ab\renpy/data/launcher.rpy", line 225, in load_projects
  File "T:\ab\renpy/data/launcher.rpy", line 198, in load_project
SyntaxError: unknown parsing error (renpy-5.6.2/template/launcherinfo.py, line 1)

While executing game script on line 269 of T:\ab\renpy/data/launcher.rpy.
While executing python code on line 270 of T:\ab\renpy/data/launcher.rpy.
While executing python code on line 225 of T:\ab\renpy/data/launcher.rpy.
While executing python code on line 198 of T:\ab\renpy/data/launcher.rpy.

Ren'Py Version: Ren'Py 5.6.2a
Practice makes purrrfect.
Finished projects: Broken sky .:. colorless day .:. and few more...

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:

#18 Post by PyTom »

Can you attach the new file, and send it to me? It worked for me, so something must be different here.
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

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

#19 Post by denzil »

Here
Practice makes purrrfect.
Finished projects: Broken sky .:. colorless day .:. and few more...

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:

#20 Post by PyTom »

Okay, this file still has the byte order mark on it. This is an invisible mark at the start of the file that tells us it's a UTF-8 file.

Hm... once the BOM is there, I don't see a good way to delete it, using just the windows tools I know.

I've attached a version of launcherinfo.py that has the BOM removed. You should be able to make this work, until I properly integrate support for utf-8 encoded python files into Ren'Py 5.6.3.

(I've renamed it to .txt, because the board would prefer to not let me attach .py files.)
Attachments
launcherinfo.txt
(182 Bytes) Downloaded 111 times
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

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

#21 Post by denzil »

This doesn't work too. Well I can wait for 5.6.3.
Traceback attached.
Practice makes purrrfect.
Finished projects: Broken sky .:. colorless day .:. and few more...

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

#22 Post by monele »

I'm using Crimson Editor (free) and it lets you change the encoding of a file. You can have UTF with BOM or without. It's a matter of copy/pasting the content in a new no-BOM file.

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

#23 Post by denzil »

monele wrote:I'm using Crimson Editor (free) and it lets you change the encoding of a file. You can have UTF with BOM or without. It's a matter of copy/pasting the content in a new no-BOM file.
As well I can use hexaeditor or python script to get file without BOM. But even without BOM it doesn't work. So I'll just wait for 5.6.3.
Practice makes purrrfect.
Finished projects: Broken sky .:. colorless day .:. and few more...

Post Reply

Who is online

Users browsing this forum: No registered users