I have a problem with the ReadConfigFile function:
pol/scripts/include/setup.inc: // <- NOT a package
Code: Select all
use cfgfile;
var npccfg := readconfigfile("npcdesc");
Code: Select all
include "setup.inc";
program blabla(){
// this code uses the npccfg variable
}
The package does not have a npcdesc.cfg but the main npcdesc.cfg exists!
This script works if I write "::npcdesc" instead of "npcdesc"
As the docs says:
Code: Select all
If only 'cfgfile' is passed, POL looks for it first in /pol/config and then in each package sequentially.
Am I doing something wrong?