Acces Denied to readfile

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 096.
Note: Core 096 is no longer officially supported.
Post Reply
Snuff
New User
Posts: 2
Joined: Fri Feb 29, 2008 5:45 am

Acces Denied to readfile

Post by Snuff »

I've do a little script, in a package, to test the I/O function's on file ".txt"

Code: Select all

use file;
use cfgfile;
use uo;

program textcmd_scrivifile ( who, filename )

	var esito := readfile(filename);
	SendSysMessage( who, "esito path: " + esito );

endprogram
Into var ESITO will must be the return of the readfile().

As input paramenter i send this string:
:pkgtest:lettura.txt

In lettura.txt there's the string "Prova di lettura"

In all case the return of function is "ACCESS DENIED"

I've tried to check windows privs on R/W (but it's all ok)
I've tried to reinstall all but nothing.

The same script with the same folders and package run correctly in a computer's friend.

The POL version is 096.7 Vestal Virgin. and OS version Windows XP PRO

What's the problem?
thx to all
Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

Post by Pierce »

You need a fileaccess.cfg inside your config folder which contains the following (just an example):

Code: Select all

FileAccess
{
  Package *
  Directory *
  AllowRead 1
  AllowWrite 1
  AllowAppend 1
  AllowRemote 0
  Extension .txt
}
Snuff
New User
Posts: 2
Joined: Fri Feb 29, 2008 5:45 am

Post by Snuff »

Problem solved.

Thx for solution :D
Post Reply