Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nwnx_resman no longer works #129

Open
stubhead opened this issue Mar 4, 2018 · 9 comments
Open

nwnx_resman no longer works #129

stubhead opened this issue Mar 4, 2018 · 9 comments
Assignees

Comments

@stubhead
Copy link
Contributor

stubhead commented Mar 4, 2018

it appears that resman no longer monitors its directories. it used to work so that placing a new file in one of the appropriate subdirectories under the resman directory [e.g., .ncs files in the 'ncs' subdirectory] would cause resman to take note of it and import the resource. this no longer happens. the plugin sets the correct directory source path and RegisterDirectoryHandlers() appears to be called correctly, but both HandleResourceExistsEvent() and HandleDemandResourceEvent() are NEVER called... this was working perfectly in the 2008 version, but now does absolutely nothing.

@virusman
Copy link
Member

virusman commented Mar 5, 2018

I'm using it to override or add scripts on my PW all the time, so it definitely works.. I'll check.

@stubhead
Copy link
Contributor Author

stubhead commented Mar 8, 2018

any results ? on my end, i still can't see how this can work. i've added detailed logging to all functions, but nothing is ever logged anywhere beyond the initial config phase. the very first thing any of the handlers tries to do is log the call, and... nothing.

i'll pm you over at nwnx.org to provide you with more detailed data.

@virusman virusman self-assigned this Mar 21, 2018
@virusman
Copy link
Member

Do you have a ResMan entry in your nwnx2.ini?

@virusman
Copy link
Member

Looking at the code, it seems to be the only case when it may unexpectedly fail to initialize the directory handler.

@virusman
Copy link
Member

Also, try disabling nwnx_jvm.

@stubhead
Copy link
Contributor Author

stubhead commented Mar 22, 2018 via email

@virusman
Copy link
Member

Do you have nwnx_jvm enabled?

@stubhead
Copy link
Contributor Author

stubhead commented Apr 1, 2018

i completely removed nwnx_jvm.so from the directory and verified that it isn't starting [no log file].
problem persists.

can you say which version of nwnx_resman you're using, virusman ?

also, i'm wondering if this might be a problem with environment. i'm running ubuntu 16.1 on virtualbox. should not be a problem, correct ?

@virusman
Copy link
Member

I've just created a new VM with Ubuntu 16.04 32-bit, compiled nwnx2-linux from master – resman seems to work. It did crash at first in a logging call (fixed that) but other than that it shows all resource requests properly:

File: ttr01_h01_02.wok, Exists?: 0, mtime: 0
File: ttr01_h01_02.wok, Exists?: 0, mtime: 0
File: plc_w02.pwk, Exists?: 0, mtime: 0
File: plc_w02.pwk, Exists?: 0, mtime: 0
File: plc_f03.pwk, Exists?: 0, mtime: 0
File: plc_f03.pwk, Exists?: 0, mtime: 0

Are you sure you're using nwnx2.so that was built from the same codebase as nwnx_resman.so?
Please try building a clean install of nwserver and nwnx2-linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants