The online racing simulator
Searching in All forums
(187 results)
Silox
S2 licensed
Quote from Marco1 :xD dont blame me xD^^
okay im not the smartest xD ^^
no one can help?

Marius already did.
Silox
S2 licensed
Use F5 to test it, don't build it directly. Make sure you're altering the good sentence.

It's a bad idea btw to translate things into your own language, even if you don't understand english that well. The plethora of LFS users speaks english and only some of them your language.
Silox
S2 licensed
I blame the translator you used.

Ontopic: Please, if you can, try to explain it in your own english and don't use an online translator.
Silox
S2 licensed
Quote from Marco1 :Im not dump xD

Silox
S2 licensed
Read my post.
Silox
S2 licensed
It's easier then you think... You need 1 admin app that connects to a txt file (or MySQL server?) where you store the username and the password for each racer.

Then you need an InSim program that retrieves the information from the database and stores it in an array (if you're using a txt file) or you can just retrieve some information from the MySQL database...

This InSim app would need this in the message retrieve section:
if text(0) = !login (assume that the login command is like this: !login username password
search for text(1)
check is password matches the password in the txt file / database
if correct:
logged id
else:
kick client
end if

Silox
S2 licensed
Quote from flatron_22 :hello well i want someone to tell me what insim i need to make one F1 Server with laps and etc... i thing its something like tracker but i want to make my self sure for 100% if you can help me make a post and give me links please with one guide-download page to create it..

thanks

So you want laps? Sorry, I don't think that's possible in a racing simulator.

Serious: Can you give us more information about what you really want that is impossible with the normal host & Lapper functions?
Silox
S2 licensed
Great! I already had been looking for it but I just couldn't find it...
Silox
S2 licensed
This should work for the time:

Pseudocode:

if node = x
ArrayTimesOnNodeX redim preserve
ArrayTimesOnNodeX.Ubound = time
end if

TimeInBetween = ArrayTimesOnNode(ubound) - ArrayTimeOnNode(ubound - 1)
PrivMsg("The person in front is at TimeInBetween seconds")

Just basic code, it still needs editing, bugfixes, more checks, ... But I think it should work?

The distance is something different, it has to do with the x, y and z coordinates. There are a few threads around here, just search for them.
Silox
S2 licensed
Translated for you guys:

He is searching for a cruise system, let's all wish him good luck!

Good luck, buddy!

Here you go: http://www.lfsforum.net/showthread.php?t=43103

Well, all you actually need is a brain and some reasoning needs to be done to configure it properly... Just try out some stuff.

You'll need this to change some stuf in the sourcecode:
http://www.microsoft.com/express/vcsharp/Default.aspx

Quote from Shadowww :You can make InSim cool by putting it into refridgerator.

You lolled me.
Last edited by Silox, .
Silox
S2 licensed
Aangezien je een hollander bent kan ik maar even zo een vraag stellen:

Naar wat ben je precies op zoek? Ben je op zoek naar een InSim zoals LTC enzo hebben of zoek je een puntensysteem of ben je gewoon op zoek naar de lapper waar je records op worden getoond?

For the other people:
I asked him in dutch (it seems his english is not that good) what kind of InSim he was looking for...
Silox
S2 licensed
I has a fr34k1n cewl 1 !!!!1&&!!!@@"
Silox
S2 licensed
Quote from MMD_NYD :hmm, my friend was writed in this forum, and get the mod, but now my friend is my enemy

You're going to run a cruise on a demo server?

Use the search button, there is a cruise InSim available to download somewhere...
Silox
S2 licensed
We only have 2

Lapper by Gai-Luron (Just because you can't have a server without it running!)

FRPS RaceSystem by Silox (aka myself).
Silox
S2 licensed
Quote from KuHS :Ok, i've got it, but what i would modify?

Your MCI handling code.
Silox
S2 licensed
Quote from Rotareneg :I suspect the answer is no (as it's not in the InSim.txt manual) but I figured I'd ask anyway... Is there anyway to detect if the driver is pressing the look keys/buttons?

I have no idea but you could use the InSimSniffer to check if an InSim recieves a package when you look left / right. It's here on the forum somewhere.

Linkie: http://www.lfsforum.net/showthread.php?t=60417 Made by DarkTimes
Silox
S2 licensed
Quote from sinanju :
I think you're allowed maximum of 200 buttons (?) on any InSim application

That would be 255 (256?) because (in LFS_External) the ButtonID's get sent through a Byte, which can't be larger then 255 (256?).

But anyway, great!

I wonder what happens if you move while the countdown is counting?
Silox
S2 licensed
Quote from sinanju :You also need to think about phone-like texting variations, such as
b4st4rd, p1ss, pr1ck, etc.

Yeah, I had that in mind but if you get kicked for pr1ck, but not for PRI1CK I would have to add an immense list which would slow the lapper down a bit.

Gai-Luron, I also have a rather more annoying and important bug:

In the last week we found out that more then 9000 pb's got cleared from the PB.txt file. We started this month with over 13000 pb's but now there are only 4000 left. We haven't made any changes to the file or to the lapper. Is there a possibility that the lapper cleared them or that some bug has occured?
Silox
S2 licensed
Hi Gai-Luron,

We run our FPRS Demoserver now with a huge swearlist that is located in an external file. We pointed to that file through the config and all works fine.

There only is a single problem:
In the swearlist we have the word 'bastard', just as an example. When someone shouts 'bastard', he gets kicked for swearing. But when someone shouts 'Bastard' of 'BASTARD', they don't get kicked. I think a simple .ToLower should do the trick here?
Silox
S2 licensed
You forgot a " after the username

If you want that only admins can use it, you can check through: MSO.Isadmin = 1
Silox
S2 licensed
Great application DarkTimes, I sure will use it!

I'm sure this will help (new) programmers encovering new packets and more information.
Silox
S2 licensed
Quote from Vego :I have one more question This is possible to set with insim time which player must to wait on start line (layout)? Lfs set it automaticly but i want to have a control at it. I can make a normal timer, but lap time will start before player start

So you want a longer countdown to start the race?

If so, I don't think it's possible... Well, you can try to build barriers with a layout to block everyone on the start grid but I don't think you can change that.
Silox
S2 licensed
Quote from bunder9999 :put the /insim command in your server's .cfg file.

you might be able to do the same on the client-side, never tried.

^ Best & easiest solution.
Silox
S2 licensed
Maybe an easier solution is to make a function called update() that loops through the connections list and puts the results into the textbox... This function would look like this:

'Just some rough code
function PlayersUpdate()
textbox.text = ""
for each name as string in connections()
textbox.text += connections(i) & vbcrlf 'Vbcrlf if you want to begin a new line with each player
i += 1
loop
i =0
end function

And just add PlayersUpdate() whenever someone leaves / joins the server.

For a beginner this is (yes, slower) but also easier to understand.
Silox
S2 licensed
wellisuggestyareadsomturotials'boutsettngupadedictdsrver
FGED GREDG RDFGDR GSFDG