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 4 Linux: Functions - dont work - eek!

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



Joined: 05 Aug 2005
Posts: 71

PostPosted: Sat Oct 22, 2005 1:15    Post subject: NWNx 4 Linux: Functions - dont work - eek! Reply with quote

OK - So I've been runnin NWNx for linux for awhile now - using the ODBC plugin only. But today I decided to check out all those other lil plugins.

I load up function_demo and things dont seem to work right

I load up wingtail_demo and no body parts change at all

mnx_demo - i dont even know what this is - i've assumed its merely a mini APS? didn't seem to work either

Is this possibly due to outdated NWNx 4 Linux (when 1.66 came out)?
Back to top
View user's profile Send private message
Vladiat0r



Joined: 17 Jun 2005
Posts: 25

PostPosted: Sat Oct 22, 2005 4:18    Post subject: Reply with quote

There is a fix for Get/SetBodyPart for wings/tails here: http://www.nwnx.org/phpBB2/viewtopic.php?t=296
Back to top
View user's profile Send private message
weldieran



Joined: 05 Aug 2005
Posts: 71

PostPosted: Sat Oct 22, 2005 16:33    Post subject: Reply with quote

Ahh I C, yes. But you only posted the binary file for linux. I need to recompile it on my system as its different from yours.

Can i get the source from ya?

or - mebbe just tell me where the edit needs made?
Back to top
View user's profile Send private message
Vladiat0r



Joined: 17 Jun 2005
Posts: 25

PostPosted: Sat Oct 22, 2005 17:58    Post subject: Reply with quote

weldieran wrote:
Ahh I C, yes. But you only posted the binary file for linux. I need to recompile it on my system as its different from yours.

Can i get the source from ya?

or - mebbe just tell me where the edit needs made?
Yes the source changes are described in that thread. Basically incrementing the offset used by 12.
Back to top
View user's profile Send private message
weldieran



Joined: 05 Aug 2005
Posts: 71

PostPosted: Sat Oct 22, 2005 20:19    Post subject: Reply with quote

Ya, i read that - and i tried a few things - but i'm quite the noob when it comes to C++

I can find/change/recompile just fine - but nto sure what in particular needs adjusted.

I had assumed the 0x0c20 address - but not certain... i tried 0x12c20, hehe, 0x0c32, hehehehe - but no go.
Back to top
View user's profile Send private message
Vladiat0r



Joined: 17 Jun 2005
Posts: 25

PostPosted: Sat Oct 22, 2005 20:50    Post subject: Reply with quote

For SetBodyPart:
Code:
*(pGameObject+0x0c20+bpart) = (char)ptype;


and GetBodyPart:
Code:
sprintf(value,"%d",*(pGameObject+0x0c20+bpart));
Back to top
View user's profile Send private message
weldieran



Joined: 05 Aug 2005
Posts: 71

PostPosted: Sat Oct 22, 2005 22:38    Post subject: Reply with quote

uhm those are the original lines Laughing - i assume something in those lines need changed?

also, does your linux NWNXFunctions include SetName? would like to snag that one too.
Back to top
View user's profile Send private message
Vladiat0r



Joined: 17 Jun 2005
Posts: 25

PostPosted: Sat Oct 22, 2005 23:15    Post subject: Reply with quote

weldieran wrote:
uhm those are the original lines Laughing - i assume something in those lines need changed?

also, does your linux NWNXFunctions include SetName? would like to snag that one too.
Those are the only functions we use, so no I don't have SetName, but I imagine a similar fix for it. If those original lines don't work for you then I would double check if it's failing somewhere else?
Back to top
View user's profile Send private message
weldieran



Joined: 05 Aug 2005
Posts: 71

PostPosted: Sat Oct 22, 2005 23:23    Post subject: Reply with quote

where else could it be failing when using the demo mod for it? I did update the demo mod with the function fix listed in that post you mentioned - no difference.

hmm - well, guess i can toss that plugin, heh.
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