Home Creators Posts Import Register Favorites Logout

Downloads

Content

This weekend I've finally finished the worker placement system for renpy. This can be tweaked and changed into all kind of working to get money as the main mechanic for games. The summoner theme is just my way of visualizing it.

I managed to finish all of the major mechanics on my to do list, the ones remaining were minor improvements that can be omitted, so let's call it good enough and move onto the next thing.

The code is in the attachments, give it a go and let me know if something is missing.

Files

worker placement for renpy

Comments

Gunter

was super excited to try this! but I get this error I'm sorry, but an uncaught exception occurred. While running game code: File "game/summontry/summontry story.rpy", line 82, in script call screen summontry_screen(summontry) File "renpy/common/000statements.rpy", line 670, in execute_call_screen store._return = renpy.call_screen(name, *args, **kwargs) File "game/summontry/summontry.rpy", line 209, in execute screen summontry_screen(g): File "game/summontry/summontry.rpy", line 209, in execute screen summontry_screen(g): File "game/summontry/summontry.rpy", line 255, in execute if g.hovered_client and type(g.hovered_client) is summontry_client: File "game/summontry/summontry.rpy", line 256, in execute vbox spacing -90 box_reverse True align (0.5, 0.5): File "game/summontry/summontry.rpy", line 257, in execute frame: File "game/summontry/summontry.rpy", line 259, in execute frame: File "game/summontry/summontry.rpy", line 261, in execute vbox: File "game/summontry/summontry.rpy", line 263, in execute vbox: File "game/summontry/summontry.rpy", line 265, in execute text "[g.hovered_client.selected_stat[0]]: [g.hovered_client.stats[g.hovered_client.selected_stat[0]]]" KeyError: 'g.hovered_client.selected_stat[0' -- Full Traceback ------------------------------------------------------------ Full traceback: File "game/summontry/summontry story.rpy", line 82, in script call screen summontry_screen(summontry) File "/home/gunter/Desktop/renpy-8.1.3-sdk/renpy/ast.py", line 2259, in execute self.call("execute") File "/home/gunter/Desktop/renpy-8.1.3-sdk/renpy/ast.py", line 2241, in call return renpy.statements.call(method, parsed, *args, **kwargs) File "/home/gunter/Desktop/renpy-8.1.3-sdk/renpy/statements.py", line 342, in call return method(parsed, *args, **kwargs) File "renpy/common/000statements.rpy", line 670, in execute_call_screen store._return = renpy.call_screen(name, *args, **kwargs) File "/home/gunter/Desktop/renpy-8.1.3-sdk/renpy/exports.py", line 3347, in call_screen rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward) File "/home/gunter/Desktop/renpy-8.1.3-sdk/renpy/ui.py", line 299, in interact rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs) File "/home/gunter/Desktop/renpy-8.1.3-sdk/renpy/display/core.py", line 3582, in interact repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, pause_modal=pause_modal, **kwargs) # type: ignore File "/home/gunter/Desktop/renpy-8.1.3-sdk/renpy/display/core.py", line 4055, in interact_core root_widget.visit_all(lambda d : d.per_interact()) File "/home/gunter/Desktop/renpy-8.1.3-sdk/renpy/display/core.py", line 684, in visit_all d.visit_all(callback, seen) File "/home/gunter/Desktop/renpy-8.1.3-sdk/renpy/display/core.py", line 684, in visit_all d.visit_all(callback, seen) File "/home/gunter/Desktop/renpy-8.1.3-sdk/renpy/display/core.py", line 684, in visit_all d.visit_all(callback, seen) File "/home/gunter/Desktop/renpy-8.1.3-sdk/renpy/display/screen.py", line 476, in visit_all callback(self) File "/home/gunter/Desktop/renpy-8.1.3-sdk/renpy/display/core.py", line 4055, in root_widget.visit_all(lambda d : d.per_interact()) File "/home/gunter/Desktop/renpy-8.1.3-sdk/renpy/display/screen.py", line 487, in per_interact self.update() File "/home/gunter/Desktop/renpy-8.1.3-sdk/renpy/display/screen.py", line 680, in update self.screen.function(**self.scope) File "game/summontry/summontry.rpy", line 209, in execute screen summontry_screen(g): File "game/summontry/summontry.rpy", line 209, in execute screen summontry_screen(g): File "game/summontry/summontry.rpy", line 255, in execute if g.hovered_client and type(g.hovered_client) is summontry_client: File "game/summontry/summontry.rpy", line 256, in execute vbox spacing -90 box_reverse True align (0.5, 0.5): File "game/summontry/summontry.rpy", line 257, in execute frame: File "game/summontry/summontry.rpy", line 259, in execute frame: File "game/summontry/summontry.rpy", line 261, in execute vbox: File "game/summontry/summontry.rpy", line 263, in execute vbox: File "game/summontry/summontry.rpy", line 265, in execute text "[g.hovered_client.selected_stat[0]]: [g.hovered_client.stats[g.hovered_client.selected_stat[0]]]" File "/home/gunter/Desktop/renpy-8.1.3-sdk/renpy/text/text.py", line 1633, in __init__ self.set_text(text, scope, substitute) # type: ignore File "/home/gunter/Desktop/renpy-8.1.3-sdk/renpy/text/text.py", line 1763, in set_text i, did_sub = renpy.substitutions.substitute(i, scope, substitute) # type: ignore File "/home/gunter/Desktop/renpy-8.1.3-sdk/renpy/substitutions.py", line 278, in substitute s = formatter.vformat(s, (), kwargs) # type: ignore File "/home/tom/ab/renpy-build-fix/tmp/install.linux-x86_64/lib/python3.9/string.py", line 165, in vformat File "/home/tom/ab/renpy-build-fix/tmp/install.linux-x86_64/lib/python3.9/string.py", line 205, in _vformat File "/home/gunter/Desktop/renpy-8.1.3-sdk/renpy/substitutions.py", line 168, in get_field obj, arg_used = super(Formatter, self).get_field(field_name, args, kwargs) File "/home/tom/ab/renpy-build-fix/tmp/install.linux-x86_64/lib/python3.9/string.py", line 278, in get_field KeyError: 'g.hovered_client.selected_stat[0' Linux-5.15.0-112-generic-x86_64-with-glibc2.35 x86_64 Ren'Py 8.1.3.23091805 My Lovly game 1.0 Tue Jun 18 11:29:22 2024