Page 1 of 1

Traceback

Posted: Tue Aug 04, 2015 7:01 am
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

Re: Traceback

Posted: Tue Aug 04, 2015 10:51 am
by PyTom
This means that your script is encoded incorrectly. Is it being saved in utf-8? (It's not.)

Re: Traceback

Posted: Tue Aug 04, 2015 10:54 am
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

Re: Traceback

Posted: Tue Aug 04, 2015 10:59 am
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.

Re: Traceback

Posted: Tue Aug 04, 2015 11:10 am
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.