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.
Ren'Py 5.6.2 Released
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.
- 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:
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
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
- 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:
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(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- 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:
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.)
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(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
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.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.
Who is online
Users browsing this forum: No registered users