Searching in All forums
(931 results)
Fire_optikz001
S2 licensed
Quote from Gai-Luron :Release 5.9.2.3 -> minor update

send me feedback.


+-------------------------------+
|Changes from v5.922 to 5.923 |
+-------------------------------+
Files to replace From the previous version
- LFSLapper.exe
- Change in LFSLApper.lpr
old -> Event OnDisConnect( $userName )
new -> Event OnDisConnect( $userName, $reason )

1. Add new arg to event OnDisConnect
Event OnDisConnect( $userName, $reason ) # Player event
Look at const.lpr to view reason list
# Leave Reason on disconnect
const LEAVR_DISCO 0; # disconnect
const LEAVR_TIMEOUT 1; # timed out
const LEAVR_LOSTCONN 2; # lost connection
const LEAVR_KICKED 3; # kicked
const LEAVR_BANNED 4; # banned
const LEAVR_SECURITY 5; # OOS or cheat protection

example:
IF( $reason == LEAVR_DISCO ) THEN
privMsg( "Normal disconnect");
ENDIF
IF( $reason == LEAVR_LOSTCONN ) THEN
privMsg( "Lost connection");
ENDIF


dont u also need to update const.lpr?

:O :O :O the exe has pretty colors ^.^

would be coold if the text could actualy be like ^1 = red ^2 = green would be cool if u could do that
Last edited by Fire_optikz001, .
Fire_optikz001
S2 licensed
Quote from Mikjen :Good man Franky at 500servers.com has now uodated the Lapper on our server

i get Access denied when typing !mode Drift

hmmm are u inn the admin file?
Fire_optikz001
S2 licensed
cool cant wait this will fix a bug i have in my cruise addon
Fire_optikz001
S2 licensed
yes i would like it back also
Fire_optikz001
S2 licensed
what u mean by that? i would imagine it would still work i added the vws to save alot of problems down the road
Fire_optikz001
S2 licensed
Quote from Mikjen :Can you put your server name in your posts m8, saves earching for it

I cant see this folder (..\bin\default\includes\addonsused.lpr)
I can find Includes folder, but there isnt a addonsused.lpr in there ?

Mick

there should be do u have the latest version of lfslapper?

also fixed a tiny bug to fix demo compatibility and fixed bug in !menu

forgot to add a help menu will add that asap

will also add save every 5 min or so when i add help
Last edited by Fire_optikz001, .
Update 1.2
Fire_optikz001
S2 licensed
Beta Release see first post
Fire_optikz001
S2 licensed
Quote from Mikjen :Better if you put

[SC] Cruise Server
[SC] Drift Server

Rather than
[SC] Cruise Server (S2)
[SC] Drift Server (S2)

Or you get host not found

Couple of things, when u goto Mall and you type !menu, whats the command to buy, and then you cant get rid of meny screen,

You type !help, and Lapper help commands come up.

u click the food item u want as for the thing not closing that was a bug i did when i was renaming subs (fixed)

as for help i have to make something because !help is obviously the help for lfslapper i would have to make !chelp or something like that
Fire_optikz001
S2 licensed
Quote from morpha :Very interesting indeed, I did some further testing and it seems scripting is not the cause of this, because it doesn't trigger the "updated his/her controls" message.

Lengthy read below :rolleyes:

I have, however, found a way to reliably reproduce the "x does not have a car" bug, here's how:
  • Enter the track in any car.
  • Hit Shift+P and Shift+O in quick succession, it has to be quick enough for the options menu to come up before you enter the pits, which if you succeed, you will not. Instead you will be spectated, but remain in the race at the same time (still present in NLP/MCI), no PLL is sent even though you cannot join unless you pit and join from there or Shift+S and join.
  • Change any of the controls, i.e. change shifter mode, hit Ok.
  • "X does not have a car"
But, even though the pit/spec status of the client is messed up, the server does not re-assign the PLID you had (or have, as far as the server is concerned), so this is not the cause of PLLs with invalid PLIDs.

However, there is a way to reproduce this as well, although it's hard to do on a decent machine. It requires either a heavily loaded server, or patience, luck and a good connection, ideally local. I didn't have the former available for testing, so I went with the latter:
  • Start a server with carsmax >= 3 and carsguest = 3.
  • Place a starting position and put a restricted area over it, or alternatively, place restricted areas over all pit boxes and start a qualifying session.
  • Bind /ai to an F-key.
  • Spam the server with AIs using your hotkey.
Although debugging this would be much easier if we had a little more information about LFS's internal communication, I decided to have a go at sniffing and see how the synchronisation works.
It's initialised by the client (obviously) with a 70 byte packet containing player flags and controls, as well as the player name, number plate, suit (driver skin) and helmet skin name.
The server responds to this with a 75 byte packet containing the same information, plus the PLID and some stuff I didn't bother investigating since a) Scawen knows and b) I don't have to know
After receiving the confirmation, the client sends a 219 byte packet containing the car info, including car full name, skin name, colours and the setup.

Now for some reason, the client starts to ignore the confirmation when spammed with commands (join, quick restart [shift+r on autocross lyts] or ai) and sends the "CAR COL SET ENG"(?) right after the PLY(?), resulting in "Could not add car info - unknown id" and causing the server to send PLLs for PLIDs that it never sent NPLs for.

I believe the PFL bug cannot be reproduced with a single connection, we would have to organise a testing session of sorts to fill up a server

what about when u talk and do that like on a laggy server u press shift p and start typing it will also do this i belive
Fire_optikz001
S2 licensed
is there a way to add it so that Lost conection and timed outs are not classified as dissconect like make a new ec=event for timing out/Lost connection
Fire_optikz001
S2 licensed
Quote from Buzzn :Fire_optikz001:

If you want this to be a sucsess the work on the webpage. Work on the first tread, think true what people may be asking about then write it down and answere it make a faq.

The webpage looks werry unprofesjonal, work on it! the webpage looks werry unprofesjonal the way its now ( get rid of that BBS rim.)
You guys arent selling rims but renting out servers

lol ill tell my art guy about the rim thing
Fire_optikz001
S2 licensed
Quote from Gai-Luron :Release 5.9.2.2

send me feedback.

+-------------------------------+
|Changes from v5.921 to 5.922 |
+-------------------------------+
Files to replace From the previous version
LFSLapper.exe
pitboard.lpr

Add new arg to function RegisterNodeAction and RegisterZoneAction, for
no modification add "" in the new arg
old -> RegisterNodeAction( "BL1" , 140 , DisplaySpeed );
new -> RegisterNodeAction( "BL1" , 140 , DisplaySpeed,"" );
Add new arg to function RegisterNodeAction with ""
old -> RegisterZoneAction( "MyZone", "SO6" , 337 , SA_Test3 );
new -> RegisterZoneAction( "MyZone", "SO6" , 337 , SA_Test3, "" );

1. new arg in functions
RegisterZoneAction
RegisterNodeAction
accept a newArg that is of the subroutine called when leave a zone, node.
Example:
RegisterZoneAction( "MyZone", "SO6" , 337 , SA_Test3, SA_LeaveTest3 );
RegisterNodeAction( "BL1" , 140 , DisplaySpeed,ExitDisplaySpeed );

If you don't want a leave subroutine or enter subroutine put "" in arg
RegisterNodeAction( "BL1" , 140 , DisplaySpeed,"" );
RegisterZoneAction( "MyZone", "SO6" , 337 , "", SA_LeaveTest3 );

2. Fixed bug in !pitwindow command


tyvm for adding the exit zone/node sub this defiantly helps me with my cruise addon
Fire_optikz001
S2 licensed
Quote from broken :Does the machine manage to handle it with no probs?
That was actually supposed to be a serious question..

it as in?
Fire_optikz001
S2 licensed
Quote from kyler :1GBPS? didn't know that was possable...

yes it is why not look it up on google :/
Fire_optikz001
S2 licensed
Quote from fire_optikz001 :hey gai,

you know how there is a sub for when u enter a zone what about when u leave?

So like

registerzoneaction( "name" , "track" , x, y, 5, enter sub, exit sub (optional) );

Fire_optikz001
S2 licensed
how would i make a page on my website that would be

http://www.mysite.com?user=blah
Fire_optikz001
S2 licensed
i have not heard of this so i dont think its possible

or do u mean make the dedi exe invisible?
Fire_optikz001
S2 licensed
Quote from Gai-Luron :Why do you need to be less than 250meter ( from who ) to have the admin list?

it does not that was a misunderstanding i guess but how would i do the split toarray from a file? i need it to read files and get the users from the file :P


UPDATE 1.1:

Added Bonus% (%done till bonus)
added bank intrest
started on Happyhour
Fire_optikz001
S2 licensed
Quote from Tim NL :Hi,
I have wrote a new Config GUI with lots of updates .
The track sellector is renewed. ( i added Rockingham but i dont know how many configs this track have yet.)

A little bit a different layout.
Its easy to add new cars if there new cars come in LFS.
Its now posible to set a server public or private. And you can set a guest password.

I will both request add to the new version of Config GUI too.

yes i love the new layout it is pretty nice
Fire_optikz001
S2 licensed
Quote from sinanju :Tried to use !dstats, !distance and !laps, but all blank on game screen, but !distance and !laps show problems in ERR log.

Using unchanged v5.920b.

!dstats

Nothing happens when this is typed.

I've got some old .dbs files that I use to test with, but although they work with !drf command, won't work with !dstats command.

!distance

Script and EN Language file:
CASE "!distance":
privMsg(langEngine( "%{main_dist}%"
,GetCurrentPlayerVar( "Car" )
,getLapperVar("ShortTrackName")
,ToPlayerUnit( GetCurrentPlayerVar("Dist") )
,GetCurrentPlayerVar("UnitDist")
,ToPlayerUnit( GetCurrentPlayerVar("SessDist") )
,GetCurrentPlayerVar("UnitDist")));
BREAK;

main_dist = "Distance done on {0}/{1} = {2} {3}, session = {4} {5}";

Error Log:


Line #848 = privMsg(langEngine( "%{main_dist}%"

!laps


Script and EN Language file:
CASE "!laps":
privMsg( langEngine( "%{main_lapdone}%"
,GetCurrentPlayerVar("Car")
,getLapperVar("ShortTrackName")
,GetCurrentPlayerVar("Laps")
,GetCurrentPlayerVar("SessLaps")));
BREAK;

main_lapdone = "Laps done on {0}/{1} = {2}, session = {3}";

Error Log:
Line #858 = privMsg( langEngine( "%{main_lapdone}%"

its some thing to do with the line breaks i removed em and it worked fine...
Fire_optikz001
S2 licensed
Hey gai,

you know how there is a Sub for when u enter a Zone what about when u leave?

so like

RegisterZoneAction( "Name" , "Track" , X, Y, 5, Enter Sub, Exit sub (optional) );
Fire_optikz001
S2 licensed
hey tim im thinking of realeasing my version if its ok with u it has modes instead of drift on|drift off it now has Mode Race|Drift|Cruise|ect.
Fire_optikz001
S2 licensed
i think we should only make one for the main Lapper.lpr cause that way it keeps it tidy but it does not make a diffrence to me because all my small scripts have there lang in them while the big ones hvae them seperate
Fire_optikz001
S2 licensed
Quote from Gai-Luron :hello,

Yes it's a good idea to have a language file for LFSLapper.lpr, maybe it's also a good idea that this file have the same name as original file but with an another extension. "LFSlapper.lg". In this case, it's more easy to localize lang file for a specific .lpr file.

You have to include

include( "./includes/LFSLapper.lg");

But for small file script, it's not an obligation

You are also rigth when you say, item lang must be prefixed with file basename.
"driftdef_" for driftDef.lpr
"winnerflags_" for winnerflags.lpr
and so on

But i'am writing doc for now and i don't have time. your help was a good thing. ( last script file are in 5.9.2.0 )

Thank's

Gai-Luron

this is what i do at the moment but its in a .lpr file i have done this since u added catch events and i started cleaning out my main lpr i moved the lang section to its own area
Fire_optikz001
S2 licensed
would have been easier to add it now
FGED GREDG RDFGDR GSFDG