View previous topic :: View next topic |
Author |
Message |
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Sat Sep 09, 2006 13:42 Post subject: News |
|
|
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 |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Sat Sep 09, 2006 14:03 Post subject: |
|
|
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 |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Sat Sep 09, 2006 14:58 Post subject: |
|
|
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 |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
|
Back to top |
|
|
virusman
Joined: 30 Jan 2005 Posts: 1020 Location: Russia
|
Posted: Sat Sep 09, 2006 15:20 Post subject: |
|
|
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 |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Sun Sep 10, 2006 1:13 Post subject: |
|
|
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 |
|
|
Blacksting
Joined: 03 Jan 2005 Posts: 107
|
Posted: Mon Sep 11, 2006 21:58 Post subject: |
|
|
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 |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Tue Sep 12, 2006 9:26 Post subject: |
|
|
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 |
|
|
pdwalker
Joined: 09 Aug 2005 Posts: 22
|
Posted: Sat Sep 16, 2006 5:06 Post subject: Did you get into the beta? |
|
|
Hi Papillon
Were you accepted for the mp beta?
- Paul |
|
Back to top |
|
|
FunkySwerve
Joined: 02 Jun 2005 Posts: 377
|
Posted: Sat Sep 16, 2006 5:25 Post subject: |
|
|
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 |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Sat Sep 16, 2006 9:40 Post subject: |
|
|
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 |
|
|
mostal
Joined: 29 Apr 2005 Posts: 60
|
Posted: Sun Sep 17, 2006 10:27 Post subject: |
|
|
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 |
|
|
Papillon x-man
Joined: 28 Dec 2004 Posts: 1060 Location: Germany
|
Posted: Sun Sep 17, 2006 10:38 Post subject: |
|
|
I have the server, and hooking of SetLocalString is already in progress _________________ Papillon |
|
Back to top |
|
|
mostal
Joined: 29 Apr 2005 Posts: 60
|
Posted: Mon Sep 18, 2006 14:11 Post subject: |
|
|
great
*cross his fingers* |
|
Back to top |
|
|
Master_Prince
Joined: 09 Sep 2006 Posts: 17
|
Posted: Mon Sep 18, 2006 19:32 Post subject: |
|
|
Hi,
When do you think that nwnx4 will be ready ?
Thanks you |
|
Back to top |
|
|
|