View previous topic :: View next topic |
Author |
Message |
max196
Joined: 26 Jun 2008 Posts: 30
|
Posted: Sun Aug 10, 2008 2:02 Post subject: nwnx_funcs plugin |
|
|
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 |
|
|
acaos
Joined: 08 May 2007 Posts: 153
|
Posted: Sun Aug 10, 2008 2:29 Post subject: |
|
|
I just force-regenerated the gperf-built header files. Can you try updating your checkout and try again?
Acaos |
|
Back to top |
|
|
max196
Joined: 26 Jun 2008 Posts: 30
|
Posted: Sun Aug 10, 2008 3:04 Post subject: |
|
|
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 |
|
|
acaos
Joined: 08 May 2007 Posts: 153
|
Posted: Sun Aug 10, 2008 3:28 Post subject: |
|
|
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 |
|
|
max196
Joined: 26 Jun 2008 Posts: 30
|
Posted: Sun Aug 10, 2008 23:20 Post subject: |
|
|
Would be it possibile to have a function like a permanent addhitpoint? |
|
Back to top |
|
|
acaos
Joined: 08 May 2007 Posts: 153
|
Posted: Mon Aug 11, 2008 5:00 Post subject: |
|
|
SetMaxHitPointsByLevel().
Acaos |
|
Back to top |
|
|
axs
Joined: 11 Feb 2005 Posts: 76
|
Posted: Mon Aug 11, 2008 15:44 Post subject: |
|
|
There is little ELC issue with RemoveKnownFeat.
Function removes feat from FeatsList but not from LvlStatList.
Maybe RemoveKnownFeatAtLevel or something ? |
|
Back to top |
|
|
acaos
Joined: 08 May 2007 Posts: 153
|
Posted: Mon Aug 11, 2008 17:13 Post subject: |
|
|
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 |
|
|
max196
Joined: 26 Jun 2008 Posts: 30
|
Posted: Mon Aug 11, 2008 17:25 Post subject: |
|
|
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 |
|
|
axs
Joined: 11 Feb 2005 Posts: 76
|
Posted: Mon Aug 11, 2008 17:45 Post subject: |
|
|
Ok, thanks for your advice and biggest thanks for creating such plugin |
|
Back to top |
|
|
FunkySwerve
Joined: 02 Jun 2005 Posts: 377
|
Posted: Mon Aug 11, 2008 18:35 Post subject: |
|
|
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 |
|
|
Timear
Joined: 23 Aug 2005 Posts: 31
|
Posted: Tue Aug 12, 2008 0:38 Post subject: |
|
|
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 |
|
|
acaos
Joined: 08 May 2007 Posts: 153
|
Posted: Tue Aug 12, 2008 2:52 Post subject: |
|
|
It should be; I already know where the field is. I'll add it.
Acaos |
|
Back to top |
|
|
Timear
Joined: 23 Aug 2005 Posts: 31
|
Posted: Tue Aug 12, 2008 7:22 Post subject: |
|
|
Thank you very much |
|
Back to top |
|
|
|