View Full Version : Streets for cruise servers on Z30+ patches
PoVo
19th June 2011, 20:51
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.
Dygear
20th June 2011, 02:39
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.
PoVo
20th June 2011, 06:50
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.
denis-takumi
20th June 2011, 13:28
http://www.lfsforum.net/showthread.php?t=73923
tool and c++ function to find point in polygin
PoVo
20th June 2011, 14:06
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 :(
denis-takumi
20th June 2011, 14:17
/** 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
PoVo
20th June 2011, 17:53
Thanks to denis-takumi, I have solved my issues with the X, Y method.
:thumbsup:
Dygear
20th June 2011, 18:13
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.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.