View previous topic :: View next topic |
Author |
Message |
weldieran
Joined: 05 Aug 2005 Posts: 71
|
Posted: Sat Oct 22, 2005 1:15 Post subject: NWNx 4 Linux: Functions - dont work - eek! |
|
|
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 |
|
|
Vladiat0r
Joined: 17 Jun 2005 Posts: 25
|
|
Back to top |
|
|
weldieran
Joined: 05 Aug 2005 Posts: 71
|
Posted: Sat Oct 22, 2005 16:33 Post subject: |
|
|
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 |
|
|
Vladiat0r
Joined: 17 Jun 2005 Posts: 25
|
Posted: Sat Oct 22, 2005 17:58 Post subject: |
|
|
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 |
|
|
weldieran
Joined: 05 Aug 2005 Posts: 71
|
Posted: Sat Oct 22, 2005 20:19 Post subject: |
|
|
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 |
|
|
Vladiat0r
Joined: 17 Jun 2005 Posts: 25
|
Posted: Sat Oct 22, 2005 20:50 Post subject: |
|
|
For SetBodyPart:
Code: | *(pGameObject+0x0c20+bpart) = (char)ptype; |
and GetBodyPart:
Code: | sprintf(value,"%d",*(pGameObject+0x0c20+bpart)); |
|
|
Back to top |
|
|
weldieran
Joined: 05 Aug 2005 Posts: 71
|
Posted: Sat Oct 22, 2005 22:38 Post subject: |
|
|
uhm those are the original lines - 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 |
|
|
Vladiat0r
Joined: 17 Jun 2005 Posts: 25
|
Posted: Sat Oct 22, 2005 23:15 Post subject: |
|
|
weldieran wrote: | uhm those are the original lines - 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 |
|
|
weldieran
Joined: 05 Aug 2005 Posts: 71
|
Posted: Sat Oct 22, 2005 23:23 Post subject: |
|
|
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 |
|
|
|