M-77 wrote: ↑Fri Jan 18, 2019 5:04 pm
The "Search for Items" game do not work for me.
Code from page 1:
viewtopic.php?p=478861#p478861 (has two (or more, you get them pasting here) spacing -space- errors, "maxLen + = 1" has to be "maxLen += 1" and "if oLast> = 0:" has to be
"if oLast> = 0:" and oLen + = 1 "oLen += 1" and the ""sound/" path but correcting this, then get this error):
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "renpy/common/00obsolete.rpy", line 75, in script
init 1900 python hide:
File "renpy/common/00obsolete.rpy", line 75, in <module>
init 1900 python hide:
File "renpy/common/00obsolete.rpy", line 121, in _execute_python_hide
create_automatic_images()
File "renpy/common/00obsolete.rpy", line 99, in create_automatic_images
name = tuple(j for i in name for j in i.split(sep))
File "renpy/common/00obsolete.rpy", line 99, in <genexpr>
name = tuple(j for i in name for j in i.split(sep))
ValueError: empty separator
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "renpy/common/00obsolete.rpy", line 75, in script
init 1900 python hide:
File "C:\Users\keinschwein\Desktop\renpy-7.0.0-sdk\renpy\ast.py", line 862, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\keinschwein\Desktop\renpy-7.0.0-sdk\renpy\python.py", line 1912, in py_exec_bytecode
exec bytecode in globals, locals
File "renpy/common/00obsolete.rpy", line 75, in <module>
init 1900 python hide:
File "renpy/common/00obsolete.rpy", line 121, in _execute_python_hide
create_automatic_images()
File "renpy/common/00obsolete.rpy", line 99, in create_automatic_images
name = tuple(j for i in name for j in i.split(sep))
File "renpy/common/00obsolete.rpy", line 99, in <genexpr>
name = tuple(j for i in name for j in i.split(sep))
ValueError: empty separator
Windows-7-6.1.7601-SP1
Ren'Py 7.0.0.196
Fri Jan 18 21:12:07 2019
Code from:
http://renpyfordummies.blogspot.com/201 ... -post.html with russian descriptions has other variables, game is starting, but when mingame
should start:
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 6191, in script
$ StartGame()
File "game/script.rpy", line 6191, in <module>
$ StartGame()
File "game/script.rpy", line 343, in StartGame
renpy.call_screen("game", _layer="master")
File "game/screens.rpy", line 1727, in execute
screen game:
File "game/screens.rpy", line 1727, in execute
screen game:
File "game/screens.rpy", line 1732, in execute
for i in range(0, len(oN)):
File "game/screens.rpy", line 1733, in execute
if oN[i]:
File "game/screens.rpy", line 1734, in execute
imagebutton:
File "game/screens.rpy", line 1734, in keywords
imagebutton:
TypeError: can only concatenate tuple (not "unicode") to tuple
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 6191, in script
$ StartGame()
File "C:\Users\keinschwein\Desktop\renpy-7.0.0-sdk\renpy\ast.py", line 862, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "C:\Users\keinschwein\Desktop\renpy-7.0.0-sdk\renpy\python.py", line 1912, in py_exec_bytecode
exec bytecode in globals, locals
File "game/script.rpy", line 6191, in <module>
$ StartGame()
File "game/script.rpy", line 343, in StartGame
renpy.call_screen("game", _layer="master")
File "C:\Users\keinschwein\Desktop\renpy-7.0.0-sdk\renpy\exports.py", line 2710, in call_screen
rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
File "C:\Users\keinschwein\Desktop\renpy-7.0.0-sdk\renpy\ui.py", line 287, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "C:\Users\keinschwein\Desktop\renpy-7.0.0-sdk\renpy\display\core.py", line 2649, in interact
repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
File "C:\Users\keinschwein\Desktop\renpy-7.0.0-sdk\renpy\display\core.py", line 3033, in interact_core
root_widget.visit_all(lambda i : i.per_interact())
File "C:\Users\keinschwein\Desktop\renpy-7.0.0-sdk\renpy\display\core.py", line 511, in visit_all
d.visit_all(callback)
File "C:\Users\keinschwein\Desktop\renpy-7.0.0-sdk\renpy\display\core.py", line 511, in visit_all
d.visit_all(callback)
File "C:\Users\keinschwein\Desktop\renpy-7.0.0-sdk\renpy\display\core.py", line 511, in visit_all
d.visit_all(callback)
File "C:\Users\keinschwein\Desktop\renpy-7.0.0-sdk\renpy\display\screen.py", line 424, in visit_all
callback(self)
File "C:\Users\keinschwein\Desktop\renpy-7.0.0-sdk\renpy\display\core.py", line 3033, in <lambda>
root_widget.visit_all(lambda i : i.per_interact())
File "C:\Users\keinschwein\Desktop\renpy-7.0.0-sdk\renpy\display\screen.py", line 434, in per_interact
self.update()
File "C:\Users\keinschwein\Desktop\renpy-7.0.0-sdk\renpy\display\screen.py", line 619, in update
self.screen.function(**self.scope)
File "game/screens.rpy", line 1727, in execute
screen game:
File "game/screens.rpy", line 1727, in execute
screen game:
File "game/screens.rpy", line 1732, in execute
for i in range(0, len(oN)):
File "game/screens.rpy", line 1733, in execute
if oN[i]:
File "game/screens.rpy", line 1734, in execute
imagebutton:
File "game/screens.rpy", line 1734, in keywords
imagebutton:
File "<screen language>", line 1738, in <module>
TypeError: can only concatenate tuple (not "unicode") to tuple
Windows-7-6.1.7601-SP1
Ren'Py 7.0.0.196
Fri Jan 18 20:55:40 2019
It looks like the part that makes the difference/that was changed is still not working (tuples). What have I done wrong? Where to put this code exactly. I put
it before the "label start:" and the "screen StartGame"+code in "screens.rpy" but keep this part in my "script.rpy" alone do also not work.
I want the game start inside a "label Shop" and a menu in the shop. When player can choose to work. If game ends it have to jump back to the choice
code. Then my variables for Money + and a True is add for done work.
Did I have to remove the "o" ´s in the code? Change to "$ "?. This do not work too for me. I need more programming knowledge myself too.