Sorry I didn't explain well, but what I want to allow vote ban and vote kick for every user, I can't do this now,only admins. i supouse yor response is for the admin privileges for determinate users you want, no?
What is the sentence for allow vote eberybody? You can add user names, but what's is the code for all users. I don't know it
Ah that makes it more clear. You can't give those rights to every user. They have to be admin on the server or you can put the names after the $allow command. There are no other options.
So there's no way to use lapper in a public server while allowing anonymous users to VOTE for baning/kicking other users? There must be a way, isn't it?
<small offtopic reaction>
Question remains if you really want that.
On several occasions I've seen users being banned by fellow-racers after making one small mistake. One frustrated racer can make other users being thrown off servers for no apparent reason. When one racer starts a vote, others blindly follow without knowing what is happening. Beginning racers turn their back to the game when being voted off the servers for making the small mistakes every beginner makes.
I myself would vote for leaving the banning actions to the admins. They usually have a better view on the overall behavior of racers..
<back ontopic, don't react, just some food for thought>
The cfg file does specifically want an IP address, if host name lookup hasn't been coded, it just won't work. If it does work with the host name, I think the following approach should do it
You can test new Lapper at server "Champ CILF2009 Test" ( The new international championship organised by LFS France ).
For now, i don't release it because it's on dev and many internal modification are to be tested. For now drift database and sync don't work yet. But you can see i continue to dev it. Major modification is the use of sqlite, real SQL database in place of txt file. this can offer much power for the future extensions.
An other ability is to set the number of PB used to calculate an Average PB. Usefull if you don't wan't a PB do with lucky.
A little request for a (maybe) a small change in Lapper
Hi,
A little request for a (maybe) a small change in Lapper
I have maked a kind of a GUI (Graphical User Interface).
It will be nice when i changed the type of car the $DefaultTopCar also changed and !top show's the correct list.
At this moment it's not posible
############# #Default Car# #############
$DefaultTopCar = $current_car;
################################### #Event triggered when lapper start# ###################################
Thank's in advance.
PS.
I liked the idea of a SQL database.
Is it also posible to write and read from the database? Like to store usernames ed. in a field and read them later? To setup for exaple a event.
Good work Gai-Luron.
GUI is looking very good Tim.
Thanks for a new release Gai-Luron.
I'm not at home at the moment so I can't test it yet.
I also have a small request (on top of the requests I've already made) to add the option to make a script sleep for some time. This would be useful when you want to change track for example.
Yes that's possible.
Just set the following variable:
$AutoRestartRaceMn = 3;
Race will be automaticly restarted 3 minutes after the last one has finished.
Or when it takes people to long to finish, 3 minutes after the last person finished within time.
Hi,
In your LFSLapper.lpr file in the section Race Control you can do this.
############## #Race Control# ############## #Auto restart: #$AutoRestartRaceMn = Minutes between the end of a race (last player finished) and an automatic restart . . . $AutoRestartRaceMn = 3;
Your question was puzzling me so half an hour ago I started looking at your request.
And guess what..............I've found a solution
First declare a variable when Lapper starts, then change the !top command a little and the last step is to add a new command to set $DTC and change the cars on the server.
After Lapper just has been started the !top command takes the value(s) defined in $DefaultTopCar
When $DTC is set the !top command takes that value if no argument is set, and when the argument is different from $DTC value, the argument is taken to show the correct list.
All code is tested and working like a charm.
Using Sqlite (database) instead of a text file seems to work well on the test server. I don't use Sqlite now with the drift database and syncing between two Lapper no longer work (for now).
I started big changes on the script parser. I rewrite it!. It is not easy because it's the first time I code this kind of thing. FOR ... BREAK ... ENDFOR and WHILE ... BREAK ... ENDWHILE work currently in my development version. For SWITCH ... CASE ... BREAK ... ENDSWITCH is not a priority as easily achievable with IF ... THEN ... ELSE ... ENDIF. In future version it will be possible to call a function with arguments and this function will return a value.
I think also implement Array vars in the next version. To access to the variables of the current racer use $CurPlayer [idVar]. Example $ CurPlayer [ "nickname"] for $nickname or $CurPlayer [ "LapDones"] for numbers of laps. Unfortunately the newer language scripts are no longer compatible with the older version.
Be patient because my work will not let me much free time and I program the short time I have left.