We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
If you set work time to the start of a day and the end of a day, the program cannot be scheduled between the two days despite there being enough space to get a program in without a cutoff.
Unable to change this? If your devs know how to code, they can code it with enough time.
I’m assuming that the regime is stored in an array for the schedule type, and those arrays are stored in a larger array to combine the prisoner types for simplicity. The code probably checks for a series of successive work periods with a repeating if statement. If they find however many of them for the time slot, then they will happen then (obviously not all of the programs work this way, guard taser certification and parole hearing, for example) The problem leading to this bug is it starts checking on array values 1+2 or 1+2+3 for 3 hour sessions, and end suddenly when they hit 24 at the end, and won’t continue afterwards. Continue the checking until it ends with 24, and add an If statement so that if it is greater than 24, return array[itemNumber-24] instead of array[itemNumber], or this may be intentional because the devs didn’t want to get into coding a program through the day or didn’t know how to display it for the scheduling tab, in which case they just need to fix that
There isn’t really something that a developer can’t fix if they can modify all of the code; it’s only a matter of time and lag