The situation is as follows... I'm using Windows (Vista x64), and my AI has several files organised into folders. When my AI is running straight from a directory then everything works fine, but when I run it from a TAR file I get errors relating to the require statement, which causes classes not to be loaded.
I KNOW I should have tested this ages ago after TrueBrain first fixed it for me, but I just assumed it would work and went back to working as normal. Well now I've come to test the tar for v2 of PathZilla and I get the error again.
I notice that TrueBrain's fix technically worked, i.e. that the platform-agnostic forward slashes in the actual code are converted to backslashes for Windows to understand. However there seems to be another problem. Here is the error that I get...
Code: Select all
dbg: [ai] [1] [S] Your script made an error: the index 'pathzilla' does not exist
dbg: [ai] [1] [S]
dbg: [ai] [1] [S] *FUNCTION [main()] %aitar%pathzilla\struct\BinaryHeap.nut line [146]
dbg: [ai] [1] [S] *FUNCTION [require()] NATIVE line [-1]
dbg: [ai] [1] [S] *FUNCTION [constructor()] %aitar%pathzilla\main.nut line [72]
dbg: [ai] [1] [S]
dbg: [ai] [1] [S] [this] TABLE
dbg: [ai] [1] [S] [this] INSTANCE
dbg: [misc] [squirrel] Failed to compile '%aitar%pathzilla\struct\BinaryHeap.nut'
dbg: [ai] [1] [S] Your script made an error: the index 'pathzilla' does not exist
dbg: [ai] [1] [S]
dbg: [ai] [1] [S] *FUNCTION [constructor()] %aitar%pathzilla\main.nut line [72]
dbg: [ai] [1] [S]
dbg: [ai] [1] [S] [this] INSTANCE
dbg: [ai] [1] [I] Starting PathZilla.... RAWR!
dbg: [ai] [1] [I] My home town is Dadingtown
dbg: [ai] [1] [S] Your script made an error: the index 'SortedSet' does not exist
dbg: [ai] [1] [S]
dbg: [ai] [1] [S] *FUNCTION [constructor()] %aitar%pathzilla\graph\Graph.nut line [36]
dbg: [ai] [1] [S] *FUNCTION [constructor()] %aitar%pathzilla\graph\impl\Triangulation.nut line [47]
dbg: [ai] [1] [S] *FUNCTION [InitialiseGraphs()] %aitar%pathzilla\main.nut line[172]
dbg: [ai] [1] [S] *FUNCTION [Start()] %aitar%pathzilla\main.nut line [106]
dbg: [ai] [1] [S]
dbg: [ai] [1] [S] [this] INSTANCE
dbg: [ai] [1] [S] [targetList] INSTANCE
dbg: [ai] [1] [S] [this] INSTANCE
dbg: [ai] [1] [S] [allTowns] INSTANCE
dbg: [ai] [1] [S] [this] INSTANCE
dbg: [ai] [1] [S] [i] 2
dbg: [ai] [1] [S] [this] INSTANCE
dbg: [ai] We've got a suicidal AI for player 1
Thanks.