View previous topic :: View next topic |
Author |
Message |
Gryphyn
Joined: 20 Jan 2005 Posts: 431
|
Posted: Fri Nov 16, 2007 12:52 Post subject: |
|
|
Done!
Cheers
Gryphyn |
|
Back to top |
|
|
Disco
Joined: 06 Dec 2006 Posts: 152
|
Posted: Mon Nov 19, 2007 13:02 Post subject: |
|
|
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 |
|
|
Gryphyn
Joined: 20 Jan 2005 Posts: 431
|
Posted: Mon Nov 19, 2007 13:35 Post subject: |
|
|
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 |
|
|
Disco
Joined: 06 Dec 2006 Posts: 152
|
Posted: Tue Nov 20, 2007 11:20 Post subject: |
|
|
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 |
|
|
Gryphyn
Joined: 20 Jan 2005 Posts: 431
|
Posted: Tue Nov 20, 2007 13:17 Post subject: |
|
|
Done!
Updated 'contribution' to v1.1
Cheers
Gryphyn |
|
Back to top |
|
|
Disco
Joined: 06 Dec 2006 Posts: 152
|
Posted: Tue Nov 20, 2007 15:59 Post subject: |
|
|
Huzzah! Gonna check it out asap. I assume I throw the plugin in the NWN root and fiddle with nwnx.ini? |
|
Back to top |
|
|
Gryphyn
Joined: 20 Jan 2005 Posts: 431
|
Posted: Tue Nov 20, 2007 22:58 Post subject: |
|
|
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 |
|
|
Disco
Joined: 06 Dec 2006 Posts: 152
|
Posted: Fri Nov 23, 2007 11:38 Post subject: |
|
|
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 |
|
|
Disco
Joined: 06 Dec 2006 Posts: 152
|
Posted: Sat Nov 24, 2007 13:46 Post subject: |
|
|
O, you need to update the RAR. It contains the 1.0 version. |
|
Back to top |
|
|
Gryphyn
Joined: 20 Jan 2005 Posts: 431
|
Posted: Sun Nov 25, 2007 4:05 Post subject: |
|
|
Disco wrote: | O, you need to update the RAR. It contains the 1.0 version. |
It should contain the 1.1 (what's written to the log file?)
I didn't update the test mod. |
|
Back to top |
|
|
Disco
Joined: 06 Dec 2006 Posts: 152
|
Posted: Sun Nov 25, 2007 13:54 Post subject: |
|
|
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 |
|
|
Gryphyn
Joined: 20 Jan 2005 Posts: 431
|
Posted: Sun Nov 25, 2007 22:31 Post subject: |
|
|
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
Done. |
|
Back to top |
|
|
Disco
Joined: 06 Dec 2006 Posts: 152
|
Posted: Mon Nov 26, 2007 15:37 Post subject: |
|
|
A picture says more than a thousand words... |
|
Back to top |
|
|
Mikel of Avalon
Joined: 29 Dec 2004 Posts: 72 Location: Germany
|
Posted: Mon Nov 26, 2007 16:38 Post subject: |
|
|
Any plans to do the same as linux plugin ? _________________ Mikel of Avalon
Kalandur - Die vergessene Welt |
|
Back to top |
|
|
Gryphyn
Joined: 20 Jan 2005 Posts: 431
|
Posted: Mon Nov 26, 2007 22:45 Post subject: |
|
|
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 |
|
|
|