The online racing simulator
Searching in All forums
(7 results)
venni
S2 licensed
There is only one version of the lapper. I only send my modifications to Gai-Luron, and he decides if they'll be used or not.
venni
S2 licensed
you have new messages.
venni
S2 licensed
hi

perhaps optional, file/url/return-code of a software.

if you need help (or if you are bored of coding those things), tell me
Last edited by venni, .
License Hack
venni
S2 licensed
Hi Gai-Luron.

I did another hack, to fit LFSLapper to our aims, and I think that it is useful for many other people too.

We run two servers. You have to earn a license on the first server, to connect to the second one.

So I implemented into LFSLapper the check, weather a racer has a license or not. If not, LFSLapper kicks him out.

To perform this check, LFSLapper checks a PHP-Script at a custom URL (http://yourdomain.com/yourscript.php?user={Username}) for a short return-value: 1 or 0.

The Part of the config looks like this:
# Here you can enter an URL to a custom PHP-Script of your Website, to
# check, if a connecting user is licensed to drive on your server.
# The URL has to return 1 in case of a licensed driver. Otherwise 0.
# If you do not want to use this feature, comment this lines by #
CheckLicense = http://www.bullracing.org/cron/dataaccess.php?action=checklicense&username={Username}
NoLicenseAction = /msg You need a License to use this server!|/rcm_pty {Username}|
/msg You need a License to use this server!|/rcm_pty {Username}|
/msg You need a License to use this server!|/rcm_pty {Username}|
/msg ^7Check www.BULLRACING.org^8 !|/rcm_pty {Username}|
/kick {Username}

I added one class called "licenses.cs" and did some very(!) small changes in the Main.cs (you can find them by searching for "venni").

I attached those files here. Maybe you can implement it in the next version. Many thanks in advance.
Last edited by venni, .
venni
S2 licensed
I fixed the problem of the "not disappearing" /rcm messages in the source. The Problem was, that the timer was not stopped and couldn't be reinited.

I changed the function "RestartTimer()" in Main.cs to:
void RestartTimer()
{
timer.Stop();
timer.Interval = MessageTime;
timer.Start();
}

I attached the patched EXE-File (v5.14) here, simply replace the old one.
Last edited by venni, .
venni
S2 licensed
see post below
Last edited by venni, .
Servermessages don't hide
venni
S2 licensed
Hi

I'm having a strange problem: The BIG Text-Messages like "Please, brake in time !" disappear only once.

I try to explain.
  1. Race "1" starts, it shows "Please brake in time". After 5 seconds, the Message disappears.
  2. Race "2" starts, it shows "Please brake in time", but the message does not disappear.
I run LFSLapper on Linux/Debian with the most current mono-Version.

Hints are welcome.

Regards,
venni
Last edited by venni, .
FGED GREDG RDFGDR GSFDG