PDA

View Full Version : Error when accessing network share via direct IP



Weissrolf
August 8th, 2021, 09:53
Just FYI: When the data directory is on a network share (NAS) then FGU throws some errors, but only if a direct IP path is used instead of a drive letter. So "\\192.168.1.10\share\Fantasy Grounds Unity" throws the error, but "a:\share\Fantasy Grounds Unity" does not.

The test.tmp file is created in both cases, though.

[ERROR] Unable to write test file to data directory (//192.168.x.y/.../RPG/Fantasy Grounds Unity/)
[8/8/2021 10:45:41 AM] [ERROR] Error: Could not find a part of the path "//192.168.x.y/.../RPG/Fantasy Grounds Unity/test.tmp".
[8/8/2021 10:45:41 AM] [ERROR] Please check file permissions on your FG data directory, or uninstall/reinstall.
[8/8/2021 10:45:41 AM] [ERROR] LOG INIT: System.IO.DirectoryNotFoundException: Could not find a part of the path.
at System.IO.File.Move (System.String sourceFileName, System.String destFileName) [0x000e3] in <fb001e01371b4adca20013e0ac763896>:0
at IIONNFLJFHP.ACHJNIOEGCJ () [0x0004d] in <7378f1bde0fc47eba92d9a0d57707887>:0

Weissrolf
August 8th, 2021, 20:25
Winows 10 64 bit.

Moon Wizard
August 8th, 2021, 21:35
As I mentioned before, it is not recommended to run FG on a network share. We pass the file paths directly into the Unity/.Net APIs for file pathing; and apparently, they don't like IP address file paths.

There are no plans to adjust this at this time. If we were to do something at this time, it would simply be to specify that IP-based file paths are not supported.

If you want to pursue further, I suggest reaching out to Microsoft and Unity to request support for IP-based file paths in the .Net File APIs.

Regards,
JPG

Weissrolf
August 8th, 2021, 22:13
Yes, I know. That's why it is just FYI and for others to know that drive letters do work instead.