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
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.
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 )
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
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?
+-------------------------------+ |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
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
Thank's for the translation
Strange thing to see LFSLapper speaking Polish or Norvegian
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
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.
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
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
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!
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 )