Traceback

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
soloflareinteractive

Traceback

#1 Post by soloflareinteractive »

Hey guys,

I got this error this morning while attempting to run my project:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While parsing C:\Users\xxxxxx\Documents\RENDEV\silent_nights_man01/game/script.rpy.
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 56808: invalid continuation byte

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

Full traceback:
  File "C:\Users\xxxxxx\Documents\RENDEV\renpy\bootstrap.py", line 288, in bootstrap
    renpy.main.main()
  File "C:\Users\xxxxxx\Documents\RENDEV\renpy\main.py", line 321, in main
    renpy.game.script.load_script() # sets renpy.game.script.
  File "C:\Users\xxxxxx\Documents\RENDEV\renpy\script.py", line 181, in load_script
    self.load_appropriate_file(".rpyc", ".rpy", dir, fn, initcode)
  File "C:\Users\xxxxxx\Documents\RENDEV\renpy\script.py", line 479, in load_appropriate_file
    data, stmts = self.load_file(dir, fn + source)
  File "C:\Users\xxxxxx\Documents\RENDEV\renpy\script.py", line 374, in load_file
    stmts = renpy.parser.parse(fullfn)
  File "C:\Users\xxxxxx\Documents\RENDEV\renpy\parser.py", line 2343, in parse
    lines = list_logical_lines(fn, filedata)
  File "C:\Users\xxxxxx\Documents\RENDEV\renpy\parser.py", line 193, in list_logical_lines
    data = f.read()
  File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/codecs.py", line 668, in read
  File "/home/tom/ab/x64lucid-deps/install/lib/python2.7/codecs.py", line 474, in read
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe9 in position 56808: invalid continuation byte

Windows-8-6.2.9200
Ren'Py 6.99.4.467
 
Lint is unable to run either.

It was working fine a few hours ago.

Your help will be much appreciated, and you will be added to the acknowledgements section of the VN when it is released.

Many Thanks
Soloflare Interactive Ltd

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: Traceback

#2 Post by PyTom »

This means that your script is encoded incorrectly. Is it being saved in utf-8? (It's not.)
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

soloflareinteractive

Re: Traceback

#3 Post by soloflareinteractive »

PyTom wrote:This means that your script is encoded incorrectly. Is it being saved in utf-8? (It's not.)

Hello PyTom,

Thanks for the speedy reply.

I believe the Encoding is the problem. Have always saved it in UTF-8. I never knowingly saved it differently.

I even tried ISO 8859-1. Still the same issue :(

I knew something like this would happen, especially seeing as I'm working on the most important aspects of the project.

I am using Editra btw
Last edited by soloflareinteractive on Tue Aug 04, 2015 12:20 pm, edited 1 time in total.

soloflareinteractive

Re: Traceback

#4 Post by soloflareinteractive »

I tried force saving it as UTF-8 and got this error in Jedit

Code: Select all

C:\Users\xxxxxx\Documents\RENDEV\silent_nights_man01\game\script.rpy:
The file could not be loaded correctly (some data might be lost) with
the encoding "UTF-8".
(java.nio.charset.MalformedInputException: Input length = 1)
Try selecting a different encoding.
It can be selected with the menu File->Reload with Encoding.
If you want it to be done automatically, add the candidates into
"List of fallback encodings" in Encodings pane of Global Options.

soloflareinteractive

Re: Traceback

#5 Post by soloflareinteractive »

WOOOOHOOOOOO I fixed it.

I forced it through global options in Jedit.

It works perfectly.

Thank you so much.

I will include your name in the 'special edition' and 'season 2' releases.
Attachments
This is the fix. It was set to 'UNIX' for some strange reason.
This is the fix. It was set to 'UNIX' for some strange reason.

Post Reply

Who is online

Users browsing this forum: No registered users