Talk:ServeTime - Game

There are no discussions on this page.

Does anyone have information on how long "ServeTime" actually makes your player wait?

I'd like to modify this to be more like Oblivion. As is, I cannot seem to spend more than 7 days in jail no matter what I do.


--Andrelo1 (talk) 2015-11-17T13:08:13 (EST)

Controlled by this game setting: iCrimeMaxNumberofDaysinJail --Rasikko (talk) 2018-02-12T10:59:39 (EST)

Looks like this function is not safe to use. I tried to use it when PC is in jail and in most cases it results in game freezing. I added log messages before and after call this function and what I got in papyrus log:

  [11/17/2015 - 07:42:13PM] ---ServeTime enter---
  [11/17/2015 - 07:42:13PM] VM is freezing...
  [11/17/2015 - 07:42:43PM] error: VM timed out while waiting to freeze! Save will be bad.
  [11/17/2015 - 07:42:44PM] Someone tried to save without freezing the Papyrus VM first. Script save will be flagged as invalid!
  [11/17/2015 - 07:42:45PM] VM is thawing...
  [11/17/2015 - 07:42:45PM] ---ServeTime exit---

I think that the reason of such behaviour is that the function doesn't return until the player will be placed into new location, but the game tries to make autosave after moving the player and should wait for function return before stoping VM. It leads to mutual lock. Finally game decides to make save without script data.

Return to "ServeTime - Game" page.