Hello LFS Community!
After almost "long" development of my cruise addon, I decided to release my "private" server to public and test how it would perform.
So far, 5 people got into the server and the auto-save was working perfectly fine; but after 5-6 players the auto-save refuses to save and gives an error saying:
".\default\.\includes\.\cruise.lpr" at line #1622
Time Out in Event or Sub 8000 ms
Function 'c_save' script aborted"
Yes, I changed the timeOutScript to timeOutScript=8000; But that seems doesn't help at all. My server reached 20 players and the stats just seem to fade away like nothing happened.
Not only that...
I have another big issue. "Of what i think"
#+-------------------------------+
#|On disconnect |
#+-------------------------------+
CatchEvent OnDisConnect( $userName, $reason )
#This is an example code of how the stats reset.
SetUserStoredValue("Cash", GetCurrentPlayerVar( "Cash" ) );
EndCatchEvent
When a player disconnects; this happens.
"You can't use GetCurrentPlayerVar in this context, not a player event
Function 'ondisconnect.\default\.\includes\.\cruise.lpr-430' script aborted"
Well... My auto-save saves the stats every 5 mins and 8 seconds because of the timeOutScript. But what about on disconnect ... ? :/
Any help is appreciated!
P.S: If you want screenshots of my cruise-addon just type down below!
After almost "long" development of my cruise addon, I decided to release my "private" server to public and test how it would perform.
So far, 5 people got into the server and the auto-save was working perfectly fine; but after 5-6 players the auto-save refuses to save and gives an error saying:
".\default\.\includes\.\cruise.lpr" at line #1622
Time Out in Event or Sub 8000 ms
Function 'c_save' script aborted"
Yes, I changed the timeOutScript to timeOutScript=8000; But that seems doesn't help at all. My server reached 20 players and the stats just seem to fade away like nothing happened.
Not only that...
I have another big issue. "Of what i think"
#+-------------------------------+
#|On disconnect |
#+-------------------------------+
CatchEvent OnDisConnect( $userName, $reason )
#This is an example code of how the stats reset.
SetUserStoredValue("Cash", GetCurrentPlayerVar( "Cash" ) );
EndCatchEvent
When a player disconnects; this happens.
"You can't use GetCurrentPlayerVar in this context, not a player event
Function 'ondisconnect.\default\.\includes\.\cruise.lpr-430' script aborted"
Well... My auto-save saves the stats every 5 mins and 8 seconds because of the timeOutScript. But what about on disconnect ... ? :/
Any help is appreciated!
P.S: If you want screenshots of my cruise-addon just type down below!