I have been working on a web based interface for the UOX3 console.
The problem that I am having occurs when the VBScript that I am using
calls the UOX3.exe. I am logging the output to a file and error message that I get when I starting the console is:
"ERROR: Data directory C:/Documents and Settings/Administrator/Desktop/muldata/ does not exist"
I had posted on the General boards about this issue, however I thought that I should bring it here because I tracked down the issue and it could be a systemic issue for other folks as well.
Here is the issue:
In the UOX3.ini my directories paths are as follows:
Code: Select all
[directories]
{
DIRECTORY=./
DATADIRECTORY=G:/UOX3/datafiles/
DEFSDIRECTORY=./dfndata/
BOOKSDIRECTORY=./books/
ACTSDIRECTORY=./accounts/
SCRIPTSDIRECTORY=./js/
BACKUPDIRECTORY=./archives/
MSGBOARDDIRECTORY=./msgboards/
SHAREDDIRECTORY=./shared/
ACCESSDIRECTORY=./accounts/
HTMLDIRECTORY=./html/
LOGSDIRECTORY=./logs/
DICTIONARYDIRECTORY=./dictionaries/
}
cServerData.cpp uses GetCurrentDirectory() to assign the DIRECTORY= path value.
All of the other directory's are assigned there values by parsing the UOX.ini file.
The value that is returned by GetCurrentDirectory() is the location where UOX3.exe is running Because that value is used (in my case "C:/Documents and Settings/Administrator/Desktop/") all of the data directories paths are incorrect. Because the path of execution is not the file path, the error occurs.
As I see it, the way this is currently iimplemented, there is nothing that can be done to correct this behavior other then a source change. The fix is simple, but it's outside of my current scope to address. What do you all thing?
Great group of folks here, thanks for making me feel welcome!
Maxx