View previous topic :: View next topic |
Author |
Message |
Larnak
Joined: 25 Sep 2006 Posts: 7 Location: Southern California
|
Posted: Sat Jan 27, 2007 0:10 Post subject: xp_time issue |
|
|
I am running into an issue when using xp_time plugin. When used on a server hosted locally on my laptop everything works fine, including pointing to my database over the internet. The plugin returns the system time of my laptop and even writes the time to the database.
The problem arises when the same module is ran on the server. The functions GetSystemTime() and GetSystemDate() do not return the time like they do when run on the laptop. The server is Windows 2003 Standard Server sp1. Everything else is the same down to all the files in the NWN2 directory.
Is there something with Windows Server that that would prohibit the plugin from funtioning correctly? I will post the code that I am using for the test and the log files.
Test code placed on a lever: Code: | #include "nwnx_clock"
void main()
{
string sTestTime = GetSystemTime();
string sTestDate = GetSystemDate();
string sTestTimeDate = GetSystemTime() + "-" + GetSystemDate();
SpeakString("Time: " + sTestTime, TALKVOLUME_SHOUT);
SpeakString("Date: " + sTestDate, TALKVOLUME_SHOUT);
SpeakString("Time & Date: " + sTestTimeDate, TALKVOLUME_SHOUT);
} |
Here are the Log files:
nxnx.txt: Code: | NWN Extender 4 V.0.0.6
(c) 2006 by Ingmar Stieger (Papillon)
visit us at http://www.nwnx.org
* Loading plugins...
* Loading plugin xp_mysql.dll: Successfully registered as class: SQL
* Loading plugin xp_sqlite.dll: Error during plugin initialization.
* Loading plugin xp_time.dll: Successfully registered as class: TIME
* Disabling general protection fault error dialog.
* NWNX4 activated. |
xp_time.txt: Code: | NWNX Timer Plugin V.0.0.1
(c) 2006 by Ingmar Stieger (Papillon)
visit us at http://www.nwnx.org
* Plugin initialized. |
|
|
Back to top |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Sat Jan 27, 2007 22:42 Post subject: |
|
|
Looks like you are mixing the TIME (mine) and CLOCK (kungfoowiz) plugins.
kungfoowiz should be able to say more, but do you have xp_clock.dll in your NWNX4 directory ? _________________ Papillon |
|
Back to top |
|
|
Larnak
Joined: 25 Sep 2006 Posts: 7 Location: Southern California
|
Posted: Sat Jan 27, 2007 23:05 Post subject: |
|
|
It does seem indeed that I was confused. I wasn't even looking at the xp_clock.dll. It seems that is the one that the GetSystemTime() uses.
Thanks for the pointer in the direction of understanding. |
|
Back to top |
|
|
|