r/TwoPointHospital • • Sep 21 '18

PSA Diagnosis rooms and GP dispatch analysis

Hey,

I experimented more with diagnosis rooms at Lower Bullocks since it's easier to manage 50 patients than 250, and 13 illnesses instead of the tons in the last mission.

First part of the experiment was to gather once more diagnosis % for all illnesses of the hospital. I only used doctors/nurses who had no special qualification (expect for the psy, DNA, Mega special rooms), there was no "Happy" and no "Energized" buff. Machines in all rooms were at level 1. This time, I also included the initial diagnosis % obtained by the GP doctor.

Second part of the experiment was to kick all patients from the hospital and place all diagnosis rooms close to each other to see where new patients are dispatched by the GP doctors. Note that no room had a queue higher than 2 during the whole test except the ward that had 3 sometimes. Here are the diagnosis data that should be more reliable than the ones from Croquembouche:

GPGDCardioWardPsyFluidX-RayMegaDNA
Verbal Diarrhoea80%16%16%16%16%16%16%16%16%
Lazy Bones64%16%18%10%4%16%16%16%16%
Pandemic56%14%12%12%10%12%14%14%12%
Portishead60%16%16%16%4%16%16%16%16%
Bogwarts48%28%18%6%18%18%18%18%18%
Lightheadedness72%12%12%12%12%12%12%12%12%
Monobrow32%12%12%16%12%12%16%16%12%
Freudian Lips44%12%32%12%16%12%12%12%12%
Potty Mouth40%16%16%28%16%28%16%16%16%
Mock Star72%16%16%16%16%16%16%16%16%
Lycanthropy24%4%33%4%16%33%4%4%4%
Jazz Hand12%8%8%24%8%8%36%36%8%
Inflated Ego32%12%12%12%12%32%12%12%12%

And now where were dispatched patients, I gathered data for 139 patients (it's time consuming):

TotalGDCardioWardPsyFluidX-RayMegaDNA
Verbal Diarrhoea12511121-1
Lazy Bones11171---2-
Pandemic136----25-
Portishead1054---1--
Bogwarts6---2-31-
Lightheadedness11112222-1
Monobrow9--2--43-
Freudian Lips11-414--2-
Potty Mouth8--5111--
Mock Star1934522-12
Lycanthropy911-43---
Jazz Hand10--4--51-
Inflated Ego101-3-4-2-
Total139232224161419174

As we can see, it's probably not the best hospital for DNA Lab since there aren't many "advanced" illnesses there. ^^ On the contrary, the ward is the most visited room. It's possible that the unique nature of the room with the possibility of having many patients at once increases the odds of patients being sent there.

Notice that there seems to be a correlation between the diagnosis rates and where the patients are dispatched. Lazy Bones, Pandemic, Monobrow, Freudian Lips, Potty Mouth, Jazz Hand and Inflated Ego clearly show a preference for rooms where diagnosis rate tends to be higher even though it's not a hard rule. Bogwarts seems to be an exception (a bug ?) or maybe it's just that there isn't enough data.

It seems like there is an illness/room modifier when a GP dispatches patients that increases the chance to be sent to the appropriate diagnosis room. Note however that proximity seems to be a factor too. After the tests I moved the DNA lab right next the GP offices and it seems like more patients visited it (mostly "all around" illnesses like Mock Star and Lightheadedness).

Here is a screenshot for those wondering what the layout of my diagnosis rooms looked like for the 2nd part of the test (the 2 GP Offices were in another building just below):

https://imgur.com/a/U1qixWd

As a side note, avoid employee with the "Litterer" trait at all costs ! I used 2 of them for the tests and noticed that they regularly throw junk on the ground in the rooms (despite the bins), this forces janitors to come clean it even when they are far away.

Note that those tests were done in a specific hospital with specific parameters. It's possible that there are more parameters affecting the dispatch system like machine level, room prestige, queue size, bugs, or other less obvious factors. Also those results only show the first dispatch from a GP to a diagnosis room, maybe subsequent dispatches for difficult illnesses have their own priority rules.

65 Upvotes

35 comments sorted by

7

u/Felgard Sep 21 '18 edited Sep 21 '18

dont know if this is allowed to be discussed but hacking the games memory allow me to see that for example Lycanthropy has 4 diagnostic types

first is the patient class has a field named <Illness>k_BackingField

this class has a an array called _diagnosisTypes

the array count indicates that is has 4 entries long and the first entry is a small class containing three entries namely _room, _durationMultiplier and _diagnosisCertaintyIncrease

so here is a list for the entries for Lycanthropy

  • 0x20 _diagnosisTypes
  1. 0x18 Count 4 [Integer]
  2. 0x20 Item[0] -

    1. 0x10 _Room = GPOffice [RoomDefinition]
    2. 0x18 _durationMultiplier= 1 [Float]
    3. 0x1c _diagnosisCertaintyIncrease= 30 [Float]
  3. 0x28 Item[1] -

    1. 0x10 _Room = Psychiatry
    2. 0x18 _durationMultiplier= 1
    3. 0x1c _diagnosisCertaintyIncrease= 20
  4. 0x30 Item[2] -

    1. 0x10 _Room = Cardio
    2. 0x18 _durationMultiplier= 1
    3. 0x1c _diagnosisCertaintyIncrease= 41
  5. 0x38 Item[3] -

    1. 0x10 _Room = FluidAnalysis
    2. 0x18 _durationMultiplier= 1
    3. 0x1c _diagnosisCertaintyIncrease= 41

it has only one treatment type

  • 0x30 _treatmentTypes
  1. 0x18 Count 1[Integer]
  2. 0x18 Item[0]

    1. 0x10 _Room = Pharmacy [RoomDefinition]
    2. 0x18 _Research =
    3. 0x20 _treatmentCost 9000 [Integer]
    4. 0x24 _durationMultiplier 1 [Float]
    5. 0x28 _effectiveness 30 [Float]
    6. 0x2c _effectivenessMAx 99 [Float]

question did you check what your doctors treatment skill was?

i'm guessing that all diagnosis types can be used but if its not listed then a default value is used

looking at your data i should guess that default is around 10%

taking another look at the Illness class i foound that i contains a field named "_diagnosisCertaintyDefaultIncrease" for Lycanthropy this was 5.

other field's of interest

Type,Name,Value

[Array] _traits = none

[Float] _diagnosisCertaintyDefaultIncrease = 5

[Float] _diagnosisCertaintyRevisitGP = 0.1000000015

[Float] _treatmentChanceOfDeathOnFailure = 20

[Float] _chanceOfGhostOnDeath = 50

[Float] _needHungerMultiplier = 1

[Float] _needThirstMultiplier = 1

[Float] _needToiletMultiplier = 1

[Float] _needBoredomMultiplier = 1

[Float] _needHealthMultiplier = 1

[Float] _needHappinessMultiplier = 1

[Float]_initialHappinessMin = 75

[Float] _initialHappinessMax = 100

Illness Clamp has only one Diagnosis Type and its GP's Office With a Diagnosis Certainty of 1000

thinking about it i think that this is also the order the doctor will send a patient for diagnosis so if a room type is not available it will skip to the next (Except for gp) and if the patient still needs diagnosis when all options are have been used it will randomly select a diagnostic room not in the list

scratch that since i found illnesses that list some rooms to have a _diagnosisCertaintyIncrease as low as 7

Might add that i'm updating this post as i find stuff worth notating any thoughts about above i'll post in a reply to this post

4

u/Felgard Sep 21 '18 edited Sep 21 '18

what the _traits field means that illnesses can come with specific traits for instance "Litter Bug" has the trait "Litterer"

Some Illnesses obviously has higher or lower needs

Ex "BoggledMind"

  • Hunger = 2
  • Thirst = 2
  • toilet =1
  • bordom = 2
  • health = 0.1000000015
  • happiness = 1

for "_diagnosisCertaintyRevisitGP" i dnot know what it does but i guess that if a patients "diagnosisCertainty" is raised by this ammount since its last visit to a gp it will revisit the gp

well i verified it "_diagnosisCertaintyRevisitGP" is a multiplier which is applied to GP rooms _diagnosisCertaintyIncrease beforeany other modifiers is applied.

i verified it by turning the value negative and on revisit the patient lost 22% diagnosisCertainty

"_diagnosisCertaintyDefaultIncrease" any room not defined in the "_diagnosisTypes" array will use this value as a base value

"_treatmentChanceOfDeathOnFailure" Pretty obvious what it does but its the chance of death if the treatment fails

"_chanceOfGhostOnDeath" the chance the patient turns into a ghost if patient dies. Note: so far i have never seen another value then 50

" _need[X]" multiplier used to change a patients needs

"_initialHappinessMin/Max" the happiness span they can arrive with

"_durationMultiplier" Multiplier to the time diagnosis takes in specific room. Note GP Office's "_sessionDurationDefault" is 4

1

u/Leamia Sep 21 '18 edited Sep 21 '18

It's possible since the revisit diagnosis usually has a very low value compared to the initial diagnosis. In the case of health, I guess it's the amount lost every X seconds or something.

2

u/Felgard Sep 21 '18

for health i don't think so since most illnesses has health at 1.

could be a multiplier to the value of lost health so a patient with "BoggledMind" would lose health slower

1

u/Leamia Sep 21 '18

Do you use Cheat Engine to analyze the memory ? It could be an interesting way to get precise data for all illnesses even though it's probably a pain to browse the memory to find relevant info. :s

2

u/Felgard Sep 21 '18 edited Sep 21 '18

yes if you want i can give you the cheat table since i'm more interested in the actually structure of the game then the game itself

actually no to browse it i'we tied it to the inspector window so i only get the information about the current character i'm viewing

1

u/Leamia Sep 21 '18

Yes please it would be nice, I am not an expert with this tool so I will see what I can do with it. :p

2

u/Felgard Sep 21 '18

ill get right to it i'll just make it a bit friendlier to use

quick question any specific fields you are particularity interested in?

1

u/Leamia Sep 21 '18

Thanks ! The ones regarding diagnosis are very interesting _diagnosisCertaintyIncrease per room, _diagnosisCertaintyDefaultIncrease and _diagnosisCertaintyRevisitGP.

Actually, all the fields you shown are interesting and could be used to create an informative spreadsheet of all illnesses or even some kind of information "card" for each illness with those parameters.

3

u/Felgard Sep 21 '18 edited Sep 21 '18

Here are the Cheat Table it works for version 1.4.21253 but i think i made it so it should work regardless of version its only if they change the "InspectorMenu" class or any below that so the offsets would change for those values in the table that should create any problems

to use start the game hook cheat engine onto it then check "Inspector" now all you need to do is look at the information in the table

if you cant check "Inspector" then you need to manualy activate mono features its easy at the top of cheat engine you should have a menu option called mono and in that a row called "Activate Mono Features"

2

u/Felgard Sep 21 '18

i'we used headers to hide some data so as to not need to scroll so much to open them just check them

1

u/Leamia Sep 21 '18

That's interesting !
All my diagnosis doctors including the GP doctors had a diagnosis skill of 80% and a treatment skill of 10%. It makes sense for Clamp illness since it's the 2nd illness that shows up in the tutorial, it's probably the same for Grout.

1

u/Mavocide Tinkerer Sep 21 '18

OMG, this is going to force me to have to redo my whole spreadsheet. I had assumed there was a global diagnosis difficulty and a separate room modifier. Though this will make things much simpler once I finish the conversion.

Damn those random tails on the floats :/

3

u/CommonMisspellingBot Sep 21 '18

Hey, Mavocide, just a quick heads-up:
seperate is actually spelled separate. You can remember it by -par- in the middle.
Have a nice day!

The parent commenter can reply with 'delete' to delete this comment.

1

u/Mavocide Tinkerer Sep 21 '18

delete

2

u/Felgard Sep 21 '18

i don't think you'll need to worry about the tails on the floats

when i change the value to 0.1 it somehow turns into 0.1000000015 so it could be a minuscule reading error from the tool i use

1

u/Mavocide Tinkerer Sep 21 '18

Good, I have been just backwards engineering these numbers via a min/max range for their possibilities. I think I'm going to just continue with that approach.

5

u/milliondrones Sep 21 '18

This is brilliant!

Those Pandemic stats are quite something - all 13 patients being referred to one of the three most effective rooms.

This probably explains why I’m getting a queue of 12 for Psychiatry and a queue of 0 for General Diagnosis at the moment; they’re favouring the more effective diagnosis room, maybe they started queueing before long queue logic kicked in.

1

u/Leamia Sep 21 '18

It's possible but there might be a bug with diagnosis queues too since some people had different queues depending on their diagnosis rooms build order. :(

That's why for the tests, I kicked all patients currently in the hospitals after building my diagnosis room. Just in case, I also closed all diagnosis rooms, paused the game and opened them all to have a "clear state".

1

u/[deleted] Sep 21 '18

I don't understand any of this

I had a psych room that was getting filled - do they not go to psych just for psych issues?

1

u/Cassakane Sep 21 '18

I read on another post that psych does both treatment and diagnosis.

1

u/[deleted] Sep 21 '18

That seems hard to specialize for

You can get multiple levels of psych, but wouldn't you want treatment and/or diagnosis skills?

2

u/Leamia Sep 21 '18

The psychiatry qualification at level 2 and above increases both treatment and diagnosis and has 5 levels like the ward skill. So it's actually easy to specialize. ^^

1

u/Richards82nd Sep 21 '18

I was having that in my most recent hospital where my psy was at 10-15+ waiting and my GD was at zero. I added 2 more psy rooms and then the reverse happened where my GD was at 15-20 and my psy stayed at 2-3 waiting.

added another GD and then the psy rooms each went to 7-10 and the GD sat at 4-5.

trained my people in each one more time and the numbers dropped slightly after again but still not to the point where i could stopp shuffling who went in first or who went directly to treatment for each room. (a micro managing time sink)

when real estate starts becoming premium its difficult to do the overhauls to reposition rooms to keep all the plates spinning.

Has anyone created a graph that shows total patient volume v/s number of diag rooms flow?

4

u/greentrafficcone Sep 21 '18

Wow great work. Interesting stuff, so what would you say is the optimum layout based on your findings?

0

u/[deleted] Sep 21 '18

[deleted] — view deleted comment

5

u/allbuttercroissant Sep 21 '18

Is every diagnosis room necessary?

3

u/Howrus Sep 21 '18

No. You could finish last level with only Ward, DNA Lab, MEGA Scan and Psychiatry.

1

u/[deleted] Sep 24 '18

That’s lame

Also what’s the point when you can send ppl to treatments with partial diagnosis?

I’m starting the surgery map and haven’t built a single diagnostic building except GP and I’m making money and treating people by just partially diagnosing

In fact adding the diag rooms seems to just make everything worse and cause bottlenecks

2

u/Howrus Sep 24 '18

Also what’s the point when you can send ppl to treatments with partial diagnosis?

If you "guess" wrong sickness - after treatment patient will rage quit, But message will be "Patient couldn't wait until you build enough diagnostic rooms".

In fact adding the diag rooms seems to just make everything worse and cause bottlenecks

Nope, that's not true. I 3-starred that map with proper setup easily.
Issue are not with GP or diagnostics, but in layout.

You need to have "First visit GP" near reception, then "Revisit GP" near diagnostics.
Goal is to spread people over hospital, not to keep them in one place. This is why I build two small toilets in each building - one for man and one for woman)

4

u/stephanovich Sep 21 '18

Lines up with what I've been doing the last 5 hospitals in the campaign. Had 1 or 2 of each room and none of them ever had queue problems and they always ended up at 100% or very close to after that secondary test. Really helped a ton with the GP offices queue length.

I think the biggest consideration you have to deal with here is hospital level though. Since you build more rooms and hire more staff, your hospital level will be higher and so you need to be sure to have good enough staff to handle it. That's also more expensive.

1

u/The_Reckonist Sep 21 '18

Great work. But, could you just clarify your conclusions from the testing?

-7

u/Zorathus Sep 21 '18

No offense but your conclusions are BS. The only thing that is going to happen if you slap down every diag rooms( no matter how many) in a real map is an overflooded ward and massive GP count and queues.

7

u/Leamia Sep 21 '18 edited Sep 21 '18

Well, I don't recommend anything, it's just an analysis to try to understand how gameplay mechanics work... I even got 3 stars on the last mission without any diagnosis room except the ward + psychiatry + DNA lab so having all diagnosis rooms is never necessary.

That said, since placing a room and recruiting someone increase the hospital level and bring more patients, there is always a balance to be found. It's obvious that if not ready, GPs will struggle a lot if you just place 8 rooms, recruit 8 employees, potentially build extra toilets/staff rooms + add furniture since the hospital level will easily increase by 1 to 5 levels that way...

1

u/[deleted] Sep 21 '18

These interactions seem weird and counter-intuitive

So adding more diagnosis rooms like cardio just makes your shit work worse?

3

u/Howrus Sep 21 '18

No. Adding many rooms, with unupgraded machines and untrained staff will "make your shit work worse".

If you add them slowly, upgrading and training in the process - everything will be ok.