The online racing simulator
Searching in All forums
(966 results)
Gai-Luron
S3 licensed
Quote from sinanju :If you open the pitwindow_gui.lpr (via !pitwindow command), it will not close.

And mouse cursor does not appear on screen.

Using unchanged v5.920b.

Same subroutine name in different module, try to prefix subroutine with file name to haven't this issue

For the line break, i take a look. Probably due to the recent parser rewrite

EDIT : FOR NOW PUT MULTILINE PARAMETER FUNCTION IN ONE LINE, BUG HARD TO FIX


Gai-Luron
Last edited by Gai-Luron, .
Gai-Luron
S3 licensed
You are rigth, a unfortunate Cut and Paste
Gai-Luron
S3 licensed
$PBDrift must be

$PBDrift = GetCurrentPlayerVar( "PbDrift");


PbDrift is the score not the position, for multiple car, i take a look
Gai-Luron
S3 licensed
I think one big file language (.lg),for LFSLapper.lpr, and language file included in all other script because there are smaller. It's not good to have many file, and it's not good to have big file. We can try to have a mixed, two file ( script + language ) for big script and one for smaller script.
Gai-Luron
S3 licensed
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
Last edited by Gai-Luron, .
Gai-Luron
S3 licensed
it's not l$ but $l, var are prefixed. Work fine on 5.9.2.0 now


CatchEvent OnLapperStart() # Lapper Event
GlobalVar $a_username_array;
GlobalVar $a_nickname_array;
GlobalVar $a_finishedpos_array;
GlobalVar $a_points_total_array;
GlobalVar $a_license_array;
GlobalVar $a_race_points_array;
endCatchEvent

CatchEvent OnRaceStart( $NumP )
cmdLFS("/msg Hier ben ik er nog 1");
FOR ($l=1;$l<=32;$l=$l+1)
cmdLFS("/msg Hier ben ik er nog 2");
$a_username_array[$l] = "";
$a_nickname_array[$l] = "";
$a_finishedpos_array[$l] = 0;
$a_points_total_array[$l] = 0;
$a_license_array[$l] = "";
$a_race_points_array[$l] = 0;
ENDFOR
cmdLFS("/msg Hier ben ik er nog 3");
endCatchEvent


EDIT: Why don't you use a multidimensional array mixing indexed et associative index? Code is more clear and clean


CatchEvent OnLapperStart() # Lapper Event
GlobalVar $a_player_infos;
endCatchEvent

CatchEvent OnRaceStart( $NumP )
FOR ($l=1;$l<=32;$l=$l+1)
cmdLFS("/msg Hier ben ik er nog 2");
$a_player_infos( $l,"username" )= "";
$a_player_infos( $l,"nickname" )= "";
$a_player_infos( $l,"finishedpos" )= 0;
$a_player_infos( $l,"license" )= "";
$a_player_infos( $l,"points" )= 0;
ENDFOR
endCatchEvent

And Why don't you use playerVar instead array?, no need to have global array



CatchEvent OnRaceStart( $NumP )

$list = GetListOfPlayers("U"); # List sorted by userName
FOREACH( $uN IN $list)
unSet( $CurrPly );
$CurrPly = GetPlayerInfo( $uN );
$CurrPly["my_finishedpos"] = 0);
$CurrPly["my_license"] = "");
$CurrPly["my_points"] = 0);
ENDFOREACH


endCatchEvent


Last edited by Gai-Luron, .
Gai-Luron
S3 licensed
Why don't you use stored value for report? if report must be stored even than Lapper stop or no, if no use setPlayerVar only. You can setup only one playervar to store with separator for each message, instead using group. In fact there is more one solution, the only good is relative of what you want to do later in prog.

Use splitToArray instead split? For that you do is better, the use of FOREACH is more clean in this case!

An another question, Why do you need to be less than 250meter ( from who ) to have the admin list?
Last edited by Gai-Luron, .
Gai-Luron
S3 licensed
Sorry, but i don't know how work cruise insim, can you explain me more or anyone have cruise experience can tell me what Fire_optikz001 want

Gai-Luron
Gai-Luron
S3 licensed
Fixed
Gai-Luron
S3 licensed
Release 5.9.2.0 for the new year

send me feedback.

Happy New Year!!


+-------------------------------+
|Changes from v5.918 to 5.919 |
+-------------------------------+
Files to replace From the previous version
LFSLapper.exe
LFSLapper.lpr ( languages added )
defPitInfo.lpr ( languages added )
driftdef.lpr ( languages added )
driftmeter.lpr ( languages added )
winnerflags.lpr ( languages added )

1. Rewriting and cleaning GLScript Parser ( Take 6 hours, arghhh ) Krayy now it's most easy to read :p
to be tested accurately. This rewrite is to fix this error
$myVar = $myVar * -1;
now work as intended
2. Add new operator '!' not
!1 -> 0
!0 -> 1
not of a number different to 0 is 0

3. openPrivTextButton now call the callBack subRoutine with 2 arg,
first = idOfButton
Second = Text
Example of called subroutine
Sub goto_sub( $id,$text )
WriteLine( $id );
EndSub


Last edited by Gai-Luron, .
Gai-Luron
S3 licensed
Hello,

An oversight

Done in new Release


Gai-Luron
Gai-Luron
S3 licensed
Translation norvegian Done and released

Thank's DenonForce14 ( Carlos! )

@sinanju : Why not!

Gai-Luron
Gai-Luron
S3 licensed
Hello,

I think reason is that you can put application on different computer, one for LFS and other for insim app


Gai-Luron
Gai-Luron
S3 licensed
Hello,

Fixed the GPlexx bug with a patch in LFSLapper, no more need to add additional line at end of file.

For now add my solution ( comment line at end of file ), i release the fixed LFSLapper version later

Gai-Luron

PS and a Scotland translation sinanju ?
Last edited by Gai-Luron, .
Gai-Luron
S3 licensed
Version 5.9.1.9c

Polish translation
Norvegian translation

Thank's for the translation
Gai-Luron
S3 licensed
I see it too, You can put two newline after endLang to don't have this error.
The parser return wrong token, i don't know why and i can't solve it, the lexer Gplexx have a bug
An another way to fix it is to put this last line at end of file
Quote :Lang "NO"
....
EndLang
#End Of LFSLapper.lpr file

Thank's for the translation

Strange thing to see LFSLapper speaking Polish or Norvegian

Norvegian version online
Last edited by Gai-Luron, .
Gai-Luron
S3 licensed
Yes, if you store value with setUserStoredValue and retreive with getUserStoredValue.

getUserStoredValue on connect
setUserStoredValue on disconnect with the meter the player are done

With this system you can display the top of player making the big distance

you test the cumuled value in OnDistDone

That's all

I don't understand why do you want to do with this group, explain more please, i can't add feature in GLScript if i don't understand why is needed. example, scope, etc..
i know it's not a pleasure to explain, but i need it to find the best way for an extension
Last edited by Gai-Luron, .
Gai-Luron
S3 licensed
Quote :Dutch Language for LFSLapper v5.919. Language ID = NL.

Thank you very much, added to Release you can download it.



Gai-Luron
Gai-Luron
S3 licensed
Hello,

it's that i say, i don't know if much people have interest to write DLL.

Gai-Luron
Gai-Luron
S3 licensed
Hello,

I receive your PM, but i don't reply to PM, because i prefer have request on forum. In fact, some people find solution to an answer better than me. Post your request or interrogation here. If LFSLapper need updgraded, i reply here.

Gai-Luron
Gai-Luron
S3 licensed
The minimum language is "EN" for english. If a specified item in other language is not found, it take english one. Not an obligation to create all language

Gai-Luron
Gai-Luron
S3 licensed
No it's better to use in TCP, but some person can't connect in TCP and i don't know what ( maybe firewall ). It's for this i leave old UDP mode in LFSLapper.

In TCP you can have more than one insim connection to your LFS

Gai-Luron
Gai-Luron
S3 licensed
5.919 Released
Gai-Luron
S3 licensed
If you wrote a little better, I understand what you say. I thought you meant upd for update. You use too many abbreviations, they do not understand anything. Try to write a little better, I'm not American and read English is difficult enough for me. Imagine that I write with French abbreviation!

UDP != upd
Gai-Luron
S3 licensed
Release 5.9.1.9 fix bugs available. Because i made much modification in instance management. Test it before
Thank Krayy for the bug report and to find it
send me feedback.

+-------------------------------+
|Changes from v5.918 to 5.919 |
+-------------------------------+
Files to replace From the previous version
LFSLapper.exe
tops.lpr
handicapper.lpr

1. Rewrite the instance management, dirty code replaced with more clean
and easy to maintain to try to solve bug in 5.9.1.8

2. Correct a bug in tops.lpr script file

3. Fix bug when udp connection and reload config ( thank's krayy )

4. Updated handicapper.lpr file

Last edited by Gai-Luron, .
FGED GREDG RDFGDR GSFDG