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 
 
Code Diffs/Patches

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Development
View previous topic :: View next topic  
Author Message
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Sun Apr 08, 2007 13:53    Post subject: Code Diffs/Patches Reply with quote

NWNX Hook patch to get the correct gameObject:
Code:
Index: hook.cpp
===================================================================
--- hook.cpp   (revision 12)
+++ hook.cpp   (working copy)
@@ -135,7 +135,7 @@
       mov eax, dword ptr ss:[esp+0x20] // variable name (param 2)
       mov eax, [eax]
       push eax
-      mov eax, dword ptr ss:[esp+0x34] // game object (param 1) ??
+      mov eax, dword ptr ss:[ecx+0xC] // game object (param 1) ??
       push eax
 
       call PayLoad
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Mon Apr 09, 2007 22:34    Post subject: Reply with quote

Thanks!
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
virusman



Joined: 30 Jan 2005
Posts: 1020
Location: Russia

PostPosted: Mon Nov 26, 2007 19:08    Post subject: Reply with quote

Updated.

- mov eax, dword ptr ss:[ecx+0xC] // game object (param 1) ??
+ lea eax, dword ptr ss:[ecx-0x190] // game object (param 1) ??
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 -> 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