Ok, if you could explain this part to me. Should it not be that the Road and Limit would be giving me the delta from that of the center of the node's X & Y? There by all I should have to do is add them to the X & Y coords to get the information I need. Or am I missing some bit of information.
I'm working a something for LVS. I'm just not getting all of the parts down in my head and it's confusing me a little bit.
So, let's think it out ... We need to know if the player is in node's polygon. To do this we need to get each node's polygon, and to do that we need to load the pth file. So we are going to need to know what track we are on, for this we are going to have to hook into the State packet (IS_STA). We are also going to need to have the pth files some where that is known. (I've made it so that they are stored in $PRISM/data/pth.
<?php public function onTrackChange(IS_STA $STA) { $this->PTH = new PTH(ROOTDIR . '/data/pth/' . $STA->Track . '.pth'); } ?>
Now that we have that down, we need to know the Node the player is currently in, as well as the player's X & Y coords. For this we can only hook into the MCI packet, as it is the only packet that offers this level of detail.
<?php public function onMultiCarInfo(IS_MCI $MCI) { foreach ($MCI->Info as $Info) { if ($this->isInPoly($Info->X, $Info->Y, $this->PTH->Nodes[$Info->Node]->toPolyRoad()) continue; # They are within the node. # If we get here, then they are NOT on the track. } } ?>
I am going to update the toPolyRoad() function to the Node class within the PTH module so that the code really is as simple as that.
Speaking of those changes to the Node class, here they are.
I tend to shy away from adding a property that does not belong there, but I agree that the information should be more flexible. I think in the case you described, there will be a proper fix for it in 2.0.0 as you can say how you want the data given to you.
I'm just pissed because they are messing with the best thing in years. We have it on the BBC, so there are no commercials, we have Martin Brundle and David Coulthard, arguably the best duo since Murry and Martin. More then anything, we are losing Martin and David for half the season, and I just don't know why they felt the need to do this. Just when it get's to be great, they have ruin it.
S2Y version SMX meshes and PTH files, includes all but the AS7 and AS7R Paths. Are you ALSO looking for the older versions of the paths so that you can see what was updated between versions if anything?
@Victor & Scawen, you're missing the AS7 and AS7R path files from the SMX_PTH_S2Y zip, can you please advise.
As with any project there must be a planning stage. That and no one has said that they are actually going to do this. I've expressed an interest, and that's why I keep on replying to this thread. Anyway what's wrong with having ideas and sharing them?
DoP? It's defiantly possible, but each car's driver would have to be known to the InSim application, so that when a new driver comes in they can take over that car's position and continue to move the race forward for that car.
I think that the only way to do the properly is by setting the server into practice mode, and allowing the InSim application to take over race control completely. This would allow for example things like a warm up lap, and a cool down lap.
The Black Screen AA bug is a known issue that seems to happen on more then just Intel IGPs. I have the same problem with my i3-2100T using a HD 1000. Not sure if the bug lays with LFS or with Intel Drivers, but I've heard this problem also be reported on some nVidia chips as well. I'm about to get an AMD 6950 and I'll let you know if the AA problems happen on AMD GPUs.