Forum Discussion

ShampainSleeper's avatar
9 years ago

Raising the retail employee limit via Python

I changed the line "The maximum number of employees allowed to be hired. This assumes\n all perks have been unlocked.\n ', tunable_type=int, default=3, minimum=0)" in the business_employee_tuning.pyo instead of 3 to 10, but it doesn't made any effect even with all the perks purchased. Any help?

Tagging @SimGuruModSquad
  • Hey @mrnhmath ,

    It’s the same thing for retail as well, the tuning exists in businessemployee_Retail. However, unlike the GP03 careers, this tuning has not been explicitly set and *is* using the default values from the code. So your original attempt was actually on the right track. Note that there are two tunables employee_count_default (the amount of employees you start with) and employee_count_max (maximim number of employees with all perks).

    I just tried two different things:

  • Tweaked the default values in business_employee_tuning.py
  • Added these as tuned values in businessemployee_Retail tuning

    And both worked fine (set default to 2 and max to 6):




    ....not sure why it did not seem to be working for you but you were on the right track. IMO approach # 2 is a better way since it's a more targeted tuning mod, but I am not sure how well community tools work with adding tuning that is currently being inherited from code.

    -SGMS
  • Hi there,

    You have changed the default tuning value in the python code. The default value in the code is not used if the value is specified in the tuning. So change this value in the actual tuning data instead.

    -SGMS
  • "SimGuruModSquad;14924654" wrote:
    Hi there,

    You have changed the default tuning value in the python code. The default value in the code is not used if the value is specified in the tuning. So change this value in the actual tuning data instead.

    -SGMS


    Thanks, can you point where this tuning is located? I did a search in the extracted tuning files and don't found nothing related to employee's limit.
  • The tuning data is in businessEmployee_Restaurant_Chef and businessEmployee_Restaurant_Host. These are in the GP03 tuning data, so make sure you are looking there (i.e. not the Base Game tuning data).
  • "SimGuruModSquad;14924801" wrote:
    The tuning data is in businessEmployee_Restaurant_Chef and businessEmployee_Restaurant_Host. These are in the GP03 tuning data, so make sure you are looking there (i.e. not the Base Game tuning data).


    Thanks, but i am looking to raise the retail employee limits from GTW, but this will serve for other people as well.
  • One more question: what makes a sim leave the lot after buying a item? I will try to make a mod that will allow customers to use items that they bought.
  • Hey @mrnhmath,

    what makes a sim leave the lot after buying a item?


    Restaurants and Retail both work the same with regards to customer flow. They progress through a determined set of situation states. Once they’ve completed, they leave. For restaurants it’s something along the lines of Arrive -> Request Table -> Be Seated -> Order Meal -> Wait For Meal -> Eat Meal -> Leave. The only way this can change is if you offer a free round of drinks or dessert. In this case, the Eat Meal state has special logic at the end to finish and loop them back to the Wait For Meal state and notify the Chef they need to prepare another order for the dining group. These states are defined in tuning.

    -SGMS

About The Sims 4 Mods & Custom Content

Find expert tips, troubleshooting help, tutorials for mods and custom content, and The Sims 4 patch files in our forum.

4,852 PostsLatest Activity: 7 minutes ago