joystick config sfont crash

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.
Post Reply
Message
Author
User avatar
ShiraiJunichi
Miko-Class Veteran
Posts: 651
Joined: Sat May 21, 2005 12:28 pm
Location: University of Utah
Contact:

joystick config sfont crash

#1 Post by ShiraiJunichi » Fri Feb 08, 2008 12:36 pm

monele kindly pointed out that my game, "Tying Threads", crashes when trying to configure a joystick. Here's a copy of the output

Code: Select all

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

Exception: Could not find font: ('subfont', 18, False, False, False)

While running game code:
- script at line 84 of renpy-6.5.0/common/00mainmenu.rpy
- python at line 84 of renpy-6.5.0/common/00mainmenu.rpy.
- script at line 620 of renpy-6.5.0/common/00preferences.rpy
- python at line 620 of renpy-6.5.0/common/00preferences.rpy.
- python at line 112 of renpy-6.5.0/common/00preferences.rpy.
- python at line 208 of renpy-6.5.0/common/00gamemenu.rpy.

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

  File "D:\Jeux\TyingThreads_v0.9\renpy\bootstrap.py", line 210, in bootstrap
  File "D:\Jeux\TyingThreads_v0.9\renpy\main.py", line 300, in main
  File "D:\Jeux\TyingThreads_v0.9\renpy\main.py", line 92, in run
  File "D:\Jeux\TyingThreads_v0.9\renpy\execution.py", line 194, in run
  File "D:\Jeux\TyingThreads_v0.9\renpy\ast.py", line 534, in execute
  File "D:\Jeux\TyingThreads_v0.9\renpy\python.py", line 863, in py_exec_bytecode
  File "renpy-6.5.0/common/00mainmenu.rpy", line 84, in <module>
  File "D:\Jeux\TyingThreads_v0.9\renpy\game.py", line 270, in call_in_new_context
  File "D:\Jeux\TyingThreads_v0.9\renpy\execution.py", line 194, in run
  File "D:\Jeux\TyingThreads_v0.9\renpy\ast.py", line 534, in execute
  File "D:\Jeux\TyingThreads_v0.9\renpy\python.py", line 863, in py_exec_bytecode
  File "renpy-6.5.0/common/00preferences.rpy", line 620, in <module>
  File "renpy-6.5.0/common/00preferences.rpy", line 112, in _prefs_screen_run
  File "renpy-6.5.0/common/00gamemenu.rpy", line 208, in _game_interact
  File "D:\Jeux\TyingThreads_v0.9\renpy\ui.py", line 58, in interact
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\core.py", line 1238, in interact
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\core.py", line 1491, in interact_core
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\core.py", line 916, in show
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\render.py", line 206, in render_screen
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\render.py", line 124, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\layout.py", line 427, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\render.py", line 124, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\layout.py", line 427, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\render.py", line 124, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\layout.py", line 427, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\render.py", line 124, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\layout.py", line 645, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\render.py", line 124, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\layout.py", line 427, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\render.py", line 124, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\layout.py", line 528, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\render.py", line 124, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\layout.py", line 645, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\render.py", line 124, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\layout.py", line 528, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\render.py", line 124, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\behavior.py", line 330, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\layout.py", line 645, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\render.py", line 124, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\text.py", line 1438, in render
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\text.py", line 1037, in layout
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\text.py", line 335, in update
  File "D:\Jeux\TyingThreads_v0.9\renpy\display\text.py", line 268, in get_font
Exception: Could not find font: ('subfont', 18, False, False, False)

While running game code:

Ren'Py Version: Ren'Py 6.5.0e
The sfont I'm using seems to be causing all the trouble, but I can't seem to find the solution- it's been a while since I dabbled with all the preferences? Any assistance?

Thanks

User avatar
akemicchi
Veteran
Posts: 465
Joined: Mon Dec 31, 2007 11:22 pm
Projects: Magicians of Delphine, Panaderia: Ensaimada, SweetTooth!, XOXO Droplets
Deviantart: littlebabyshoes
Contact:

Re: joystick config sfont crash

#2 Post by akemicchi » Fri Feb 08, 2008 1:26 pm

I don't have a joystick, but I was trying to replicate the error, and I finally got it! xD; I dunno if this is has nothing to do with the joystick, though, so... If I'm wrong, I have no idea what it is.

Were you using renpy.register_sfont() to define the font ('subfont')? If you were, I was able to get the error then fix it again. :D

So, I started with:
$ renpy.register_sfont('subfont', 18, False, False, False, "RandomSFONT.png")

However, my error ended up with a different number, though, for font size.

Exception: Could not find font: ('subfont', 22, False, False, False)

The way I was able to fix it was by setting the font size to the number the traceback shows-- in my case, it's 22; in your case, it's 18.

So maybe if you change the font size you put in the script, it'd start working again? x3 I was actually searching through your game scripts, trying to find ('subfont', 18, False, False, False) exactly, but it hadn't turned up. So maybe that's the problem? Hopefully?

User avatar
ShiraiJunichi
Miko-Class Veteran
Posts: 651
Joined: Sat May 21, 2005 12:28 pm
Location: University of Utah
Contact:

Re: joystick config sfont crash

#3 Post by ShiraiJunichi » Fri Feb 08, 2008 2:21 pm

Yeah, that seems to have fixed it- thanks

Post Reply

Who is online

Users browsing this forum: No registered users