Funny error!

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

error{ errortext = "Access denied" }

are you sure you made no changes to fileaccess.cfg?
This looks like a file.em function thats having that problem in one of your scripts and the script has something where if it encounters an error, it prints the error to the console. I hate to call it but bad design on the script part for not including the script name in the message :?

as for
tartup script complete.
Initialization complete. POL is active. Ctrl-C to stop.

Listening for HTTP requests on port 5002
Starting: Guild Timers Off

Doesnt say anything about an error there... maybe search your scripts for
Print("Starting: Guild Timers)

(end any search after the s in timers since the "off" part might be written as off or be set to a variable.
Harley
Forum Regular
Posts: 360
Joined: Sat Mar 18, 2006 1:41 am

Post by Harley »

Yes, I'm sure for 1000% that I compile and re-write scripts only .src wive! Other .cfg I did not touch! I don't know, why this error wive at console thoose image. And at Guild Timer's is all right! I don't know... if some one have some idea, or Ñ
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

basically theres only one thing that puts that error on the console and thats Print() so you have to look in all of your scripts for Print and see if the script is saying anything about errors. In fact, I dont know if any side-effects could incur from this (possibly just having to put use os; in all of your scripts that have it) but I would suggest changing all Print() commands to Syslog(). This way it will actually show the script name before whats put on the console.
Harley
Forum Regular
Posts: 360
Joined: Sat Mar 18, 2006 1:41 am

Post by Harley »

I am very upset! I cannot search all any more .src I have not found anything with print("error{ ..... }");

I don't know what to do :(( *soul crying*
At 096 version nothing about this isn't happened! Why at this version?! :cry:
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

it might not be print("error{ ..... }")...

it might be something like

Code: Select all

var thefile := ReadFile(somefile.txt);
if (thefile == error)
  Print(thefile);
  return;
endif


error{ errortext = "Access denied" } - is a raw string of an actual error where "Access denied" was the error it had.

But like I said, just look for Print( nothing more and replace all of those with Syslog(
if you do it that way, all of the messages in the console will look like this:

Code: Select all

syslog [pkg/mypkg/myscript.ecl]: error{ errortext = "Access denied" }
if after replacing Print with Syslog, if the compiler complains that Syslog isnt defined, then put in at the top

use os;
Harley
Forum Regular
Posts: 360
Joined: Sat Mar 18, 2006 1:41 am

Post by Harley »

CWO, bigest thank! That error! I have add with Print(); new syslog(); and get! See

Code: Select all

Starting: SpawnNet
error{ errortext = "Access denied" }
syslog: [pkg/systems/serverstatus/status.ecl]: error{ errortext = "Access denied
" }
Starting: Ore Server.
This is lines of script:

Code: Select all

  
 x := WriteFile(FILENAME, arr);

  if( x == error)
    print(x);
    syslog(x);
  endif
But why this error?! I don't know. At 096 pol all be all right! mystically...
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

whats the filename its writing to? Is it in the path of that package or are you trying to write it somewhere else? If you're writing it somewhere else, use

AllowRemote 1

if all 4 options are 1 and it still gets access denied, try looking at the access permissions of the file in Windows. Maybe Windows is whats giving Access Denied. If not, then go post the problem in POL 097 Bug Reports.
Harley
Forum Regular
Posts: 360
Joined: Sat Mar 18, 2006 1:41 am

Post by Harley »

File name is

Code: Select all

const FILENAME := "servstat";
This file must write at this package, where there is this script, but it don't write! At Windows files are all right!

at fileaccess:

Code: Select all

FileAccess
{
  Package	serverstatus
  Extension     *
  AllowRead	1
  AllowWrite	1
  AllowAppend	1
  AllowRemote	0
}
At version 096.1 it's all right! Only at 097. I'll go to 097 Bug Reports!
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

maybe try changing it to "servstat.txt" and see...
Harley
Forum Regular
Posts: 360
Joined: Sat Mar 18, 2006 1:41 am

Post by Harley »

Unfortunately nothing has exchanged. This mistake has remained. I hope that developer's are fix this error at second release core 097.
Harley
Forum Regular
Posts: 360
Joined: Sat Mar 18, 2006 1:41 am

Post by Harley »

Hallo again! :) I have some problem with packet whos I don't know how to create script or something else. Look please:

Code: Select all

Unknown packet type 0xbf: 9 bytes (IP:127.0.0.1, Account:gogo)
0000: bf 00 09 00 0c 00 00 00  04                        ........ ........
Unknown packet type 0xbf: 9 bytes (IP:127.0.0.1, Account:gogo)
0000: bf 00 09 00 0c 00 00 00  04                        ........ ........
Unknown packet type 0xbf: 9 bytes (IP:127.0.0.1, Account:admin)
0000: bf 00 09 00 0c 00 00 00  04                        ........ ........
Unknown packet type 0xbf: 9 bytes (IP:127.0.0.1, Account:admin)
0000: bf 00 09 00 0c 00 00 00  04                        ........ ........
I think that this error was when I open chr paperdol, or maybe I'm wrong! Please, help me!

Thanks!
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

Wierd...

are you using this in a packethook? Somehow, its being sent Client->Server... This is coming up as an error because this is supposed to be from Server->Client
Post Reply