After further analysis it seems the loadfolder() function is not working properly anymore. I have made a very simple work around for those whos pixel editors are malfunctioning.
1. Add this line to configurations.
PHP Code:
//FOLDER CONFIG
this.levelFolders = {"YourLevelFolder1","YourLevelFolder2"};
Add the folders that contain your levels in the array.
2. Replace the function
PHP Code:
function getLevelFilePath(temp.levelName) {
if(this.levelFolders.size()>0){
for(temp.i=0; i<this.levelFolders.size(); i++){
temp.fileList = {};
temp.fileList.loadfolder("levels/"@this.levelFolders[i]@"/*", 1);
for (temp.fileName: temp.fileList) {
if (temp.fileName == temp.levelName) {
temp.filePath = this.levelFolders[i]@ "/" @ temp.fileName;
return temp.filePath;
}
}
}
}
temp.fileList = {};
temp.fileList.loadfolder("levels/*.nw", 1);
for (temp.fileName: temp.fileList) {
if (temp.fileName == temp.levelName) {
return temp.fileName;
}
}
return NULL;
}
Thats it! Hopefully that solves some headaches.