The online racing simulator
Searching in All forums
(941 results)
PoVo
S3 licensed
Ugh... as usual I'm having trouble setting this library up in Eclipse. I added the external JAR file, copied code from the examples, compiled to JAR, tried to launch it using "java Compiled.jar" and it says "Error: Could not find or load main class VortexDrift".

Any ideas?
PoVo
S3 licensed
Awesome work, will check it out.
PoVo
S3 licensed
Me gusta.
PoVo
S3 licensed
Quote from Scrabby :Sounds pretty good!

I'll try to make a video tomorrow of the sound mine makes...

*FART* *FART* *FART* *FART*

lol jk.
PoVo
S3 licensed
Yes sir, I grant you the permission to switch it off.
PoVo
S3 licensed
Quote from Antonio_Jurkic :Yes i have, i"m PRO in the game!

So are all the other LFS players.
PoVo
S3 licensed
Fins are high
PoVo
S3 licensed
The thing I hate about these sites is that little information is given about the game.

The most worrying thing is, will my PC be able to run the game?
PoVo
S3 licensed
Quote from Dygear :

<?php 
    
// Registers a callback method.
    
protected function createTimer($callback$interval 1.0$flags Timer::CLOSE$args = array())
    {
        
# This will be the time when this timer is to trigger
        
$mtime microtime(TRUE);
        
$timestamp $mtime $interval;
        
        
# Check to make sure that another timer with same timestamp doesn't exist
        
if (isset($this->timers["$timestamp"]))
        {
            
$this->createTimer($callback$interval$flags$args)
        }
        
        
# Adds our timer to the array.
        
$this->timers["$timestamp"] = new Timer($this$callback$interval$flags$args);
    }
?>


The idea of using a recursive fix is much better than what I did! But your fix still has a mistake. Even if you call createTimer again, you still create the timer.

Here's it fixed up:

<?php 
// Registers a callback method.
    
protected function createTimer($callback$interval 1.0$flags Timer::CLOSE$args = array())
    {
        
# This will be the time when this timer is to trigger
        
$timestamp microtime(TRUE) + $interval;
        
        
# Check to make sure that another timer with same timestamp doesn't exist
        
if (isset($this->timers["$timestamp"]))
        {
            
$this->createTimer($callback$interval$flags$args);
        }
        else 
        {
            
# Adds our timer to the array.
            
$this->timers["$timestamp"] = new Timer($this$callback$interval$flags$args);
        }
    }  
?>

prism_timers.php bug.
PoVo
S3 licensed
Hi,

Today while testing my PRISM plugin, I noticed that sometimes 1 of my 2 timers stops randomly.

After investigating the issue I came to a conclusion. When the timer is created it adds it to an array of timestamps sorted by timestamps themselves. If a timestamp is being added, and another times with the same timestamp exists in the timers array, it is replaced and stops running.

Solution (can be probably neatened up but I suck at PHP):

<?php 
// Registers a callback method.
    
protected function createTimer($callback$interval 1.0$flags Timer::CLOSE$args = array())
    {
        
# This will be the time when this timer is to trigger
        
$mtime microtime(TRUE);
        
$timestamp $mtime $interval;
        
        
# Check to make sure that another timer with same timestamp doesn't exist
        
if (isset($this->timers["$timestamp"]))
        {
            
$timestamp $mtime $interval 0.01;
        }
        
        
# Adds our timer to the array.
        
$this->timers["$timestamp"] = new Timer($this$callback$interval$flags$args);
    }
?>

Basically if the timestamp already exists, it adds a further "wait" of 0.01 seconds to make sure it doesn't replace the other timer.

After using this createTimer function, the problem goes away!

I was thinking of posting this to GitHub, but since my fix isn't so neat I am posting it here.
PoVo
S3 licensed
Heal XRT
Hurt RAC
PoVo
S3 licensed
What happens when we only have one car? "Heal car Hurt car"
PoVo
S3 licensed
Quote from PartyBoyU :still cold here 9am and its -28C god damn

Dat y i love eastern europe
PoVo
S3 licensed
Heal XRT
Hurt BF1
PoVo
S3 licensed
Ireland, why y have no snow?!
PoVo
S3 licensed
Heal XRT
Hurt BF1
PoVo
S3 licensed
Is so unknown that he lives in default.
PoVo
S3 licensed
Has no rights on LFSF
PoVo
S3 licensed
He doesn't notice the car is upside down in his avatar.
PoVo
S3 licensed
Quote from S14 DRIFT :Thanks Captain Obvious. I know what it means, just like swag but I don't think it's a good word and, just like the word swag, makes you a douchebag.

And I know what painting your winter wheels to the same colour as your hair means. And guess what? I don't think it's a good thing, and it just makes you look like a douchebag.
PoVo
S3 licensed
Swag
PoVo
S3 licensed
Quote from Bose321 :Might been a while since I worked with insims, but perhaps I could help you. Your idea's don't really sound that revolution to me but it seems you are determined.

InB4daBose
PoVo
S3 licensed
Quote from Klutch :I don't remember writing this.

Because it was written by Kozlov and not you.
PoVo
S3 licensed
Quote from Töki (HUN) :

Pretty much the same here except I use stock wallpaper
PoVo
S3 licensed
To download paid apps from the Android Market, you must add a credit card to your account so you can purchase the apps.

IIRC there are no top up cards available for the Android Market.
FGED GREDG RDFGDR GSFDG