The online racing simulator
Searching in All forums
(934 results)
Racon
S3 licensed
Online in LFS
Quote from Evolution_R :...then the balance is disturbed.

Your idea of a good balance between two specific goals. Scawen's idea of a good balance (let alone which or how many goals he's balancing) may vary Wink

Quote from KeiichiRX7 :After trying the Formula 2000 Skip Barber, I can tell you something like the FBM on street legal tires would be utterly amazing.

This I would love, almost as much as I'd love to stick a set of knobblies onto a FXR and go churn up a field. RB4 field-hooning is great, but MOAR PWR! and all that. Tyre restriction is not a coding issue, just a matter of preference (Scawen's said before it's for realism, IIRC).

Quote from KeiichiRX7 :I get where Scawen comes from with "No new cars u til new tiremodel!", But c'mon.

That one's not just about priority, it's to avoid duplicated effort. The current cars have been extensively tweaked/tested to make the way they interact with the old tyre physics better (again, IIRC. I think he said he something along the lines of wallpapering over some tyre physics sins with car model hacks, but I can't find the reference). Long story short: there's more than the usual content development goes into putting cars into current-physics-version LFS, the extra time would be wasted effort if he did it before the physics. I don't fancy your chances of swaying him on this particular issue Smile
Racon
S3 licensed
Online in LFS
Racon
S3 licensed
Online in LFS
Her cuma yeni bir kilit açma anahtarı alırsınız veya geliştiricilere fazladan bir tane istemek için e-posta gönderebilirsiniz.

Google için özür dilerim türkçe tercüme Smile
Racon
S3 licensed
Online in LFS
Your PFL function looks to be using the flags that were set in the player's previous NPL, not the flags present in the PFL:
$C = $this->getPlayerByPLID($PFL->PLID);
//..
if ($C->Flags & 8)


You need to use the flags from the PFL directly:
if ($PFL->Flags & 8)


...or update the NPL variables first:
$C = $this->getPlayerByPLID($PFL->PLID);
$C->Flags = $PFL->Flags; // overwrite NPL flags with PFL flags
if ($C->Flags & 8)

Racon
S3 licensed
Online in LFS
Quote from JSHuiting :That would be great, but perhaps have it open as soon as you start the game, in like a small sub menu.

I'm an edge case, sure, but I see the things you see between starting LFS and choosing 'multiplayer' about once a month (only when a restart of LFS or the computer is needed).

It would need to be in with the server-list, I would think, in order to be visible most often. Perhaps it could be in both places, or functional in one place with a live preview in the other place. Plenty of options to play with if Scawen likes the general idea, anyway Smile
Racon
S3 licensed
Online in LFS
Sorry, I'd forgotten how this bit worked... it's been a while Smile

You get the player flags in the NPL packet when a player joins the track, and in the PFL packet if those flags change while you're already on track. The format is the same in both places.

If you watch both packets, you should be good Thumbs up
Racon
S3 licensed
Online in LFS
Quote from donatas.s :There is no errors, but it always says
> Gears: Auto, Clutch: Auto
No matter to which transmission I change

--

var_dump("Flags: ".$C->Flags);

string(11) "Flags: 1601"

1601 is 1+64+512+1024, so PIF_SWAPSIDE (1), PIF_HELP_B (64), PIF_AUTOCLUTCH (512) and PIF_MOUSE (1024).

If it's not catching the autoclutch flag from a flags value of 1601, I can only think that you forgot to copy all those defines you listed into your code? (1601 & 512) will be evaluated as true, but (anything & 0) will be false... and an undefined constant will end up being 0.
Racon
S3 licensed
Online in LFS
Yes, that's them. Lots of things to play with Smile

What I'm doing with the '&' is checking to see if that bit is set. So, 'Flags & 8' will be true if the autogears bit is set for that player, and false otherwise.

If your code above is working, then you can replace the message line with this to check:

<?php 

$gears 
$clutch 'No';

if (
$C->Flags PIF_AUTOGEARS)
  
$gears 'Yes';

if (
$C->Flags PIF_AUTOCLUTCH)
  
$clutch 'Yes';

$this->MessageToAll("Autogears: ".$gears.", Autoclutch: ".$clutch);

?>

Racon
S3 licensed
Online in LFS
If you know how to get at the $Flags variable then it's just the code below, but I'm afraid I'm not familiar with PRISM if you need help getting at it.

$autogears = $Flags & 8;
$autoclutch = $Flags & 512;

FGED GREDG RDFGDR GSFDG