SphereCommunity
Can't resolve <FILE.OPEN Data/TreasureMap.cfg> - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Can't resolve <FILE.OPEN Data/TreasureMap.cfg> (/Thread-Can-t-resolve-FILE-OPEN-Data-TreasureMap-cfg)



Can't resolve <FILE.OPEN Data/TreasureMap.cfg> - babazar - 08-20-2013 04:35 AM

How do i sort this error -
Can't resolve <FILE.OPEN Data/TreasureMap.cfg>

I have the Data folder in my sphere folder, but no joy.

[FUNCTION F_GETMAPLOCATION]
FILE.MODE.READFLAG=1
IF (<FILE.OPEN Data/TreasureMap.cfg>)
LOCAL.LINES=<FILE.FILELINES <FILE.FILEPATH>>
LOCAL.TEXT=<FILE.READLINE <R1,<LOCAL.LINES>>>
FILE.CLOSE
RETURN <LOCAL.TEXT>
ENDIF


RE: Can't resolve <FILE.OPEN Data/TreasureMap.cfg> - darksun84 - 08-20-2013 05:01 AM

Did you enabled
OF_FileCommands = 00000080 in the sphere.ini ?

If not, add |080 to OptionFlag =


Also, is possible that without expliciting the absolute path, sphere will look in "sphere/scripts/data" instead of "sphere/data"


RE: Can't resolve <FILE.OPEN Data/TreasureMap.cfg> - babazar - 08-20-2013 06:43 AM

ty seems fixed now