Gothic Online Forums
Błąd z FileLoader - Printable Version

+- Gothic Online Forums (https://archive.gothic-online.com)
+-- Forum: Community (https://archive.gothic-online.com/forum-18.html)
+--- Forum: Polish (Polski) (https://archive.gothic-online.com/forum-19.html)
+---- Forum: Pomoc (https://archive.gothic-online.com/forum-23.html)
+---- Thread: Błąd z FileLoader (/thread-338.html)



Błąd z FileLoader - Quarchodron - 06.01.2016

Otóż na windowsowym file loaderze działa wszystko okej. A w linuxowym występuje błąd :

[Squirrel] Error runtime: (sq_fileRead) invalid argument at index 0, expecting 'userpointer'
[Squirrel] Stack Dump:
[1]: In function 'LoadItems()' ./server-scripts/player.nut line [90]
[2]: In function 'createPlayerGame()' ./server-scripts/main.nut line [341]
[3]: In function 'checkPlayerSaverFile()' ./server-scripts/main.nut line [195]
[Squirrel] Locals:
- buffer ("")
- file (NULL)
- pid (0)
- this (TABLE)
- pid (0)
- this (TABLE)
- file (NULL)
- pid (0)
- this (TABLE)
[Squirrel] Cannot finish call callback: checkPlayerSaverFile, expected params count 1

Tyczy się to :

    local file = fileOpen("Items/"+getPlayerName(pid), "r+");
local buffer = "";
while(fileRead(file, buffer)) .// Błąd tyczy sie tej linijki.
{
// Jakiś tam
}
fileClose(file);

Wie ktoś o co come on?


RE: Błąd z FileLoader - Bimbol - 06.01.2016

"- file (NULL)"


RE: Błąd z FileLoader - Quarchodron - 06.01.2016

rzeczywiście nie zauważyłem.