[RELZ] hardcoe mode compatible timescale adjuster

Post » Fri May 13, 2011 6:59 am

http://www.newvegasnexus.com/downloads/file.php?id=34718

Not too much to report, it's a mod that let's you change your timescale. But it also temporarily sets the timescale back to 30 whenever you sleep, so you won't wake up dead if you're using hardcoe mode, I thought that was worth posting a thread about. I've added a dynamic timescale option inspired by forevernomad's Immersive Timescale mod that lets you select different timescales for interiors, exteriors, and combat, by default set to 1, 20, 1 respectively.

The latest release (r1.2) gives you the option to have the hardcoe mode needs rates slow down when you lower your timescale. It also provides independent multipliers that can be used to adjust the hunger, dehydration, sleep deprivation, and sleep restoration rates, so you can tweak how quickly you become hungry, thirsty, tired or rested.

I've also set it up to be compatible with Ambient Temperature (your dehydration rate will increase proportional to temperature). Look for a compatibility patch in the next day or so.

Recommended Settings:

Dynamic Timescale
1/20/1 interior/exterior/combat timescales
HTS scales with timescale
Hunger Multiplier 3.5
Thirst Multiplier 5.5
Sleep Deprivation Multiplier 5.2
Sleep Restoration Multiplier 0.4

OR

Static Timescale of 4
HTS scales with timescale
Hunger Multiplier 3.5
Thirst Multiplier 5.5
Sleep Deprivation Multiplier 5.2
Sleep Restoration Multiplier 0.4
User avatar
i grind hard
 
Posts: 3463
Joined: Sat Aug 18, 2007 2:58 am

Post » Fri May 13, 2011 6:24 am

I remember someone posting an issue with deaths hardcoe mode caused by a changed timescale. Nice work on that fix. And the other features too!
User avatar
kiss my weasel
 
Posts: 3221
Joined: Tue Feb 20, 2007 9:08 am

Post » Fri May 13, 2011 11:39 am

Yeah, it's kind of weird and counter intuitive. Lowering your timescale should slow your burn rates, if anything, not speed them up. I wonder what sort of coding oddity is causing it, and if it will be patched in the future.
User avatar
roxanna matoorah
 
Posts: 3368
Joined: Fri Oct 13, 2006 6:01 am

Post » Fri May 13, 2011 7:37 am

It's not that much of a coding oddity once you understand how TimeScale and the various hardcoe 'needs' work. Here's a post I made on the subject:

The way the dehydration/deprivation/starvation meters work with sleeping/timescale is this:

How fast Dehydration/Starvation/Deprivation 'points' are accumulated is based upon a single game setting for each need. The base values are 10, 25, and 50, respectively. Those values are the interval (in real-life seconds) between when you gain a need point (so once every ten seconds for Dehydration, once every 25 seconds for Starvation, and once every 50 seconds for Deprivation). During normal game-play, these values ignore time scale - they're based entirely on real-life time.

The game's original time scale is 30:1 (TimeScale is set to 30). That means every 1 second in real-life translates to 30 seconds of game time. When you sleep or wait (and possibly when you travel, though I haven't tested that), the amount your needs accumulate is the same as they'd be if you had spent that amount of game-time just standing there doing nothing. That means when you set TimeScale from 30:1 to 1:1, you also multiply the amount the needs gain within a single game-time span by 30 - which means you'll almost certainly die if you sleep even one hour.

You can figure out how much a need will raise per hour of sleep via this calculation:

3600 * HoursRested / NeedSetting / TimeScale

This means 1 hour of rest at the default time scale will give you 12 dehydration, 4.8 starvation, and 2.4 sleep deprivation. 1 hour of waiting around in real time, on the other hand, will result in 360 dehydration, 144 starvation, and 72 sleep deprivation. You'll note that these are just thirty times larger (the default TImeScale) than what you get if you rest 1 hour.

User avatar
Adam Kriner
 
Posts: 3448
Joined: Mon Aug 06, 2007 2:30 am

Post » Fri May 13, 2011 8:53 pm

Indeed, its the same reason for why it was odd adjusting the Primary Needs rates for FO3 if you changed timescale.
User avatar
Music Show
 
Posts: 3512
Joined: Sun Sep 09, 2007 10:53 am

Post » Fri May 13, 2011 7:39 pm

So is the hydration, starvation and sleeping problems fixed or are they still in this? Cause I'd like to make the days longer, but I can barely keep up the H2O now...
User avatar
benjamin corsini
 
Posts: 3411
Joined: Tue Jul 31, 2007 11:32 pm

Post » Fri May 13, 2011 1:49 pm

What that means is that my timescale mod won't effect how long, in real time, you have to go before eating, regardless of what you set your timescale to. And since I set the timescale back to 30:1 when you sleep, the dying in your sleep bug gets avoided. I could maybe add the option to preserve the amount of gametime between meals, but my guess is the balance would be goofy. I'm in the process of making an NV version of Imp's More Complex Needs though, which determines everything based on the amount of elapsed gametime, so it will automatically scale with timescale (I think what I'll probably end up doing is setting the NV needs rates to zero, getting rid of the default penalties, and setting the needs levels via setav based on my mod's numbers - in other words just using the default stats as a way to have a visual readout of some of my mods stats.)

I'd still call it a bug, they had to know people would be changing the timescale, they should have coded it in a way that didn't require changes to the needs rates to prevent you from dying in your sleep.
User avatar
nath
 
Posts: 3463
Joined: Mon Jan 22, 2007 5:34 am

Post » Fri May 13, 2011 4:59 am

Hi Imp. I installed it and am using dynamic. the game still runs vanilla, no changes
User avatar
Makenna Nomad
 
Posts: 3391
Joined: Tue Aug 29, 2006 10:05 pm

Post » Fri May 13, 2011 7:40 pm

I just released an update to this. It allows you to choose between having your hardcoe mode needs rates vary with timescale, or stay the same. There are also adjustable multipliers for each of the four needs rates (hunger, dehydration, sleep deprivation, and sleep restoration) that will let you tweak these values however you want.

Hi Imp. I installed it and am using dynamic. the game still runs vanilla, no changes


It's working fine for me. The version that you're using sets the timescale back to 30 every time you enter a menu (its how I fixed the dying in your sleep problem) so entering the console and typing "getglobalvalue timescale" will always return 30. Try timing 1 minute in real life, and then checking your pipboy to see how many game minutes have gone by. Otherwise I'd look for a mod conflict. The latest version though will return the correct timescale when checked via console, so I'd recommend upgrading.
User avatar
CArlos BArrera
 
Posts: 3470
Joined: Wed Nov 21, 2007 3:26 am

Post » Fri May 13, 2011 9:27 am

I just released an update to this. It allows you to choose between having your hardcoe mode needs rates vary with timescale, or stay the same. There are also adjustable multipliers for each of the four needs rates (hunger, dehydration, sleep deprivation, and sleep restoration) that will let you tweak these values however you want.



It's working fine for me. The version that you're using sets the timescale back to 30 every time you enter a menu (its how I fixed the dying in your sleep problem) so entering the console and typing "getglobalvalue timescale" will always return 30. Try timing 1 minute in real life, and then checking your pipboy to see how many game minutes have gone by. Otherwise I'd look for a mod conflict. The latest version though will return the correct timescale when checked via console, so I'd recommend upgrading.



everything works now except that when i rest my h20 and fod go to 1000 and kill me.
User avatar
Travis
 
Posts: 3456
Joined: Wed Oct 24, 2007 1:57 am

Post » Fri May 13, 2011 5:34 pm

everything works now except that when i rest my h20 and fod go to 1000 and kill me.



my error. thanks for this mod!
User avatar
Shianne Donato
 
Posts: 3422
Joined: Sat Aug 11, 2007 5:55 am

Post » Fri May 13, 2011 12:14 pm

Sorry, I sort of just threw that out there without making any attempt to balance things. If you choose the "HTS Scales with Timescale" option you'll stop dying. The rate will seem really slow though if your timescale is around 1, so you'll then want to balance the multipliers so that your hunger increases by 200 in about 8 hours, your thirst by 200 in about 3-4 hours, and your sleep by 200 in 16 hours. Ok, math time. The default rates are:

1 hunger point every 25 real seconds (or every 500 game seconds at a default timescale of 30)
1 thirst point every 10 real seconds (or every 300 game seconds)
1 sleep point every 50 real seconds (or every 1500 game seconds)
60 sleep points every 1 hour slept

You want:

200 hunger every 8 * 3600 seconds = 1 / 144 seconds
200 thirst every 3 * 3600 seconds = 1 / 54 seconds
200 sleep every 16 * 3600 seconds = 1 / 288 seconds
200 every 8 hours slept = 25 / hour

That means the recommended multipliers are:

500 / 144 = 3.5 hunger
300 / 54 = 5.5 thirst (maybe a little high, depends on your taste)
1500 / 288 = 5.2 sleep deprivation (you'll just start to suffer penalties after 16 hours awake)
25 / 60 = 0.4 sleep restoration (for 8 hours of sleep per day)

Give these numbers a try (be sure to choose the "HTS Scales with TimeScale" option. It might take a little while to get there in increments of 0.05 (for some reason I was thinking you'd want to decrease the multipliers, not increase them...) but you can save time by entering the numbers directly into the console:

set ITAHungerMult to 3.5
set ITAThirstMult to 5.5
set ITASleepMult to 5.2
set ITASleepRestoreMult to 0.4

You'll only need to do that once, and you can tweak things using the menus once you've playtested it a bit. I'll give these numbers a try, and probably work them into the mod as defaults if you're using a low timescale.

*Edit - and I forgot to mention (the reason I was checking this thread in the first place) I just released a patch for http://www.newvegasnexus.com/downloads/file.php?id=34814 that will increase your dehydration rate based on air temperature if you're using both mods.

* EDIT - woops, I put the wrong global value names in there - if you edited via console, it should have been the ITAHungerMult, not ITAHunger, etc. Those values will need to be restored to their original values:

Either uninstall, save, reinstall, or type this into the console:

set ITAHunger to 25
set ITAThirst to 10
set ITASleep to 50
set ITASleepRestore to 60
User avatar
kiss my weasel
 
Posts: 3221
Joined: Tue Feb 20, 2007 9:08 am

Post » Fri May 13, 2011 8:01 pm

Weird, I was sure I downloaded this the other day and installed it on my game.... Oh well, its downloaded now and even plays nice with Ambient Temperature. Hopefully more people make use of it. ^.^ Great work.
User avatar
Lynne Hinton
 
Posts: 3388
Joined: Wed Nov 15, 2006 4:24 am

Post » Fri May 13, 2011 9:09 am

I have had the game hard crash on me when I wake up from sleeping. It happened once with 1.1 but I only sleep 2 times and with 1.2 it crashed all 4 times I have tried sleeping in Goodsprings. I am playing Normal hardcoe and my settings are 1-10-1 and I added the HTS Scaling with the 1.2 update.
User avatar
Big Homie
 
Posts: 3479
Joined: Sun Sep 16, 2007 3:31 pm

Post » Fri May 13, 2011 6:11 am

I have had the game hard crash on me when I wake up from sleeping. It happened once with 1.1 but I only sleep 2 times and with 1.2 it crashed all 4 times I have tried sleeping in Goodsprings. I am playing Normal hardcoe and my settings are 1-10-1 and I added the HTS Scaling with the 1.2 update.


It was fine during testing, but that just happened to me (once out of three times sleeping). I'll have a look and see if I can figure out what's causing the problem.
User avatar
Nick Tyler
 
Posts: 3437
Joined: Thu Aug 30, 2007 8:57 am

Post » Fri May 13, 2011 12:42 pm

I am glad this came out even for those of us who have not stepped into hardcoe mode yet. The reason being, both in FONV and in FO3, whenever I would set timescale to 10 as I like to do, it would crash whenever I tried sleeping. Now with this nifty mod, I can leave my timescale at 10 and not have to manually change it back to 30 when I want to sleep.
User avatar
neil slattery
 
Posts: 3358
Joined: Wed May 16, 2007 4:57 am

Post » Fri May 13, 2011 5:16 am

Glad you mentioned that GrayeWolf. I'd gotten rid of the code that set your timescale to 30 while sleeping, since it was no longer necessary to prevent the hardcoe mode dying in your sleep. Putting it back in though seems to have fixed the crashes (I think it only crashes if you sleep/wait a long time, I was testing it with 1 to 2 hour naps no problem, but 8 or 9 hours and it crashes every time.) I'll post another update to the Nexus shortly, there's just one more thing I want to fix first.
User avatar
no_excuse
 
Posts: 3380
Joined: Sun Jul 16, 2006 3:56 am

Post » Fri May 13, 2011 6:45 pm

It was fine during testing, but that just happened to me (once out of three times sleeping). I'll have a look and see if I can figure out what's causing the problem.


I tried it 2 more times and 1.2 crashed both times so it crashed 6 out 6 times for me at the same location. I was trying to sleep in Sneaky Pete's second free bed (room with the teddy bear on the desk) and I set the time to 8 hours since it was about 10:30pm. I then reinstalled 1.1 using all the same settings minus the HTS Scaling of course and was able to sleep no problem so it does seem like removing the sleep timescale to 30 is the issue and glad you will have a fix soon.
User avatar
OTTO
 
Posts: 3367
Joined: Thu May 17, 2007 6:22 pm

Post » Fri May 13, 2011 1:03 pm

Glad you mentioned that GrayeWolf. I'd gotten rid of the code that set your timescale to 30 while sleeping, since it was no longer necessary to prevent the hardcoe mode dying in your sleep. Putting it back in though seems to have fixed the crashes (I think it only crashes if you sleep/wait a long time, I was testing it with 1 to 2 hour naps no problem, but 8 or 9 hours and it crashes every time.) I'll post another update to the Nexus shortly, there's just one more thing I want to fix first.


One of my toons is afraid of the dark so she always sleeps or 8 hours or more and every time I would try to sleep for 6 hours or more (could be less, have not tried) with a timescale other than 30, CRASH.

EDIT: Is this compatible with Fallout 3? Or is there a mod like this already in existence for that?
User avatar
Mrs shelly Sugarplum
 
Posts: 3440
Joined: Thu Jun 15, 2006 2:16 am

Post » Fri May 13, 2011 6:25 am

If you're just looking for a dynamic timescale mod, forevernomad made the original one, Immersive Timescale, which is a bit more elaborate that my version. I got permission from him before recreating it for NV.

I've just posted another update (hopefully the last one for a while, I need to get back to work on IMCN). I put the code back in that was setting the timescale back to 30 every time you slept or waited, so no more crash upon waking up (gotta love those engine quirks). It also changes the increments for adjusting the HTS multipliers, so things should go a bit quicker.
User avatar
Christine Pane
 
Posts: 3306
Joined: Mon Apr 23, 2007 2:14 am

Post » Fri May 13, 2011 8:44 am

+10 rep and a double double fistbump to you sir.
User avatar
Jeneene Hunte
 
Posts: 3478
Joined: Mon Sep 11, 2006 3:18 pm

Post » Fri May 13, 2011 4:54 am

Been playing with this from the start and at first i noticed having this mod loaded before hardcoe Double Rates mod caused slp/fod/h20 to no longer work, then switching them around seem to do the trick but after checking out the console i notice the game still thinks the timescale is set to 30 with the show timescale command, the item in the inventory claims its at 10, as well as setting the set timescale to 10 command seems to work but show timescale still claims its at 30, which is a bit weird.. and i've forgotten how fast day/night moves at 30 so im having trouble telling if its actually working or not.
User avatar
Pixie
 
Posts: 3430
Joined: Sat Oct 07, 2006 4:50 am

Post » Fri May 13, 2011 4:48 am

Been playing with this from the start and at first i noticed having this mod loaded before hardcoe Double Rates mod caused slp/fod/h20 to no longer work, then switching them around seem to do the trick but after checking out the console i notice the game still thinks the timescale is set to 30 with the show timescale command, the item in the inventory claims its at 10, as well as setting the set timescale to 10 command seems to work but show timescale still claims its at 30, which is a bit weird.. and i've forgotten how fast day/night moves at 30 so im having trouble telling if its actually working or not.



The version that you're using sets the timescale back to 30 every time you enter a menu (its how I fixed the dying in your sleep problem) so entering the console and typing "getglobalvalue timescale" will always return 30. Try timing 1 minute in real life, and then checking your pipboy to see how many game minutes have gone by.

User avatar
Fanny Rouyé
 
Posts: 3316
Joined: Sun Mar 25, 2007 9:47 am

Post » Fri May 13, 2011 10:01 am

So with this mod I can use the console to change the timescale, without having to worry about eating 6 meals a day?
User avatar
Baylea Isaacs
 
Posts: 3436
Joined: Mon Dec 25, 2006 11:58 am

Post » Fri May 13, 2011 1:46 pm

Close. Use the included menu to change the timescale, otherwise it will be changed back almost immediately. By default the needs rates will scale with timescale, meaning if you set your timescale to 5, 1/6th of 30, you'll need to eat 1/6th as often. If you want you can also tweak the needs rates via the menu's multipliers, since the rates might then be a bit too slow. I posted recommended numbers, but it's totally a matter of preference.
User avatar
Melung Chan
 
Posts: 3340
Joined: Sun Jun 24, 2007 4:15 am

Next

Return to Fallout: New Vegas