Problem... displaying text?

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
Ifin
Newbie
Posts: 4
Joined: Thu Jul 19, 2007 5:48 pm
Contact:

Problem... displaying text?

#1 Post by Ifin »

Hi to everyone!
I was just making my first short game and everything went OK till the point where i was supossed to make a distribution of it.
After unzipping the archive I run the game, there comes some bg, character and... Before the text appears i get this report... From which I don't understand a bit, of course :lol:

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

TypeError: can't multiply sequence to non-int

While running game code:
- script at line 70 of D:\RENPY\Liska jeste zije/game/script.rpy
-- Full Traceback ------------------------------------------------------------

File "D:\RENPY\Liska\renpy\bootstrap.py", line 204, in bootstrap
File "D:\RENPY\Liska\renpy\main.py", line 303, in main
File "D:\RENPY\Liska\renpy\main.py", line 98, in run
File "D:\RENPY\Liska\renpy\execution.py", line 194, in run
File "D:\RENPY\Liska\renpy\ast.py", line 290, in execute
File "D:\RENPY\Liska\renpy\exports.py", line 465, in say
File "D:\RENPY\Liska\renpy\store.py", line 210, in narrator
File "D:\RENPY\Liska\renpy\character.py", line 362, in display_say
File "D:\RENPY\Liska\renpy\ui.py", line 66, in interact
File "D:\RENPY\Liska\renpy\display\core.py", line 1237, in interact
File "D:\RENPY\Liska\renpy\display\core.py", line 1484, in interact_core
File "D:\RENPY\Liska\renpy\display\core.py", line 919, in show
File "D:\RENPY\Liska\renpy\display\render.py", line 177, in render_screen
File "D:\RENPY\Liska\renpy\display\render.py", line 102, in render
File "D:\RENPY\Liska\renpy\display\layout.py", line 538, in render
File "D:\RENPY\Liska\renpy\display\render.py", line 102, in render
File "D:\RENPY\Liska\renpy\display\layout.py", line 538, in render
File "D:\RENPY\Liska\renpy\display\render.py", line 102, in render
File "D:\RENPY\Liska\renpy\display\layout.py", line 538, in render
File "D:\RENPY\Liska\renpy\display\render.py", line 102, in render
File "D:\RENPY\Liska\renpy\display\layout.py", line 631, in render
File "D:\RENPY\Liska\renpy\display\render.py", line 102, in render
File "D:\RENPY\Liska\renpy\display\layout.py", line 489, in render
File "D:\RENPY\Liska\renpy\display\render.py", line 102, in render
File "D:\RENPY\Liska\renpy\display\text.py", line 1276, in render
TypeError: can't multiply sequence to non-int

While running game code:

Ren'Py Version: Ren'Py 6.3.1b

What comes in mind is a possible problem with custom fonts, maybe? I've used my on TTF fonts, which were rendered without any problems during development.

I will be very grateful to anyone trying to help, as I really am just a beginner :lol:

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: Problem... displaying text?

#2 Post by PyTom »

Hm... this problem stems from the slow_cps_modifier style property. If I had to guess, I'd guess that common/00style.rpy is missing for some reason.
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

Doomfest
Regular
Posts: 179
Joined: Thu Jul 19, 2007 7:29 am
Completed: Memo, Juniper's Knot
Projects: Cradle Song, Dysfunctional Systems
Organization: dischan, Medical Whiskey
Location: Miami
Contact:

Re: Problem... displaying text?

#3 Post by Doomfest »

I get similar problems when i use {I}. I just stopped using italics altogether :P
Dysfunctional Systems
Juniper's Knot
Cradle Song, a visual novel in development
Memo, a visual novel

[02:49] <Komi> How is Dysfunctional Systems coming along?
[02:52] <Doomfest> have you seen prince of egypt
[02:53] <Doomfest> do you remember that scene with the storm of bugs
[02:54] <Komi> I know what you are talking about, but I can't remember the scene.
[02:54] <Doomfest> that is what it feels like
[02:55] <Komi> Personality conflicts on the team, I take it?
[02:56] <Doomfest> no
[02:56] <Doomfest> just bugs
[02:56] <Doomfest> storm of bugs

Ifin
Newbie
Posts: 4
Joined: Thu Jul 19, 2007 5:48 pm
Contact:

Re: Problem... displaying text?

#4 Post by Ifin »

Well, so I've tried to use default font, and that doesn't seem to be the reason.
I thought about italics too, but after going through the script I'm sure I haven't used any.
So then I switched off config.default_text_cps in options and now it works just fine. However... I really like the text appearing slowly, isn't there any way... ? :|
This 00style.rpy looks to be where it belongs, it's the same size file as in original Ren'Py.

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: Problem... displaying text?

#5 Post by PyTom »

What did you set config.default_text_cps to?
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

Ifin
Newbie
Posts: 4
Joined: Thu Jul 19, 2007 5:48 pm
Contact:

Re: Problem... displaying text?

#6 Post by Ifin »

Um, it was like this before:
config.default_text_cps = "6"

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: Problem... displaying text?

#7 Post by PyTom »

That would do it... it should be just:

Code: Select all

config.default_text_cps = 6
No quotes around the 6.
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

Ifin
Newbie
Posts: 4
Joined: Thu Jul 19, 2007 5:48 pm
Contact:

Re: Problem... displaying text?

#8 Post by Ifin »

Well, yes, it did it :oops: :roll:
Yeah, I feel a bit embarrassed now :lol:
But still, it somehow worked fine even with " ", only before making a distribution. Nevermind, I'm happy now, thank you big time! :)

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: Problem... displaying text?

#9 Post by PyTom »

Basically, default_text_cps only works the first time the game is run... after that, the user's setting is stored in the persistent file.
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

Post Reply

Who is online

Users browsing this forum: Bing [Bot]