PDA

View Full Version : The old time enigma


Greystone
12-15-18, 05:25 PM
From what I gather, a lot of you have run into out-of-whack temporal disturbances, as I have, like the sun rising at 1am, setting at noon, etc.
I did a search here and ran across some discussions on the topic and, being a bit of a simpleton, my eyes glazed over just scanning the various discussions on the subject.
I really have no desire to even attempt to jump through tedious mental & cognitive hoops (for me) to try and ascertain what the actual local time is when playing the game.
What would solve the problem though, for me, is knowing what time of day it is for the AI.
If the sun is high in the sky, but the clock says 2am, does the AI see it as daylight also, or do they see the world as it'd look at 2am?
Or, if it's black as pitch out, can I count on the AI having a hard time seeing me even though the time is shown as 3pm?
As usual, thanks for any help..

propbeanie
12-15-18, 07:25 PM
Well, speaking from a metaphysical point of view: maybe... :roll:

That's what Front Runner was getting at in his thread "Base Time 2018 (http://www.subsim.com/radioroom/showthread.php?p=2577977#post2577977)". It has been discussed before in a few other threads, but I don't think anyone has gotten to the root of the problem yet, like Front Runner has. The game keeps really accurate track of the time of day (or night) - but only under certain circumstances.

The game engine is basically SH3, from 2005, so you can say it's probably 2003 software technology, if not older. The idea of using something truly "stable" to keep track of time of day was not well-programmed for future computing. With computers that are as fast and efficient as they are today, the games' (SH3, 4 & 5) get out of whack when running at "real" time. They can draw the screen at a much higher rate than the computers of 10 years ago could. Since the use of the higher Time Compression settings basically negates the effect of screen refresh rate, and hence "time of day" being tied to it, the effect is not seen.

Basically, what Front Runner describes is a cumulative effect, where after playing the game for some time, sunset and sunrise (and the moon phases) all get out of whack, and you might be seeing the game as representing night time, but the game AI is seeing it as daylight, such that it seems the enemy is either clairvoyant, or has a new top-secret radar that the US doesn't know about... So "yes Margaret, you can be attacked at what you think is night time, by an enemy AI that thinks it's day time." One way to alleviate the issue is to Save the game, exit, come back in, and load the Save - presto change-oh, everything is back in sync... What a "fix", eh? Like so many other of the games' fixes... :roll:

Using the nVidia Control Panel, if you have an nVidia card, or maybe the ATI / AMD CCC for one of their cards, and you might be able to set the game to not go beyond using 30fps (Frames Per Second) when it "draws" the game assets, such as ships or sea or land, etc. That seems to be the solution. Conversely, if you have an older computer, one that you can't get above 30fps anyway, no worries - that might actually be "cutting-edge technology" for the games.

Maybe we can talk Front Runner into doing a picture-laden tutorial on setting up the nVidia control panel for this... :salute:

Greystone
12-15-18, 11:30 PM
propbeanie; Thank you!... Yes, I recall seeing Front Runner's posting on this, and remember admiring his insight and persistence to get to the bottom of the time issue, but couldn't really grasp anything beyond the admiration part, partly because I'm getting a bit long in the tooth and my senior moments are turning into background. Also, I just want to play the bloody game and not spend 80% of my time researching & tinkering to get it to run right. I sure picked the right game to do that, eh?
Thanks to your breakdown, I now have a basic understanding of what's going on. The reference to saving & reloading the save is a godsend. No, wait; scratch that.. I just started the game, loaded my last save, and the sun is where you'd expect it to be around 3 or 4 pm and the time shows 22:30. Saved that, exited, and reloaded and all's the same as before; no change. (throws hands in air)
I don't know, maybe I'll just assume the AI sees everything & dive whenever I detect any of 'em; pretend I'm playing Silent Prey 4.


Addendum: I just became aware of Front Runner's and propbeanie's newest posts on the subject, where I'll turn my gaze whenever I think I can handle more "research and tinkering".

propbeanie
12-16-18, 08:38 AM
If you have an nVidia card, that Steam link in Front Runner's post applies, and is relatively easy to step through, even for us more "senior" er uh, wanderers... in spite of "background" and tinnitus...

Your Save didn't "correct" the time, eh?... What are you playing, Stock or any mods?... It would definitely be easier if the game had a "Zulu -10" or whatever designation, wouldn't it? :salute:

Greystone
12-16-18, 03:41 PM
Hey propbeanie.. Yup, the save, go out, & reload the same save didn't give the expected result. I'm playing stock SH4 with the following mods:


BBC World (for the radio)
No Surface Hydrophone (an attempt to correct getting hydrophone readings while on the surface)
Less Water Limber Holes
Webster's Underwater Visibility for v1.5
" Better Waterline Colors for v1.5
" Better Sub Marker


I'm running it on Win7 with an nVidia GTX 750Ti
I have the Vertical Sync checkbox checked in Options
Have the game installed in C:\SH4


I did go to the Steam link in Front Runner's post and followed the instructions; you're right, it was a rather simple affair..


When I went back in, the situation was the same and that made sense, to me anyway; I mean, the save is the same save and I wouldn't expect that lowering the fps would alter the parameters within the save. I figure, if the prevailing theory is right, the time discrepancy will now stay the same as opposed to continually altering as it had before the change I just made with the nVidia Control Panel. I'm hoping that, at the end of my current mission, somewhere, somehow, through the transition from the end of the patrol, my time in port, and my departure into the following patrol, the game'll revert to displaying the correct time. One can only hope..


Tinnitus? You've got tinnitus? Ah, a kindred soul... I drove a cab in San Francisco for 35 years and about 30 years ago, some idiot driver in a Mercedes, blasted her horn about 4 feet from my ears and I've had a high-pitched sound in my ears 24-7 ever since. Lovely, ain't it?


Again, thanks for your generous help. :salute:

propbeanie
12-16-18, 04:45 PM
Being back at your home port, should definitely (in theory :roll: ) fix the discrepancy. When I was younger and working catch-as-catch-can in the late 70s early 80s, I had one noisy job after another ($2 an hour cash). In the late 80s, I did construction. Between chainsaws, jack-hammers, boom trucks and all sorts of what-not, all I hear now is the wife (hopefully) and a steady "hisssss". At least it's in stereo, and if I turn my CCR up loud enough, they still sound just as good as 1969 / 70...

https://www.youtube.com/watch?v=vsp7kC5oYjU

:har:

KaleunMarco
12-16-18, 11:01 PM
Being back at your home port, should definitely (in theory :roll: ) fix the discrepancy. When I was younger and working catch-as-catch-can in the late 70s early 80s, I had one noisy job after another ($2 an hour cash). In the late 80s, I did construction. Between chainsaws, jack-hammers, boom trucks and all sorts of what-not, all I hear now is the wife (hopefully) and a steady "hisssss". At least it's in stereo, and if I turn my CCR up loud enough, they still sound just as good as 1969 / 70...
:har:
turn that crap off.
while we were ducking charlie and mosquitoes, the fogertys were giving aid and comfort to the enemy. right there with hanoi jane.
dont listen to that crap....and i am being civil when i call it crap.

Front Runner
12-17-18, 09:54 AM
Hey propbeanie.. Yup, the save, go out, & reload the same save didn't give the expected result. I'm playing stock SH4 with the following mods:


BBC World (for the radio)
No Surface Hydrophone (an attempt to correct getting hydrophone readings while on the surface)
Less Water Limber Holes
Webster's Underwater Visibility for v1.5
" Better Waterline Colors for v1.5
" Better Sub Marker


I'm running it on Win7 with an nVidia GTX 750Ti
I have the Vertical Sync checkbox checked in Options
Have the game installed in C:\SH4


I did go to the Steam link in Front Runner's post and followed the instructions; you're right, it was a rather simple affair..


When I went back in, the situation was the same and that made sense, to me anyway; I mean, the save is the same save and I wouldn't expect that lowering the fps would alter the parameters within the save. I figure, if the prevailing theory is right, the time discrepancy will now stay the same as opposed to continually altering as it had before the change I just made with the nVidia Control Panel. I'm hoping that, at the end of my current mission, somewhere, somehow, through the transition from the end of the patrol, my time in port, and my departure into the following patrol, the game'll revert to displaying the correct time. One can only hope..

Again, thanks for your generous help. :salute:



I haven’t tested that within a save game. Let us know the results of starting a new patrol when making the recommended Vertical Sync changes while in career. Theoretically, your next patrol should start the BT Clock anew.
Keep in mind that there will still be a Time Zone difference between your “Base” and your “Patrol Area”. For example Pearl Harbor Base Time would be different than the observed Base Time in Empire Waters. The old threads about Base Time cover this very well.
I kind of tripped over discovering this issue because up until recently I had almost always chose a Pearl Harbor career start and basically ignored the own ship Base Time Clock because the east west time zone changes fudged it up anyway. Well, I chose a Brisbane start and my assigned area was the Bismarck Sea, within the same Base Time Zone. After playing several days at 1x (Vertical Sync in game off and “balls out” frame rate 240 fps) to get there, I noticed that Sunset/Sunrise, Moonset/Moonrise were way off! Like hours off.
My sub is in darkest night, base time shows it should be daylight hours and I’m getting attacked by aircraft. Whoa! That’s when I put my thinking cap on and somewhere along the line of experimentation I discovered the link between Vertical Sync On/Off and the SS/SR,MS/MR error differential.
Currently I am on my 4th day underway with the recommended settings, (in game vertical sync off, nVidia control panel settings forced 1/2 refresh rate 30 FPS, and adaptive vertical sync on through the nVidia control panel.) My 4th day sunrise was 11 to 12 minutes late vs Almanac. I have noticed that the sunsets are tending to drift later. My 3rd day sunset was 20 minutes late while the following Moonset was only 11 minutes late. Very acceptable after almost 4 days at 1x play.

ETR3(SS)
12-17-18, 11:19 AM
turn that crap off.
while we were ducking charlie and mosquitoes, the fogertys were giving aid and comfort to the enemy. right there with hanoi jane.
dont listen to that crap....and i am being civil when i call it crap.
Uh...what? I wasn't aware of them going to North Vietnam...ever. John got a draft notice but joined the Army Reserve.

Greystone
12-17-18, 06:30 PM
Front Runner; Yes, I'll let you know what happens with the time thing after returning to base, hanging out, and embarking on next patrol. I've still got 6 torpedoes left and the patrol memo says I still haven't completed the current mission (sink merchant shipping)

P.S. Thanks for your efforts on the crazy time readings...

KaleunMarco
12-18-18, 09:49 PM
so, 930 am in the Caribbean in August, even though it is dark, the enemy sees me as if it is daylight?

couldn't this be a solar eclipse?:har::har:


https://i.ibb.co/3fChRT0/SH4-Img-2018-12-18-14-38-05-701.png

hauangua
12-19-18, 04:10 AM
A question maybe a little "stupid"
But installing the "mod Antilag"

http://www.subsim.com/radioroom/downloads.php?do=file&id=2871

setting fps limits 30 can solve the problem?

Front Runner
12-19-18, 09:51 AM
A question maybe a little "stupid"
But installing the "mod Antilag"

http://www.subsim.com/radioroom/downloads.php?do=file&id=2871

setting fps limits 30 can solve the problem?


There's more than one way to skin a cat. This might just work! Thanks for digging this up.
However 30 fps doesn't "solve" the problem, it reduces its cumulative effects.
"Lag" isn't the problem. That being said, one might be able to disable the render ahead portion of the app and set the frame limiter to 30 fps instead of using nVidida Inspector, which gives much more control over the graphics card settings.

I was unaware that one could limit fps through D39 config. This mod may be the ONLY solution available for those without nVidia graphics cards though.

Front Runner
12-19-18, 09:52 AM
so, 930 am in the Caribbean in August, even though it is dark, the enemy sees me as if it is daylight?

couldn't this be a solar eclipse?:har::har:


https://i.ibb.co/3fChRT0/SH4-Img-2018-12-18-14-38-05-701.png


Where are you based out of for a Carribean patrol?

propbeanie
12-19-18, 02:06 PM
He's in a U-Boat, and the US has radar... :har:

KaleunMarco
12-19-18, 02:23 PM
Where are you based out of for a Carribean patrol?
Brest.
yes, that's a long way for a Type 7. i have to keep tabs on the milchcows unless i want to spend the rest of the war in the Caribbean. Wait a minute...hold the phone...what's wrong with that idea?:har:
why didn't the Ubi's program that possibility into SH4?:har:

Greystone
12-20-18, 01:03 PM
Front Runnner; you requested in an earlier post: "Let us know the results of starting a new patrol when making the recommended Vertical Sync changes while in career. Theoretically, your next patrol should start the BT Clock anew.
Keep in mind that there will still be a Time Zone difference between your “Base” and your “Patrol Area”. For example Pearl Harbor Base Time would be different than the observed Base Time in Empire Waters."



Here's how it went down:

Finished last (1st) patrol & headed back to Pearl.
When I finished loading torps, etc., I started my 2nd patrol (reconnaissance Tokyo Bay)

Patrol started on FEB. 2nd, '42, at 0500; stars out, full moon.

FEB. 2, heading west, TC (time compression) x64 until sunrise at 0614. Looks like going into home port and starting next patrol brought the time into a realistic frame.

TCx1 to 0632, saved game, went to DT (desktop).

Reloaded, continued at TCx1 to 0813, saved, back to DT.

Reloaded, combination TCx64 & TCx1 to sunrise at 0740, FEB. 3; one timezone west of Pearl. Time at Pearl is shown as the same as local time in the game.

FEB. 4: TC to sunrise at 0800, 2 timezones west of Pearl.

FEB. 5: Lost info for this date.

FEB. 6: Sunrise at 0855, time shown for Pearl the same.

FEB. 7: Sunrise at 0924, Pearl the same (Pearl time, in my game anyway, is always shown as the same for local time all the way through the patrol; will not make reference to Pearl's time for the remaining dates).

FEB. 8: Sunrise at 1000, sunset at 2200. (Combo TCx64 & TCx1)

FEB. 9: Sunrise 1055, sunset 2134. (Combo TCx64 & TCx1)

FEB. 10: (TC @ 256) Sunrise 1055, sunset at 2150.

FEB. 11: (TC @ 256 every following entry) Sunrise 1110, set at 2208.

FEB. 12 Sunrise at 1127, set at 2226.

FEB. 13 Sunrise at 1145, set at 2244.

FEB. 14 Sunrise at 1202; didn't bother waiting to record sunset... got enough info anyway.
(6 time zones west of Pearl, where sun first rose at 0614 after leaving Pearl. (Regarding the recorded times above, allowance may be in order, but not by much, since, with 256 TC, a minute or more may have been gained allowing for the time it took me to hit the pause button).

My head hurts trying to figure this out; the local time and home port's time is always shown as the same, in my game anyway. I've got to start somewhere, so I'm going to assume that the home port's time is the one that reflects reality; to get real LOCAL time, since the boat's 6 time zones west of Pearl, one has to subract 1 hour for every time zone west of Pearl; 6 time zones, so 1202 (sunrise on FEB. 14) minus 6 hours is 0602 for the real local time. So apparently the nVidia tinkering corrected the slipping and sliding time thing, within reason (?), but the game refuses to show the real local time, leaving it to the player to check out the time zone difference, relative to their home port, and calculate the adjustment to get the real local time. Are we having fun yet? Let me know if this makes any sense to you.

Front Runner
12-20-18, 02:01 PM
Front Runnner; you requested in an earlier post: "Let us know the results of starting a new patrol when making the recommended Vertical Sync changes while in career. Theoretically, your next patrol should start the BT Clock anew.
Keep in mind that there will still be a Time Zone difference between your “Base” and your “Patrol Area”. For example Pearl Harbor Base Time would be different than the observed Base Time in Empire Waters."

Here's how it went down:

My head hurts trying to figure this out; the local time and home port's time is always shown as the same, in my game anyway. I've got to start somewhere, so I'm going to assume that the home port's time is the one that reflects reality; to get real LOCAL time, since the boat's 6 time zones west of Pearl, one has to subract 1 hour for every time zone west of Pearl; 6 time zones, so 1202 (sunrise on FEB. 14) minus 6 hours is 0602 for the real local time. So apparently the nVidia tinkering corrected the slipping and sliding time thing, within reason (?), but the game refuses to show the real local time, leaving it to the player to check out the time zone difference, relative to their home port, and calculate the adjustment to get the real local time. Are we having fun yet? Let me know if this makes any sense to you.


Thanks. Yes, it makes ones head hurt......or, spin! :ping:
It appears you have done this correctly and it sounds as if the recommended settings are working out OK for you.

Base Time should ALWAYS be the time AT your BASE HOME PORT (thus Base Time). You have to subtract or add hours depending on how many time zones you have traveled east-west from your BASE in order to determine your subs' local time. I've heard that some save games can alter this although I have not personally witnessed that anomaly.

Most sub simmers play at a reasonable combination of Time Compression and 1X, so the accumulated error should be minimal.

I'm well into the fourth day underway at 1x and my 4th sunset was late 30 minutes, and that's after about 80 hours of gameplay at 1x. My first sunset was actually 1 minute early. I'm using 1/2 refresh rate, adaptive sync, and getting 30fps from my nVidia Inspector settings.

Now wait until Headquarters reassigns your BASE (say from Pearl to Brisbane) during a patrol. That really screws up your clocks! :haha::haha::haha:

I'm wondering how many of us actually play the game at 1x as I sometimes do when I'm completing household chores while the game is running, listening to Fred's Radio Stations playing music and radio dramas, or, binge watching Netflix or Prime, while keeping one eye (:arrgh!:) on my subs' progress, interacting every so often when I hear...
"Radar Contact - Long Range", (Clear the Bridge!!!) :Kaleun_Cheers:

I don't ALWAYS play for long periods at 1x. I also play a typical mix of time compression and 1x as most players likely do.

I am curious as to why fps affects the timing of the celestial sphere. Maybe someone will be able to figure it out. It must be hardcoded in the SH4.exe


Carry on!:Kaleun_Salute:

Greystone
12-20-18, 04:21 PM
Front Runner; thanks for the confirmation that I appear to be blundering down the right path:yeah:(does cartwheels)... which never would've happened without insights contributed by yourself, propbeanie & others.


Now, in the interest of girding my loins for future confusion, what, in general terms, should I expect with the time thing when I get reassigned to, say, Australia? Just a general idea..
Thanks..

Front Runner
12-20-18, 05:05 PM
Front Runner; thanks for the confirmation that I appear to be blundering down the right path:yeah:(does cartwheels)... which never would've happened without insights contributed by yourself, propbeanie & others.


Now, in the interest of girding my loins for future confusion, what, in general terms, should I expect with the time thing when I get reassigned to, say, Australia? Just a general idea..
Thanks..

If you’re assigned to Brisbane then Brisbane is your Base Time. You’ll only have to subtract 2 hours instead of 6 if you’re near Hong Kong.

propbeanie
12-20-18, 05:50 PM
I am curious as to why fps affects the timing of the celestial sphere.
Think of the game somewhat as an old, pre-SMPTE movie, like a silent movie with the music sound track on paper for a human player to play. It's supposed to play at 30fps, like the old movies played at 24 fps on the Big Screen (which is a frame rate that makes wagon wheels appear to spin backwards). If you then make the "movie projector" (the computer in this case) play the movie faster, but don't cue the human player of the piano to speed up the sound track, then the film is way ahead, and the audio track lags. My guess is that the video of the game is separate from the celestial tracking. No one cued the piano player... :salute:

hyperbolicsphere
01-18-19, 09:05 PM
From what I gather, a lot of you have run into out-of-whack temporal disturbances, as I have, like the sun rising at 1am, setting at noon, etc...

Mod-related bugs aside, I can assure you that there is nothing wrong. I, too, have read many posts and threads related to the sun rising and setting at 1 am, and the difficulties involved with celestial navigation in the game. Some of these are written by people who know what they're talking about, but most are not.

I proved everything was fine (at least to myself) because I was able to navigate by the stars from Pearl Harbor to Midway over the course of a three-day voyage (and later, all the way to Japan) without any mods or outside software other than an Excel spreadsheet which I wrote to do the tedious mathematical calculations for me. It was so accurate that I found Midway right off my bow on the first attempt. I couldn't have done that if there had been anything wrong.

One thing I've noticed is that most of the discussion centers around sunrise and sunset times. There are a lot of reasons why people have difficulty with this, and they chase their tails trying to figure it out. There's a lot of effort that goes into calculating "real local time" for the sub's present "time zone" when time zones have nothing to do with what time the sun rises. Instead, there is Sun Time. Every point on the surface of the earth has its own unique schedule when it comes to Sun Time, it is, therefore, quite meaningless and useless for our purposes. Tracking the sun is an exercise in futility, as well. In the game, it's so big that it's difficult to tell exactly where it is. The same goes for the moon. I can tell you, however, that the sun and moon are not 180 degrees from where they need to be, nor 90 degrees, 50, 40, not even 10. Just accept it, SH4 is astronomically correct.

Pearl Harbor base time is UTC -11 hours. Perth base time is UTC +8. Setting a constant base time makes more sense than anything else. If you see something that doesn't make sense to you, first make an effort to understand why it may be RIGHT!

I could go on and on about the nonsensical things I've read in some of these posts and threads, but just for example, I'll use a recent one: "Base Time 2018" by FrontRunner, propbeanie, et al. They think they found a problem with sunset times caused by the accelerated frame rates of newer computers, and to try to prove it, they used a timing experiment with a moving platform (sailing north at 15kts). Because Sun Time is different on every different point on the surface of the earth, the moving platform tainted their results. It's worse because they chose a date close to the Winter Solstice, when sunrise and sunset times vary with latitude the most. After all that, their conclusion about frame rates isn't consistent with the effect they were looking at. If the game were designed for 24fps and accelerating that caused the "sky to turn" at the wrong rate, 30fps would cause a solar day to take 19 hours and 12 minutes in the game. They didn't find anything like that.

Your question about whether the AI can see you at night is a more complex but less important one. As a general rule, do not be on the surface when a ship is any closer than the point at which you can just barely see it. "If you can see them, they can see you." Real submarines in WWII used to track ships by the smoke above their stacks, and not even by visual contact with the ships, themselves. Night surface attacks were common, but so were sunken U-boats.

propbeanie
01-18-19, 09:40 PM
Really?... :hmmm: - I'll have to remember that one. "Don't be on the surface when a ship is any closer than the point at which you can just barely see it."... got it.

I'm glad you were able to find Midway, and Japan too, more power to you and your "real" navigation on a cylinder. We are NOT talking about that in the "Base Time 2018" thread. Read the thread

hyperbolicsphere
10-19-19, 10:09 AM
I didn't say you were talking about celestial navigation in "Base Time 2018," so maybe you're the one who needs to learn how to read.

Yes, the world is modeled as a cylinder in SH4. So what? The game still displays the sky as it appeared at the time, latitude, and longitude of your sub. This is why I can apply real-world navigation techniques to the game.

I guess you're still playing at beginner levels if you stay on the surface so much. If you want to crank it up to realistic, you're going to have to learn some new tactics. Would you like some more pointers?

propbeanie
10-20-19, 08:16 PM
OK, another attempt at 'spaining it Lucy... The game was written circa 2005 during the Windows XP days. As such, it uses DirectX v9.0c (which has a "timer"). The game uses multiple "timers" to run the game. The "timers" have to be co-ordinated, or synced with each other. A computer has no knowledge of plus (+) or minus (-) Meridian, degrees of latitude and longitude, or anything like that. It counts zeroes and ones. On and Off. The human "interprets" it. Front Runner, in the aforementioned thread found that running the game higher than 30fps resulted in a game that would go "out of sync" with itself after he played days of the game at 1x, or at real time. If he used mid-levels of TC and the 1x real time, the game did not "drift" out of sync with itself as much. In other words, his "base time" shifted the more he played at 1x real time. Once he restricted the game to 30 fps, there was no longer any "drift" in the clocks, hence a more accurate rendition of the night / day sky, making it possible to predict the moon cycles more accurately. This does not have anything to do with my ignorance of this, that, or the other. If you restrict the game to 30 fps, which is what it was written to, you will then end up with more accurate SH4-world time... Once again, I attempt to explain that the cylinder land and sea has a clock. The sun and moon seem to have a separate clock. 30 fps, tied to the video card, keeps them together.