News:

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

Former www.henthighschool.com

[Resources] Index of mods, utilities and useful links

Started by neronero, May 17, 2022, 06:51 PM

Previous topic - Next topic

Deimos96

I think the old ChrisJob mod broke after the new update.

These two pieces of code seem to have broken the mod. The first in BKfunctions and the second in BKgirlclass.

        ### JMan's code ###
        if not game.has_active_mod("chrisjobmod") or shuffle_whore_customers:
            renpy.random.shuffle(customers)

        customers.sort(key= lambda x : x.rank, reverse=True)

        if game.has_active_mod("chrisjobmod") and shuffle_whore_customers and entertainment_bonus_strength != 0:
            customers.sort(key=lambda x: x.service_dict["entertained"] > 0, reverse=True)
        ### End of JMan's code ###

            ################ NEW CODE #########################################################
            act_modif = tip_act_modifier[act]
            if act_modif != 1.0:
                tip *= act_modif
                gold_ttip += "\nAct modifier: x%i" % (act_modif * 100) + "%"
                if not game.has_active_mod("chrisjobmod") or cap_positive_tip_act_modifier:
                    if act_modif > 1.0:
                        tip_multiplier = min(maximum_tip_modifier, max(0.1, tip_multiplier))
            ################ END OF NEW CODE ##################################################

I deleted the first one entirely and deleted "or cap_positive_tip_act_modifier". To be clear I don't know if this has affected the mod in anyway. I had some crashes appear after assigning a whore but not after the edits. I know the new code is to support CJMT but I thought this should be mentioned.

Jman

You don't want to delete the whole first code block, that's largely vanilla.

Actually, you don't want to delete anything. Better put something like this into 'label chris_jobmod_init():'

        # Rank-based penalty for each group sex customer

        group_rank_penalty_applies = False
       
        # Do act-based tip modifiers count under the x5 limit?

        cap_positive_tip_act_modifier = True

        # Does whore matchmaking reshuffle customers before sorting?

        shuffle_whore_customers = True

Reactivate the mod from the '?' menu to get these changes into your existing game or start a new one.

Chris or whoever is hosting this now (vadi?) should probably make these changes, too.


The alternative would be for Goldo to define similar values in some 'start game' block (so they don't override mod activation values).
And with strange aeons even death may die...

solemnis

#47
I made a simple Mod to get girls with random french names and first names.
So you may have Mélodie Dupont instead of a syllabic combinaison names.
If some of you are interested I can try to duplicate it for other languages...
here is the link:
https://mega.nz/file/O2wDCYAI#ZXNF4xCK5d7MpIDsitEx3i7t86aii_eW1sY7jjqZR3U