The online racing simulator
#1 - PoVo
Streets for cruise servers on Z30+ patches
Hi,

I've been using the JS+HTML drawer, to make my streets for cruise applications.

I have only noticed now that most of coordinates are off-scale and not accurate.

Is there any other way of making those streets?

Thanks.
You could use path from the other tracks based off the map to make the track names. It would provide a pretty high level of accuracy as well.
#3 - PoVo
And how would I go about doing that?

I've downloaded all the PTH files for Aston.

I also downloaded your PHP PTH File Parser, although I couldn't really figure out how to use it.

Also, would I need the NLP packets to for the Streets, or would MCI suit?

Thanks.
#5 - PoVo
Quote from denis-takumi :http://www.lfsforum.net/showthread.php?t=73923

tool and c++ function to find point in polygin

I used this, but the coordinates are off-scale.

While driving on some drawn polygons, I noticed that some areas aren't detected.

Then after driving on another part of the track, I realised that the street shouldn't go as far as that part, and it turns out the coordinates are off-scale.

I tried moving them and so on but it wouldn't work

/** streets **/

int X = pack_mci->Info[i].X/65536;
int Y = pack_mci->Info[i].Y/65536;



for (int g=0; g<StreetNums; g++)
{
if(Check_Pos(Street[g].PointCount,Street[g].StreetX,Street[g].StreetY,X,Y))
//if (Node >= Street[g].NodeBeg and Node <= Street[g].NodeEnd )
{
if (players[j].StreetNum != g)
{
players[j].StreetNum = g;
btn_street(&players[j]);
}
}
}


/** steets **/


work good. i will run my server u can test it

search for RUSSIAN CRUISE
#7 - PoVo
Thanks to denis-takumi, I have solved my issues with the X, Y method.

Quote from PoVo :Also, would I need the NLP packets to for the Streets, or would MCI suit?

MCI, you need to know the cars X & Y position on the track. Node positions won't help you on the open configs.

FGED GREDG RDFGDR GSFDG