The online racing simulator
Searching in All forums
(535 results)
misiek08
S3 licensed
It's very easy to do. Like @Kristi said you have to work with NLP packets (thus MCI is bigger and there is no reason to spend bandwidth and time).
1. Get race start time and set it to variable.
2. On every NLP packet check if (race time you set - actual race time < 5) then set laps to NLP->Lap + 1.

You can calculate actual race time by (time()-race start time).

There can be problem with 5 seconds when leader is near start/finish line because race can end too early (5 seconds). You can avoid it by additionaly checking Node and comparing it to start/finish node number or using completely different way.
misiek08
S3 licensed
It's not possible to add laps to someone's counter. It's possible to show or post message with laps amount but it won't be visible on replay (I think so).
misiek08
S3 licensed
When is the race?
misiek08
S3 licensed
I can't find linux binaries for nkpro server. Connection is not problem - I can show you statistics of file download or upload on this server or you can test LFS server if you contact me.
misiek08
S3 licensed
Thanks for you few good words. If anyone is interested I can rent you a server for 3-5 days for free, then you can test quality.

Now I support only SCP file management but it's no problem to run FTP access if it's really required.

P.S. I can provide panel demonstration as video (showing how it looks and how to manage servers).
misiek08
S3 licensed
It updates every 30 seconds during race. It's not really "live" but good, when you are posting it on website for many ppl.
misiek08
S3 licensed
Whats the slot price?
misiek08
S3 licensed
And 1 thing more. What do you think about overriding LFS GUI with tracker data? After TO, LFS will show last position and will count laps from 0.
misiek08
S3 licensed
Np, only to inform for another ppl.
misiek08
S3 licensed
PoVo - it was German location. Polish one has bigger ping for ppl from USA, but for Europe it's good.
Beta server hosting
misiek08
S3 licensed
Hi!
I want ask all of you for testing new hosting LFS.

Why?
Seeing how many problems makes 500servers.com, I would like to show you a new, cheaper and (hopefully) better alternative.

What's the price
Current price is 0.15 € / slot in Germany and 0.15$ in USA.

Where are the servers hosted?
1. Germany
2. Gdańsk, Poland

What if an problem occur?
In case of problems with the server you can ask me for money. I will calculate (month rate, days passed on this server) money that you should receive and I have 48h to send it back to you.

Additional InSim's
Lapper and Airio will be separate services. In the first month I'm not go to run these services. If all goes well, next month I'll start hosting them.

Payments, how to pay?
Now, I can only provide PayPal payments.
To buy server you have to make only few steps:
1. You send me money via Paypal with nickname that you have or you wonna have in control panel.
2. I have 48hours to check transactions and add money to your CP account.
3. You buy server in control panel and the server is ready for install and work in less than 5 minutes.

Why not automatic payments?
See the topic: Beta hosting. In the future it will be automatic.

Test?
I guarantee money back in first 30 days if something will be wrong with the server.

Any questions?
1. Send me an PM.
or
2. Send e-mail to: [email protected]
or
3. E-mail me: creating.www[atta]gmail.com (please put [BLFS] as topic prefix).

P.S. Site lfshost.eu will be hosting site but now more important are clients servers, not the site.
Last edited by misiek08, .
misiek08
S3 licensed
Okay. Few ppl tested service and everything was ok. Now I have production servers and I am able to host servers. Thank you all.

Topic: to close and/or delete.
misiek08
S3 licensed
Yeah. Can anyone rewrite plugin of boothy tracker to PRISM? It's only saving datas. Then we can work on this problem. I can provide server for testing it (LFS server and maybe prism too).
misiek08
S3 licensed
If we need setting temp. of tyres we have to contact Chudy_2001 and ask dev's for permission.
misiek08
S3 licensed
I think it will work only this way:

Driver's 1 PRISM (local) ---.
Driver's 2 PRISM (local) ---- PRISM on server
Driver's 3 PRISM (local) ---"

So drivers connect to main PRISM on server. This server instance will parse packets from every driver and from LFS Servers so it will have much to do.

Every solution is very hard to do and will take a lot of time. Some additions to InSim will help us, InSim programmers, and developers to make LFS more interesting.

Like I said somewhere else: if InSim will be allowed to set/get fuel, power, weight of car and maybe detailed damage (get and set, set to restore car after TO), LFS will be more interesting and this can give dev's time to develop S3 or new content for S2.
misiek08
S3 licensed
But then, every driver have to run PRISM on his computer. We need solutions that do not need any additional software on drivers computers.
misiek08
S3 licensed
So, we need extended InSim for that. Setting power of car and getting more damage datas. Setting fuel and getting it it's needed too, because we have to clone cars after TO.

Second thing is - AI can take car and go to pit. Here we need to an extended InSim to control server AIs or AIs on admin computer.
misiek08
S3 licensed
Post here an example and I will try to think about it. I think it's good to rewrite boothy tracker as PRISM plugin, because in PRISM you have button system and timers that will help with many things later. Please post situation very strictly, move by move. For example:
1. driver lost connection on 1:15
2. driver connect back on the server
3. Average time for lap is 1:45, add an 1:45+10% lap to team stats and stop the driver for (avg lap time - 1:15 (time on disconnect lap) * 10%) 3s in pits.
misiek08
S3 licensed
User bind's "/i kers" or "!kers" to button and then in plugin:
1. receive command
2. check user can use kers
3. if user can use kers set higher power and set timer for few seconds (it's can be setted up)
4. Timer is setting back the power

I know, that in real world you can control KERS and you dont have to use all the KERS power on 1 time but my version will be good too, it will change a lot of things in LFS, becuase we will be able to simulate car wear (GT) during the race lowering power by 0.001 or something like that. Tuning will be allowed too.
misiek08
S3 licensed
There's 1 problem. We are talking about Speed so it's bad point. Better will be:

<?php 
function onNPL($PLID){
 
$this->setPlayerPower($PLID$this->getPlayerPower($PLID)*1.2);
 
$this->setPlayerWeight($PLID$this->getPlayerWeight($PLID)*0.6);
}
?>

Setting speed is like nitro, so it's good too, but better will be this one above. It can handle nitro and KERS too with setting higher values with timeout for 3-5 seconds and setting values back again.
misiek08
S3 licensed
No! Im making plugins for CS and you need to set speed on a spawn (some ppl says that only on connect but on spawn is better).

<?php 
function onNPL($PLID){
 
$this->setPlayerSpeed($PLID$this->getPlayerSpeed($PLID)*1.2);
}
?>

misiek08
S3 licensed
It used avg. 2% of 1 2.9Ghz Core. I don't know about RAM, sorry.
misiek08
S3 licensed
So it's ok. User is entering my server, and he have 0.8 speed, and on your server he get's 1.2 speed. Same like in Amxx
misiek08
S3 licensed
Yeah, I didn't need extra validating because I was only setting query based on packet data and querying DB with it.
FGED GREDG RDFGDR GSFDG