The online racing simulator
Searching in All forums
(983 results)
Dygear
S3 licensed
Pushing a branch to git hub, thinking that everything is working, then realizing that in fact you forgot to run the application before committing and pushing to server. Because I thought to myself, there is simply no way that that could not work. Only to find out how wrong I could be when the bug reports started rolling in that the application fails to lunch at all. Not only did I publish an error, but now it's forever saved in the braches history because I'm stupid.
Dygear
S3 licensed
First off, help me is not a good subject title.
Secondly, this question can be answered the same way as setting up any InSim connection.
Dygear
S3 licensed
Quote from the_angry_angel :Source is in the repo, but yes it is Dygear's PTH parser.
https://github.com/theangryang ... r/build/gen-json-pths.php

I've never seen the glob function before, cool trick, I'll have to remember that from now on.
I should also mention, that the version you're using of the pth parser was last updated by Victor, most of that code is his.

Quote from misiek08 :@Dygear - is it possible you to make version that exports good coordinates? It doesn't look like basic mirroring points...

It's just a flipped Y axis.

So an update to TAA's foreach within the pth2json function would look like this:

<?php 
    
foreach ($pth->Node as $n)
    {
        if (
$i == $pth->FinishLine)
            
$data['startfinish'] = array('x' => $n->Center->X'y' => -$n->Center->Y'z' => $n->Center->Z);

        if (
$i $resolution)
            
$data['nodes'][] = array('x' => $n->Center->X'y' => -$n->Center->Y'z' => $n->Center->Z);
        
$i++;
    }
?>

Dygear
S3 licensed
Quote from misiek08 :I heard about PHP path problems, but here too? The track is wrong oriented. Look here: http://misiek08.mydevil.net:8082/

It's not a PHP problem, it's a DirectX idiosyncrasy.
Dygear
S3 licensed
If only, if only they had a HTML5, WebGL version of this game. Running linux, so I can't play it. Will download when I get home tho.
Dygear
S3 licensed
It's fired only once they are off.

Anything else requires parsing of the PTH files to find how long they have been off.
Dygear
S3 licensed
Quote from Krammeh :Shame there isn't a packet for that kinda of thing!

Is there something wrong with IS_HLV?
Cherry Picking Certain Fonts for Certain Characters
Dygear
S3 licensed
http://24ways.org/2011/unicode-range

I think we could all use this for the way LFS handles it's strings.

Come to think of it, it would be pretty cool to have an LFS Font.
Dygear
S3 licensed
Quote from boothy :Can you point me to where it says this on the FIA/F1 website?

Because I can see no stipulation in the sporting regulations that drivers of F1 cars require an FIA Super Licence, except in sessions at Grand Prix weekends (an Int. A licence is required for the young driver test). Kimi received one because he comfortably won Formula Renault UK in 2000 and completed the required distance in an F1 car.

Yeah, I'll try and dig it up later on, I read them last in like 2006 when I was running SimFIA, so I read EVERYTHING on that website to get an idea of what I wanted to emulate with SimFIA.
Dygear
S3 licensed
Quote from GreyBull [CHA] :There are no more stone-set requirements to request a Superlicense?

You need a super license to drive an F1 car period, unless you get special dispensation from the FiA. For example, Kimi did not have a super license when he was moving over to F1, and he had nothing that came close, but he was given one, as long as all drivers agreed. Richard Hammond was not given a super license, but was still allowed to drive the 2005 Renault because it was on a closed track, where he was the only one that was going to be out on it at any given time. As soon as you add other cars to the mix, you have to have a super license, because you have to have the permission of the other drives, or you have to of proved yourself in a lower series to qualify for an super license. This is all on the FiA website.

In other news, the F1 website is being DDoSed by Anonymous. Timing and Scoring is down, and they say it will be down for the whole weekend.
Last edited by Dygear, .
Dygear
S3 licensed
Quote from Victor :directx uses a flipped y axis. So it's normal to flip y in other applications.

Good to know.
Dygear
S3 licensed
Thank you!
Electrical Circuit Data Logger
Dygear
S3 licensed
I want to log the data of a positive lead, and a negative lead and record this data to a file. I want to get the pattern that the light goes on and off. Does anyone know what equipment I need to do this?

I plan on taking this data, and using Adrurino or phigets to recreate the pattern with a LED.
Dygear
S3 licensed
Hundredth of a second.
Dygear
S3 licensed
Thank you DarkTimes.

Now, regarding threads, I'm like the rest of you eagerly awaiting threading support within PHP. Once they have it, we will have it here to with PRISM.
Dygear
S3 licensed
You should be able to go down to microsecond increments. I'll look into it, but I don't have an ETA on any new updates.
Dygear
S3 licensed
Quote from MariusMM :Any ideas why it is actually 'vertically wrong'?

Honestly, I have no idea, Vic has always done it that way, and I never asked him why.
Dygear
S3 licensed
I think going with some empirical evidence would be a better choice. Take the MCI packet data, along with the CON packet data, and take a 'snap shot' of time of the MCI packet before and after the CON packet. Then with an application state if you intended to drive into the subject or not. See if you can find any patterns in the data.
Dygear
S3 licensed
The TINY_NONE packet is a keep alive packet. What he is looking for is the ISP_PFL packet, for player flags.
Last edited by Dygear, .
Dygear
S3 licensed
Once I fixed the buttons.
Dygear
S3 licensed
My suggestion is wait until the next release, 0.4.4. I've got a long list of bugs that have been fixed.
Dygear
S3 licensed
Quote from Flame CZE :Running 0.4.2.

Ok. I'll poke GeForz, see if he has any words of wisdom.
Dygear
S3 licensed
What version of PRISM are you using? 0.4.3 has a bug still and it will be fixed by 0.4.4 along with a whole slew of other bugs.
Dygear
S3 licensed
Quote from Victor :uhm, maybe in $this->$limitRoad[$NodeID] php thinks it wants the $NodeID'th character of the string kept in $limitRoad?
I wonder if that's only happening in your php5.4 though. I never saw that one.

EDIT - I pushed a possible fix to github. Still in the drawpath branch.

Yeah, odd bug. I'll take a look at your patch and let you know how it goes. I'm at work right now and I just got a call so I'll have to check it out later.

Quote from Victor :EDIT - I pushed a possible fix to github. Still in the drawpath branch.

Yep, that fixed it, but in me merging the changes, it broke the button interface again on dedicated hosts. So, I'm going to have to pin point where that problem is.
Dygear
S3 licensed
Quote from SiktEik :Oh ok. Thanks a lot. So i'll try PyInSim now... maybie other later. Thank's a lot

Python is pretty easy to learn and DarkTimes is a useful resource to have around on the forums when asking questions, he always does so in a timely fashion.

Quote from MadCatX :Keep in mind that these libraries were designed only to make talking to LFS easy, processing of the data you get from LFS still has to be done by you.

StikEik, this is something you have to take to heart. We can only give you the interface, the processing of information is up to your idea.

Quote from MadCatX :And there's of course PHP-based PRISM, which is what you might want to use if your InSim application will be strongly web-oriented.

PHP is not limited to web-oriented tasks, it really have opened its self up the the command line users and programmers in version 5. I will give you that PHP is mostly used on the web, and that point is even further compounded when you consider that PHP 5.4 has a web server built into it. But I feel that is an advantage.
FGED GREDG RDFGDR GSFDG