Please request registration email again and then check your "Spam" folder
Quote from: ⚧ Squark on Apr 28, 2025, 10:49 PMIs it possible to fetch one NPC's Friendship value towards another NPC and display it to the player?
Quote from: solemnis on Apr 28, 2025, 07:24 PMQuote from: nemojason on Apr 28, 2025, 03:56 PMlà je viens de finir un test sur ma modification du code de répartition des traits de Trait king, et je suis satisfait du résultat, plus de traits negatifs et positifs mais dans la limite du raisonnable ... ça correspond mieux à mes attentes, donc j'ai plus besoin de faire des fichiers personnalisées...Merci mais ces fichiers ne sont pas les fichiers de traduction mais les fichiers de code. Ce sont des originaux qui ne contiennent aucune modifications.
Sinon je te passe les fichiers que j'ai fait, sur Bkinteraction et aussi le fichier event de trait king au moins tu auras un début mais j'ai pas vérifier en jeu la traduction... ce que je ferais demain en jouant "normalement" xd
Bkinteract
TK event
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/BKendday.rpy", line 934, in script
python:
File "game/BKendday.rpy", line 957, in <module>
farm_events += (farm.programs[girl].resolve("holding"))
File "game/BKfarm.rpy", line 953, in resolve
change_log.merge(self.apply_changes(girl, changes))
File "game/BKfarm.rpy", line 996, in apply_changes
changes[stat] = girl.change_fear(chg*reverse_if(girl.get_effect("boost", "farm fear generation"), chg), mojo_color=mojo_color)
UnboundLocalError: local variable 'mojo_color' referenced before assignment
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/BKendday.rpy", line 934, in script
python:
File "D:\Brothel_King-pc-0.3t.2\renpy\ast.py", line 823, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "D:\Brothel_King-pc-0.3t.2\renpy\python.py", line 1178, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/BKendday.rpy", line 957, in <module>
farm_events += (farm.programs[girl].resolve("holding"))
File "game/BKfarm.rpy", line 953, in resolve
change_log.merge(self.apply_changes(girl, changes))
File "game/BKfarm.rpy", line 996, in apply_changes
changes[stat] = girl.change_fear(chg*reverse_if(girl.get_effect("boost", "farm fear generation"), chg), mojo_color=mojo_color)
UnboundLocalError: local variable 'mojo_color' referenced before assignment
Windows-10-10.0.26100 AMD64
Ren'Py 8.2.0.24012702
Bro King 0.3t.2 v250422
Tue Apr 29 10:37:20 2025
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/BKendday.rpy", line 1528, in script call
call play_events(_type = "morning") from _call_play_events_1 # Note: Morning events are set with the new day's date: beware of the confusion
File "game/BKevents.rpy", line 1024, in script call
call display_events(ev_list) from _call_display_events
File "game/BKevents.rpy", line 1036, in script call
$ ev.play()
File "game/BKpowers.rpy", line 1353, in script
show screen show_event(girl2.get_pic("market", "profile", and_tags=["sad"], and_priority=False))
File "renpy/common/000statements.rpy", line 635, in execute_show_screen
args, kwargs = a.evaluate()
File "game/BKpowers.rpy", line 1353, in <module>
show screen show_event(girl2.get_pic("market", "profile", and_tags=["sad"], and_priority=False))
AttributeError: 'NoneType' object has no attribute 'get_pic'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/BKendday.rpy", line 1528, in script call
call play_events(_type = "morning") from _call_play_events_1 # Note: Morning events are set with the new day's date: beware of the confusion
File "game/BKevents.rpy", line 1024, in script call
call display_events(ev_list) from _call_display_events
File "game/BKevents.rpy", line 1036, in script call
$ ev.play()
File "game/BKpowers.rpy", line 1353, in script
show screen show_event(girl2.get_pic("market", "profile", and_tags=["sad"], and_priority=False))
File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1968, in execute
self.call("execute")
File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1950, in call
return renpy.statements.call(method, parsed, *args, **kwargs)
File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\statements.py", line 349, in call
return method(parsed, *args, **kwargs)
File "renpy/common/000statements.rpy", line 635, in execute_show_screen
args, kwargs = a.evaluate()
File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\parameter.py", line 477, in evaluate
value = renpy.python.py_eval(v, locals=scope)
File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1209, in py_eval
return py_eval_bytecode(code, globals, locals)
File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1202, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/BKpowers.rpy", line 1353, in <module>
show screen show_event(girl2.get_pic("market", "profile", and_tags=["sad"], and_priority=False))
AttributeError: 'NoneType' object has no attribute 'get_pic'
Windows-10-10.0.19045 AMD64
Ren'Py 8.2.0.24012702
Bro King 0.3t.2 v250422
Tue Apr 29 03:06:40 2025
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/BKendday.rpy", line 1528, in script call
call play_events(_type = "morning") from _call_play_events_1 # Note: Morning events are set with the new day's date: beware of the confusion
File "game/BKevents.rpy", line 1024, in script call
call display_events(ev_list) from _call_display_events
File "game/BKevents.rpy", line 1036, in script call
$ ev.play()
File "game/BKpowers.rpy", line 1358, in script
girl2.char "Oh... My head... Where... Where am I?"
Exception: Sayer 'girl2.char' is not defined.
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/BKendday.rpy", line 1528, in script call
call play_events(_type = "morning") from _call_play_events_1 # Note: Morning events are set with the new day's date: beware of the confusion
File "game/BKevents.rpy", line 1024, in script call
call display_events(ev_list) from _call_display_events
File "game/BKevents.rpy", line 1036, in script call
$ ev.play()
File "game/BKpowers.rpy", line 1358, in script
girl2.char "Oh... My head... Where... Where am I?"
File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 2557, in execute
Say.execute(self)
File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 575, in execute
who = eval_who(self.who, self.who_fast)
File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 464, in eval_who
raise Exception("Sayer '%s' is not defined." % who)
Exception: Sayer 'girl2.char' is not defined.
Windows-10-10.0.19045 AMD64
Ren'Py 8.2.0.24012702
Bro King 0.3t.2 v250422
Tue Apr 29 03:09:04 2025
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/BKendday.rpy", line 1528, in script call
call play_events(_type = "morning") from _call_play_events_1 # Note: Morning events are set with the new day's date: beware of the confusion
File "game/BKevents.rpy", line 1024, in script call
call display_events(ev_list) from _call_display_events
File "game/BKevents.rpy", line 1036, in script call
$ ev.play()
File "game/BKpowers.rpy", line 1362, in script
if girl2.MC_interact:
File "game/BKpowers.rpy", line 1362, in <module>
if girl2.MC_interact:
AttributeError: 'NoneType' object has no attribute 'MC_interact'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/BKendday.rpy", line 1528, in script call
call play_events(_type = "morning") from _call_play_events_1 # Note: Morning events are set with the new day's date: beware of the confusion
File "game/BKevents.rpy", line 1024, in script call
call display_events(ev_list) from _call_display_events
File "game/BKevents.rpy", line 1036, in script call
$ ev.play()
File "game/BKpowers.rpy", line 1362, in script
if girl2.MC_interact:
File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 1842, in execute
if renpy.python.py_eval(condition):
File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1209, in py_eval
return py_eval_bytecode(code, globals, locals)
File "C:\Users\Dani\Desktop\Juegos\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1202, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/BKpowers.rpy", line 1362, in <module>
if girl2.MC_interact:
AttributeError: 'NoneType' object has no attribute 'MC_interact'
Windows-10-10.0.19045 AMD64
Ren'Py 8.2.0.24012702
Bro King 0.3t.2 v250422
Tue Apr 29 03:11:07 2025
maintenance_desc = {"clean" : __("Your brothel is {color=c_green}{b}clean{/b}{/color}."),
"clean enough" : "Your brothel is " + event_color["a little good"] % "{b}clean enough{/b}" + ".",
"dusty" : "Your brothel is getting " + event_color["average contrast"] % "{b}dusty{/b}" + ".",
"dirty" : "Your brothel is getting " + event_color["a little bad"] % "{b}dirty{/b}" + ".",
"disgusting" : "Warning! Your brothel is " + event_color["bad"] % "{b}disgusting{/b}" + "!",
"fire" : event_color["very bad"] % "Warning!!! Your brothel is at risk of a fire!"
}
...
old "Your brothel is {color=c_green}{b}clean{/b}{/color}."
new "Votre bordel est {color=c_green}{b}propre{/b}{/color}."
I getmaintenance_desc['clean'] = "Your brothel is {color=c_green}{b}clean{/b}{/color}."
but__("Your brothel is {color=c_green}{b}clean{/b}{/color}.") = "Votre bordel est {color=c_green}{b}propre{/b}{/color}."
__(maintenance_desc[self.get_cleanliness()])
In that case, the colour substitution gets fully completed while initialising 'maintenance_desc', so there's no 'c_green' left to translate in the dict string, only '#00B050'.