News:

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

Former www.henthighschool.com

v0.3 Test version (gameplay only)

Started by Goldo, Jul 21, 2023, 09:54 PM

Previous topic - Next topic

RatedNaughty

Quote from: Animaz on Dec 11, 2023, 05:03 AMi don't know if anyone has figured out this yet or is it just my machine. but the amount of girl packs you have installed can also cause errors.
at first when i start playing bk for the first time, i had a lot of mix in one folder, over 700 and i had to cut it down to around 450. but i would still get errors during play, most of which disappear after rollback. i started over so many times i lost count. i decided to cut down to 390 and now most of the problems i ran into before are now gone.
when i check task manager i realized that the more packs you have, it uses a lot more ram and instead of freezing like most games do when rams run low. it shows errors so it makes it sometimes difficult to pinpoint real bugs. 


At the moment, I have over 1000 girls in the folder; the only issue I have at the moment is that it takes a fair amount of time to load up the game. I wanna say roughly 1 to 5 minutes. The only error's I encountered where dealing with the older girl packs with outdated perks or other minor things.

The only thing, I can think of that may have caused your error's is that certain girl packs may overlap with other girls name / events files. I noticed it when I accidentally downloaded Hinata twice and one of the them had a misspelling on them. I would try and check if there were duplicates with different writing styles (like names are switched / or they have () with their name in them)

cgghj

            if self.hurt:
                if self.type == "machine":
                    des += event_color["bad"] % ("\n" + self.name + " is broken and will be retired in " + str(self.hurt) + " days. ")
                else:
                    des += event_color["bad"] % ("\n" + self.name + " is injured and will be retired in " + str(self.hurt) + " days. ")

            return des

I have noticed that there are many tiny bugs inside the BKfarm.rpy...
Like this upward, it will display in game like: injured minions will be retaire in True days.
I wonder how many other mistakes over there that not been noticed...since these bugs were existed in version 0.15.

Goldface

Quote from: RatedNaughty on Dec 18, 2023, 07:00 AM
Quote from: Animaz on Dec 11, 2023, 05:03 AMi don't know if anyone has figured out this yet or is it just my machine. but the amount of girl packs you have installed can also cause errors.
at first when i start playing bk for the first time, i had a lot of mix in one folder, over 700 and i had to cut it down to around 450. but i would still get errors during play, most of which disappear after rollback. i started over so many times i lost count. i decided to cut down to 390 and now most of the problems i ran into before are now gone.
when i check task manager i realized that the more packs you have, it uses a lot more ram and instead of freezing like most games do when rams run low. it shows errors so it makes it sometimes difficult to pinpoint real bugs. 


At the moment, I have over 1000 girls in the folder; the only issue I have at the moment is that it takes a fair amount of time to load up the game. I wanna say roughly 1 to 5 minutes. The only error's I encountered where dealing with the older girl packs with outdated perks or other minor things.

The only thing, I can think of that may have caused your error's is that certain girl packs may overlap with other girls name / events files. I noticed it when I accidentally downloaded Hinata twice and one of the them had a misspelling on them. I would try and check if there were duplicates with different writing styles (like names are switched / or they have () with their name in them)
maybe that's it. or i just need a better system..
i will check it and see. thank you

cgghj

                textbutton text1 xalign 0.5 xsize 0.8 ysize yres(65):
                    if source == "gold" and MC.gold >= source_nb:
                        action Return(("gold", target_name, source_nb, target_nb))
                        tooltip "Buy " + str(target_nb) + " " + target_name + " for " + str(source_nb) + " " + target_name
                    elif MC.resources[source_name] >= source_nb:
                        action Return((source_name, target_name, source_nb, target_nb))
                        tooltip "Trade " + str(source_nb) + " " + source_name + " for " + str(target_nb) + " " + target_name
Got another tiny bug inside BKscreens.rpy.
I think the second "target_name" in tie tooltip should be "gold"?

gdav

#214
Hi all.
New game with patch. Mods - Traits King and Friends & Foe.
When reach Chapter 2 and move brothel in a new area there are no girls in warehouse and docks region.

Update: After month pass (when global modifier change) girls appears in districts. This is new mechanics or bug?

gdav

Also, I have Megumin girl pack and every night from the first one I have this error. Even when I don't have girl.

Spoiler
```
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 369, in script call
    call expression lbl pass (girl=girl) from _call_expression_3
  File "game/girls/Megumin/resources/Megumin Events.rpy", line 238, in script
    if girl_list = [g for g in MC.girls if g.pack_name == "Megumin"]:
SyntaxError: invalid syntax (game/girls/Megumin/resources/Megumin Events.rpy, line 238)

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

Full traceback:
  File "game/BKendday.rpy", line 369, in script call
    call expression lbl pass (girl=girl) from _call_expression_3
  File "game/girls/Megumin/resources/Megumin Events.rpy", line 238, in script
    if girl_list = [g for g in MC.girls if g.pack_name == "Megumin"]:
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 2133, in execute
    if renpy.python.py_eval(condition):
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1151, in py_eval
    code = py_compile(code, 'eval')
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1088, in py_compile
    raise e
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1034, in py_compile
    raise orig_e
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1027, in py_compile
    tree = compile(source, filename, py_mode, ast.PyCF_ONLY_AST | flags, 1)
SyntaxError: invalid syntax (game/girls/Megumin/resources/Megumin Events.rpy, line 238)

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Thu Dec 21 00:11:58 2023
```
[close]

GoldoTopic starter

Quote from: gdav on Dec 20, 2023, 09:20 PMAlso, I have Megumin girl pack and every night from the first one I have this error. Even when I don't have girl.

Spoiler
```
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 369, in script call
    call expression lbl pass (girl=girl) from _call_expression_3
  File "game/girls/Megumin/resources/Megumin Events.rpy", line 238, in script
    if girl_list = [g for g in MC.girls if g.pack_name == "Megumin"]:
SyntaxError: invalid syntax (game/girls/Megumin/resources/Megumin Events.rpy, line 238)

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

Full traceback:
  File "game/BKendday.rpy", line 369, in script call
    call expression lbl pass (girl=girl) from _call_expression_3
  File "game/girls/Megumin/resources/Megumin Events.rpy", line 238, in script
    if girl_list = [g for g in MC.girls if g.pack_name == "Megumin"]:
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 2133, in execute
    if renpy.python.py_eval(condition):
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1151, in py_eval
    code = py_compile(code, 'eval')
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1088, in py_compile
    raise e
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1034, in py_compile
    raise orig_e
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1027, in py_compile
    tree = compile(source, filename, py_mode, ast.PyCF_ONLY_AST | flags, 1)
SyntaxError: invalid syntax (game/girls/Megumin/resources/Megumin Events.rpy, line 238)

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Thu Dec 21 00:11:58 2023
```
[close]


Please don't report mods or girlpacks error here as I don't maintain them; use a separate thread or contact the creator instead.


Quote from: cgghj on Dec 19, 2023, 07:01 PM            if self.hurt:
                if self.type == "machine":
                    des += event_color["bad"] % ("\n" + self.name + " is broken and will be retired in " + str(self.hurt) + " days. ")
                else:
                    des += event_color["bad"] % ("\n" + self.name + " is injured and will be retired in " + str(self.hurt) + " days. ")

            return des

I have noticed that there are many tiny bugs inside the BKfarm.rpy...
Like this upward, it will display in game like: injured minions will be retaire in True days.
I wonder how many other mistakes over there that not been noticed...since these bugs were existed in version 0.15.

Good catch, self.hurt should be self.hp. It's just a display problem though, the damage mechanic works behind the scene.

Quote from: cgghj on Dec 20, 2023, 03:47 PM                textbutton text1 xalign 0.5 xsize 0.8 ysize yres(65):
                    if source == "gold" and MC.gold >= source_nb:
                        action Return(("gold", target_name, source_nb, target_nb))
                        tooltip "Buy " + str(target_nb) + " " + target_name + " for " + str(source_nb) + " " + target_name
                    elif MC.resources[source_name] >= source_nb:
                        action Return((source_name, target_name, source_nb, target_nb))
                        tooltip "Trade " + str(source_nb) + " " + source_name + " for " + str(target_nb) + " " + target_name
Got another tiny bug inside BKscreens.rpy.
I think the second "target_name" in tie tooltip should be "gold"?

This is set elsewhere. Although it's definitely not the best-written code ever, it works as intended.
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

vadi92

Quote from: gdav on Dec 20, 2023, 09:20 PMAlso, I have Megumin girl pack and every night from the first one I have this error. Even when I don't have girl.

Spoiler
```
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 369, in script call
    call expression lbl pass (girl=girl) from _call_expression_3
  File "game/girls/Megumin/resources/Megumin Events.rpy", line 238, in script
    if girl_list = [g for g in MC.girls if g.pack_name == "Megumin"]:
SyntaxError: invalid syntax (game/girls/Megumin/resources/Megumin Events.rpy, line 238)

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

Full traceback:
  File "game/BKendday.rpy", line 369, in script call
    call expression lbl pass (girl=girl) from _call_expression_3
  File "game/girls/Megumin/resources/Megumin Events.rpy", line 238, in script
    if girl_list = [g for g in MC.girls if g.pack_name == "Megumin"]:
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 2133, in execute
    if renpy.python.py_eval(condition):
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1151, in py_eval
    code = py_compile(code, 'eval')
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1088, in py_compile
    raise e
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1034, in py_compile
    raise orig_e
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1027, in py_compile
    tree = compile(source, filename, py_mode, ast.PyCF_ONLY_AST | flags, 1)
SyntaxError: invalid syntax (game/girls/Megumin/resources/Megumin Events.rpy, line 238)

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Thu Dec 21 00:11:58 2023
```
[close]


@Yasaki74 this will be your job for fix.

Aetheran

So I was looking through the code to try and learn things because I'm new and this all still confuses me, and saw something odd in BKevents.rpy. A block of code that looks like it should be code, but is all orange. Screenshot:

https://i.imgur.com/sinWnE0.jpg

I added a single " to line 150, at the end of the word Ignore, as it looked like that's where it was missing, and the code below all turned nice and colorful... Screenshot:

https://i.imgur.com/XpqvNJd.jpg

So.... ya, not too sure if that missing " was intentional or not. If it was, lemme know so I can take that " out again in my BKevents.rpy lol

vadi92

#219
Quote from: Aetheran on Dec 26, 2023, 08:19 PMSo I was looking through the code to try and learn things because I'm new and this all still confuses me, and saw something odd in BKevents.rpy. A block of code that looks like it should be code, but is all orange. Screenshot:

https://i.imgur.com/sinWnE0.jpg

I added a single " to line 150, at the end of the word Ignore, as it looked like that's where it was missing, and the code below all turned nice and colorful... Screenshot:

https://i.imgur.com/XpqvNJd.jpg

So.... ya, not too sure if that missing " was intentional or not. If it was, lemme know so I can take that " out again in my BKevents.rpy lol

You dont need that extra " there. It was a text for a button when there is an empty folder in your girlpack mix. (with that there you will get a script error)

https://imgur.com/a/WxqjBOT

https://imgur.com/a/sj3ON2Z

Aetheran

Quote from: vadi92 on Dec 27, 2023, 05:57 AMYou dont need that extra " there. It was a text for a button when there is an empty folder in your girlpack mix. (with that there you will get a script error)

https://imgur.com/a/WxqjBOT

https://imgur.com/a/sj3ON2Z

Ok, its just Visual Studio Code reading stuff wrong I guess. Looking at it again I can see what you mean, there's "Delete", "Ignore (update manually)". When I first looked at it I thought the Ignore was missing that ", but it's just at the end of the brackets.

I'm obviously an idiot, so I'll refrain from commenting on code in the future, and just limit myself to posting actual error screens.

Yasaki74

#221
Quote from: vadi92 on Dec 21, 2023, 03:45 PM
Quote from: gdav on Dec 20, 2023, 09:20 PMAlso, I have Megumin girl pack and every night from the first one I have this error. Even when I don't have girl.

Spoiler
```
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/BKendday.rpy", line 369, in script call
    call expression lbl pass (girl=girl) from _call_expression_3
  File "game/girls/Megumin/resources/Megumin Events.rpy", line 238, in script
    if girl_list = [g for g in MC.girls if g.pack_name == "Megumin"]:
SyntaxError: invalid syntax (game/girls/Megumin/resources/Megumin Events.rpy, line 238)

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

Full traceback:
  File "game/BKendday.rpy", line 369, in script call
    call expression lbl pass (girl=girl) from _call_expression_3
  File "game/girls/Megumin/resources/Megumin Events.rpy", line 238, in script
    if girl_list = [g for g in MC.girls if g.pack_name == "Megumin"]:
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\ast.py", line 2133, in execute
    if renpy.python.py_eval(condition):
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1151, in py_eval
    code = py_compile(code, 'eval')
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1088, in py_compile
    raise e
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1034, in py_compile
    raise orig_e
  File "D:\Downloads\ulala\Brothel_King-0.3t\Brothel_King-pc\renpy\python.py", line 1027, in py_compile
    tree = compile(source, filename, py_mode, ast.PyCF_ONLY_AST | flags, 1)
SyntaxError: invalid syntax (game/girls/Megumin/resources/Megumin Events.rpy, line 238)

Windows-10-10.0.19045 AMD64
Ren'Py 8.1.1.23060707
Brothel King 0.3t v230923
Thu Dec 21 00:11:58 2023
```
[close]


@Yasaki74 this will be your job for fix.
yea sorry, I was at the military school for school requirements luckly it only last 2 weeks so I'm back now, I'll check out the error
I just read the log and it said it's in brothel king v0.3, I know there's a v0.3 of brothel king that is out but I'm been using v0.2 to test out my packs so maybe try it on 0.2?

GoldoTopic starter

I thought I had found a great way of saving on memory usage by items but I have hit a roadblock:
https://lemmasoft.renai.us/forums/viewtopic.php?p=564946#p564946

If you guys know what I could be doing wrong... I have tested a bunch of regular python fixes for __getattr__() recursive errors, but no dice.
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!

Smaug

How important is saving memory nowadays? Steam Hardware Survey 2023 shows that over 79% of participants had 16GB of memory or more.

GoldoTopic starter

Quote from: Smaug on Jan 17, 2024, 08:04 PMHow important is saving memory nowadays? Steam Hardware Survey 2023 shows that over 79% of participants had 16GB of memory or more.

Well, Jman pointed out to me a problem with BK saved games' inflation, that can snowball into seriously large files. One of the reason may be item duplication. This fix had the added benefit of saving memory, and I didn't want to start a long tangential explanation so I kept it at that.

Regardless, turns out the problem may be something entirely different, because even Ren'py's tutorial crashes now when reloading.
Maker of BK. Looking for the latest patch for BK 0.2? The link doesn't change, so bookmark it!