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 
 
nwnx_funcs plugin

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
max196



Joined: 26 Jun 2008
Posts: 30

PostPosted: Sun Aug 10, 2008 2:02    Post subject: nwnx_funcs plugin Reply with quote

The server seems to start correctly:

./nwnstartup.sh

NWNX2lib: Init
NWNX2lib: org SetString() at 0x81f41b4, new SetString() at 0xecd102
NWNX2lib: org GetObj() at 0x81f40bc, new GetObj() at 0xecca62
* Parsing configuration...
NWN Extender v2.7-beta4
(c) 2004 by the APS/NWNX Linux Conversion Group
(c) 2007-2008 by virusman
Based on the Win32 version (c) 2003 by Ingmar Stieger (Papillon)
and Jeroen Broekhuizen
visit us at http://www.avlis.org

* Searching for signatures...
* Loading modules...
RESETPLUGIN plugin registered.
FUNCS plugin registered.
FIXES plugin registered.
HASHSET plugin registered.
TMI plugin registered.
ODBC plugin registered.
EVENTS plugin registered.
LETO plugin registered.
STRUCTS plugin registered.
FUNCTIONS plugin registered.
MNX plugin registered.
WEAPONS plugin registered.
* NWNX2 activated.
Neverwinter Nights Server
Build:8109
Copyright BioWare Corp 1998-2004

Server: Loading...
Server: Running...

Server: Loading module "necronomicon4".......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Server: Module loaded
NWNX!INIT enforcement disabled, using 0x082041ec
INIT(S): reset ignored ret=0x082041ec


but nwnx funcs are not workig:
This is the log of nwnx_funcs


StrReq: "SETPCLOOTABLE"
Params: "1 "
Unrecognized string request: "SETPCLOOTABLE" "1 "
Return: "1 "
StrReq: "MODIFYABILITYSCORE"
Params: "0 3 "
Unrecognized string request: "MODIFYABILITYSCORE" "0 3 "
Return: "0 3 "
StrReq: "MODIFYABILITYSCORE"
Params: "1 -4 "
Unrecognized string request: "MODIFYABILITYSCORE" "1 -4 "
Return: "1 -4 "
StrReq: "MODIFYABILITYSCORE"
Params: "4 3 "
Unrecognized string request: "MODIFYABILITYSCORE" "4 3 "
Return: "4 3 "
StrReq: "ADDKNOWNFEAT"
Params: "28 "
Unrecognized string request: "ADDKNOWNFEAT" "28 "
Return: "28 "
StrReq: "ADDKNOWNFEAT"
Params: "408 "
Unrecognized string request: "ADDKNOWNFEAT" "408 "
Return: "408
Back to top
View user's profile Send private message
acaos



Joined: 08 May 2007
Posts: 153

PostPosted: Sun Aug 10, 2008 2:29    Post subject: Reply with quote

I just force-regenerated the gperf-built header files. Can you try updating your checkout and try again?

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



Joined: 26 Jun 2008
Posts: 30

PostPosted: Sun Aug 10, 2008 3:04    Post subject: Reply with quote

ok, it seems to work correctly.

Just an osservation:

If you pass a -1 parameter as a feat option like:
StrReq: "ADDKNOWNFEAT"
Params: "-1 "
Return: "16"

the plugin strips out all the pc's feats.
Back to top
View user's profile Send private message
acaos



Joined: 08 May 2007
Posts: 153

PostPosted: Sun Aug 10, 2008 3:28    Post subject: Reply with quote

That's because you actually did add the feat -1, and that causes the client to break. If you look at the GFF, they'll have that feat in their list.

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



Joined: 26 Jun 2008
Posts: 30

PostPosted: Sun Aug 10, 2008 23:20    Post subject: Reply with quote

Would be it possibile to have a function like a permanent addhitpoint?
Back to top
View user's profile Send private message
acaos



Joined: 08 May 2007
Posts: 153

PostPosted: Mon Aug 11, 2008 5:00    Post subject: Reply with quote

SetMaxHitPointsByLevel().

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



Joined: 11 Feb 2005
Posts: 76

PostPosted: Mon Aug 11, 2008 15:44    Post subject: Reply with quote

There is little ELC issue with RemoveKnownFeat.
Function removes feat from FeatsList but not from LvlStatList.

Maybe RemoveKnownFeatAtLevel or something ?
Back to top
View user's profile Send private message
acaos



Joined: 08 May 2007
Posts: 153

PostPosted: Mon Aug 11, 2008 17:13    Post subject: Reply with quote

I'll look into adding that. I think last time I attempted that, it crashed the client. In general, many of these functions are not ELC-compatible.

If you want to substitute a feat (which is the only way I could see it remaining ELC-compatible) you can use SetKnownFeat/SetKnownFeatByLevel (you'd have to use both, to change the master feat list and the lvlstatlist).

I'll look into adding ReplaceKnownFeat which would handle both easily (since we already have ReplaceKnownSpell).

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



Joined: 26 Jun 2008
Posts: 30

PostPosted: Mon Aug 11, 2008 17:25    Post subject: Reply with quote

I noticed that while adding a feat like EPIC_GREAT_CHARISM X, etc... using addknownfeat the ability point don't change.

Is it a bug or is it a normal nwn engine behaviour?
Back to top
View user's profile Send private message
axs



Joined: 11 Feb 2005
Posts: 76

PostPosted: Mon Aug 11, 2008 17:45    Post subject: Reply with quote

Ok, thanks for your advice and biggest thanks for creating such plugin Wink
Back to top
View user's profile Send private message
FunkySwerve



Joined: 02 Jun 2005
Posts: 377

PostPosted: Mon Aug 11, 2008 18:35    Post subject: Reply with quote

Epic ability feats like Great Charisma are just marker feats, you have to add the ability points separately. This is normal engine behavior.

Funky
Back to top
View user's profile Send private message
Timear



Joined: 23 Aug 2005
Posts: 31

PostPosted: Tue Aug 12, 2008 0:38    Post subject: Reply with quote

acaos wrote:
SetMaxHitPointsByLevel().

Acaos


Unfortunately this does not seem to work for NPCs. Is it possible to implement a corresponding function for NPCs?

Regards
Timear
Back to top
View user's profile Send private message
acaos



Joined: 08 May 2007
Posts: 153

PostPosted: Tue Aug 12, 2008 2:52    Post subject: Reply with quote

It should be; I already know where the field is. I'll add it.

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



Joined: 23 Aug 2005
Posts: 31

PostPosted: Tue Aug 12, 2008 7:22    Post subject: Reply with quote

Thank you very much
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
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