News:

Please request registration email again and then check your "Spam" folder

Former www.henthighschool.com

[Resources] Writing events for BK

Started by Goldo, May 19, 2022, 09:17 AM

Previous topic - Next topic

Jman

'custom_arg' is legacy and doesn't work. The corresponding code is literally commented out and the whole thing used to be an older version of string substitution.



Mostly, 'nw' hides the dialogue real fast. So fast you can't even see it. :)

It prevents you from clicking the dialogue window, so in a specific context it can make the window stick around while you interact with something else. The only example in-game I can find is the 'interact with a girl for the first time' menu. 'nw = False' makes you click away the girl's dialogue before you get to make a choice, 'nw = True' makes the dialogue stick around in the background.
And with strange aeons even death may die...

nemojason

Quote from: Jman on Apr 15, 2025, 05:18 PM'custom_arg' is legacy and doesn't work. The corresponding code is literally commented out and the whole thing used to be an older version of string substitution.



Mostly, 'nw' hides the dialogue real fast. So fast you can't even see it. :)

It prevents you from clicking the dialogue window, so in a specific context it can make the window stick around while you interact with something else. The only example in-game I can find is the 'interact with a girl for the first time' menu. 'nw = False' makes you click away the girl's dialogue before you get to make a choice, 'nw = True' makes the dialogue stick around in the background.
ok merci... je note ça pour plus tard quand j'aurais terminé la recherche d'images pour un nouveau pack xd

GoldoTopic starter

Quote from: nemojason on Apr 14, 2025, 08:22 PM
Quote from: Jman on Apr 14, 2025, 06:15 PMImages can be redimensioned in a variety of ways: resize the original image file, the 'zoom' transform property (as part of a special transform or just 'show'), using the Picture class and its 'get' function, some more involved methods via custom displayables.

The 'zoom' property is easiest if you're just using 'show' on an image. Unless it's a dialogue mini-portrait, which should auto-resize anyway, so I presume that's not the problematic 'le portrait.
j'ai juste marque ... show [nom de l'image déclaré en haut de la page] at center croyant que mon image serait petit mais non elle est énorme elle prend tout l ecran du jeu xd
et si j'ajoute zoom 50% ça marche ?

I would recommend you stay away from the 'zoom' command. Not only is it a pain to adjust to the right value, it will break as soon as someone changes the resolution.

The recommended way to use images is to 'declare' them at game init. You can fiddle with Ren'Py declaration options or use BK's built-in function 'declare', like this:

init python: # This needs to be within a python init block
    declare("bg sky day", "backgrounds/sky day.webp", method="p", wide=True)

"p" here means 'proportional', you will probably want this method most of the time but sometimes simple scaling ("s") may give you better results. Wide is False by default but make sure to use it if you want the picture to scale on a wide format - leaving a blank part where the dialogue window stands when using a non-wide resolution.
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

Jman

#228
I don't think using 'image' allows for much rescaling via options, short of just saying it's 'image my_image = im.Scale(my_image, ...)' or similar?

Otherwise, yeah, that's the built-in way. I think it still suffers from Ren'Py scaling not being the most sophisticated thing around?



Edit: A thing that came up in the 'discussion bilingue' thread, but who's trimming the grass, filling the bathtubs with hot water, re-painting the fence around the brothel and re-installing doors broken during a brawl? The cleaning girls? The slaves? The MC? The goons? The Guild? Sill? :)
And with strange aeons even death may die...

GoldoTopic starter

Quote from: Jman on Apr 17, 2025, 10:13 AMEdit: A thing that came up in the 'discussion bilingue' thread, but who's trimming the grass, filling the bathtubs with hot water, re-painting the fence around the brothel and re-installing doors broken during a brawl? The cleaning girls? The slaves? The MC? The goons? The Guild? Sill? :)

The staff (ad girls, maids, goons) all lend a hand, but yeah it's mostly Sill.
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

GoldoTopic starter

Quote from: Goldo on Apr 18, 2025, 09:01 PM
Quote from: Jman on Apr 17, 2025, 10:13 AMEdit: A thing that came up in the 'discussion bilingue' thread, but who's trimming the grass, filling the bathtubs with hot water, re-painting the fence around the brothel and re-installing doors broken during a brawl? The cleaning girls? The slaves? The MC? The goons? The Guild? Sill? :)

The staff (girls, ad girls, maids, goons) all lend a hand, but yeah it's mostly Sill.
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

Jman

I'm feeling quite sorry for Sill. :(
And with strange aeons even death may die...

GoldoTopic starter

Quote from: Jman on Apr 18, 2025, 10:29 PMI'm feeling quite sorry for Sill. :(

Some evil player you are! ;)
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

Jman

Hey, not everyone is Rance-evil! :D
And with strange aeons even death may die...

Quintillian

Hello everyone, so the other day I was just perusing the Ren'Py documentation as any other normal human being and found something interesting.

I know at least for me one of the biggest blocks in the past to write mods or events for BK is the lack of any proper documentation of the codebase. If you want to know what is available to use, you pretty much have to deep in the guts of the codebase. Granted, Python/Ren'Py is not that hard to understand, but even this initial hurdle can be too much for people. I think having the project properly documented, can help reduce the friction for others to implement their ideas.

There are tools like Sphinx that allow to automate the creation of documentation, so the developer only has to focus on putting the comments in the codebase. Unfortunately, Ren'Py uses .rpy as the file extension instead of the .py of common Python code so making this tools work with it is complicated. I thought all hope of this idea was lost until I found this page on the Ren'Py docs(which topically are made with Sphinx too btw): https://www.renpy.org/doc/html/ren_py.html. Not just that, I was even able to find a related Lemmasoft forum doc: https://lemmasoft.renai.us/forums/viewtopic.php?t=68675

In conclusion, I just wanted to bring awareness to this feature since I think it could be useful specially for projects like this that heavily rely on Python. That is all, thank you for coming to my TED talk.

Jman

#235
I'm sorry to rain on your TED talk, but making BK 'edible' for Sphinx is essentially a minor rewrite of the game with a massive amount of new documentation inserted.


I recall Vadi trying to replicate some of my onetime Bonanza sound additions, a task involving orders of magnitude less work than fully documenting the game, and I don't think this got anywhere near completion? And all the actual hard work of figuring out where and which sounds to put in the game was already done by yours truly. I never got anywhere close to even the half-way mark with fully 'sounding' the 0.15 girl lines like I wanted to, either.

Also, I'd much rather Goldo spent what limited time he has on new game features/content, rather than documenting existing stuff in the vague hopes that someone who's not going to code-dive will be satisfied with auto-generated documentation. At least half of which (and probably much more) will be of no real use to an event writer or light modder.

Maybe a dedicated fan could do that, and perhaps one could massage an AI to spit out at least passable comments after some prompt management and code feeding, but you'd still have to sanity-check the result and it's not fgoing to be small. And if such a dedicated fan existed, they would probably contribute more to the community as a modder or event writer.
And with strange aeons even death may die...

Quintillian

Quote from: Jman on May 06, 2025, 11:00 PMI'm sorry to rain on your TED talk, but making BK 'edible' for Sphinx is essentially a minor rewrite of the game with a massive amount of new documentation inserted.


I recall Vadi trying to replicate some of my onetime Bonanza sound additions, a task involving orders of magnitude less work than fully documenting the game, and I don't think this got anywhere near completion? And all the actual hard work of figuring out where and which sounds to put in the game was already done by yours truly. I never got anywhere close to even the half-way mark with fully 'sounding' the 0.15 girl lines like I wanted to, either.

Also, I'd much rather Goldo spent what limited time he has on new game features/content, rather than documenting existing stuff in the vague hopes that someone who's not going to code-dive will be satisfied with auto-generated documentation. At least half of which (and probably much more) will be of no real use to an event writer or light modder.

Maybe a dedicated fan could do that, and perhaps one could massage an AI to spit out at least passable comments after some prompt management and code feeding, but you'd still have to sanity-check the result and it's not foing to be small. And if such a dedicated fan existed, they would probably contribute more to the community as a modder or event writer.

It is all good man  ;D .

I agree that at this point, this would be a monumental task. But that is the thing with technical debt, there is no painless way to pay it off. Even if it is not adding new features, I have been in the software industry long enough to recognize how much a good documentation can speed up the development of new stuff. Not only makes it easier for others to contribute, but also frees up your own cognitive space. No more struggling to remember the why something is the way its six months down the road. Is the effort too high? Yeap. Only Goldo can decide if it is worth it, like I said, I just wanted to bring awareness to the possibility of it