hi, amigos!
look at 1.7.1.6 file Interpreter.cs
This is fault to use relative path to ItemRules directory. It is relative to what?
We need path's string which was defined as:
or
or
(see to Loader.cs where define ItemRulePath object)
Thx.
look at 1.7.1.6 file Interpreter.cs
Code:
// final variables
readonly string version = "2.0.0.6";
readonly string customPath = [COLOR="#FF0000"]@"Plugins\GilesTrinity\ItemRules\Rules\"[/COLOR];
readonly string logPath = [COLOR="#FF0000"]@"Plugins\GilesTrinity\ItemRules\Log\"[/COLOR];
This is fault to use relative path to ItemRules directory. It is relative to what?
We need path's string which was defined as:
Code:
readonly string customPath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + @"\Plugins\GilesTrinity\ItemRules\Rules\";
readonly string logPath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + @"\Plugins\GilesTrinity\ItemRules\Log\";
Code:
readonly string customPath = FileManager.DemonbuddyPath + @"\Plugins\GilesTrinity\ItemRules\Rules\";
readonly string logPath = FileManager.DemonbuddyPath + @"\Plugins\GilesTrinity\ItemRules\Log\";
(see to Loader.cs where define ItemRulePath object)
Code:
readonly string customPath = FileManager.ItemRulePath + @"\Rules\";
readonly string logPath = FileManager.ItemRulePath + @"\Log\";
Thx.
Last edited: