The online racing simulator
Searching in All forums
(26 results)
1
AymanHilal
No longer welcome
Quote from asyed :Everything seems fine, look on his other screenshot, not blurry at all.

No disrespect to the creator if the game is supposed to look like this, but the game looks awful compared to the pictures. Also my PC is capable of pulling 300-400+ fps on vanilla LFS.

If there's anything i can enhance the looks, let me know.

Thanks!
AymanHilal
No longer welcome
Quote from asyed :Do you have anti aliasing + post processing shader disabled? It should be working fine then, sometimes DOF can do that due to the fact that menu screens are 2d

Yup, I have them both turned off.
AymanHilal
No longer welcome
Am i doing something wrong?



AymanHilal
No longer welcome
Quote from Yisc[NL] :I've created this little test-script for streets, tested it and it's working as intended.
The 'test_street' is situated down the pitlane of track BL1 (see attached screenshot).


<?php 
CatchEvent OnLapperStart
()
    
OnLapperStart_test_street();
EndCatchEvent

Sub OnLapperStart_test_street
()
    
$street_width=5;
    
$start_street="-40,300";
    
$end_street="-14,373";
    
$street_values="".$street_width.",".$start_street.",".$end_street;
    
RegisterStreetAction"test_street","BL1","".$street_valuesEnterStreet LeaveStreet );
EndSub

Sub EnterStreet 
($userName)
    
SetCurrentPlayerVar"current_street"GetCurrentPlayerVar"idCurrStreet" ) );
    
PrivMsg "^7You are now driving on: " GetCurrentPlayerVar"current_street" )  );

Endsub

Sub LeaveStreet 
($userName)
    
PrivMsg "^7You have now left: " GetCurrentPlayerVar"current_street" ) );
    
SetCurrentPlayerVar"current_street""" );
Endsub
?>



Now i see what you did there! it's kinda strange since it acts a bit different that ZoneAction.
Thank you!
AymanHilal
No longer welcome
Quote from Bass-Driver :what happends if you add the leavestreet sub routine?

Nothing as well.
AymanHilal
No longer welcome
Alright, let me break this down for you.

<?php 
RegisterStreetAction
("Highway","AS5X",10,-620,-259,-620,-323,HighwayEnter,"");
?>

Doesn't work, I've received an error saying incorrect number of parameters, so I double checked and saw that weirdly, RegisterStreetAction doesn't use ; at the end.

So i removed it and this is how it looks.

<?php 
RegisterStreetAction
("Highway","AS5X",10,-620,-259,-620,-323,HighwayEnter,"")
?>

That worked, so I created the HighwayEnter sub, added a privmsg debug to see if it's recognized, but there's no output at all once i drive in the area i registered.. I tried tinkering with the syntaxes in the RegisterStreetAction, ended up with

<?php 
RegisterStreetAction
(Highway,AS5X,10,-620,-259,-620,-323,HighwayEnter,"")
?>

which also worked, but there's no output from the sub that i created already. I know how to set zones, timers, subs and everything, but since RegisterStreetAction is new, and what i feel like is completely bugged out, i have no idea what's going on.
AymanHilal
No longer welcome
RegisterStreetAction now works.

But it's not identified by the subs i guess...

Sub HighwayStreet($userName)
PrivMsg("entered highway!");
EndSub
AymanHilal
No longer welcome
Quote from Yisc[NL] :I've justed tested my 'CfL - Street registration system' and it seems to work nicely.

This the GUI to define the street:



After I pressed 'Store street' the actual code that's happing is shown on Lapper console:



When I enter the street, the HUD is showing in which street I am and what the maximum speed is:



And when I left the defined street, the HUD is cleared again:

Huh? it doesn't work for me at all, even getting the source itself from danny didnt work... what did you write exactly? (nvm dont reply to this, pics finally loaded. i'll post update to see if it will work)
[Solved] RegisterStreetAction() help
AymanHilal
No longer welcome
Hello all!

I'm nearly finishing off my cruise script that is running by LFSLapper 7.0.4.10
So i'm trying to add street names, i know registerzoneaction could work, but that would be too much of a hassle if there is another way to identify a street, so Bass-Driver told me that lapper has registerstreetaction since 7.0.4.7.

If you want to help me, the server is online everyday, which is called [SC] Cruise Server S2

I tried to use RegisterStreetAction("Highway","AS5X",7,857,-524,140,-109,HighwayEnter,"");
but it seems to crash everything and cause the rest of the script to malfunction...
I've literally copied and pasted the streetaction from the lfslapper changelog but it also malfunctioned. (From danny's changelog)

Am I only left out with RegisterZoneAction or is the streetaction bugged out?
Last edited by Bass-Driver, .
AymanHilal
No longer welcome
@t3charmy Somehow I feel like I created something that will cause wars and flames towards everyone now.

My apologies t3charmy, but I clearly credited you on my help tab @ insim ver, I used couple of your script to get me going.

Did you really name your server SC cruise? If so, I really didn't know that. It's pathetic to steal someone's server name and call it as original. But I didn't know again

I don't steal and call it my work, buty auto save post I clearly said I used some of your scripts, have you forgot that?

And why would I post with the s2 account? It's my choice/decision on which account I post on.


Don't judge a book by it's cover.

Apologies again if I did a mistake towards anyone, therefore I won't post what I will do anymore as I slowly regret of posting this thread.

Thanks.
AymanHilal
No longer welcome
Quote from Yisc[NL] :I don't think that he is the person who needs to know what can be done with Lapper, given the things he already made with and done for Lapper.
You are right that almost anything can be done with Lapper, if you are willing to put the time in.
Good work from what I can judge off the screenshots, but a cruisescript isn't unique of course.

Oops!Big grin you're right, but I totally forgot to mention what I will be doing to my cruise script/addon!
judging by the pictures doesn't look unique. Wink

But what I'm trying to say is that my cruise script/addon will have some extra features other than the normal/usual cruise insims, meaning that my cruise script/addon will have some unique features in a lapper.

This is my to-do list
  • Finish cop and tow system
  • Add bank bonus
  • Adding unique type of jobs such as undercover officer ( will be explained below )
What i mean by unique type of jobs; I will try to add some type of drug-dealing jobs secretly, but they're not that easy to start a job like this. The undercover cop will sign up for anti-drug job while they're undercover, they will get a message saying whoever's trading, selling or buying drugs; if the seller was caught, a chase will start. If the suspect escapes he will have a payout of 500 - 1,000 and the under-cover officer will have the double.

This type of job will not be available everytime, i might make the job available every 3 hours or so.
Of course i will add some other new type of jobs such as road cleaner, etc. Instead of the old delivery jobs. Smile
Last edited by AymanHilal, .
AymanHilal
No longer welcome
Quote from Bose321 :so unique
much lapper
such care

"Such care" not sure if you really don't care or being sarcastic.

But i made a post of what you can really do with lapper if you put some effort into it.
Though, if you really don't "care" then why waste your time writing a useless comment?
AymanHilal
No longer welcome
Oh, by the way. I am currently working on the bank bonuses, any help and tips are appreciated, questions are welcome as well.
Sneak Peek Of A Unique LFSLapper Cruise.
AymanHilal
No longer welcome
Hello LFS Community!

After almost months of my cruise addon development, why not spice things up and post some sneak peeks of my cruise addon? Wink

I am playing on an S2 server with Bass-Driver @ my own server which is called [SC] Cruise Server
You're free to join to test the LFSLapper Cruise.

Possibly one of the first servers to run a full cruise in a lapper.







Oh sh*t! You got me, I'm cracked!
No, you silly. I have a second hand S2 account.
Last edited by AymanHilal, .
AymanHilal
No longer welcome
Easy fix!! Who said i need a button to save stats, it turns out that c_save function needed some adjustment, and there's no need for auto-save! Come on, Big grin LFSLapper can hold a lot of stuff and I already almost squeezed in a full cruise in a lapper without performance issues thanks to @Bass-Driver with his little help of Lapper modification. Big grin

I will hopefully release some screenshots of my cruise addon.
AymanHilal
No longer welcome
Quote from T3charmy :I believe in SetUserStoredValue you missed a parameter.

I can't remember been 6 years since I used LFSLapper, but I think it should be SetUserStoredValue(User, Key, Value);

I'm assuming you're using code from my old Cruise plugin(function names line up, you're having the same issue as my old system had in the last release i made).

Exactly!! I wouldn't have done anything without your old cruise plugin! Big grin
Anyways, about the parameter, i'll give it a shot, thanks!
[Solved]LFSLapper Auto Save
AymanHilal
No longer welcome
Hello LFS Community!

After almost "long" development of my cruise addon, I decided to release my "private" server to public and test how it would perform.

So far, 5 people got into the server and the auto-save was working perfectly fine; but after 5-6 players the auto-save refuses to save and gives an error saying:

".\default\.\includes\.\cruise.lpr" at line #1622
Time Out in Event or Sub 8000 ms
Function 'c_save' script aborted"


Yes, I changed the timeOutScript to timeOutScript=8000; But that seems doesn't help at all. My server reached 20 players and the stats just seem to fade away like nothing happened.

Not only that...

I have another big issue. "Of what i think"

#+-------------------------------+
#|On disconnect |
#+-------------------------------+

CatchEvent OnDisConnect( $userName, $reason )
#This is an example code of how the stats reset.
SetUserStoredValue("Cash", GetCurrentPlayerVar( "Cash" ) );
EndCatchEvent


When a player disconnects; this happens.

"You can't use GetCurrentPlayerVar in this context, not a player event
Function 'ondisconnect.\default\.\includes\.\cruise.lpr-430' script aborted"


Well... My auto-save saves the stats every 5 mins and 8 seconds because of the timeOutScript. But what about on disconnect ... ? :/

Any help is appreciated!

P.S: If you want screenshots of my cruise-addon just type down below!
Last edited by Bass-Driver, .
AymanHilal
No longer welcome
Sure thing, PM me with your skype name or whatever you have.
This can help me faster up my cruise plugin development since I am the
only one who's doing all of it.

I'll also be sure to learn a bit of C# so I can modify LFSLapper when I'm in need! Big grin
[Solved] RealTime GUI
AymanHilal
No longer welcome
Hi Guys!

Lately i've been creating a cruise plugin for LFSLapper, results are great but not perfect.
The issue is my thread before this LFSLapper GPS I was told that Real-time measuring/gui update is not possible until there's a change to the original LFSLapper.exe which requires C# skills.

I've tried many ways to make the cruise GUI a real-time GUI but I failed miserably.
I thought of making the GUI update itself by the player moving; Example:

$distToDo = 1;
CatchEvent OnDistDone( $userName )

#other codes are here but are private till I think of a release.

cruise_hud( $userName );

EndCatchEvent

It kinda works which also made the GPS real-time measured, but the issue if there's more than 1 player in the server, the insim would either crash or delay/lag.

I tried RegisterScheduleAction but I did not understand the syntax.

Any help is appreciated. I'm trying to squeeze in a full cruise in a Lapper with all possibilities. Smile
Thanks for reading.
Last edited by Bass-Driver, .
AymanHilal
No longer welcome
WOW! This actually helped me massively, thanks a lot! very informative and helpful, I should credit you on my insim plugin for this amazing piece of information =)

Thanks again. really informative.
AymanHilal
No longer welcome
I'm kind of lost, apologies for my impatience, kind of frustrated. Face -> palm

I have tried something like this.

Sub JobGPS()
IF ( GetCurrentPlayerVar( "JobTest" ) == "1" )
THEN
IF ( DistFromPlace($userName) <= "450" )
Return( "^7GPS: ^0••• •••" );
ENDIF
IF ( DistFromPlace($userName) <= "250" )
Return( "^7GPS: ^0••^3• •^0••" );
ENDIF
IF ( DistFromPlace($userName) <= "100" )
Return( "^7GPS: ^0•^2•• ••^0•" );
ENDIF
IF ( DistFromPlace($userName,) <= "50" )
Return( "^7GPS: ^2••• •••" );
ENDIF
ENDIF
EndSub

Sub DistFromPlace($userName)
$gpsplace = ToNum( ToNum( GetCurrentPlayerVar( "X" ) - ToNum( GetCurrentPlayerVar( "Y" ))));
EndSub

I want position from player to current destination. Wouldn't GetLapperVar Work?

Any information and help is appreciated! Smile
AymanHilal
No longer welcome
Thanks! I'll see what I can do with it. =)
AymanHilal
No longer welcome
I understand the calculation between drivers, but If i want to calculate the distance between the driver, and the position he wants to be in, how can be that done?

Eg: Player 1 is at KinderGarten and wants to escort "someones child" to his house as a job, therefore the GPS should identify the position of "someones house" between the driver.

If there's a way to identify the position as a driver, could it be possibly done?

Thanks.
[Solved] Cruise GPS
AymanHilal
No longer welcome
Hi all!

I started coding LFSLapper cruise plugin about week and half, and the results are quite amazing!
Reading and researching helps a lot! Wink

After I finished making jobs etc, I forgot to add GPS from player position to job/place position.
But it's quite hard for me since i started week ago.

I have tried something like this.

Sub JobGPS()
IF ( GetCurrentPlayerVar( "JobTest" ) == "1" )
THEN
IF ( DistFromPlace($userName,$argv) <= "450" )
Return( "^7GPS: ^0••••••" );
ENDIF
IF ( DistFromPlace($userName,$argv) <= "250" )
Return( "^7GPS: ^0••^3••^0••" );
ENDIF
IF ( DistFromPlace($userName,$argv) <= "100" )
Return( "^7GPS: ^0•^2••••^0•" );
ENDIF
IF ( DistFromPlace($userName,$argv) <= "50" )
Return( "^7GPS: ^2••••••" );
ENDIF
ENDIF
EndSub

Now
Sub DistFromPlace()

has nothing in it, and I'm afraid that LFSLapper doesn't catch the job position as i registered with RegisterZoneAction.

Any help is appreciated! Smile
Last edited by Bass-Driver, .
AymanHilal
No longer welcome
I don't think it's possible unless you get a grip hack to stop your tires from bursting.

I've seen many "Crazy" tweakers start from 0-200km/h in few sec without burning off their tires, probably grip hack will help you a lot but I don't think It's allowed in here, right?
1
FGED GREDG RDFGDR GSFDG