Project Hospital

Project Hospital

View Stats:
Ponthos Jan 7, 2021 @ 5:29am
Tweakables file not working
Hey. I changed two values in the tweakables file, the number of patients going to a specific clinic and the percentage of patients with a diagnosis from a department I don't have. I've let a couple of in-game days pass, but so far I've never seen a patient with a disease from other departments. To test if the file is working, I've increased the number of floors, but nothing changed in game.
< >
Showing 1-11 of 11 comments
LMes Jan 7, 2021 @ 5:56am 
When you change the tweakables files you need to change it in the last DLC released file becauses it over run the other files.
Ponthos Jan 7, 2021 @ 9:56am 
The percentage of patients in with inapplicable diagnoses is only in the main file
jirka_oxymoron  [developer] Jan 8, 2021 @ 1:04am 
Hi Ponthos, the change will not occurs immediately. Patients for the next day are created at midnight so any related change will manifest with delay. Would you please check the spawn rate after next midnight and let me know if it workes?

[Edit]
There are some exceptions. The patient pool will react immediately to some events like department closed/open, insurance company enabled/disabled, and the presence of an ambulance.

Lmes is of course right. Some tweakables like the number of floors need to be set also in separate tweakable.xml in the DLC folder. The path should look like this:

Steam\steamapps\common\Project Hospital\ProjectHospital_Data\StreamingAssets\Addons\DLCInfectiousDiseases\Database
Last edited by jirka_oxymoron; Jan 8, 2021 @ 1:26am
LMes Jan 8, 2021 @ 1:04am 
But you run a test changing the number of floor, that's normal it didn't work if you change that in your base game tweakable file. For the percentage of patients I don't know ...
ProHolmes Jan 10, 2021 @ 1:33am 
Same for me but for waiting hours lines.
I made:
"TWEAKABLE_PATIENT_LEAVE_TIME_HOURS"> <Value>48</Value>
"TWEAKABLE_PATIENT_LEAVE_WARNING_HOURS"> <Value>45</Value>
"TWEAKABLE_PATIENT_MAX_WAIT_TIME_HOURS"> <Value>24</Value>
They still start complaining after a couple of hours.
jirka_oxymoron  [developer] Jan 11, 2021 @ 2:57am 
Hi, @ProHolmes would you please check the log if there is a line "Overriding database value XYZ" for the tweakables which you've changed?
Ponthos Jan 11, 2021 @ 3:09am 
Ok, I changed the value for a higher number and after waiting a day or 2 I started seeing the patients. Thank you for the help jirka_oxymoron
ProHolmes Jan 11, 2021 @ 3:51am 
@jirka_oxymoron, Hi. Could you, please, tell me where to find the log file?
ProHolmes Jan 11, 2021 @ 6:24am 
@jirka_oxymoron, after I've changed TWEAKABLE_PATIENT_LEAVE_WARNING_HOURS to 10, warning messages finally dissapeared.
jirka_oxymoron  [developer] Jan 11, 2021 @ 11:39pm 
I am glad to hear that tweakables are working.

@ProHolmes, the log file location (just in case):

- Win: C:\Users\USERNAME\AppData\LocalLow\Oxymoron Games\Project Hospital\output_log.txt
- Win: C:\Program Files (x86)\Steam\steamapps\common\Project Hospital\ProjectHospital_Data\output_log.txt (older versions, before 1.0.14398)
- Linux: /home/USERNAME/.config/unity3d/Oxymoro
ProHolmes Jan 12, 2021 @ 12:10am 
Thank you!
Before I set 10, they were complaining even if I've just sent them home treated.
It was strange to see "John Smith will leave soon bla bla bla" while watching John Smith going home fully satisfied.
< >
Showing 1-11 of 11 comments
Per page: 1530 50

Date Posted: Jan 7, 2021 @ 5:29am
Posts: 11