The online racing simulator
Bug Reports
(207 posts, closed, started )
Quote from Gai-Luron :Hello,

Does your qualification file containing def of qual and usernames who participate in qual is set?

$RefreshQualUsers = true;
#$QualUsers = "&./your_file.flt";
#$QualUsers = "@DefGroup:5:5:2,Gai-Luron,MataGyula,nesrulz,gwendoline,_-ALUCARD-_,lagamel,lister88,c-quad,shimanofr,bruno7529,boby5,kevinb,edgar,berlioz,la tortue,neron59,eur-can,stff,2psbob,oliv76000";

Gai-Luron

Same problem here, but I specify drivers with an external file:

$RefreshQualUsers = true;
$QualUsers = "&./qualusers2009.txt";
#$QualUsers = "@DefGroup:5:5:2,Gai-Luron,MataGyula,nesrulz,gwendoline,_-ALUCARD-_,lagamel,lister88,c-quad,shimanofr,bruno7529,boby5,kevinb,edgar,berlioz,la tortue,neron59,eur-can,stff,2psbob,oliv76000";

external file looks like:

@DefGroup:3:36:2
AriPetrol
dmav
Egon-est
freestylei974
GreyBull [CHA]
Hoitjes
Il Nonno
Logan 5
lysergic
racer hero
RamboJunior
rockclan
thereaperlt
Tukko

Can anybody help me?
Quote from sinanju :Not sure if it's a lapper issue or due to the recent LFS updates, but my lapper scripts now showing error with AU1 track.

Long Track Name [Short Track Name] should give me AutoCross [AU1], instead it gives me Autocross 8 lane drag [AU1].

Code extract

<?php 
getLapperVar
("LongTrackName"),getLapperVar("ShortTrackName"),
?>

Can anyone check if they're having same problem?

Remove the extra AU1 line from the trackList.cfg file in your main Lapper directory
Do you mean remove the last 3 lines from the 4 in the file?

AU1,Autocross,Autocross Autocross,0
AU1,Autocross,Autocross Skid Pad,0
AU1,Autocross,Autocross Drag Strip,0
AU1,Autocross,Autocross 8 Lane Drag,0
Yep, because they are overriding the first line
Quote from sinanju :Do you mean remove the last 3 lines from the 4 in the file?

AU1,Autocross,Autocross Autocross,0
AU1,Autocross,Autocross Skid Pad,0
AU1,Autocross,Autocross Drag Strip,0
AU1,Autocross,Autocross 8 Lane Drag,0

Just been looking at the LFS Wiki page, and the AU tracks should have individual numbers

Quote :Autocross................AU1....N/A
Skid Pad.................AU2....N/A
Drag Strip...............AU3....0.402 km (0.250 mi)
Eight Lane Drag.......AU4....0.402 km (0.250 mi)

and instead of the zero at the end of the drag strips, should be 0.402.

Therefore the track list should be

AU1,Autocross,Autocross Autocross,0
AU2,Autocross,Autocross Skid Pad,0
AU3,Autocross,Autocross Drag Strip,0.402
AU4,Autocross,Autocross 8 Lane Drag,0.402
Sounds good
Hello Gai .

I run lapper 6.0.1.1 on a local host with multi language is it possible to send the message and commands to the player in his language?
Quote from lysergic :Same problem here, but I specify drivers with an external file:

$RefreshQualUsers = true;
$QualUsers = "&./qualusers2009.txt";
#$QualUsers = "@DefGroup:5:5:2,Gai-Luron,MataGyula,nesrulz,gwendoline,_-ALUCARD-_,lagamel,lister88,c-quad,shimanofr,bruno7529,boby5,kevinb,edgar,berlioz,la tortue,neron59,eur-can,stff,2psbob,oliv76000";

external file looks like:

@DefGroup:3:36:2
AriPetrol
dmav
Egon-est
freestylei974
GreyBull [CHA]
Hoitjes
Il Nonno
Logan 5
lysergic
racer hero
RamboJunior
rockclan
thereaperlt
Tukko

Can anybody help me?

no help 4 me?
Here's an oldie but a gooide...the GetListOfPlayers function returns an array that only contains the player vars that are strings. Replace the code for the function below and it will include numeric fields as well as strings.

In scriptFunctions.cs:

<?php 
        
public void getlistofplayers(GLScript.unionVal valArrayList args)
        {
            
string ident val.nameFunction;
            
ArrayList lply = new ArrayList();
            
            
val.typVal GLScript.typVal.setOfVar;
            
val.setVars = new GLScript.SetOfVars( );
            foreach (
DictionaryEntry de in listOfPlayers.playersUCID)
            {
                
InfoPlayer CI = (InfoPlayer)de.Value;
                if (
CI.UCID == 0)
                    continue;
                
lply.Add(new LOP(CI.userNameUtils.stripLFSColorCI.nickName )));
            }
            
lply.Sort(new sortByUName());
            if (
args.Count == 1)
            {
                
string sort = (string)args[0];
                if (
sort.ToLower() == "n")
                    
lply.Sort(new sortByNName());
            }
            for (
int i 0lply.Counti++)
            {
                
val.setVars.Set(i.ToString(), new GLScript.unionVal(0Utils.quote((lply[i] as LOP).userName), GLScript.typVal.str));
            }
        }
?>

Quote from Krayy :Here's an oldie but a gooide...the GetListOfPlayers function returns an array that only contains the player vars that are strings. Replace the code for the function below and it will include numeric fields as well as strings.

In scriptFunctions.cs:

<?php 
        
public void getlistofplayers(GLScript.unionVal valArrayList args)
        {
            
string ident val.nameFunction;
            
ArrayList lply = new ArrayList();
 
            
val.typVal GLScript.typVal.setOfVar;
            
val.setVars = new GLScript.SetOfVars( );
            foreach (
DictionaryEntry de in listOfPlayers.playersUCID)
            {
                
InfoPlayer CI = (InfoPlayer)de.Value;
                if (
CI.UCID == 0)
                    continue;
                
lply.Add(new LOP(CI.userNameUtils.stripLFSColorCI.nickName )));
            }
            
lply.Sort(new sortByUName());
            if (
args.Count == 1)
            {
                
string sort = (string)args[0];
                if (
sort.ToLower() == "n")
                    
lply.Sort(new sortByNName());
            }
            for (
int i 0lply.Counti++)
            {
                
val.setVars.Set(i.ToString(), new GLScript.unionVal(0Utils.quote((lply[i] as LOP).userName), GLScript.typVal.str));
            }
        }
?>


Is this the answer to my question?
Quote from lysergic :no help 4 me?

In the lpr file is this: separated with ':'
#You can specify the scheme of group of this qualification using a special username called DefGroup
#Defgroup Take 3 argument separated with ':'
#1 - Is the number Max of Group for this qualification
#2 - Is the number max of user per group
#3 - Is the minimum of user in the last group, recalc previous group as possible if number is low
#If you ommit scheme of groups, the group of qualification do not appear

But i checked it on my server and there i have :

DefGroup:4;12;8
tim nl
next user
a other one
and so on

Here was it working for a long time. Maybe you can give it a try.
@Tim (NL): thx I'll try it
error...
for fast driving in pit

See screenshot
Attached images
lfs_00000182.jpg
Quote from [Audi TT] :error...
for fast driving in pit

See screenshot

Thanks for the highlight. Fix on the way
see screenshot

Enter a command !drf, and in table be empty
Later "restart" type this automatic commade /rcm_ply host
Report about "Parameter is not valid"
Attached images
2012-07-12_114900.jpg
who.lpr (part of CIF module)
When clicking the "Who" tab in the CIF module, the new dialogue box on right would not clear the previous dialogue box, but instead just overwrite on top.

Traced problem to line


<?php 
    CifDraw
($cifGroupName$cifModuleName"Who");
?>

Should be


<?php 
    CifDraw
($cifGroupName$cifModuleName"Who""DoCifInfo");
?>

11-Jan-13 6:40:11 PM

Lapper Instance 127.0.0.1/29999 abort!

Destination array is not long enough to copy all the items in the collection. Check array index and length.
mscorlib
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.BitConverter.ToInt32(Byte[] value, Int32 startIndex)
at InSim.Decoder.STA..ctor(Byte[] packet)
at LFSLapper.LFSClient.Loop(Connect insimConnection)
at LFSLapper.LFSClient.doloop()
at LapperInstances.LapperInstance.doConnection()
Void ThrowArgumentException(System.ExceptionResource)
Closing Instance...

How can I remove the bug? It gets this error only when more than 4 players are online in the server. Version is 6.0.1.2
Small issue come to light with 'lapper' (and other InSim's) when recent 0.6 upgrades done - try new updated lapper HERE.
Crashing the 6.0.1.4 lapper :S



<?php 
3
/29/2013 7:19:16 PM 

Lapper Instance 188.165.219.115
/42784 abort

Index was out of rangeMust be non-negative and less than the size of the collection
Parameter nameindex 
mscorlib 
   at System
.Collections.ArrayList.get_Item(Int32 index
   
at GLScript.GLApp.retrieveEvalVar(String funcNameTokenParse tkparseTokenBuffer currTokenBufferSetOfVars GVARSetOfVars LVARBoolean breakFuncCharbreakCar
   
at GLScript.GLApp.privExecuteTokensPart(Int32 levelString funcNameSetOfVars GCARSetOfVars LVARBoolean breakableBoolean inSwitchCaseInt32 startInt32 end
   
at GLScript.GLApp.privExecuteFunction(String funcNameString[] argsVals
   
at GLScript.GLApp.executeFunction(String funcNameString[] argsVals
   
at Configurator.lexConfigurator.executeFunction(String funcNameinfoPlayer pcurrInfoPlayerString[] par
   
at LFSLapper.LFSClient.managePacket(NCN newConnection
   
at LFSLapper.LFSClient.Loop(Connect insimConnection
   
at LFSLapper.LFSClient.doloop() 
   
at LapperInstances.LapperInstance.doConnection() 
System.Object get_Item(Int32
Closing Instance...  
?>

v6.014 the lapper doesn't work, the message in err.log
4/10/2013 2:02:03 AM -> The database file is locked
database is locked :
COMMIT TRANSACTION

what is it? and how to correct?
closeButtonRegex bug
Found a strange bug with the closeButtonRegex command.

I have a bit of code that reads;

Quote :closeButtonRegex (GetCurrentPlayerVar("UserName"), "rd_*"); # close race director buttons

However, whenever I run that bit of code, the Pitboard (made by Yisc[NL]) closes.

Eventually, I found that when I changed all of the Pitboard code so that pitboard_ read pitb_ and then ran my code, all was fine.

Looks like the closeButtonRegex command is sort of putting an invisible wildcard in front of anything that is put in between the quotes so that if the letters left exactly match the end of any of your button names, then these button names will also be closed.

Nothing wrong with Yisc's code - just unfortunate that I used an abbreviation that exactly matched the end of his button names.
Mistake in changes.doc regarding Pitstops.
Quote :+----------------------------------------+
|Changes from v5.844 to 5.845 |
+----------------------------------------+
2 Add 1 player var
pitStops = Number of pitstop do by a player

GetCurrentPlayerVar("pitStops");
or
GetPlayerVar("nickname","pitStops");

"pitStops" will not work; needs to be "PitStops". Upper case P and S.

Can use any of following;

GetCurrentPlayerVar("PitStops");

GetPlayerVar("NickName","PitStops");

$currPly["PitStops"]

Such as in

$PitStops = GetCurrentPlayerVar("PitStops");
GlobalMsg ("PitStops = ".$PitStops);

$currPly = getplayerinfo($userName );
GlobalMsg ("PitStops = ".$currPly["PitStops"]);

$PitStops = $currPly["PitStops"];
GlobalMsg ("PitStops = ".$PitStops);

Thx, have changed it.

Maybe a good idea, to make a doc with all the lapper vars and functions.
If you look in the /docs folder, you'll see that Krayy did dump of these...

Player Vars in 'playerVars.txt' and 'playerInfo.txt'.

Lapper Events in 'Lapper Events.txt'.

Your 2 recent contact Events should be added to this last file.

EDIT:

Just a thought; As you're taking over lapper programming, you should apply to become 'Section moderator'.
I added 2 emtpy files: LapperVars and Lapper Functions. Here are a few examples.

LapperVars:

Event OnObjectHit:

$DetectHitObject = ""; #To get objectstrings for detection look at docs/ObjectHit.txt

Event OnMaxCarResets

$MaxCarResets = 0;

Static vars that cannot be changed while lapper is running.

Lapper Functions :

privmsg("Your Text here"); # Send text to player
globalMsg("Text Here");#Send text to all players

Not sure if i'm taking over lapper, because sometimes its very hard to understand the lapper sourcecode. And as a non-programmer, it was/is a struggling to get the code working.

But it was/is very learnable and fun todo. I know a littlebit more about C#.

For example: To request InsimVersion 7.
To get data from the newest packets, lapper must request the latest insim version, version 7 in this case. I have changed the code many times. Also i have checked other library's how they request the insimversion. But lapper is completely differend.

i have sent Gai-Luron a PM, to take a look. but no response yet.
Attached files
InSim4.txt - 66.3 KB - 216 views
This thread is closed

Bug Reports
(207 posts, closed, started )
FGED GREDG RDFGDR GSFDG