The online racing simulator
Searching in All forums
(664 results)
kristofferandersen
S3 licensed
+1
kristofferandersen
S3 licensed
Quote from denis-takumi :Use LFS Polygon Draw to identify new areas (streets) without the use of nodes on opened track like FEX FEY (LFS Z30 or higher)
used jsDraw2D - http://jsdraw2d.jsfiction.com/
use FireFox, Chrome

Update:
add: json style output
add: multipoligon drawing

Site where u can draw polygons

GitHub

C++ code to find point in polygon


<?php 
x
,curent position

polyX
[] - array of X polygon points
polyY
[] - array of Y polygon points

polySides 
count of points

bool checkPosition
(int polySides,int polyX[],int polyY[],int x,int y)
{

    
int    ij=polySides-;
    
bool  oddNodes=false     ;

    for (
i=0i<polySidesi++)
    {
        if (
polyY[i]<&& polyY[j]>=y
                
||  polyY[j]<&& polyY[i]>=y)
        {
            if (
polyX[i]+(y-polyY[i])/(polyY[j]-polyY[i])*(polyX[j]-polyX[i])<x)
            {
                
oddNodes=!oddNodes;
            }
        }
        
j=i;
    }
    return 
oddNodes;
}
?>


a nice feature would be a list of "layers" if I can call it that. Just like in photoshop, once you've filled a Polygon in a layer, it'll stay in that layer, and if the layer gets deleted, the polygons in that layer will also disappear. Will also make it easier to use this tool.

EDIT: I tried to place some points and areas, and then press "Clear Previous Points", but nothing's happening.
kristofferandersen
S3 licensed
Quote from Racer X NZ :Smile That rates as an awesome sys admin response to a (l)user request, and it's from a programmer !!!

High five, man!
kristofferandersen
S3 licensed
I think that, if the devs added a feature like this. Some, if not.. more demo users would pay for s2.
kristofferandersen
S3 licensed
The timers are enabled, because this code works:
http://prntscr.com/9lvdl5

(enables in the Form1_Load event)
I've also tried to send the button without the variable and with UCID on 255.
kristofferandersen
S3 licensed
I'd recommend using InSim.NET.
kristofferandersen
S3 licensed
Read. The comments.
kristofferandersen
S3 licensed
Sounds interesting, I'll go there and try it out! Big grin
kristofferandersen
S3 licensed
You can set a static IP address, so whenever you turn off your computer.. The IP will be the same. Don't forget to lock the IP address on the router.

EDIT: Its not as simple as it sounds.
kristofferandersen
S3 licensed
You're no longer welcome, so I guess there's no point of telling you how.
kristofferandersen
S3 licensed
You keep asking all these questions.. Can you TRY to do it yourself?
kristofferandersen
S3 licensed
Quote from Yisc[NL] :
Quote from Andi1999 :Oh please help me, I tried a bunch of variations and nothing :|

Please Andi, stop begging for code, while you never show your own efforts made so far.
You reacted in a lot of topics lately and it's all about, I want this, I want that.
I have no problem with someone trying to learn things and asking questions along the way, but I do have problems with people coming in here, asking for a lot and not making any effort themselfs.
So show the code you have, tell us what error(s) you get and all that you tried to solve the problem.
Then people can point you in the right direction and others might learn from it as well, when they read the topic(s) now or in the future.

I think you need to read that again..
kristofferandersen
S3 licensed
I don't understand why you need a register/login system when you already have a login system for LFS itself. Maybe you're hosting a cracked server, maybe you're sending this message for someone else.. You're not getting my help for this.
kristofferandersen
S3 licensed
Quote from bekacercvaze :i need insim with 0.6G

Program one yourself, or keep building on those that exist.
kristofferandersen
S3 licensed
Scawen, as I said in another post. Nice work. But I noticed something when I went off-road.
Here:

https://youtu.be/pT4NwRdalEE
kristofferandersen
S3 licensed
Nicely done Scawen! Cheers!
kristofferandersen
S3 licensed
You're welcome.
kristofferandersen
S3 licensed
Quote from Dygear :You are never going to get help if you're going to be a dick.

that.
kristofferandersen
S3 licensed
You have to give us a little more information about the issue, a screenshot or something and what insim you are using.
....
kristofferandersen
S3 licensed
This sounds like you want the "Level" to count on the total distance, here's an example:


if (C.TotalDistance / 1000 < 50)
{
putyourbuttonhere("Level: 0")
}
else if (C.TotalDistance / 1000 < 100)
{
putyourbuttonhere("Level: 1")
}

...and so on by using the "else if" statement.
FGED GREDG RDFGDR GSFDG