ValueError: invalid literal for float(): 1]Where's that damn phone!!{/cps

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
izanami
Regular
Posts: 68
Joined: Fri Mar 06, 2020 10:03 pm
Completed: un/FRAGMENT.
Projects: Minami,
Organization: Izakiko Paradox
itch: izakikoparadox
Discord: ragyuo
Contact:

ValueError: invalid literal for float(): 1]Where's that damn phone!!{/cps

#1 Post by izanami »

I'm having problems with using cps. It keeps saying this every time i follow the renpy documentation.
Image

User avatar
zmook
Veteran
Posts: 421
Joined: Wed Aug 26, 2020 6:44 pm
Contact:

Re: ValueError: invalid literal for float(): 1]Where's that damn phone!!{/cps

#2 Post by zmook »

Please post the relevant part of your code and the full error traceback so that we can have an idea what's going on.
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM

User avatar
izanami
Regular
Posts: 68
Joined: Fri Mar 06, 2020 10:03 pm
Completed: un/FRAGMENT.
Projects: Minami,
Organization: Izakiko Paradox
itch: izakikoparadox
Discord: ragyuo
Contact:

Re: ValueError: invalid literal for float(): 1]Where's that damn phone!!{/cps

#3 Post by izanami »

Here's the full traceback

```
I'm sorry, but an uncaught exception occurred.

While processing text tag {cps=20]Where's that damn phone!!{/cps} in u"{sc}{cps=20]Where's that damn phone!!{/cps}{/sc}".:
File "game/script.rpy", line 160, in script
eiichi "{sc}{cps=20]Where's that damn phone!!{/cps}{/sc}"
ValueError: invalid literal for float(): 20]Where's that damn phone!!{/cps

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

Full traceback:
File "game/script.rpy", line 160, in script
eiichi "{sc}{cps=20]Where's that damn phone!!{/cps}{/sc}"
File "renpy/ast.py", line 715, in execute
renpy.exports.say(who, what, *args, **kwargs)
File "renpy/exports.py", line 1384, in say
who(what, *args, **kwargs)
File "renpy/character.py", line 1179, in __call__
self.do_display(who, what, cb_args=self.cb_args, dtt=dtt, **display_args)
File "renpy/character.py", line 851, in do_display
**display_args)
File "renpy/character.py", line 601, in display_say
rv = renpy.ui.interact(mouse='say', type=type, roll_forward=roll_forward)
File "renpy/ui.py", line 298, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "renpy/display/core.py", line 3007, in interact
repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, **kwargs)
File "renpy/display/core.py", line 3517, in interact_core
self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
File "renpy/display/core.py", line 2377, in draw_screen
renpy.config.screen_height,
File "render.pyx", line 492, in renpy.display.render.render_screen
File "render.pyx", line 263, in renpy.display.render.render
File "renpy/display/layout.py", line 751, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 170, in renpy.display.render.render
File "render.pyx", line 263, in renpy.display.render.render
File "renpy/display/layout.py", line 751, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 170, in renpy.display.render.render
File "render.pyx", line 263, in renpy.display.render.render
File "renpy/display/layout.py", line 751, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 170, in renpy.display.render.render
File "render.pyx", line 263, in renpy.display.render.render
File "renpy/display/screen.py", line 681, in render
child = renpy.display.render.render(self.child, w, h, st, at)
File "render.pyx", line 170, in renpy.display.render.render
File "render.pyx", line 263, in renpy.display.render.render
File "renpy/display/layout.py", line 751, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 170, in renpy.display.render.render
File "render.pyx", line 263, in renpy.display.render.render
File "renpy/display/layout.py", line 1156, in render
st, at)
File "render.pyx", line 170, in renpy.display.render.render
File "render.pyx", line 263, in renpy.display.render.render
File "renpy/display/layout.py", line 751, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 170, in renpy.display.render.render
File "render.pyx", line 263, in renpy.display.render.render
File "renpy/text/text.py", line 2033, in render
virtual_layout = Layout(self, width, height, renders, drawable_res=False, size_only=True)
File "renpy/text/text.py", line 607, in __init__
self.paragraphs = self.segment(text.tokens, style, renders, text)
File "renpy/text/text.py", line 1198, in segment
ts.cps = float(value)
ValueError: invalid literal for float(): 20]Where's that damn phone!!{/cps

Windows-10-10.0.19041
Ren'Py 7.4.2.1292
Minami 0.3
Sat Feb 27 10:10:41 2021
```
Image

User avatar
zmook
Veteran
Posts: 421
Joined: Wed Aug 26, 2020 6:44 pm
Contact:

Re: ValueError: invalid literal for float(): 1]Where's that damn phone!!{/cps

#4 Post by zmook »

You have a typo. "{sc}{cps=20]Where's" should be "{sc}{cps=20}Where's".
colin r
➔ if you're an artist and need a bit of help coding your game, feel free to send me a PM

Post Reply

Who is online

Users browsing this forum: No registered users