Gothic Online Forums
Crash Serwera - 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: Crash Serwera (/thread-370.html)



Crash Serwera - Blacha - 10.01.2016

Witajcie, mam problem z serwerem. Sprawa wygląda tak. Rejestruje sie wszystko jest ok. Robie reconnect i chce sie zalogowac. Serwer Crashuje.
Dane techniczne:
VPS z Linuxem
FileLoader by Nubzior.
KOD: http://pastebin.com/phVwGnm4  (Login gdyz podejrzewam ze tam moze byc problem)


SSy: 
Logowanie
http://zapodaj.net/7d28a789b7e30.png.html
Debug window
http://zapodaj.net/d375b4cfd86dd.png.html
http://zapodaj.net/22768766b355e.png.html

Pozdrawiam i dziekuje za kazda pomoc Smile


RE: Crash Serwera - Bimbol - 10.01.2016

No nie wiem może, to dlatego, że filesystem bazuje na userpointerach i gdy ten user pointer nie istnieje to crashuje:
Squirrel Script
  1. local file = fileOpen("Base/"+getPlayerName(pid), "r");
  2. local buffer = "";
  3. fileRead(file, buffer);
  4. buffer = format("%s", buffer);


Nie widze nigdzie sprawdzania czy plik został poprawnie otworzony. Proste if (file) może uratować sprawę. Serio takie rzeczy trzeba sprawdzać to samo jest z sscanfem.


RE: Crash Serwera - Blacha - 10.01.2016

Nie pomogło ;/