The online racing simulator
Searching in All forums
(931 results)
Fire_optikz001
S2 licensed
Quote from Dygear :Cruse Plugin.

wouldn't mind helping with that :o
Fire_optikz001
S2 licensed
Quote from Dygear :It was quicker .



Not at this very second, not without modifying the IS_BTN class. (Unless I fixed it and forgot.)

also double checking ... i can use any php function in the script?

and how to make my own plugin
Fire_optikz001
S2 licensed
i was wondering why u use


<?php 
        
if ($M == '!thetime' OR $M == 'thetime' OR $M == '!time' OR $M == 'time')
        {
            
$MTC = new IS_MTC();
            
$MTC->PLID = ($p->PLID) ? $p->PLID NULL;
            
$MTC->UCID = ($p->UCID) ? $p->UCID NULL;
            
$MTC->Msg 'The time is: ' date('H:i:s') . ' server local time';
            
$this->sendPacket($MTC);
        }
?>


<?php 
switch ($M) {
    case 
'!thetime': case 'thetime': case '!time': case 'time':
            
$MTC = new IS_MTC();
            
$MTC->PLID = ($p->PLID) ? $p->PLID NULL;
            
$MTC->UCID = ($p->UCID) ? $p->UCID NULL;
            
$MTC->Msg 'The time is: ' date('H:i:s') . ' server local time';
            
$this->sendPacket($MTC);
        break;

}
?>

also is there a way to show buttons?
Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
Quote from Fire_optikz001 :

<?php 
Global $something;
CASE 
"!test1":
$something "blah";
example(0,$userName.$something);
BREAK;
CASE 
"!test2":
$something "hahaha";
openPrivButton$userName.$something,25,28,150,10,5,-1,0,"^2Commands list"example );
BREAK;

Sub example$KeyFlags,$id  )
$username subStr$current_car,0,StrLen($something) );#test 1 will have strlen of 4 test 2 will have 6
privmsg("your username: ".$username);
EndSub
?>


there is something to start you off with ... has major limitation but it should work

^^^ thats the best code i could think of
Quote from Bass-Driver :thx Fire_optikz001

i have made some test with: trim( subStr( $id,11 )
and now i know how it works. and the code is works now.

but i still dont have a answer:

is it possible to combine these functions in a sub??:


-U can go to a sub when u click on it:

Sub example( $KeyFlags,$id )
EndSub


-And u can go to a sub when u fill in a command like:


Sub example( $Username )
EndSub

CASE "!test":
example($Username);
BREAK;

Fire_optikz001
S2 licensed
Quote from Bass-Driver :Are u upset now because i didnt understood what u did.
i thought u was combine the 2 situations.
thx for helping

Global $something;
CASE "!test1":
$something = "blah";
example(0,$userName.$something);
BREAK;
CASE "!test2":
$something = "hahaha";
example(0,$userName.$something);
BREAK;

Sub example( $KeyFlags,$id )
$username = subStr( $current_car,0,StrLen($something) );#test 1 will have strlen of 4 test 2 will have 6
privmsg("your username: ".$username);
EndSub

StrLen = StringLength
see i learning

and i have discovered that this line caused the crashproblem

$set_car = trim( subStr( $id,11 ));
but i dont know where : trim( subStr( $id,11 )); stands for.
could u teach me what it means ??

trim removes spaces
Fire_optikz001
S2 licensed
Quote from Fire_optikz001 :

<?php 
Global $something;
CASE 
"!test1":
$something "blah";
example(0,$userName.$something);
BREAK;
CASE 
"!test2":
$something "hahaha";
example(0,$userName.$something);
BREAK;

Sub example$KeyFlags,$id  )
$username subStr$current_car,0,StrLen($something) );#test 1 will have strlen of 4 test 2 will have 6
privmsg("your username: ".$username);
EndSub
?>


there is something to start you off with ... has major limitation but it should work

Quote from Bass-Driver :i had 1 one question and 1 problem
pls dont combine them

i didn't... i used it as an example... god sorry for lending a little help maybe i wont next time >.>
Fire_optikz001
S2 licensed
Quote from Bass-Driver :<snip>


<?php 
Global $something;
CASE 
"!test1":
$something "blah";
example(0,$userName.$something);
BREAK;
CASE 
"!test2":
$something "hahaha";
example(0,$userName.$something);
BREAK;

Sub example$KeyFlags,$id  )
$username subStr$current_car,0,StrLen($something) );#test 1 will have strlen of 4 test 2 will have 6
privmsg("your username: ".$username);
EndSub
?>


there is something to start you off with ... has major limitation but it should work
Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
Quote from The Very End :there is no ETA when it's going to be released.

its in my sig...
Fire_optikz001
S2 licensed
Quote from maxbmx :It should be LFS version for Mac! I dont want install bootcamp Windows only for Live for Speed

yep same for me when i get my new mac ... just imagine how many more LFSers they would have if they sis a cross system game
Fire_optikz001
S2 licensed
reopening...
Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
Quote from CrAbStEr DrIfTeR :I have noticed this server is running yet again (was closed before) and was wondering, does anybody know who is hosting it? Shows that i am still and admin and with the closure of EDC was wondering about a name change for the server.

Problem is, its been so long that i have forgotten who is hosting!


If anybody knows the host, please, help me out!

Thanks,
Callum.

couldn't it just be simple enough to take the server ip and trace it back to the host?
Fire_optikz001
S2 licensed
Quote from Daviddabest :As an update:
You commented out the Mall

Otherwise working perfect!

yes i know cause it is no longer needed it was replaced ... reminds me i for got to include the layouts
Fire_optikz001
S2 licensed
Ok, 10.8.0.3 is now online

whats fixed?
  • Happy hour no longer spectates when it ends if you own the car your driving
Whats New?
  • Cruise_Settings.lpr(this has all of the settings that you can change)
what bugs are known?
  • when insim starts and it should be happy hour it does not start happy hour
http://T3charmy.net/LFSLapper-Cruise/
Fire_optikz001
S2 licensed
Quote from Daviddabest :I get the same as before,
Im guessing somewhere in LFS lapper starts with 5 laps and qualify 10


As an update happy hour end, boots the player back to pits so there is no car in race - even though own the car

yep i already fixed the bug for next update
Fire_optikz001
S2 licensed
Quote from Daviddabest :Thanks I'll try that,

If you need any help for the development, feel free to PM me.


Is their a way to show road names / current speed / road speed?

also

Is their a way to create jobs?

Ye i have been working on that, i think i will copy the node info from the other insim for AS5 and BL1
Fire_optikz001
S2 licensed
Quote from Daviddabest :Hi,
Thanks thats working perfect,

However I now have to set /laps 0
as it starts with 5 laps and qualify 10

oh right then add


<?php 
                            
IF ( $Mode == "Cruise" )
                            
THEN
                                Turn_Cruise_On
$userName );
                            ENDIF
?>

Under

<?php 
    GlobalVar $Mode
$Mode "Cruise";
?>

Next update i'll be including some settings such as car price varying, default start up mode, how often prices change
Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
Quote from emit-nl :Me neither
I hope Gai-Luron can fix this, that would be nice

@Fire_optikz001; Don't know why this is, but why do you need it? Can't you use a '-' or '_' instead of a ':'?

Regards,
Tim

no I'm trying to get currency and percentage of the input but it isn't working right
Fire_optikz001
S2 licensed
Quote from Fire_optikz001 :also you cant use {0:0.00%} in the languages for some reason

Quote from Fire_optikz001 :in 6.0.1.0 and 6.0.1.1 when you use the {0:C} stuff in the language things it just outputs the strings asif they were just entered as {0}

bumping this
Fire_optikz001
S2 licensed
Quote from Daviddabest :Hi,
Is there a way to start it with cruise mode set on?

Yes on start up look for


<?php 
    GlobalVar $Mode
;
?>

change it to


<?php 
    GlobalVar $Mode
$Mode "Cruise";
?>

Fire_optikz001
S2 licensed
Quote from sinanju :

Event OnDriftScore()
$DriftScore = GetCurrentPlayerVar("DriftScore")[COLOR=Red];[/COLOR]
$LastDriftScore = GetCurrentPlayerVar("LastDriftScore")[COLOR=Red]; [/COLOR]
EndEvent


well none of these codes will work unless you add what i added in red
Fire_optikz001
S2 licensed
Quote from Krayy :Just use the PlayFlags var add do a logical AND on it (&) against the value 1024.

nvm came up with this


<?php 
Sub ControlType
()
                
SetCurrentPlayerVar"ControlType""Wheel" );
        
$PitWork=splitToArrayGetCurrentPlayerVar("PlayerFlags")," " );
        FOREACH( 
$maVar IN $PitWork )
            IF ( 
$maVar["value"] == "Mouse" 
            
THEN
                SetCurrentPlayerVar
"ControlType""Mouse" );
            ENDIF
            IF ( 
$maVar["value"] == "KbStabilised" || $maVar["value"] == "KbNoHelp" 
            
THEN
                SetCurrentPlayerVar
"ControlType""Keyboard" );
            ELSE
                
$IsNotBlank 1;            
            ENDIF
        ENDFOREACH
EndSub
?>


Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
in 6.0.1.0 and 6.0.1.1 when you use the {0:C} stuff in the language things it just outputs the strings asif they were just entered as {0}
Fire_optikz001
S2 licensed
works fine for me
Fire_optikz001
S2 licensed
Quote from Tim NL :There is.


#################
#Control Allowed#
#################
# Racer flags
# "Y" = Yes
# "N" = No
# "*"" = Yes or No
# Local variable
#-------------------------------------------------------------------
$SwapSide = "*";
$AutoGears = "*";
$Shifter = "*";
$HelpBrake = "*";
$AxisClutch = "*";
$AutoClutch = "*";
$Mouse = "[COLOR=red]N[/COLOR]";
$KbNoHelp = "[COLOR=red]N[/COLOR]";
$KbStabilised = "[COLOR=red]N[/COLOR]";
$CustomView = "*";

Event OnNotMatchFlags( $userName ) # Player event
... do some thing
EndEvent


that's not what i meant .... i meant like


<?php 
IF( GetCurrentPlayerVar("Mouse") == "1" THEN
GlobalMsg
($userName." Is Using a Mouse");
ENDIF
?>

Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
i was wondering if you could add a way to check if a user uses a mouse wheel or keyboard to drive
FGED GREDG RDFGDR GSFDG