logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Real World Time
Goto page Previous  1, 2, 3, 4, 5  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related
View previous topic :: View next topic  
Author Message
Gryphyn



Joined: 20 Jan 2005
Posts: 431

PostPosted: Fri Nov 16, 2007 12:52    Post subject: Reply with quote

Done!

Cheers
Gryphyn
Back to top
View user's profile Send private message
Disco



Joined: 06 Dec 2006
Posts: 152

PostPosted: Mon Nov 19, 2007 13:02    Post subject: Reply with quote

Gryphyn wrote:
Done!

Cheers
Gryphyn


WOOTS! Grrrrrreat! Thanks a lot!

I shouldn't DARE to ask... but I do anway. Is it possible to have ServerUpSeconds as well?
Back to top
View user's profile Send private message
Gryphyn



Joined: 20 Jan 2005
Posts: 431

PostPosted: Mon Nov 19, 2007 13:35    Post subject: Reply with quote

Disco wrote:
Gryphyn wrote:
Done!

Cheers
Gryphyn


WOOTS! Grrrrrreat! Thanks a lot!

I shouldn't DARE to ask... but I do anway. Is it possible to have ServerUpSeconds as well?


I left it out, as it's the one likely to 'overflow' an int. (maybe not?)
--use the digits from ServerUpTime (hh:mm:ss) and you can work it out.

No biggie to add it.

Cheers
Gryphyn
Back to top
View user's profile Send private message
Disco



Joined: 06 Dec 2006
Posts: 152

PostPosted: Tue Nov 20, 2007 11:20    Post subject: Reply with quote

Well, it won't overfloat that easily in most cases. How long does a server run (I mean: the NWN server!) in most cases? A day at most? That's 79200 seconds.

Perhaps it's handy to know the rationale behind this: You often need to block an object from doing something again for a while. You can do this by adding a delay but delayed calls are hard to trace. So, on triggers and such I place a timestamp derived from the NWN calendar functions. Simply the seconds from runtime. Every time somebody enters that trigger the trigger deducts the time on the trigger from the current timestamp and allows use when it's more than nDelay. Things like this are also handy to know ho long a PC is online, etc.

Now you'll ask "apparently this already works, so what?". Well, it's not 100% reliable. The calendar seems to shift up to 20 minutes during a 4 hour run.
Back to top
View user's profile Send private message
Gryphyn



Joined: 20 Jan 2005
Posts: 431

PostPosted: Tue Nov 20, 2007 13:17    Post subject: Reply with quote

Done!
Updated 'contribution' to v1.1

Cheers
Gryphyn
Back to top
View user's profile Send private message
Disco



Joined: 06 Dec 2006
Posts: 152

PostPosted: Tue Nov 20, 2007 15:59    Post subject: Reply with quote

Huzzah! Gonna check it out asap. I assume I throw the plugin in the NWN root and fiddle with nwnx.ini?
Back to top
View user's profile Send private message
Gryphyn



Joined: 20 Jan 2005
Posts: 431

PostPosted: Tue Nov 20, 2007 22:58    Post subject: Reply with quote

Disco wrote:
Huzzah! Gonna check it out asap. I assume I throw the plugin in the NWN root and fiddle with nwnx.ini?

Like any other plugin, it goes with nwnx2.exe
No ini file to play with, but you do need the #include script (export it from the demo mod)

Cheers
Gryphyn
Back to top
View user's profile Send private message
Disco



Joined: 06 Dec 2006
Posts: 152

PostPosted: Fri Nov 23, 2007 11:38    Post subject: Reply with quote

I'm finishing a huge update to our module, and next week I am quite busy with other stuff. I'll test this afterwards and give feedback.

Just to let you know it's not a "yes, this is what I have been waiting for and now it goes into the archive" request.
Back to top
View user's profile Send private message
Disco



Joined: 06 Dec 2006
Posts: 152

PostPosted: Sat Nov 24, 2007 13:46    Post subject: Reply with quote

O, you need to update the RAR. It contains the 1.0 version. Very Happy
Back to top
View user's profile Send private message
Gryphyn



Joined: 20 Jan 2005
Posts: 431

PostPosted: Sun Nov 25, 2007 4:05    Post subject: Reply with quote

Disco wrote:
O, you need to update the RAR. It contains the 1.0 version. Very Happy

It should contain the 1.1 (what's written to the log file?)
I didn't update the test mod.
Back to top
View user's profile Send private message
Disco



Joined: 06 Dec 2006
Posts: 152

PostPosted: Sun Nov 25, 2007 13:54    Post subject: Reply with quote

Well, it doesn't give seconds and the file date is Nov 16th. You updated on 20th, so I guess it's the old plugin.
Back to top
View user's profile Send private message
Gryphyn



Joined: 20 Jan 2005
Posts: 431

PostPosted: Sun Nov 25, 2007 22:31    Post subject: Reply with quote

Disco wrote:
Well, it doesn't give seconds and the file date is Nov 16th. You updated on 20th, so I guess it's the old plugin.

OK, I'll refresh at my end - you should get something new overnight Confused
Done.
Back to top
View user's profile Send private message
Disco



Joined: 06 Dec 2006
Posts: 152

PostPosted: Mon Nov 26, 2007 15:37    Post subject: Reply with quote



A picture says more than a thousand words... Razz
Back to top
View user's profile Send private message
Mikel of Avalon



Joined: 29 Dec 2004
Posts: 72
Location: Germany

PostPosted: Mon Nov 26, 2007 16:38    Post subject: Reply with quote

Any plans to do the same as linux plugin ?
_________________
Mikel of Avalon

Kalandur - Die vergessene Welt
Back to top
View user's profile Send private message Visit poster's website
Gryphyn



Joined: 20 Jan 2005
Posts: 431

PostPosted: Mon Nov 26, 2007 22:45    Post subject: Reply with quote

OK, Rebuilt, Modified the demo, Loaded a new RAR last night (all should be dated 26Nov.)
When I uploaded, it should have overwritten the old one. I made sure I'd checked that option. Oh well, I'll try again this arvo - deleting the existing rar, and uploading the new one, If I remember I also update the link - in-case there is a version of the file I don't know about.

@Mikel, with the work tonight (see above) I'll add-in the source code. A linux compile should be easy - it's using wxWidgets which is multi-platform.

Cheers
Gryphyn
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Database related All times are GMT + 2 Hours
Goto page Previous  1, 2, 3, 4, 5  Next
Page 3 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group