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 
 
xp_time issue

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules
View previous topic :: View next topic  
Author Message
Larnak



Joined: 25 Sep 2006
Posts: 7
Location: Southern California

PostPosted: Sat Jan 27, 2007 0:10    Post subject: xp_time issue Reply with quote

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
View user's profile Send private message Visit poster's website
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sat Jan 27, 2007 22:42    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website MSN Messenger
Larnak



Joined: 25 Sep 2006
Posts: 7
Location: Southern California

PostPosted: Sat Jan 27, 2007 23:05    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Scripts and Modules All times are GMT + 2 Hours
Page 1 of 1

 
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