The online racing simulator
Searching in All forums
(968 results)
Gai-Luron
S3 licensed
Do you change anything in your script?

if yes the error can be localised in previous line

wich LFSLapper version?

Gai-Luron
Gai-Luron
S3 licensed
Hello,

You have an event when dist is done, then cumulate it and test with your own var $distToDo and then do action in GLScript, if i understand it's no need to have builtin LFSLapper var to do that.

You can save dist already done on disconnection of the player.

Gai-Luron
Gai-Luron
S3 licensed
What is the scope of this option?

Please when you put a request, tell me why you want this. It's more easy to me to find a way to solve the request.

Thank's
Gai-Luron
S3 licensed
I think this occured with a player having a one or more single quote in username or nickname. In new version this can't occur

Try to use last version, i know you need to do many change in script, but your version it's obsolete and no more mantained.

Gai-Luron
Gai-Luron
S3 licensed
The FTP thread create the elp file to.

You have a field "date" in wrong format in your DBS, maybe empty, try to find it in your DBS with an sqllite utility. Table are fi_epb or fi_lpb

Gai-Luron
Last edited by Gai-Luron, .
Gai-Luron
S3 licensed
Ok ,thank you very much

Gai-Luron
Gai-Luron
S3 licensed
oooppps thank you very much, now GetPlayerVar and GetCurrentPlayerVar are case sensitive and i forgot some change in scripts.

Strange for Tpb, i take a look for it

Thank you for your help

Gai-Luron

PS: Exact for the who but for waiting you can find it in bin\defaultfiles\workingdir\includes, i fortgot to put it in default folder

PS2: NEW RELEASE WITH YOUR FIX

+-------------------------------+
|Changes from v5.911 to 5.912 |
+-------------------------------+
Change LFSLapper.exe and LFSLapper.lpr, pitBoard.lpr, who.lpr

1. Fix some error on script due to case sensitivity in GetCurrentPlayerVar And GetPlayerVar
Thank you very much Tim NL

2. who.lpr now present in release

Last edited by Gai-Luron, .
Gai-Luron
S3 licensed
Witch update create this issue . I'm very interested for this. Maybe replace only sqllite3.dll ( download from the net ) with the last one can correct the issue.

http://www.sqlite.org/download.html

(take only the windows dll )

Gai-Luron
Gai-Luron
S3 licensed
Hello,


Here it work, but i can start only one instance. Do you try with only one instance? Put a # before rest of line. Maybe a deadlock. IF with one instance don't work, try to reinstall net framework.
What are the server using same database?


# Configuration of LFSServer to be Managed with LFSLapper
# One line per server
# Remote port is the port used to manage LFSLapper remotely, future extension
# One remote port per LFSLapper on one machine, autoStart is optionnal
#Unique ID|GroupId|Ip|Port|WorkDir|IniFile|autoStart
remotePort=3001;
RR_XFG|gr1|127.0.0.1|29989|./RR|RR_XFG.ini|autowork
#RR_PUB|gr1|127.0.0.1|29996|./RR|RR_PUB.ini|autowork
#AB_MID|gr2|127.0.0.1|29991|./AB|AB_MID.ini|autoWork
#AB_FOR|gr2|127.0.0.1|29993|./AB|AB_FOR.ini|autoWork
#AB_END|gr2|127.0.0.1|29994|./AB|AB_END.ini|autoWork
#AB_S2L|gr2|127.0.0.1|29995|./AB|AB_S2L.ini|autoWork
#RR_L13|gr1|127.0.0.1|29999|./RR|RR_L13.ini|autowork
#RR_BNG|gr1|127.0.0.1|29982|./RR|RR_Banger.ini
#RR_S2L|gr1|127.0.0.1|29998|./RR|RR_S2L.ini|autowork

Gai-Luron
S3 licensed
Very strange, most server run with this version. Try with last version in XP with a clean folder and without change anything in config file. execpt connection id.

There is error on DBS and there is no reason. The SQL command seem clear

What is the database name? You can also send me all your LFSLapper folder to test it here

Gai-Luron
Gai-Luron
S3 licensed
Release 5.9.1.1 beta available for test purpose.

send me feedback.


+-------------------------------+
|Changes from v5.910 to 5.911 |
+-------------------------------+
Change LFSLapper.exe and defPitInfo.lpr from previous version

1. Fix error on retreive value in stored DBS

2. Fix error when no car is selected

3. Fix error in defpit.lpr script

Gai-Luron
S3 licensed
Lapper don't work on X64 system. momo DLL is in 32 bit
Gai-Luron
S3 licensed
Quote from Tim NL :Hi Gai,
I found a other bug in lapper version 5.910.

If $DefaultTopCar = "XFG"; ( one single car) then no problems but when set to multiple cars like If $DefaultTopCar = "XFG+XRG"; lapper goes in standby mode
The following error appear in the error file.

10-12-2009 21:38:55 -> Error on web command
-----------------------------------------------------------------------------
12/10/2009 9:38:55 PM
Lapper Instance 127.0.0.1/29997 abort!
Object reference not set to an instance of an object.
LFSLapper
at LFSLapper.LFSClient.GetVarPlayer(unionVal val, String idVar, String userName) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\GLSPlayerVars.cs:line 323
at LFSLapper.LFSClient.CBget(String id, String userName) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\GLSPlayerVars.cs:line 214
at GLScript.SetOfVars.Get(String id) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\GLScript\SetOfVars.cs:line 154
at LFSLapper.LFSClient.GetVarPlayer(unionVal val, String idVar, String userName) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\GLSPlayerVars.cs:line 729
at LFSLapper.LFSClient.getcurrentplayervar(unionVal val, ArrayList args) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\scriptFunctions.cs:line 576
at GLScript.GLApp.parseBackcall(SetOfVars GVAR, SetOfVars LVAR, unionVal val, ArrayList args) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\GLScript\GLScript.cs:line 1288
at GLScript.Parseur.getval(SetOfVars GVAR, SetOfVars LVAR, executeParsedFunction BC) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\GLScript\ParseExpr.cs:line 539
at GLScript.Parseur.getval(SetOfVars GVAR, SetOfVars LVAR, executeParsedFunction BC) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\GLScript\ParseExpr.cs:line 550
at GLScript.GLApp.retrieveEvalVar(String funcName, TokenParse tkparse, TokenBuffer currTokenBuffer, SetOfVars GVAR, SetOfVars LVAR, Boolean breakFunc, Char& breakCar) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\GLScript\GLScript.cs:line 1030
at GLScript.GLApp.privExecuteTokensPart(Int32 level, String funcName, SetOfVars GCAR, SetOfVars LVAR, Boolean breakable, Boolean inSwitchCase, Int32 start, Int32 end) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\GLScript\GLScript.cs:line 253
at GLScript.GLApp.privExecuteFunction(String funcName, String[] argsVals) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\GLScript\GLScript.cs:line 173
at GLScript.GLApp.executeFunction(String funcName, String[] argsVals) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\GLScript\GLScript.cs:line 144
at Configurator.lexConfigurator.executeFunction(String funcName, infoPlayer pcurrInfoPlayer, String[] par) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\cfgParser\readCfg.cs:line 346
at LFSLapper.LFSClient.managePacket(NCN newConnection) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\managePacket.cs:line 73
at LFSLapper.LFSClient.Loop(Connect insimConnection) in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\loop.cs:line 1028
at LFSLapper.LFSClient.doloop() in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSClient\lfsclient.cs:line 551
at LFSLapper.LFSListen.Listen.goWorkMode() in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSListen\Listen.cs:line 85
at LFSLapper.LFSListen.Listen.start() in D:\Dev\DevInsim\lapper\LFSLapper\LFSLapper\src\LFSListen\Listen.cs:line 126
Void GetVarPlayer(GLScript.unionVal, System.String, System.String)
Closing Instance...
-----------------------------------------------------------------------------


Can't reproduce it! all time you have this issue?
if yes, send me your dbs ansd config files

EDIT : FIXED, occur only when player have no car selected in some case only


Gai-Luron
Last edited by Gai-Luron, .
Gai-Luron
S3 licensed
need previous sql line in log file. Do you try with fresh DBS?
Gai-Luron
S3 licensed
Hello,

Try to rename your DBS and start again. If lapper create a new and start the reason is that your renamed database is corrupted

Gai-Luron
Gai-Luron
S3 licensed
Hello,

Don't use global button as timer to call subroutine, because global button create a duplicate privbutton for each player and then a one call to sub for each player present on track. In this case one restart for each player.
Use instead delayedcommand for your purpose for the winner and globalbutton with timer to have countdown but without call to sub.
Maybe i'll have to create builtin delayed command for openGlobalButton in this case, i take a look if i can do that in next release, for now use this:

openGlobalButton ("test1",40,0,28,4,4,90,16,"^3Next Race in^2 (%cpt%) ^3second(s)" );
DelayedCommand( 90, start_race );





Gai-Luron
Last edited by Gai-Luron, .
Gai-Luron
S3 licensed
Who call sub Sub start_race( 0,0 ) ? your script is incomplete! i can't test it


Gai-Luron
S3 licensed
Stored value bug fixed

Do you have LFSLapper vote system on?

Gai-Luron
Gai-Luron
S3 licensed
Hello,

i think the problem can't be solved easy. Because you can't have a look on each config file for all airio server. Admins must be responsable of their configuration. In case of LFSLapper, i can't do that because there is no action relative to a nickname by default, this is coded with the scripting language by the admin.

An idea, an i think, i put a default script in the next default LFSLapper config file to avoid bad scripts done by admins, is to spec user with a wrong username, display a message query the player to change the nickname between XX second. If it's not done in this time the player will be kicked or if he change his nickname he can click on a "ok" button for closing message. If the player click "ok" and name is not changed, he is kicked.

Bye

Gai-Luron

PS: For EQ: An answer for one of your post in AONIO Topic. You can use part of LFSRelax code for AONIO if you want and only if you release it in Open Source ( i hope soon, Very good ) indicating the origin of the code used.
Last edited by Gai-Luron, .
Gai-Luron
S3 licensed
Release 5.9.1.0 beta available for test purpose.

send me feedback.

Replace only the LFSLapper.exe in the previous version and add tops.lpr in your include folder


+-------------------------------+
|Changes from v5.906 to 5.910 |
+-------------------------------+

**** CHANGING TO 5.9 BECAUSE OF BIG CHANGE IN GLScript, Very hard coding ****

1. Rewrite a big part of GLScript Parsing and lexer to cache compilation code.
Now very Speed up the execution of the code. Very hard coding
Try !gui one time ( caching at this point ), then type !gui ( very faster )

2. Add new GLScript function
GetListTop( $argv )
$argv is the same meaning arg as !top XRG etc...
$list = GetListTop( $argv );

This command return a 2 dimension arrayVar containing the result of the top
Write a test in your script with dumpVar( $list ) to view all available value
or take a look at tops.lpr the use

3. Create a new script ( to be finished ) for replace builtin command !top with a GLscript command file, you can
modify your top look as you want.
To view this new top type !mytop in chat line
This top is the same as old but only writed in GLScript :-), i remove the builtin code when i finish this
script.


Gai-Luron
S3 licensed
You can't do that because you can have catched event onMso. you can do that adding a globalvar. $commandFinded = 0 and set to 1 when command is findin script. Then catch OnMso event in a last include named lastMso.lpr and test this valueif it's 1 or 0. In fine there is no elegant way to do that due to catchevent feature

Gai-Luron
Last edited by Gai-Luron, .
Gai-Luron
S3 licensed
Quote from Andy King :Hi Gai,
... please as posabs is still not working. I could not get your SUB to work for ...

Change Posabs to PosAbs. Now all var are case sensitive
Gai-Luron
S3 licensed
Not on last version!
Gai-Luron
S3 licensed
Create a sub that do this

Sub myPm( $from, $to, $msg )

privMsg( $to,"PM from " . $from );
privMsg( $to,$msg );

privMsg( $from,"PM to " . $to );
privMsg( $from,$msg );

EndSub

Don't forget you can create your own command! if i want to limit command to builtin command, i never dev GLScript and sub
Gai-Luron
S3 licensed
idZone -> IdZone
FGED GREDG RDFGDR GSFDG