DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • August 30, 2016, 01:44:15 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: another Time problem  (Read 2706 times)
0 Members and 1 Guest are viewing this topic.
Zarzal
Guest
« on: August 13, 2004, 12:48:56 AM »

I install Version: 0.9.7+jt ext (GER) on my server. I read several threads about the differences in the time calculation on windows an linux based servers. My is linux based.

So I change the timebase to 197x.

My Problem: the displyed time on index.php never change and still say: 2:00am, next day 3h, 40m, 00s (I set 6 in game days per real time day)

The internal counting of a new day seems to work. Ich you know the time and log in you get a new day, but the displyed time never changed.

I run a PHP5 based server and this may be the main problem. I m not a coder but it can be a problem with internal reserved variables from PHP5 that are used to calculate the time. I see this problem in lots of other scripts after updating the server to PHP5. Most time ist works to rename the variables or put them in ' '.

Any idea how to bring the time display to work ?
Logged
anpera
Guest
« Reply #1 on: August 13, 2004, 04:19:25 AM »

0.9.7+jt ext (GER) is not an official release, so this might be the wrong place for questions about it. Please contact the distributor of this version.

Ooops, that's me...

Ok. ext (GER) was optimized to run on Windows systems by changing the "timebase" from 197x to 198x. But that's it. If you changed it back to 197x everywhere (see readme.txt) there is no reason why the time shouldn't work on Linux systems. (Even with 198x the gametime should run. Only the "Nchster neuer Spieltag in:" would display crap.)

Have you tried to install the official release from SourceForge with PHP5? If there is the same problem it probably *has* to do with some incompatibilities to PHP5. If there is no problem with the official release, please contact me again.
Logged
Zarzal
Guest
« Reply #2 on: August 13, 2004, 06:41:51 AM »

hello again,

as I write above, I change the timebase back to Unix like in the original.

Meanwhile I do a test with the official release package (Game server running version: 0.9.7+jt) and a clean DB without any modification, just from scratch. The effect is the same. The clock on index.php and about.php dosen't count. I fear, there is a change needed due php5.

In the gamesetting I see the servertime still counting:

Useful Information  
Last new day: 11:20:00 pm  
Next new day: 03:20:00 am  
Current game time: 4:00 am  
Day Duration: 4 hours  
Current Server Time: 2004-08-13 03:40:30 pm  


Useful Information  
Last new day: 11:20:00 pm  
Next new day: 03:20:00 am  
Current game time: 4:00 am  
Day Duration: 4 hours  
Current Server Time: 2004-08-13 03:41:02 pm

 Sad
« Last Edit: August 13, 2004, 06:42:48 AM by Zarzal » Logged
Kendaer
Guest
« Reply #3 on: August 13, 2004, 04:51:08 PM »

This is apparently an issue with PHP5 (Anpera provided me details in email).

There are no intentions at this point to do any support for PHP5.  My view is that PHP5 is not quite 'ready for primetime' (based on some reports I've heard) and I'm not going to put effort into supporting it yet.
Logged
strider
Guest
« Reply #4 on: August 18, 2004, 04:22:03 PM »

That's a COMPLETE understatement. . . I don't think PHP 5 is even ready to sport an Alpha tag still. . .

They're still doing a lot of core changes from distribution to the next. It's probably going to be a while before it's stable.
Logged
Kendaer
Guest
« Reply #5 on: August 18, 2004, 11:37:57 PM »

This would be why I waited until 4.1 or 4.2 before I installed PHP4 on my machine too Smiley  Open source is fabulous, but ... some people don't have the right view of what is 'release ready code' (imho)
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Play LoGD on Dragonprime

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Who's Online
49 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search