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 
 
Beta plugin: nwnx_funcs
Goto page Previous  1, 2, 3 ... 6, 7, 8, 9, 10, 11  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
Zebranky



Joined: 04 Jun 2006
Posts: 415

PostPosted: Mon Jun 29, 2009 18:45    Post subject: Reply with quote

I don't think there's a hook for learning spells from scrolls at the moment. Sounds like a candidate for nwnx_events, though.
_________________
Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/

<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.

<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for?
Back to top
View user's profile Send private message Visit poster's website
axs



Joined: 11 Feb 2005
Posts: 76

PostPosted: Mon Jun 29, 2009 18:56    Post subject: Reply with quote

It's done in my unofficial modification.

http://www.nwnx.org/phpBB2/viewtopic.php?p=10742#10742
Back to top
View user's profile Send private message
garrison



Joined: 16 Feb 2009
Posts: 4

PostPosted: Mon Jun 29, 2009 20:34    Post subject: Reply with quote

I think in all cases I still have to deal with Sorcerers who cannot learn spells from scrolls, so at the moment I'm setting the MySQL based on oItem from either EVENT_TYPE_EXAMINE or EVENT_TYPE_USE_ITEM, this seems to work quite well, and in time for our next release. Wink

Again, my thanks.
Back to top
View user's profile Send private message
Undertowe



Joined: 03 Jan 2005
Posts: 33

PostPosted: Thu Jul 16, 2009 4:56    Post subject: Reply with quote

First, I'd like to thank acaos for his work on this plugin. It's greatly reduced the amount of work I have to do.

However, I'm having a puzzling problem. Here's the facts. I'm running NWServer 1.69.8109 and NWNX2 v2.7.1-dev on Ubuntu 8.04 Server. I'm not sure which version of nwnx_funcs I'm using. The log file doesn't state the version. Suffice to say, I compiled NWNX2 and plugins from the SVN trunk about 2 weeks ago. I'm also using nwnx_chat and nwnx_odbc and they both seem to be working fine.

I haven't tested all the functions but GetClassByLevel(), AddKnownFeat(), GetTotalKnownFeatsByLevel(), and GetKnownFeatByLevel() all seem to be working fine.

The problem began when I tried to call GetFirstArea() and it returned an invalid object. When the function is called, NWNX2 reports:

FAILED: NWNX!INIT(O) has not been initialized.

Yes, I am calling SQLInit() before this, and the other plugins are working fine. GetPortrait() also gives the same message, and returns an empty string. I haven't tested any other functions.

Incidentally, I tried using GetFirstArea() from nwnx_functions and I get the same message.

This may or may not be related, but I'm also occasionally getting messages of the type:

REJECTED: (S) ret=0x081c97fc but we wanted ret=0x082041ec!

I haven't pinpointed what's triggering those yet.

Any help would be appreciated.

UPDATE:

On a whim, in nwnx2.ini I set:

disablenwnxinit=y

and now GetFirstArea() is working. Additionally, when it's called, NWNX2 says:

NWNX!INIT enforcement disabled, using 0x08203e79

So what's the deal? Does NWNX!INIT enforcement have to be disabled for GetFirstArea() to work? The README file in the SVN trunk says:

Quote:
It is STRONGLY recommended that you do not enable this feature UNLESS you make APS or NWNX calls in your OnLoad script.


I've always left disablenwnxinit=n because of this warning. What's the danger?
Back to top
View user's profile Send private message
acaos



Joined: 08 May 2007
Posts: 153

PostPosted: Fri Jul 17, 2009 0:57    Post subject: Reply with quote

I've actually never had that set to anything but disablenwnxinit=y. I think it's more important on Windows servers.

Acaos
Back to top
View user's profile Send private message
axs



Joined: 11 Feb 2005
Posts: 76

PostPosted: Fri Jul 17, 2009 1:37    Post subject: Reply with quote

Or just add to your onload script:
GetLocalObject(OBJECT_SELF, "NWNX!INIT");
Back to top
View user's profile Send private message
Quixsilver



Joined: 20 Jan 2009
Posts: 30

PostPosted: Fri Jul 17, 2009 4:23    Post subject: Reply with quote

BroadcastProjectileToObject/Location seems to have a problem.

The error message below "Unrecognized string request" is generated in the funcs logfile using both the ToObject and ToLocation variants of this function.


Code:

StrReq: "BROADCASTPROJECTILE"
Params: "0 7.8467 8.6324 -0.0000 600 260"
Unrecognized string request: "BROADCASTPROJECTILE" "0 7.8467 8.6324 -0.0000 600 260"
Return: "0 7.8467 8.6324 -0.0000 600 260"
Back to top
View user's profile Send private message
Zebranky



Joined: 04 Jun 2006
Posts: 415

PostPosted: Fri Jul 17, 2009 4:35    Post subject: Reply with quote

acaos wrote:
I've actually never had that set to anything but disablenwnxinit=y. I think it's more important on Windows servers.

Acaos

I don't think it exists on Windows. Razz
_________________
Win32 SVN builds: http://www.mercuric.net/nwn/nwnx/

<Fluffy-Kooshy> NWNx plugin is to this as nuclear warheads are to getting rid of fire ants.

<ThriWork> whenever I hear nwn extender, I think what does NWN need a penis extender for?
Back to top
View user's profile Send private message Visit poster's website
PlasmaJohn



Joined: 04 Mar 2005
Posts: 70
Location: The Garage

PostPosted: Fri Jul 17, 2009 5:25    Post subject: Reply with quote

Windows never needed it. Linux needed a pointer initialized before certain plugins were run. I've quite lost track what of the details Smile
Back to top
View user's profile Send private message
Undertowe



Joined: 03 Jan 2005
Posts: 33

PostPosted: Fri Jul 17, 2009 7:30    Post subject: Reply with quote

Thanks for the responses. I suspected there was a way to manually initialize the object stuff, but couldn't find it documented anywhere.
Back to top
View user's profile Send private message
acaos



Joined: 08 May 2007
Posts: 153

PostPosted: Sat Jul 18, 2009 10:28    Post subject: Reply with quote

Quixsilver wrote:
BroadcastProjectileToObject/Location seems to have a problem.

The error message below "Unrecognized string request" is generated in the funcs logfile using both the ToObject and ToLocation variants of this function.


I couldn't duplicate this in our running version, but I'll try a fresh checkout. Could you make sure BROADCASTPROJECTILE is in your FuncsStrCmds.h file?

Thanks,
Acaos
Back to top
View user's profile Send private message
Quixsilver



Joined: 20 Jan 2009
Posts: 30

PostPosted: Sat Jul 18, 2009 18:35    Post subject: Reply with quote

acaos wrote:
Quixsilver wrote:
BroadcastProjectileToObject/Location seems to have a problem.

The error message below "Unrecognized string request" is generated in the funcs logfile using both the ToObject and ToLocation variants of this function.


I couldn't duplicate this in our running version, but I'll try a fresh checkout. Could you make sure BROADCASTPROJECTILE is in your FuncsStrCmds.h file?

Thanks,
Acaos


Thanks for looking into this Acaos, I really appreciate it.

I was trying to find the FuncsStrCmds.h file but the gperf stuff is confusing to me. Is FuncsStrCmds.h built dynamically at run time from FuncsStrCmds.gperf? BROADCASTPROJECTILE is in the gperf file.
Back to top
View user's profile Send private message
Mikel of Avalon



Joined: 29 Dec 2004
Posts: 72
Location: Germany

PostPosted: Sun Jul 19, 2009 11:23    Post subject: Reply with quote

You must have the gperf package installed in your linux distribution to compile nwnx2. I don't think that the gperf stuff is recompiled at runtime...

To compile the whole package use ./install.sh in the base directory.
_________________
Mikel of Avalon

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



Joined: 20 Jan 2009
Posts: 30

PostPosted: Sun Jul 19, 2009 18:16    Post subject: Reply with quote

Mikel of Avalon wrote:
You must have the gperf package installed in your linux distribution to compile nwnx2. I don't think that the gperf stuff is recompiled at runtime...

To compile the whole package use ./install.sh in the base directory.


I don't have any problems compiling anything and can muddle through the c and c++ code. I've never used gperf though and FuncsStrCmds.h doesn't seem to exist so I'm guessing, from code in the makefile, that its built from FuncsStrCmds.gperf at compile time.
Back to top
View user's profile Send private message
Campbell



Joined: 29 Jul 2008
Posts: 9

PostPosted: Mon Jul 20, 2009 4:10    Post subject: Help. Won't compile Reply with quote

I saw someone else is having a similar error, but nobody has answered it yet. I dl from the svn and tried to compile, but get an error when trying to configure. The following message is at the bottom after running ./configure

checking for sys/wait.h that is POSIX.1 compatible... no
checking fcntl.h usability... no
checking fcntl.h presence... no
checking for fcntl.h... no
configure cannot find necessary include files.

Any help would be appreciated.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development All times are GMT + 2 Hours
Goto page Previous  1, 2, 3 ... 6, 7, 8, 9, 10, 11  Next
Page 7 of 11

 
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