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 areas - any luck?

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development
View previous topic :: View next topic  
Author Message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Sun Oct 31, 2010 0:47    Post subject: Nwnx areas - any luck? Reply with quote

I was just wondering if anyone has found a fix for the issue raised in this thread
http://nwnx.org/phpBB2/viewtopic.php?t=1610

Which is demonstrated in this video
http://www.youtube.com/watch?v=xRKRsltcohQ

1. Create Area
2. Enter Area
3. Log out in area
4. Log in
5. Area appears to be completely black

Re-sending the area data to players does seem to cause the blackened areas, to become illuminated, however, I havent managed to make a function which is stable enough that it doesnt cause the occasional crash.

Could someone assist?
Back to top
View user's profile Send private message
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Sun Oct 31, 2010 13:10    Post subject: Reply with quote

For anyone interested,
I managed to make a work around for this bug, by utilizing the ClearPlayerTURDS function.

It just means that I also had to utilize a persistent player location system, otherwise when a player leaves the server, they keep returning to the starting location.


This does kinda highlight the fact that the problem with the areas plugin, is localized to the TURDS of the players - once you clear them, the server sends a fresh, non-glitched version to the player, which allows the areas to display fine.
Back to top
View user's profile Send private message
MaxRock



Joined: 24 Jan 2008
Posts: 196

PostPosted: Wed Mar 16, 2011 22:57    Post subject: Reply with quote

ok, I've got version 0.2 uploaded to the repository and you can get the precompiled dll here: http://sourceforge.net/projects/mrnwnxstuff/files/dlls/nwnx_areas.dll/download

From what limited testing I was able to do it seems to work without problems:

  • Adding/Removing areas with no players logging in/out
  • Player logs in and out, add an area, player logs back in
  • Player logs in, add an area, Player logs out, remove area
  • Player logs in and out, add an area, remove the area, player logs back in
  • Player logs out, remove the area they logged out, Player logs back in


In all cases none of the areas were ever black and there were no crashes either.
I'd be grateful if you guys could give it a thourough testing and let me know how it works.

... off to work on the area name issue
Back to top
View user's profile Send private message Send e-mail MSN Messenger
MaxRock



Joined: 24 Jan 2008
Posts: 196

PostPosted: Thu Mar 17, 2011 19:26    Post subject: Reply with quote

So I figured out that debug mode is a big problem if you mess around with memory allocated by the server process.

I've uploaded a new release version - and also the script include and a readme: https://sourceforge.net/projects/mrnwnxstuff/files/nwnx_areas/

I removed a lot of code which is unnecessary since I don't have to catch all new and delete calls in the release version. This also fixes the crash for SetAreaName calls.


Last edited by MaxRock on Fri Apr 15, 2011 19:38; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Baaleos



Joined: 02 Sep 2007
Posts: 830

PostPosted: Thu Mar 17, 2011 21:43    Post subject: Hi Maxrock Reply with quote

Hi,
I just built the version from svn, and can confirm that it fixes the area blackout effect that we were seeing.

Method of testing...

1. Join server
2. Generate area
3. Enter Area
4. Leave Game
5. Return to Game

Result before build: Area would be black
Result with this build: Area appears normally.

Good work.
Back to top
View user's profile Send private message
Zunath



Joined: 06 Jul 2006
Posts: 183

PostPosted: Thu Jan 12, 2012 0:21    Post subject: Reply with quote

Sorry to bug you with my issues again, MaxRock but when I try to create a copy of an area in the module the server crashes.

My logs look like this:

nwnx_areas log
Quote:


[01/11/2012 17:16:40] Windows NWNX Areas plugin v.0.0.3
[01/11/2012 17:16:40] Log level: 3
[01/11/2012 17:16:40] * CExoResMan__Exists hooked; SourcePath: 'ROTD\'
[01/11/2012 17:16:48] o External area (no_access) file not found
[01/11/2012 17:16:48] o External area (dmfi_custom_enc) file not found
[01/11/2012 17:16:48] o External area (area) file not found
[01/11/2012 17:16:48] o External area (abandonedmine) file not found
[01/11/2012 17:16:48] o External area (city_warehouse_d) file not found
[01/11/2012 17:16:48] o External area (cleiyraforest001) file not found
[01/11/2012 17:16:48] o External area (cleiyraforest002) file not found
[01/11/2012 17:16:48] o External area (cleiyraforestcen) file not found
[01/11/2012 17:16:48] o External area (cleiyraforesteas) file not found
[01/11/2012 17:16:48] o External area (cleiyraforestnor) file not found
[01/11/2012 17:16:48] o External area (cleiyraforestsou) file not found
[01/11/2012 17:16:48] o External area (cleiyraforestwes) file not found
[01/11/2012 17:16:48] o External area (cleiyranorth) file not found
[01/11/2012 17:16:48] o External area (cleiyrasouth) file not found
[01/11/2012 17:16:48] o External area (dung_of_fire) file not found
[01/11/2012 17:16:48] o External area (dung_of_water) file not found
[01/11/2012 17:16:49] o External area (entrance_shadow) file not found
[01/11/2012 17:16:49] o External area (event_darkcave) file not found
[01/11/2012 17:16:49] o External area (event_deepdark) file not found
[01/11/2012 17:16:49] o External area (event_piratecave) file not found
[01/11/2012 17:16:49] o External area (event_ruins) file not found
[01/11/2012 17:16:49] o External area (event_smallcave) file not found
[01/11/2012 17:16:49] o External area (event_spooky) file not found
[01/11/2012 17:16:49] o External area (ish_cityslums) file not found
[01/11/2012 17:16:49] o External area (ish_cityuptown) file not found
[01/11/2012 17:16:50] o External area (ish_clei_cabin) file not found
[01/11/2012 17:16:50] o External area (ish_cleicen_cave) file not found
[01/11/2012 17:16:50] o External area (ish_cleisw_to_to) file not found
[01/11/2012 17:16:50] o External area (ish_cleiwes_cave) file not found
[01/11/2012 17:16:50] o External area (ish_crypt_gravek) file not found
[01/11/2012 17:16:50] o External area (ish_crypt_inside) file not found
[01/11/2012 17:16:50] o External area (ish_dung_light) file not found
[01/11/2012 17:16:50] o External area (ish_dung_of_air) file not found
[01/11/2012 17:16:50] o External area (ish_dung_of_d001) file not found
[01/11/2012 17:16:50] o External area (ish_dung_of_eart) file not found
[01/11/2012 17:16:50] o External area (ish_dung_of_ice) file not found
[01/11/2012 17:16:50] o External area (ish_dungeon_thun) file not found
[01/11/2012 17:16:50] o External area (ish_farmlands) file not found
[01/11/2012 17:16:50] o External area (ish_jonsa_castle) file not found
[01/11/2012 17:16:50] o External area (ish_jonsa_shop) file not found
[01/11/2012 17:16:50] o External area (ish_jonsa_wareho) file not found
[01/11/2012 17:16:50] o External area (ish_mountainpass) file not found
[01/11/2012 17:16:50] o External area (ish_mp_cave) file not found
[01/11/2012 17:16:50] o External area (ish_mp_house001) file not found
[01/11/2012 17:16:50] o External area (ish_out_crypt) file not found
[01/11/2012 17:16:50] o External area (ish_radasroad) file not found
[01/11/2012 17:16:50] o External area (ish_riveredge) file not found
[01/11/2012 17:16:50] o External area (ish_spire_hall) file not found
[01/11/2012 17:16:50] o External area (ish_spire_lvl1) file not found
[01/11/2012 17:16:50] o External area (ish_spire_outsid) file not found
[01/11/2012 17:16:50] o External area (ish_steel_tavern) file not found
[01/11/2012 17:16:50] o External area (ish_steelbon_vil) file not found
[01/11/2012 17:16:50] o External area (ish_steelbone_mi) file not found
[01/11/2012 17:16:51] o External area (ish_triliusway) file not found
[01/11/2012 17:16:51] o External area (ish_triliuswayw) file not found
[01/11/2012 17:16:51] o External area (ish_vault_thunde) file not found
[01/11/2012 17:16:51] o External area (ish_zheck_armory) file not found
[01/11/2012 17:16:51] o External area (ish_zheck_inn) file not found
[01/11/2012 17:16:51] o External area (ish_zheckshan) file not found
[01/11/2012 17:16:51] o External area (jonas_plaza) file not found
[01/11/2012 17:16:51] o External area (ki_event001) file not found
[01/11/2012 17:16:51] o External area (ki_event002) file not found
[01/11/2012 17:16:51] o External area (ki_event003) file not found
[01/11/2012 17:16:51] o External area (lighthouse_islan) file not found
[01/11/2012 17:16:51] o External area (slums_safehouse) file not found
[01/11/2012 17:16:51] o External area (undergroundmetro) file not found
[01/11/2012 17:16:51] o External area (vault_of_air) file not found
[01/11/2012 17:16:51] o External area (vault_of_darknes) file not found
[01/11/2012 17:16:51] o External area (vault_of_earth) file not found
[01/11/2012 17:16:51] o External area (vault_of_fire) file not found
[01/11/2012 17:16:51] o External area (vault_of_ice) file not found
[01/11/2012 17:16:51] o External area (vault_of_light) file not found
[01/11/2012 17:16:51] o External area (vault_of_wate001) file not found
[01/11/2012 17:16:51] o External area (erithoutpost) file not found
[01/11/2012 17:16:51] o External area (erithoutpostcave) file not found
[01/11/2012 17:16:51] o External area (erith_clubhou001) file not found
[01/11/2012 17:16:51] o External area (ish_spire_lvl2) file not found
[01/11/2012 17:16:52] o External area (ish_csouth_coal) file not found
[01/11/2012 17:16:52] o External area (ish_spire_lvl3) file not found
[01/11/2012 17:16:52] o External area (lostsoulsroom) file not found
[01/11/2012 17:16:52] o External area (welcometoheaven) file not found
[01/11/2012 17:16:52] o External area (welcometohell) file not found
[01/11/2012 17:16:52] o External area (welcometolimb001) file not found
[01/11/2012 17:16:52] o External area (ish_path_hell) file not found
[01/11/2012 17:16:52] o External area (ish_poheaven) file not found
[01/11/2012 17:16:52] o External area (ish_steel_dun001) file not found
[01/11/2012 17:16:52] o External area (path_of_life001) file not found
[01/11/2012 17:18:18] - StrReq: "CREATE_AREA" Params: "erithoutpostcave"
[01/11/2012 17:18:18] [LoadArea] AreaCount: 87
[01/11/2012 17:18:18] o External area (erithoutpostcave) file not found
[01/11/2012 17:18:18] o Area added

[01/11/2012 17:18:18] [AddAreaToCreatures]Module Area Count: 88
[01/11/2012 17:18:18] pObject: 0AA60760





And my test script:

Code:


#include "nwnx_areas"

void main()
{
    object oPC = GetLastUsedBy();
    string sArea = GetResRef(GetArea(oPC));

    object oInstance = CreateArea(sArea);

}




I downloaded the latest version you posted and updated my nwnx_areas include to match the one you provided. Not sure what I'm doing wrong so if you could provide any insight that would be greatly appreciated. Smile

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



Joined: 27 Jun 2008
Posts: 216
Location: Sweden

PostPosted: Thu Jan 12, 2012 0:40    Post subject: Reply with quote

Hook to the ResMan doesnt work properly. You have to place your area files (git gtc are) in your override folder instead.

I've not managed to get the delete function to work either.
_________________
I dun have any signature, I'm happy anyway.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Zunath



Joined: 06 Jul 2006
Posts: 183

PostPosted: Thu Jan 12, 2012 0:47    Post subject: Reply with quote

I'm actually not trying to load anything using ResMan. I'm just trying to copy an area that already exists in the module. Do I still need to put the areas in the override folder?

EDIT: I tossed the area in my override folder with the same results.
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
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