News:

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

Former www.henthighschool.com

Modding Question

Started by darthdestroyeis, Jul 03, 2022, 08:30 PM

Previous topic - Next topic

Goldo

Quote from: Yasaki74 on Jan 28, 2024, 03:41 PMhttps://imgur.com/tACH7tE
ok I've found where the image come from I think? though idk how this part work, would you mind explaining this part to me?
I was hoping to change the girl profile when a girl change clothing

no need to explain the farm or slave market part but maybe the free part :3

I'm sorry but can you recap your original question? Even looking through your comments' history I couldn't quite figure it out.

profile is an attribute of the Girl class, if you want to implement a clothing system your best bet is to change the girl.profile picture every time there is a change of clothes.
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

nneezz

I tried to bump up the game resolution to 2048 and found that the side image overlaps the text. Anyone know how to fix this?

Spoiler
[close]

Goldo

Quote from: nneezz on Apr 18, 2024, 05:06 PMI tried to bump up the game resolution to 2048 and found that the side image overlaps the text. Anyone know how to fix this?

Spoiler
[close]

You need to fiddle with the 'Say' screen in screens.rpy, looking around these lines:
    # If there's a side image, display it above the text.

    if side_image: # This is for Girl.char objects
        fixed xsize res_portrait_size ysize res_portrait_size xalign 0.0 yalign 1.0:
            add side_image xalign 0.5 yalign 0.0

    else:
        add SideImage() xalign 0.0 yalign 1.0

This will take a bit of Ren'py knowledge. Nevertheless, it's unlikely to be your only problem at such a large resolution, so you should be prepared to do a bit more customization of screens if you want to keep it up.
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

nneezz

Quote from: Goldo on Apr 22, 2024, 03:22 PMYou need to fiddle with the 'Say' screen in screens.rpy, looking around these lines:

Thank you, Goldo. I looked in to that but can only change the side image not the area around it so I ended up with changing the dialogue box margin instead (options.rpy -> style.window.left_margin). Not the best workaround but the game is playable.

It turned out 2048 is not even enough so I went with 3072 ;D. Surprisingly just changing xres yres function and the base resolution the game adjusted its size really well. I'd say like 80% of the original stuff is zoomed correctly. Hopefully there'll be a resolution selector in the next version.

Goldo

Quote from: nneezz on Apr 24, 2024, 12:50 AM
Quote from: Goldo on Apr 22, 2024, 03:22 PMYou need to fiddle with the 'Say' screen in screens.rpy, looking around these lines:

Thank you, Goldo. I looked in to that but can only change the side image not the area around it so I ended up with changing the dialogue box margin instead (options.rpy -> style.window.left_margin). Not the best workaround but the game is playable.

It turned out 2048 is not even enough so I went with 3072 ;D. Surprisingly just changing xres yres function and the base resolution the game adjusted its size really well. I'd say like 80% of the original stuff is zoomed correctly. Hopefully there'll be a resolution selector in the next version.

If you can make a side list of other screens and windows that do not display correctly at higher resolutions as you go, that would be helpful for me to iron things out in the next version.
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

nneezz

Sure. I'll try to fix them as I play too.

Yasaki74

@Goldo
Can you explain how do you generate a girl on screen? I'm kind of working on a mod but the code it's a bit overwhelming and hard to understand and looking at head hunter mod still a bit hard for me to read. It's there an easy way that to do this? I know that I need to show screen about the info of the girls but Idk how to get the info in the first place let alone generate one.

Goldo

Quote from: Yasaki74 on Jun 11, 2024, 12:30 AM@Goldo
Can you explain how do you generate a girl on screen? I'm kind of working on a mod but the code it's a bit overwhelming and hard to understand and looking at head hunter mod still a bit hard for me to read. It's there an easy way that to do this? I know that I need to show screen about the info of the girls but Idk how to get the info in the first place let alone generate one.

Depends what you mean by "on screen". The new version will include functions under the hood to easily create girls both from specific templates or randomly, but if you're just looking for a random girl you can use:
$ girl = get_girls(1)[0]
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

Yasaki74

#23
Quote from: Goldo on Jun 11, 2024, 05:14 PM
Quote from: Yasaki74 on Jun 11, 2024, 12:30 AM@Goldo
Can you explain how do you generate a girl on screen? I'm kind of working on a mod but the code it's a bit overwhelming and hard to understand and looking at head hunter mod still a bit hard for me to read. It's there an easy way that to do this? I know that I need to show screen about the info of the girls but Idk how to get the info in the first place let alone generate one.

Depends what you mean by "on screen". The new version will include functions under the hood to easily create girls both from specific templates or randomly, but if you're just looking for a random girl you can use:
$ girl = get_girls(1)[0]

Well I like to generate random girls but I also like to change their stats in other case, and I also like to them to be appeared as slave girls rather than free girls. Finally, I wanted to show the girl stats for the buyers.

Goldo

Quote from: Yasaki74 on Jun 11, 2024, 07:51 PM
Quote from: Goldo on Jun 11, 2024, 05:14 PM
Quote from: Yasaki74 on Jun 11, 2024, 12:30 AM@Goldo
Can you explain how do you generate a girl on screen? I'm kind of working on a mod but the code it's a bit overwhelming and hard to understand and looking at head hunter mod still a bit hard for me to read. It's there an easy way that to do this? I know that I need to show screen about the info of the girls but Idk how to get the info in the first place let alone generate one.

Depends what you mean by "on screen". The new version will include functions under the hood to easily create girls both from specific templates or randomly, but if you're just looking for a random girl you can use:
$ girl = get_girls(1)[0]

Well I like to generate random girls but I also like to change their stats in other case, and I also like to them to be appeared as slave girls rather than free girls. Finally, I wanted to show the girl stats for the buyers.

That's more difficult to do with the currently released version of the game. New functions in the WIP version of the game will make this much easier. In fact, you will see an example of what you want to do in one of the NewGame+ challenges. So I would recommend waiting a little, as a new test release is not very far now.
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!