CREATE YOUR AI CUM SLUT ON CANDY.AI TRY FOR FREE
x

Mod Ren'Py Onhold Universal Choice Descriptor [2024-01-24] [ZLZK]

5.00 star(s) 4 Votes

ZLZK

Member
Modder
Jul 2, 2017
295
802
Saramago I have done trimming of text of flags that is too long.

But I still didn't do much progress on new update.
And there is even something more to do.
Because I had to rework something,
and now I have to deal with backlash.

So until I don't deal with backlash I won't post it.


It works like this:

- full text:
[ abc (+1) | def (+2) ]

- trimmed text:
[ abc (+1) | ~ ] or [ ~ ]

Depends on text length how much is trimmed.
 

Tom7902000

Member
Mar 24, 2017
104
40
Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/000statements.rpy", line 609, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "renpy/common/00action_other.rpy", line 578, in __call__
    rv = self.callable(*self.args, **self.kwargs)
  File "game/_mods/ZLZK/_mods/UCD/scripts/extras/tooltip.rpy", line 162, in show_tooltip
    flags = MP._button_(label_name)
  File "game/_mods/ZLZK/_mods/UCD/scripts/extras/tooltip.rpy", line 130, in _button_
    self.get_styled_flags()
  File "game/_mods/ZLZK/_mods/UCD/scripts/parts/menu_processor.rpy", line 278, in get_styled_flags
    if var in kf:
TypeError: argument of type 'NoneType' is not iterable

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

Full traceback:
  File "script.rpyc", line 41240, in script
  File "renpy/ast.py", line 2232, in execute
    self.call("execute")
  File "renpy/ast.py", line 2220, in call
    return renpy.statements.call(method, parsed, *args, **kwargs)
  File "renpy/statements.py", line 281, in call
    return method(parsed, *args, **kwargs)
  File "renpy/common/000statements.rpy", line 609, in execute_call_screen
    store._return = renpy.call_screen(name, *args, **kwargs)
  File "renpy/exports.py", line 3181, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  File "renpy/ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "renpy/display/core.py", line 3377, 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 "renpy/display/core.py", line 4253, in interact_core
    rv = renpy.display.focus.mouse_handler(ev, x, y)
  File "renpy/display/focus.py", line 572, in mouse_handler
    return change_focus(new_focus, default=default)
  File "renpy/display/focus.py", line 528, in change_focus
    rv = widget.focus(default=default)
  File "renpy/display/behavior.py", line 930, in focus
    rv = run(self.hovered)
  File "renpy/display/behavior.py", line 329, in run
    return action(*args, **kwargs)
  File "renpy/common/00action_other.rpy", line 578, in __call__
    rv = self.callable(*self.args, **self.kwargs)
  File "game/_mods/ZLZK/_mods/UCD/scripts/extras/tooltip.rpy", line 162, in show_tooltip
    flags = MP._button_(label_name)
  File "game/_mods/ZLZK/_mods/UCD/scripts/extras/tooltip.rpy", line 130, in _button_
    self.get_styled_flags()
  File "game/_mods/ZLZK/_mods/UCD/scripts/parts/menu_processor.rpy", line 278, in get_styled_flags
    if var in kf:
TypeError: argument of type 'NoneType' is not iterable

Windows-10-10.0.19041 AMD64
Ren'Py 7.5.3.22090809
Defending Lydia Collier v.0.15.8
Tue Jan 16 01:59:29 2024
 

ZLZK

Member
Modder
Jul 2, 2017
295
802
[...] So until I don't deal with backlash I won't post it. [...]
I have resolved backlash and posted it.
It wasn't hard to do, since I was already doing similar thing in the past.

It works like this:

- full text:
[ abc (+1) | def (+2) ]

- trimmed text:
[ abc (+1) | ~ ] or [ ~ ]

Depends on text length how much is trimmed.
I have changed it to display amount of flags trimmed.

- trimmed text:
[ abc (+1) | ~1~ ] or [ ~2~ ]

Character limit is set to 250, not sure if it's alright.


I have also added character limit for variable names of 24 characters.
(Same limit as in string flags.)

-full text:
[ very very very very very very very very very very very long variable (+1) ]

- trimmed text:
[ very very very very very~ (+1) ]
 
Feb 7, 2022
295
292
Is the mod OK to use?

EDIT: The zip file has two other zips, do I have to merge the files from both zips?
 
Last edited:

ZLZK

Member
Modder
Jul 2, 2017
295
802
[...] EDIT: The zip file has two other zips, do I have to merge the files from both zips?
Yes.

When starting parental love through Joiplay on Android this error appeared
You know there is:
Installation:
You don't have permission to view the spoiler content. Log in or register now.

Btw, I wonder what Joiplay will tell now since I changed traceback to popup.
Because I still don't know if it can read images or not of mod files.

I would say no, and the issue would be in Jojplay itself for not reading files in mod directory.
 
Last edited:
Feb 7, 2022
295
292
Yes.


You know there is:



Btw, I wonder what Joiplay will tell now since I changed traceback to popup.
Because I still don't know if it can read images or not of mod files.

I would say no, and the issue would be in Jojplay itself for not reading files in mod directory.
But the October version works normally but this latest one has this problem
 

ZLZK

Member
Modder
Jul 2, 2017
295
802
I have forgot to revert one line in my code, which was making all config files not loadable.
I have added popup when config gets updated from config file.

But the October version works normally but this latest one has this problem
NameError: name 'init' is not defined
Above error happens when you don't include my mod base(lib) - "ZLZK" mod.

I have divided it into two archives because ZLZK mod is not UCD mod.
ZLZK mod is collection of code needed in most mods.

So instead of copy pasting code to each new mod I did base mod "ZLZK" mod.
 
Last edited:

ZLZK

Member
Modder
Jul 2, 2017
295
802
Emergency update.
Version 2014-01-16 was displaying flag changes properly,
but it wasn't selecting any choices, because I forgot to return value.

So game content inside choices was skipped.
I'm sorry for anyone who already used that version.
You will need to replay all the choices.
 
  • Like
Reactions: jasad

wsg123

New Member
Mar 4, 2022
7
1
Hello, I don't know if this is a bug or not. this mod changed the text of my translations.
and for this game: University of Problems, the mod's hints seem to be overwritten.
Only this game is covered. The other games display the translation text and mod hints correctly.
mod version is 2024-01-24.
截图20240303082344.png
 

Tom7902000

Member
Mar 24, 2017
104
40
Code:
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 1495, in script
    menu:
  File "game/_mods/ZLZK/scripts/tools/callable_patcher.rpy", line 63, in wrapper
    return hijack(obj, *args, **kwargs)
  File "game/_mods/ZLZK/_mods/UCD/scripts/hijacks.rpy", line 26, in hijack
    return func(UCD(items), *args, **kwargs)
  File "game/screens.rpy", line 21502, in execute
    screen choice(items):
  File "game/screens.rpy", line 21502, in execute
    screen choice(items):
  File "game/screens.rpy", line 21505, in execute
    vbox:
  File "game/screens.rpy", line 21506, in execute
    for i in items:
  File "game/screens.rpy", line 21507, in execute
    textbutton i.caption action i.action
NameError: Name 'ablovecolor' is not defined.

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

Full traceback:
  File "game/script.rpy", line 1495, in script
    menu:
  File "renpy/ast.py", line 1903, in execute
    choice = renpy.exports.menu(choices, self.set, args, kwargs, item_arguments)
  File "renpy/exports.py", line 1010, in menu
    rv = renpy.store.menu(new_items)
  File "game/_mods/ZLZK/scripts/tools/callable_patcher.rpy", line 63, in wrapper
    return hijack(obj, *args, **kwargs)
  File "game/_mods/ZLZK/_mods/UCD/scripts/hijacks.rpy", line 26, in hijack
    return func(UCD(items), *args, **kwargs)
  File "renpy/exports.py", line 1250, in display_menu
    rv = renpy.ui.interact(mouse='menu', type=type, roll_forward=roll_forward)
  File "renpy/ui.py", line 299, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "renpy/display/core.py", line 3377, 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 "renpy/display/core.py", line 3810, in interact_core
    root_widget.visit_all(lambda i : i.per_interact())
  File "renpy/display/core.py", line 582, in visit_all
    d.visit_all(callback, seen)
  File "renpy/display/core.py", line 582, in visit_all
    d.visit_all(callback, seen)
  File "renpy/display/core.py", line 582, in visit_all
    d.visit_all(callback, seen)
  File "renpy/display/screen.py", line 451, in visit_all
    callback(self)
  File "renpy/display/core.py", line 3810, in <lambda>
    root_widget.visit_all(lambda i : i.per_interact())
  File "renpy/display/screen.py", line 462, in per_interact
    self.update()
  File "renpy/display/screen.py", line 653, in update
    self.screen.function(**self.scope)
  File "game/screens.rpy", line 21502, in execute
    screen choice(items):
  File "game/screens.rpy", line 21502, in execute
    screen choice(items):
  File "game/screens.rpy", line 21505, in execute
    vbox:
  File "game/screens.rpy", line 21506, in execute
    for i in items:
  File "game/screens.rpy", line 21507, in execute
    textbutton i.caption action i.action
  File "renpy/ui.py", line 992, in _textbutton
    text = renpy.text.text.Text(label, style=text_style, substitute=substitute, scope=scope, **text_kwargs)
  File "renpy/text/text.py", line 1594, in __init__
    self.set_text(text, scope, substitute)
  File "renpy/text/text.py", line 1712, in set_text
    i, did_sub = renpy.substitutions.substitute(i, scope, substitute)
  File "renpy/substitutions.py", line 278, in substitute
    s = formatter.vformat(s, (), kwargs) # type: ignore
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/string.py", line 563, in vformat
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/string.py", line 585, in _vformat
  File "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/tmp/install.linux-x86_64/lib/python2.7/string.py", line 646, in get_field
  File "/home/tom/ab/renpy-build/tmp/install.linux-x86_64/lib/python2.7/string.py", line 605, in get_value
  File "renpy/substitutions.py", line 236, in __getitem__
    raise NameError("Name '{}' is not defined.".format(key))
NameError: Name 'ablovecolor' is not defined.

Windows-10-10.0.19041 AMD64
Ren'Py 7.5.3.22090809
Defending Lydia Collier v.0.15.9
Sun Mar 24 23:03:10 2024
 
5.00 star(s) 4 Votes