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_functions + Get/SetDescription
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Linux development
View previous topic :: View next topic  
Author Message
Extreme



Joined: 28 Nov 2007
Posts: 135

PostPosted: Wed Nov 28, 2007 16:59    Post subject: Reply with quote

I found the SetRacialType here but i notice its in the Linux development forum. i am running on a windows platform but still need this command for my subraces.

I do have NWNx installed and use it to host but need to find out how to get this function working for the subrace engine

but when i compile i get an error to say that
Quote:
nwnx_functions_h

is not found
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Wed Nov 28, 2007 22:39    Post subject: Reply with quote

NWNX Functions (1.6+) is not available for Windows, sorry.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Extreme



Joined: 28 Nov 2007
Posts: 135

PostPosted: Wed Nov 28, 2007 22:51    Post subject: Reply with quote

akkkk

So there is no way to be able to use SetRacialType with windows. Now i assume this means what the server runs on
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Mon Jun 02, 2008 14:05    Post subject: Reply with quote

NWNX Functions 1.8.7 (Linux)
http://data.virusman.ru/nwn/nwnx_functions-1.8.7.rar
  • New functions:
    Code:
      int GetItemCount(object oTarget);
      object GetItemByPosition(object oTarget, int nPosition);

  • Fixed a crash in GetNextVariable function
  • Fixed a crash in GetConversation function
  • Added dynamic allocation support to GetDescription (spacer is not required anymore)
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Tue Jun 03, 2008 23:17    Post subject: Reply with quote

NWNX Functions 1.8.8 (Linux)
http://data.virusman.ru/nwn/nwnx_functions-1.8.8.rar
  • New function:
    Code:
      object IntToObject(int nObjectID);

  • SetDescription now works if an item doesn't have a custom description
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
axs



Joined: 11 Feb 2005
Posts: 76

PostPosted: Wed Jun 04, 2008 1:12    Post subject: Reply with quote

YeY, finally new versions, BIG THANKS! Smile
Back to top
View user's profile Send private message
SpiderX



Joined: 14 Aug 2007
Posts: 12

PostPosted: Mon Jun 16, 2008 13:27    Post subject: Reply with quote

virusman wrote:

Code:
//This function doesn't write to a file!!
//It changes a value in memory, so Get2DAString will return an old value
void Set2DAString(string s2DA, string sColumn, int nRow, string sValue);

Hmm.. Does this function work? Because when I tried to call it OnModuleLoad, I got a segfault.
I`m using the latest precompiled functions lib, latest core and 1.68 patch.
And another question. Is it possible to create a new entries in 2da cache in such way?
cls_feat_wiz.2da has a 81 line in 1.68.
I want to add such line "82 Knockdown 23 3 1 0". Can I do this with Set2DAString?
Code:

Set2DAString("cls_feat_wiz", "FeatLabel",          82, "Knockdown");
Set2DAString("cls_feat_wiz", "FeatIndex",         82, "23");
Set2DAString("cls_feat_wiz", "List",                   82, "3");
Set2DAString("cls_feat_wiz", "GrantedOnLevel", 82, "1");
Set2DAString("cls_feat_wiz", "OnMenu",             82, "0");


I`ve also tried to modify an existed row with
Code:
Set2DAString("cls_feat_wiz", "FeatLabel",          81, "Knockdown");
, but no luck. I got a segfault againe.
Back to top
View user's profile Send private message
Aerisarn



Joined: 11 Mar 2008
Posts: 14

PostPosted: Thu Jul 03, 2008 21:18    Post subject: Reply with quote

Is it normal that, if I try to use setfaction on a PC, the lucky one joins the faction viewing all faction members in the party members place right below, and seems to not fire PC events anymore?

In other words, can I change pc faction?
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Thu Jul 03, 2008 22:18    Post subject: Reply with quote

Aerisarn wrote:
Is it normal that, if I try to use setfaction on a PC, the lucky one joins the faction viewing all faction members in the party members place right below, and seems to not fire PC events anymore?

In other words, can I change pc faction?
It is not recommended to use SetFaction on PCs. The behavior of the function is unknown in this case.
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Mon Jul 14, 2008 17:10    Post subject: Reply with quote

NWNX Functions 1.8.9 (Linux)
http://data.virusman.ru/nwn/nwnx_functions-1.8.9.rar
  • Updated function signatures for compatibility with 1.69
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Fireboar



Joined: 17 Feb 2008
Posts: 323

PostPosted: Mon Jul 14, 2008 17:36    Post subject: Reply with quote

Just a heads-up - in the makefile.in you're missing CExoLocString.o under the list of things to make. And providing both makefile AND makefile.in is unnecessary when there's a ./configure script.
Back to top
View user's profile Send private message
axs



Joined: 11 Feb 2005
Posts: 76

PostPosted: Wed Jul 30, 2008 14:39    Post subject: Reply with quote

There is little problem with SetMovementRate => SegFault.
Back to top
View user's profile Send private message
acaos



Joined: 08 May 2007
Posts: 153

PostPosted: Sat Aug 02, 2008 10:11    Post subject: Reply with quote

I've fixed SetMovementRate for the next release of functions.

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



Joined: 11 Feb 2005
Posts: 76

PostPosted: Sat Aug 02, 2008 15:20    Post subject: Reply with quote

Great, thanks Smile
Back to top
View user's profile Send private message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sun Aug 03, 2008 2:44    Post subject: Reply with quote

acaos wrote:
I've fixed SetMovementRate for the next release of functions.

Acaos
Thanks!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
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, 4, 5, 6  Next
Page 5 of 6

 
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