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 
 
News
Goto page 1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Development
View previous topic :: View next topic  
Author Message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1058
Location: Germany

PostPosted: Sat Sep 09, 2006 13:42    Post subject: News Reply with quote

I hope to get in the multiplayer beta, which I assume will contain a dedicated server. If I am right, it should contain the function I used in NWN to hook the game, with hopfeully the same or a similar signature.

This means that a successor to NWNX2 will be feasible.

Note: Hooking SetLocalString is not what I intend to do this time. In fact, I am waiting for some special nwnx hooks in NWN2. While Obsidian promised to include them, I expect them to appear only in some patch #2 or #3. In the meantime, the old method will do just fine, though.
_________________
Papillon


Last edited by Papillon on Sun Apr 24, 2011 22:11; edited 4 times in total
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
virusman



Joined: 30 Jan 2005
Posts: 1012
Location: Russia

PostPosted: Sat Sep 09, 2006 14:03    Post subject: Reply with quote

Quote:
In fact, I am waiting for some special nwnx hooks in NWN2. While Obsidian promised to include them, I expect them to appear only in some patch #2 or #3.
Wow, great. But what special hooks are you talking about? Special NWNX event, something that simply replaces SetLocalString functionality or something completely different?
What about other functions? Like resource loading, chat, events, etc.
Are they going to give you info about those?
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1058
Location: Germany

PostPosted: Sat Sep 09, 2006 14:58    Post subject: Reply with quote

Exactly. A bunch of special NWN functions just for NWNX. While those will not include every possible function that we might want to hook in the future, of course, they should provide a good base.

It is up to OE now to actually get them into the nwn2 executables. What level of support they choose remains to be seen. The minimum amount would provide cleaner hooking and slightly better performance for the basic nwnx functionality (getting data in and out of the server).
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
virusman



Joined: 30 Jan 2005
Posts: 1012
Location: Russia

PostPosted: Sat Sep 09, 2006 15:07    Post subject: Reply with quote

It would be great if, for example, I could port this: http://www.nwnx.org/phpBB2/viewtopic.php?p=3852
to NWN2 in decent amount of time, without living in assembly code for 2 weeks. Very Happy
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
virusman



Joined: 30 Jan 2005
Posts: 1012
Location: Russia

PostPosted: Sat Sep 09, 2006 15:20    Post subject: Reply with quote

And one more remark..
There are some debug strings in NWN1 Dedicated Linux Server binary, and it helped me several times when I was searching for certain functions.

If they can't give us a binary with debug symbols, maybe they could just leave some debug strings?

Some examples from NWN1 linux binary:
Code:
push    offset aCnwsmoduleLoad ; "CNWSModule::LoadModule(): Unable to get CServerExoAppInternal, factions and reputations not loaded\n"
mov     eax, CNWLog
push    dword ptr [eax+8]
call    PrintDebug

Code:

push    [ebp+ObjID2]
push    dword ptr [edi+4] ; ObjID1
push    offset aXIsAttackingX ; "%x is attacking %x\n"
mov     eax, CNWLog
push    dword ptr [eax+8]
call    PrintDebug

Code:

push    offset aCnwscreatureM_ ; "CNWSCreature: m_pReputation was NULL\n"
mov     eax, CNWLog
push    dword ptr [eax+8]
call    PrintDebug
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1058
Location: Germany

PostPosted: Sun Sep 10, 2006 1:13    Post subject: Reply with quote

We will see if those strings will be in the final game - if I had to guess, I'd say probably not. In NWN1, it made some things easier to understand, but as the Windows version differed considerably, the strings where only marginally useful to me...
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Blacksting



Joined: 03 Jan 2005
Posts: 107

PostPosted: Mon Sep 11, 2006 21:58    Post subject: Reply with quote

Would these hooks only appear in the dedicated server? I am still hoping for an NWNX build for the dm client/single client that can be used for small group games or a packaged single player module. One reason I think NWNX will be necessary for my development is that we are not getting an OnChat event. Quite a bit of my future developments will include Zork style interactions and I have a complete DM Runtime Language that I would like to port for use with small group activities (where the module is run through a dm client instead of a server.) I want to avoid the whole "listener" object and just use the straight chat hook that works so well with NWNX2.

Of course this means the script injection and the chat hook must again be developed.... which seemed to elude many but the mighty Russian! Does the "special" hooks section that they had planned to implement include script injection?
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1058
Location: Germany

PostPosted: Tue Sep 12, 2006 9:26    Post subject: Reply with quote

Well, there was no need for NWNX on the client in the past (AFAIK). Technically, it should be possible, but I am not sure if that would be the right thing to do... it requires more knowledge to get it to run than the average "gamer" usually has. At least, the installation program would have to be very simple.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
pdwalker



Joined: 09 Aug 2005
Posts: 22

PostPosted: Sat Sep 16, 2006 5:06    Post subject: Did you get into the beta? Reply with quote

Hi Papillon

Were you accepted for the mp beta?

- Paul
Back to top
View user's profile Send private message
FunkySwerve



Joined: 02 Jun 2005
Posts: 377

PostPosted: Sat Sep 16, 2006 5:25    Post subject: Reply with quote

Actually, running nwnx on the client would allow people to use systems like legendary levels without launching a server - something that caused some confusion in some cases. Not sure it it'd be worth it, just because of that, but it's something to consider.
Funky
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1058
Location: Germany

PostPosted: Sat Sep 16, 2006 9:40    Post subject: Reply with quote

Well, theoretically, you should be able to launch nwmain.exe instead of nwserver.exe, and the SetLocalString hook should work. I never tried, though. Maybe I'll try with nwnx4...

And yes, I am in the beta. That is all I can say at this point in time.
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
mostal



Joined: 29 Apr 2005
Posts: 60

PostPosted: Sun Sep 17, 2006 10:27    Post subject: Reply with quote

Papillon,
do you have beta editor ? With 2nd patch, we receive nwserver. It doesn't works (problems with game ressources), but It could probably help you.

Mostal
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1058
Location: Germany

PostPosted: Sun Sep 17, 2006 10:38    Post subject: Reply with quote

I have the server, and hooking of SetLocalString is already in progress Wink
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
mostal



Joined: 29 Apr 2005
Posts: 60

PostPosted: Mon Sep 18, 2006 14:11    Post subject: Reply with quote

great Wink

*cross his fingers*
Back to top
View user's profile Send private message
Master_Prince



Joined: 09 Sep 2006
Posts: 17

PostPosted: Mon Sep 18, 2006 19:32    Post subject: Reply with quote

Hi,

When do you think that nwnx4 will be ready ?

Thanks you
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Development All times are GMT + 2 Hours
Goto page 1, 2, 3, 4, 5, 6  Next
Page 1 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