The online racing simulator
Release: LFSLapper V7.0.4.3
Hi everyone,

I discovered some issues, while working on my lapper, missing Playervars and lappercrashes with the JoinRequest() Lapper function.

So here is a another small update for LFSLapper.

See the list below, with all the changes and fixes from version 7.0.4.0 to 7.0.4.3.
Have fun.

+-------------------------------+
|Changes from 7.0.4.0 to 7.0.4.3|
+-------------------------------+

Version 7.0.4.1 https://www.lfs.net/forum/post/1905751#post1905751
Version 7.0.4.2 https://www.lfs.net/forum/post/1909748#post1909748
  • 1. New Event: (LFSLapper.LPR)

    Event OnCarStateChanged($userName,$StateOfCar)

    IF($StateOfCar == 0)THEN
    globalmsg(getplayervar($userName,"NickName")."^7 Stopped the car!");
    ENDIF
    IF($StateOfCar == 1)THEN
    globalmsg(getplayervar($userName,"NickName")."^7 Start driving!");
    ENDIF

    EndEvent

  • 2. New PlayerVars:
    • -GetCurrentPlayerVar("Heading"); #Direction of forward axis : 0 = world y direction
    • -GetCurrentPlayerVar("Direction"); #Car's motion if Speed > 0 : 0 = world y direction

  • 3. Changed:
    • -Fixed Typo's & Changing Pitworks in sourcefile Insim4.cs ( Thanks to Iceman121 for reporting the typo's and idea's)

      Mechanicals Damages >> Mechanical Damage
      Body Dammage >> Minor Damage
      Major Damage

      Refuel >> Refuelling
      Wheels & Transmissions >> Wheels

    • -Characterlenght increased to 120 chars instead of 67 for the following functions:
      Privmsg()
      GlobalMsg()

  • 4. Fixes:
    • -Sourcecode bugfix: in GLScript.cs ( Thanks to Yisc[NL] for reporting the bug)
      Link of report: https://www.lfs.net/forum/post/1906238#post1906238

    • -Sourcecode bugfix (CSC) (CarState Packet) implemented in version 7.0.4.1
      LFSLapper crashed after getting player without a username (HOST)

    • -Minor bugfixes in LFSLapper.lpr ( Thanks to Yisc[NL] for reporting the bug)
      Link of report: https://www.lfs.net/forum/post/1906123#post1906123

    • -JoinRequest fixes:
      Lapper crashed when JoinRequest() have less than 8 parameters
      Lapper crashed when Heading value > 254
      Lapper crashed when spawning a spectating player

    • -StartLightControl fixes:
      Lapper crashed when startlightcontrol() have less than 4 parameters

  • 5. Removed/Edited
    • -Welcomes Message ignored in Default Helpmenu(includes/cif/config_membership.lpr)
    • -Enabled Welcomes message in LFSLapper.lpr (Event OnConnect( $userName ))
    • -Playervars.txt in 'doc' folder edited.
    • -Playerinfo.txt in 'doc' folder edited.

FGED GREDG RDFGDR GSFDG