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_Patch
Goto page Previous  1, 2, 3 ... 39, 40, 41
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development
View previous topic :: View next topic  
Author Message
Prodavec



Joined: 06 Jun 2017
Posts: 6

PostPosted: Tue May 15, 2018 3:39    Post subject: Reply with quote

NEVERMIND. I have no idea what happened, but the game fixed by itself somehow. The information below is not actual anymore.

My game crashes constantly with latest nwncx.dll on loading save game with Darkness over Daggerford that I played on previous versions of NWN(C)X.

Removing nwncx_patch.dll "fixes" the problem.

Save game:
http://www.filedropper.com/000036-ench1dod

Logs:
http://www.filedropper.com/prodavecnwncxcrashlogs

1. Community Patch 1.72 RC3
2. CEP 2.65

List of all binaries:

EXEs
    nwconfig.exe
    nwloader.exe
    nwmain.exe
    nwn.exe
    NWNCX_Loader.exe
    NWNX2.exe
    nwserver.exe
    nwtoolset.exe
    nwupdate.exe
    uninstall.exe


DLLs
    binkw32.dll
    goggame.dll
    libbinkw32.dll
    madCHook.dll
    Mss32.dll
    NWNCX.dll
    nwncx_connect.dll
    nwncx_disablems.dll
    nwncx_dmtest.dll
    nwncx_patch.dll
    nwncx_serverlist.dll
    nwncx_tweaks.dll
    nwnx_areas.dll
    nwnx_chat.dll
    nwnx_fixes.dll
    nwnx_functions.dll
    nwnx_hashset.dll
    nwnx_odbc.dll
    nwnx_patch.dll
    nwnx_profiler.dll
    nwnx_resman.dll
    nwnx_time.dll
    nwnx-module.dll
    Patchw32.dll


Game is started by using NWNCX_Loader.exe


Last edited by Prodavec on Tue May 15, 2018 20:27; edited 1 time in total
Back to top
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 562

PostPosted: Tue May 15, 2018 16:13    Post subject: Reply with quote

as long the crash is not caused by nwncx_patch.dll or nwnx_patch.dll (or any other nwnx_something.dll I created) I cannot help with this
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
Prodavec



Joined: 06 Jun 2017
Posts: 6

PostPosted: Tue May 15, 2018 20:23    Post subject: Reply with quote

Well. The problem still exists. I have recorded the video to demonstrate what happens to my game.

u2b link:
https://youtu.be/YftLbwVGz5E

As you can see, after removing nwncx_patch.dll crashes gone.

Last save game (named "jumping_kobolds") is official SoU passthrough.
I'm open to provide any additional information/help to you (run debug build of your binaries , etc.)

PS I even can't start new Original Campaign from scratch
Back to top
View user's profile Send private message
Valbor



Joined: 26 Dec 2016
Posts: 138

PostPosted: Tue May 15, 2018 23:10    Post subject: Reply with quote

what does this error mean in the second line? in logs.0 --> nwnx file
Code:

* Loading plugins...
* Error: can not find creation function in nwnx_patch.dll
* NWNX2 activated.
* Library PATCH!SWITCH does not exist.* NWNX2 shutting down...
* NWNX2 shutdown successfull.
Back to top
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 562

PostPosted: Wed May 16, 2018 14:31    Post subject: Reply with quote

Valbor wrote:
what does this error mean in the second line? in logs.0 --> nwnx file
Code:

* Loading plugins...
* Error: can not find creation function in nwnx_patch.dll
* NWNX2 activated.
* Library PATCH!SWITCH does not exist.* NWNX2 shutting down...
* NWNX2 shutdown successfull.

The error means that my plugin doesn't use NWNX API. It has no meaning.
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 562

PostPosted: Wed May 16, 2018 15:46    Post subject: Reply with quote

NWNX_Patch v1.34a

DOWNLOAD

Just a quick fix for the crash when loading game. The issue was also present in nwnx_patch so update both.
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 562

PostPosted: Wed May 16, 2018 17:21    Post subject: Reply with quote

Valbor wrote:

If you have the time and the desire to look, maybe you can find the cause reason of my misfortune.

Ok, found the cause. I stole a code for free/allocation from Terra and it should be working for now.

DOWNLOAD

This still needs more testing I hope you help with that, let me know if it still crashes.
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
Valbor



Joined: 26 Dec 2016
Posts: 138

PostPosted: Wed May 16, 2018 17:56    Post subject: Reply with quote

Thanks
Back to top
View user's profile Send private message
Prodavec



Joined: 06 Jun 2017
Posts: 6

PostPosted: Wed May 16, 2018 18:21    Post subject: Reply with quote

ShaDoOoW wrote:
quick fix for the crash when loading game.

It works!
I can't believe that you have made it in so much short time.
Unfortunately there are no "likes" on this forum.
Back to top
View user's profile Send private message
Valbor



Joined: 26 Dec 2016
Posts: 138

PostPosted: Fri May 18, 2018 9:08    Post subject: Reply with quote

ShaDoOoW wrote:
Valbor wrote:

If you have the time and the desire to look, maybe you can find the cause reason of my misfortune.

Ok, found the cause. I stole a code for free/allocation from Terra and it should be working for now.

DOWNLOAD

This still needs more testing I hope you help with that, let me know if it still crashes.


can't download this fix Sad could you give it out again?
Back to top
View user's profile Send private message
DarkSet



Joined: 06 Jun 2016
Posts: 91

PostPosted: Fri May 18, 2018 13:38    Post subject: Reply with quote

I can. Either it was a temporary issue or you have a problems with google access.
Back to top
View user's profile Send private message
Valbor



Joined: 26 Dec 2016
Posts: 138

PostPosted: Mon May 21, 2018 19:24    Post subject: Reply with quote

70_ec_poison object i cannot find for check GetCommunityPatchVersion()
Back to top
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 562

PostPosted: Mon May 21, 2018 20:07    Post subject: Reply with quote

Valbor wrote:
70_ec_poison object i cannot find for check GetCommunityPatchVersion()


Seems the function for checking CPP version has bad logic inside.

This should fix it:

Code:
int GetCommunityPatchVersion()
{
int nVersion = GetLocalInt(GetModule(),"GetCommunityPatchVersion()");
 if(nVersion) return nVersion;
object oTest = CreateObject(OBJECT_TYPE_ITEM,"70_it_scrwarcry",GetStartingLocation());
 if(oTest == OBJECT_INVALID) nVersion = -1;//all versions of CPP has 70_it_scrwarcry if its missing, CPP is not installed
 else
 {
 DestroyObject(oTest);
 oTest = CreateObject(OBJECT_TYPE_PLACEABLE,"70_ec_poison",GetStartingLocation());
  if(oTest != OBJECT_INVALID)
  {
  DestroyObject(oTest);
  nVersion = 171;//only 1.71 has 70_ec_poison, this file was removed from 1.72
  }
  else
  {
  oTest = CreateObject(OBJECT_TYPE_ITEM,"70_ip_14",GetStartingLocation());
   if(oTest != OBJECT_INVALID)
   {
   DestroyObject(oTest);
   nVersion = 172;//70_ip_14 exists only in 1.72
   }
   else nVersion = 170;//if all other checks failed it must be 1.70
  }
 }
SetLocalInt(GetModule(),"GetCommunityPatchVersion()",nVersion);
return nVersion;
}

_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development All times are GMT + 2 Hours
Goto page Previous  1, 2, 3 ... 39, 40, 41
Page 41 of 41

 
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