Hello. When I looked at the admin console on Lfs.net, I saw something like this. What's this? How can we solve this? My Lapper version is 7.0.8.0(7D) (The reason I do not upgrade is because the virtual server requirements are increasing.) https://hizliresim.com/15qybtf
Value was either too large or too small for an unsigned byte.
mscorlib
at System.Byte.Parse(String s, NumberStyles style, NumberFormatInfo info)
at System.Byte.Parse(String s)
at LFSLapper.LFSClient.joinrequest(unionVal val, ArrayList args)
at GLScript.GLApp.parseBackcall(SetOfVars GVAR, SetOfVars LVAR, unionVal val, ArrayList args)
at GLScript.Parseur.getval(SetOfVars GVAR, SetOfVars LVAR, executeParsedFunction BC)
at GLScript.GLApp.retrieveEvalVar(String funcName, TokenParse tkparse, TokenBuffer currTokenBuffer, SetOfVars GVAR, SetOfVars LVAR, Boolean breakFunc, Char& breakCar)
at GLScript.GLApp.privExecuteTokensPart(Int32 level, String funcName, SetOfVars GCAR, SetOfVars LVAR, Boolean breakable, Boolean inSwitchCase, Int32 start, Int32 end)
at GLScript.GLApp.privExecuteTokensPart(Int32 level, String funcName, SetOfVars GCAR, SetOfVars LVAR, Boolean breakable, Boolean inSwitchCase, Int32 start, Int32 end)
at GLScript.GLApp.privExecuteFunction(String funcName, String[] argsVals)
at GLScript.GLApp.executeFunction(String funcName, String[] argsVals)
at Configurator.lexConfigurator.executeFunction(String funcName, infoPlayer pcurrInfoPlayer, String[] par)
at LFSLapper.LFSClient.managePacket(MSO mso)
at LFSLapper.LFSClient.Loop(Connect insimConnection)
at LFSLapper.LFSClient.doloop()
at LapperInstances.LapperInstance.doConnection()
Byte Parse(System.String, System.Globalization.NumberStyles, System.Globalization.NumberFormatInfo)
Closing Instance...
-----------------------------------------------------------------------------
I got an error like this in the ERR file. But I don't know what this means.
------------------------------------------------------------------------------
Also, the teleport command constantly gives errors. But it works without any problems. Could this be the reason?
CASE "!çatı": $userName = GetCurrentPlayerVar( "UserName" ); $X_Axis = "-104"; #X axis SpawnPoint $Y_Axis = "-63"; #Y axis SpawnPoint $Z_Axis = "31"; #Z axis SpawnPoint $Flags = 128; #Move/Reset car (128) else (0) $Heading = 0; #Heading of the players car at Spawnpoint $UCID = 0; #Connection's unique id (0 = host) $PLID = getcurrentplayervar("PLID"); #Player's unique id $JRRAction = 4;
That error means that one of the values of the parameters is incorrect. Not sure if that's causing the InsimLimit error.
Check the values, and if you could get it working. Tell me which parameter is causing the crash.
You get the same errormessage as in the post below.
But somehow i couldn't reproduce the crash.
Set $Flags = 128; Set $UCID = 0; $PLID = getcurrentplayervar("PLID"); #PLayer's unique ID or $PLID = players id here; #PLayer's unique ID To see your PLID type !plicid
If you want to reset your car on your current position:
$X_Axis = 0; Fill in the X coordinate $Y_Axis = 0; Fill in the Y coordinate $Z_Axis = 0; Fill in the Z coordinate You can drive to a location and type !zone to see the coordinates of that location
$JRRAction = 4; = Reset with repair $JRRAction = 5; = Reset without repair ###################################################
CASE "!jrr": globalMsg( GetCurrentPlayerVar("NickName") . " ^3Aracini yeniledi, ^3!jrr yazarak sende yenileyebilirsin."); $X_Axis = getcurrentplayervar("X"); #X axis SpawnPoint $Y_Axis = getcurrentplayervar("Y"); #Y axis SpawnPoint $Z_Axis = getcurrentplayervar("Z"); #Z axis SpawnPoint $Flags = 128; #Move/Reset car (128) else (0) $Heading = 0; #Heading of the players car at Spawnpoint $UCID = 0; #Connection's unique id (0 = host) $PLID = getcurrentplayervar("PLID"); #Player's unique id $JRRAction = 4;
joinrequest($X_Axis , $Y_Axis , $Z_Axis , $Flags ,$Heading , $UCID , $PLID ,$JRRAction); #Send Data to LFS BREAK;
12/4/2023 11:01:45 PM -> Syntax error: in file ".\default\LFSLapper.lpr" at line #1486
The function: privMsgw does not exist
Function 'onmso' script aborted
----------------------------------------------------------------------
All teleport commands generally have this week. In fact, in all of them.
I just joined your server. And typed !drag (this is the location that you showed me) Its just working fine.
But i feel that the insim is slow on response sometimes. Maybe this could cause the weird crashes?
12/4/2023 11:01:45 PM -> Syntax error: in file ".\default\LFSLapper.lpr" at line #1486
The function: privMsgw does not exist
This is a typo on your end.
privMsgw() must be privMsg()
12/4/2023 11:00:16 PM -> Syntax error: in file ".\default\LFSLapper.lpr" at line #1006
Token not catched
Function 'onmso' script aborted
----------------------------------------------------------------------------------
The codes work smoothly, but as I said, err logo errors occur constantly. I gave you the line that gave you the error. The situation is always the same. I get this error at some points of Lapper. I can't figure out why. Another example... The command works but an err error appears in the log.
Finally, I want to ask this. Do you see any errors in the teleport command? If there is no error, I will ignore the err log in coding. For your information, the coordinates are working.
as i said in a few posts above
privMsgw(); must be privMsg();
You could figure this out, because the line: privMsgw( GetCurrentPlayerVar("NickName") . " ^6IŞINLANDI, ^6admin özel alanda."); isnt displaying any text in the chat.
Almost all errormessages gives you the reason why a piece of code isnt working. 90% of the time its caused by a typo.
Test your code in a private server, before publishing it on a public server.
I apologize. Actually, I fixed this error, but I think I clicked it by mistake. My question is still valid. I already fixed privmsg, I forgot to fix it here.
Do you see any problems with the teleport command?
12/4/2023 11:05:22 PM -> Syntax error: in file ".\default\LFSLapper.lpr" at line #1573
Warning on Command: 'joinrequest' Cannot spawn spectated players
Function 'onmso' script aborted
CASE "!drag": $userName = GetCurrentPlayerVar( "UserName" ); $X_Axis = "120.65"; #X axis SpawnPoint $Y_Axis = "479.31"; #Y axis SpawnPoint $Z_Axis = "31"; #Z axis SpawnPoint $Flags = 128; #Move/Reset car (128) else (0) $Heading = 0; #Heading of the players car at Spawnpoint $UCID = GetCurrentPlayerVar("UCID"); #Connection unique id $PLID = GetCurrentPlayerVar("PLID"); #Player's unique id $JRRAction = 4;
etc etc.
Every variable will now be written to the console and there you can check if they all have a value.
Since some variables are filled with hardcoded numbers, the best guess is that the problem is with one of the variables that get filled with Lapper Vars.
12/4/2023 11:05:22 PM -> Syntax error: in file ".\default\LFSLapper.lpr" at line #1573 Warning on Command: 'joinrequest' Cannot spawn spectated players
The joinrequest() doesnt work when a player is spectating.
@RealistAdam: please read the error/warnings, because the description of the error/warning gives an idea to fix it.
you can prevent this by ignore the code when someone is spectating or in pit.
IF(GetPlayervar($userName,"OnTrack") == 1) THEN #code when a player is on Track. ELSE #code when a player is spectating or in pit. ENDIF
I'm sorry I didn't fully understand what you wrote. There may be translation problems. Can you add the code you shared to the code I posted? Thank you.
By the way, I just now understood the answer you gave at the beginning of the forum. I removed most unnecessary features in Lapper. There is no delay or error right now. Thanks.