Page 2 of 4
12) Fable 2
Posted: Mon Jul 09, 2018 1:20 am
by Andredron

Mini game by type of Fable2 where in the bar you need to press a button in a certain place.
Suddenly, you want to complicate the process of crafting in your game rpg. Author Sergey Golovin.
green area - space
Free distribution
download
https://yadi.sk/d/mK1bpcU-C5jnrw
Re: 12 mini games
Posted: Sun Jul 15, 2018 4:07 pm
by LiveTurkey
The clicker minigame does not work for me.
This is after I fixed the += and -= bugs.
Re: 12 mini games
Posted: Mon Jul 16, 2018 1:59 am
by Andredron
LiveTurkey wrote: ↑Sun Jul 15, 2018 4:07 pm
The clicker minigame does not work for me.
This is after I fixed the += and -= bugs.
Hi, can you take a screenshot of what the error is, and the code in which you add the mini-game to the project? I tested all the games on the old and new versions of Renpy, they work. Only in mini-games where there is a Grid, there it is necessary to slightly podshamanit that would be on the new gui went
Re: 12 mini games
Posted: Mon Jul 16, 2018 10:01 am
by LiveTurkey
What I wrote before in this post turned out to be wrong. I will continue working on trying to make the clicker game work. If I don't get it, I'll post the code here.
Re: 12 mini games
Posted: Tue Nov 13, 2018 3:57 pm
by Amy_oai
Thank you so much for these!
Re: 12 mini games
Posted: Tue Nov 13, 2018 11:55 pm
by bonnie_641
Thank you for sharing

Re: 11)test Chess
Posted: Tue Jan 15, 2019 8:48 pm
by Dao_thao
Re: 12 mini games
Posted: Fri Jan 18, 2019 5:04 pm
by M-77
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.
Re: 12 mini games
Posted: Sat Jan 19, 2019 2:03 am
by Andredron
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.
Good afternoon, are you modest to show your code through a paste bean? Maybe when I translated comments through a translator, he spoiled the code not much (although everything seems to be in the open version) about the Russian version, there is a ready-made project that you can download and see its script files(green text in image). In order for the project to be called to the store, you can link it to the buttons. How do you call the store and navigate it

Re: 12 mini games
Posted: Mon Jan 21, 2019 9:09 am
by M-77
Hello, thank you for help. (I use the "spoiler" [][/] command, like the "code" but will not work, to hide the long text here.) I downloaded the code and project. Put a "game.rpy" (that I updated with english text, and my images/sound data info) in my dir. I put a "res = False" before game start. But still get some errors, I am sure it will work but have to be made to run for my case (I use 4x idle/hoover png images, 1 bg .jpg):
Code: Select all
[spoiler]I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 6093, in script
with dissolve
File "game/game.rpy", line 104, in execute
screen game:
File "game/game.rpy", line 104, in execute
screen game:
File "game/game.rpy", line 109, in execute
for i in range(0, len(oN)):
File "game/game.rpy", line 110, in execute
if oN[i]:
File "game/game.rpy", line 111, in execute
imagebutton:
File "game/game.rpy", line 111, in keywords
imagebutton:
TypeError: can only concatenate tuple (not "unicode") to tuple
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 6093, in script
with dissolve
File "C:\Users\keinschwein\Desktop\renpy-7.0.0-sdk\renpy\ast.py", line 1337, in execute
renpy.exports.with_statement(trans, paired)
File "C:\Users\keinschwein\Desktop\renpy-7.0.0-sdk\renpy\exports.py", line 1452, in with_statement
return renpy.game.interface.do_with(trans, paired, clear=clear)
File "C:\Users\keinschwein\Desktop\renpy-7.0.0-sdk\renpy\display\core.py", line 2207, in do_with
clear=clear)
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\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/game.rpy", line 104, in execute
screen game:
File "game/game.rpy", line 104, in execute
screen game:
File "game/game.rpy", line 109, in execute
for i in range(0, len(oN)):
File "game/game.rpy", line 110, in execute
if oN[i]:
File "game/game.rpy", line 111, in execute
imagebutton:
File "game/game.rpy", line 111, in keywords
imagebutton:
File "<screen language>", line 115, in <module>
TypeError: can only concatenate tuple (not "unicode") to tuple
Windows-7-6.1.7601-SP1
Ren'Py 7.0.0.196
Mon Jan 21 13:47:14 2019[/spoiler]
And here is the code of the shop. Here is a choice menu in that player can decide to work. It must be messed up here:
My russian is not that good, so I sure have missunderstod something. I am also now to RenPy and want to learn. I learn by doing it. Spasiba tobie!:
Code: Select all
label Smith:
$ in_map=False
hide screen map_box2
if day_time == 4 or week_day == 7:
r "The Smith has closed."
jump Town_Map1
if day_time < 1 and week_day < 2:
jump Smith_open
label Smith_open:
hide bg_night001
hide screen map_box2
show Smith_ground
b "Welcome! I am very skilled, I can create even jewelery. But I also need somebody to help me to clean up my workshop. I am willing to
pay you 5 gulden for each time."
b "What can I do for you?"
jump smith_menu
label smith_menu:
menu:
"I want to work":
if Smith_Work == False:
n "Ram is heavy working for about an hour."
scene black
$ InitGame("bg_room", 5.0, True, (342, 550), "figure1", (249, 231), "figure2", (257, 1139), "figure3", (364, 617), "figure4")
$ GameAsBG()
with dissolve
$ res = StartGame()
$ GameAsBG()
if oRes:
r "I have cleaned all up!"
play sound "sound/pickup001.ogg" # a money sound
b "Here is your money. (+ 2 Gulden)"
pause
$ Gulden += 2
$ day_time += 1
$ Smith_Work = True
jump smith_menu
else:
"Cleaned up objects: [oLen] of [maxLen]."
b "Better try again another day if you want get money."
$ day_time += 1
$ Smith_Work = True
return
if Smith_Work == True:
b "You worked enough for today."
pause
jump smith_menu
"Exit Smith.":
b "Thank you, come back later."
hide Smith_ground
jump Town_Map1
I attached the "game.rpy" from the download in russian, now in english.
Re: 12 mini games
Posted: Tue Jan 22, 2019 1:39 am
by Andredron
Code mini game pliz
I not telepat
but judging by the text of the error, reassigned the system function to its variable.
this assumption is only if only a piece of code is shown
Re: 12 mini games
Posted: Tue Jan 22, 2019 5:19 am
by M-77
Hello, thank you for help. The mini game code I use is attached above "game.rpy" and in my game directory .And the code where the player has to work (the Smith shop) I posted above too.
What variable you think is going wrong? I also add the value "res = False" in my main "script.rpy before game start, the smith label is in same file."
Notice "$ in_map=False" I also have this variable at the smith shop beginn to hide a time skip button. Maybe this causes the error.
Re: 12 mini games
Posted: Fri Feb 01, 2019 2:32 pm
by M-77
Hello Andredron!
I found what was going wrong. It was when I want the pics of the items to have the hover effect afte clicking.
The trick is to not name the "figure1" etc. pics as "figure1_idle" but let them as "figure1" (without the "_idle") in the "game" ans "script" code and have pics such as "figure1_hover" in the image directory.
The bug I got can be found and neutralized (if someone has similar error message) in this line (in "game.rpy"):
$ InitGame("bg room", 5.0, (507, 597), "figure1", (930, 565), "figure2", (1600, 60), "figure3", (100, 750)
I found this in less than 1 hour after recoded outside my game. Now I will put it into my game again. Your code works well now.
Horischina igra!
Re: 12 mini games
Posted: Tue Feb 12, 2019 10:59 am
by M-77
Clicker mini-game bug in my version.
Hello Andredron, I have the issue that the main "bg_farm0" do not show up on the "Win!", "Fail", or "Get ready!" messages as a background. The messages show up on empty/transparent bg. The bg shows up in and before game. Sprites also moving.
-What did i wrong.
-And is it possible to made the sprites not move backwards? It looks strange when the hun the player has to feed walk backwards.
(I changed the resolution to 1920x1080 in the "options.rpy".)
I upload the unfinished code by me here (zip).
13 Corsare(beta)
Posted: Mon Feb 25, 2019 6:47 am
by Andredron