The online racing simulator
Searching in All forums
(535 results)
Gapmon plugin - learn me
misiek08
S3 licensed
Hi!
I don't understand few parts of gapmon plugin code. Can you explain me it?
I'm talking about:

<?php 
$this
->race[$NPL->ReqI] = array(
?>

Shouldn't it be: $NPL->PLID?

<?php 
if(!($NPL->UCID 6))
?>

Lol, why?

<?php 
$BNF
->SubT(BFN_DEL_BTN)->Send();
?>

Maybe BFN_CLEAR?

<?php 
if($diff <= 0)
                        
$BTN->ClickID(101)->BStyle(20)->L($this->BtnX-20)->T($this->BtnY+5)->W(15)->H(5)->Text(number_format($diff 10002))->Send(); # Bottom Left
                    
else
                        
$BTN->ClickID(101)->BStyle(20)->L($this->BtnX-20)->T($this->BtnY+5)->W(15)->H(5)->Text('+'.number_format($diff 10002))->Send(); # Bottom Left
?>

Maybe we can do it like this?:

<?php 
$BTN
->ClickID(101)->BStyle(20)->L($this->BtnX-20)->T($this->BtnY+5)->W(15)->H(5)->Text((($diff <= 0) ? '' '+').number_format($diff 10002))->Send(); # Bottom Left
?>

Am I right? If I'm not, explaim me, where is my bad, please.
I think, few plugins need to be fixed. It's great, that PRISM work without any problem, but watch plugins added to public release.
misiek08
S3 licensed
1 month in 3 years release time it's not much.
misiek08
S3 licensed
2 packets, 1 button and it will work. Read about InSim and try yourself.
misiek08
S3 licensed
IS_PLC too? Good. Sorry, my mistake.
misiek08
S3 licensed
1 req / 5s is not enough. I was working on a project which will need 2 req/s (with buffer system and cache system) but I don't wonna pay anything for that, because the project is free too.
@Victor - maybe you will allow me and Dygear to make an LFSW relay. It will work this way: Someone is not using ident key. He enter his ident-key to our system. Other services ask our system for stats and here is the magic: we have databse with keys and we can provide unlimited access for free on multi ident-keys. We can do it without publishing but if you will allow it, it will be legal and helpful for some ppl that don't have money to pay for LFSW API.
misiek08
S3 licensed
You can ask me for testing LFS Hosting. I have VPS in Germany, on 1.0.1. You can take LFS server and test anything.
misiek08
S3 licensed
Is anything from latest InSim update in PRISM? Maybe I'm wrong, but new packet has been released.
misiek08
S3 licensed
I use 1.0.1 and it's working good, no problems. Only the $DISPLAY shit and warning about X.

Im hosting on Debian Squeeze without X.
Live Gap and penalty master
misiek08
S3 licensed
Hi!
I'm requesting live gap plugin for PRISM and an penalty master plugin.

What is penalty master? You can give driver 5 S&G cars and he will be forced to driver penalty after penalty. When driver finish one penalty next will be forced on him.

Personally I can make second plugin (penalty master) but after 25th of Juni.
misiek08
S3 licensed
Give me your emails on PM. I have to make accounts for you on control panel.
misiek08
S3 licensed
Providing better quality need more preparing time. The test servers will be available on Monday. There were problems with test control panel so I'm going to finish first version of public panel. Sry for late, but I wonna make everything now to avoid problems in future.
misiek08
S3 licensed
If anyone will need more functionality can extend PRISM DB module.
misiek08
S3 licensed
You have to have an public IP and a computer that will work during hosting servers. If you have public IP and it won't work you have to open server ports on your router.
misiek08
S3 licensed
I wonna see module that read ini file for config and is singleton. More functions we can write self.
misiek08
S3 licensed
So not 65-66. It still have to be 0-65-66.

or

@down
Last edited by misiek08, .
misiek08
S3 licensed
Custom PTH can help checking lane on cruise servers for example.
misiek08
S3 licensed
I found DB class extending PDO which you can propably use. It need modification to support ini configs but it is good start:
<?php
class DB extends PDO{
private static $instance = NULL;
private $prefix;
public static $logA = array();

static public function gi(){
if(self::$instance == NULL ){
try{
self::$instance = new DB($dbsettings);
self::$instance -> setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}catch (PDOException $e){
die ('Blad polaczenia z baza danych: '. $e->getMessage());
}
}
return self::$instance;

}
public function __construct($configArray){
$this->prefix = $configArray['prefix'];
parent::__construct('mysql:dbname='.$configArray['name'].';host='.$configArray['server'], $configArray['user'], $configArray['pass']);
}

public function exec($query, $file, $line){
$query = str_replace('{{table}}', $this->prefix, $query);
return parent::exec($query);
}

public function query($query) {
$query = str_replace('{{table}}', $this->prefix, $query);
$start = microtime(true);
$result = parent::query($query);
$time = microtime(true) - $start;
DB::$logA[] = array('query' => $query, 'time' => round($time * 1000, 3));
return $result;
}

public static function printLog() {
$totalTime = 0;
echo '<table border=1><tr><th>Query</th><th>Time (ms)</th></tr>';
foreach(self::$logA as $entry) {
$totalTime += $entry['time'];
echo '<tr><td>' . $entry['query'] . '</td><td>' . $entry['time'] . '</td></tr>\n';
}
echo '<tr><th>' . count(self::$logA) . ' queries</th><th>' . $totalTime . '</th></tr>\n';
echo '</table>';
}

public function __destruct() {
}
}

misiek08
S3 licensed
Thanks. You can delete topic.
misiek08
S3 licensed
0.3.4 version is partially what I was waiting for. IS_CON packet and IS_RST changes added to PRISM. So now I'm waiting only for including prism_database module. I think, I gave you an DB class that extends PDO. It can work as prism_database module. DB class is an singleton, you can use it by writing:

$db = DB::gi();

misiek08
S3 licensed
Servers will be running on Debian 5. Now it's VPS so I think production server will work better than this, we will see. So, 3 servers left.
misiek08
S3 licensed
This project is an awesome idea. How is InSim work going? Do you need any help? PM me if yes. I had the same idea for new type of fun in LFS but I'm waiting for next stable release.

Cooperating will be good for us (we can both learn from others) and for project (faster development and new, better addons).
misiek08
S3 licensed
BLOBO - my master. Thanks for this page, I thought there is page like that but I didn't find it.

So now when I have results I have 5 servers for testing. The servers have only start/restart/stop in control panel (production panel is not installed - that are only tests). Config and everything else you can modify by FTP. Now you can't install Lapper/Airio, this will be available in the future.
Test will start on 18.05. Want anyone to test the service? Test will take 2-3 weeks.
misiek08
S3 licensed
The host are working propably non-stop now. 1st IP is my VPS, 24/7 99.999%/month for last 6 months. 2-3 are test IPs from 2 locations in Poland, but on them are Counter-Strike servers working for someone's client so that IP should be available every time too.
misiek08
S3 licensed
First is Germany. 2,3 are Poland.

I see only 1st and 2nd location will be good for hosting servers.
Waiting for more results to confirm this.
Testing new service
misiek08
S3 licensed
Hello!
I'm going to sell LFS servers with 99% SLA (500servers.com have problems with that) and without lags (50..... lags on some servers very bad). To do it I need you to ping few IP to select best location for servers.

Please ping those IP's and paste here results:
62.75.188.55
153.19.129.23
213.108.81.186
FGED GREDG RDFGDR GSFDG