• Goodbye Dan Gurney, and thanks for the memories...
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Follow RaceDepartment also on Twitter, Facebook, Instagram, Twitch, Steam and / or YouTube.

Apps Kissmyrank - Local Assetto Corsa Server Plugin 0.9b

A self contained server plugin that can be used to auto-admin public servers

  1. Brioche

    Brioche

    Messages:
    96
    Ratings:
    +31
    I do not currently have a list of servers that use the plugin.
    I'll try to implement the money penalty feature for next version and set it as default (kick will still be available if the host wants to).
     
    Last edited: Nov 26, 2017
  2. Brioche

    Brioche

    Messages:
    96
    Ratings:
    +31
    Brioche updated Kissmyrank - Local Assetto Corsa Server Plugin with a new update entry:

    Version 0.7

    Read the rest of this update entry...
     
    • Like Like x 1
  3. Brioche

    Brioche

    Messages:
    96
    Ratings:
    +31
    Here is a guide for the new Cut Lines feature:
    Cut Lines
    The Cut Lines Feature allows you to define lines on the track.
    These lines can be used:
    - to give penalty to players that cross the line
    - to set a speed limit in a certain area of the track
    - to prevent cutting in certain areas
    Each cut line has the following properties:
    - a name (pit entry speed limit line, pit exit line, your custom line)
    - a speed limit over which to apply the penalty
    - the penalty cost (e.g. how much a driver is charged for crossing it at a speed that is higher than the defined speed)
    - the coordinates of the first point
    - the coordinates of the second point
    - a outlap only flag (e.g if the cut line should be applied only if the player is in the outlap)
    - a qualify only flag (e.g. if the cut line should be applied only during the qualify session)
    - a race only flag (e.g if the cut line should be applied only during the race session)
    You can define a cut line using your car as a reference. Here is how you do it:
    Scenario 1: Pit exit line
    1) Use the player_list command to get the slot id of the car that you wish to use to define the line (let's assume 6 for the purpose of this guide)
    2) Start the cut line sketch by writing in the console the "cut_line_drawer_begin" command
    3) Set the line name with "cut_line_drawer_set_name pit exit line $1" (most pit exit lines are not straight so you have to define it as a multi line, appending $1, $2, $3 to the line name is the way to tell the plugin that they are all part of the same line)
    4) Set the max speed with "cut_line_drawer_set_max_speed 0" (the 0 tells the plugin that crossing the pit exit line at any speed greater than 0 will give a penalty which is exactly what we want)
    5) Set the penalty cost of the cut with "cut_line_drawer_set_penalty_cost 0.6" (anyone that will cross this line will pay 600€)
    6) Enable the outlap only flag with "cut_line_drawer_toggle_outlap_only" (this applies the penalty only to those that are in the outlap)
    7) Drive your car to the start of the pit exit line segment that you wish to define. Place it exactly where the line begins.
    8) Set the first point of the line with the "cut_line_drawer_set_first_point 6" command (where 6 is your car slot id as determined on point 1)
    9) Drive your car to the end of the pit exit line segment that you wish to define
    10) Set the second point of the line with the "cut_line_drawer_set_second_point 6"
    11) Save the line with the "cut_line_drawer_save"
    12) Repeat points 2-11 to define other segments of the pit exit line as needed (e.g. pit exit line$2, pit exit line$3) and so on.
    Scenario 2: Pit entry speed limit line (for pit lane speeding)
    1) Use the player_list command to get the slot id of the car that you wish to use to define the line (let's assume 6 for the purpose of this guide)
    2) Start the cut line sketch by writing in the console the "cut_line_drawer_begin" command
    3) Set the line name with "cut_line_drawer_set_name pit entry speed limit line" (most pit exit lines are not straight so you have to define it as a multi line, appending $1, $2, $3 to the line name is the way to tell the plugin that they are all part of the same line)
    4) Set the max speed with "cut_line_drawer_set_max_speed 80" (the 80 tells the plugin that crossing the pit entry speed limit line at any speed greater than 80 km/h will give a penalty which is exactly what we want)
    5) Set the penalty cost of the cut with "cut_line_drawer_set_penalty_cost 0.6" (anyone that will break the speed limit will pay 600€)
    6) Drive your car to the left end of the pit entry speed limit line. Place it as much to the left as possible.
    7) Set the first point of the line with the "cut_line_drawer_set_first_point 6" command (where 6 is your car slot id as determined on point 1)
    8) Drive your car to the right end of the pit entry speed limit line segment that you wish to define
    9) Set the second point of the line with the "cut_line_drawer_set_second_point 6"
    10) Save the line with the "cut_line_drawer_save"
    Scenario 3: Your custom cut line (for the sake of this tutorial let's define a qualify only cut for the "Prima Variante" at Monza)
    1) Use the player_list command to get the slot id of the car that you wish to use to define the line (let's assume 6 for the purpose of this guide)
    2) Start the cut line sketch by writing in the console the "cut_line_drawer_begin" command
    3) Set the line name with "cut_line_drawer_set_name prima variante$1" ($1 is only needed if you need it to be multi-line)
    4) Set the max speed with "cut_line_drawer_set_max_speed 120" (people cutting this line at more than 120km/h will be issued a penalty)
    5) Set the penalty cost of the cut with "cut_line_drawer_set_penalty_cost 0.6" (anyone that will cross this line above the defined speed will pay 600€)
    6) Optional (if you wish the penalty to only apply in qualify or in the race use the "cut_line_drawer_toggle_qualify_only" or the "cut_line_drawer_toggle_race_only" command
    7) Drive your car to the first point of the line that you wish to define (for the "Prima Variante" we could for example cover track re-entry on the part that leads to Biassono to check track re-entry speed)
    8) Set the first point of the line with the "cut_line_drawer_set_first_point 6" command (where 6 is your car slot id as determined on point 1)
    9) Drive your car to the end of the segment that you wish to define
    10) Set the second point of the line with the "cut_line_drawer_set_second_point 6"
    11) Save the line with the "cut_line_drawer_save"
    12) Repeat points 2-11 to define other segments as needed (e.g. prima variante$2, prima variante$3) and so on.
    You can list the cut lines for the current track with the cut_line_list command.
    After you defined a cut line you can edit some of its settings with the cut_line_edit command.
    Once defined you can save your work by typing save in the console.
    Cut lines are effective as soon as you define them. You can disable the feature altogether by typing config_set cut_lines_enabled|0 and enable them back with config_set cut_lines_enabled|0.
    The included tracks.json contains only a few cut lines that I defined while testing. Most tracks do not have any cut line defined so, if you want them, you'll have to define them yourself.
    If you have defined reliable cut lines, feel free to share the tracks.json file with me so that I can update the main package and share appropriate cut lines to new users of the Kissmyrank plugin.
     
    • Like Like x 1
  4. Brioche

    Brioche

    Messages:
    96
    Ratings:
    +31
  5. Brioche

    Brioche

    Messages:
    96
    Ratings:
    +31
  6. Brioche

    Brioche

    Messages:
    96
    Ratings:
    +31
  7. noxxfaxx

    noxxfaxx

    Messages:
    15
    Ratings:
    +22
    • Like Like x 1
  8. Brioche

    Brioche

    Messages:
    96
    Ratings:
    +31
    It must be a wrong approximation. I'll fix it soon :).
     
  9. Brioche

    Brioche

    Messages:
    96
    Ratings:
    +31
    Brioche updated Kissmyrank - Local Assetto Corsa Server Plugin with a new update entry:

    Version 0.7d

    Read the rest of this update entry...
     
  10. Ferrete

    Ferrete

    Messages:
    2
    Ratings:
    +1
    How is this used over a FTP service? Such as a server hosted by Elite Game Servers. Cheers
     
    • Like Like x 1
  11. Brioche

    Brioche

    Messages:
    96
    Ratings:
    +31
    It's rather easy to setup both on Windows and Linux servers (just unpack and run) but it requires the ability to launch the executable.
    In your case, you can ask your provider if they can run the plugin on the host or if by chance is there any way you can upload and execute. If they need any information they can just ask, I'll do my best to help.
     
  12. noxxfaxx

    noxxfaxx

    Messages:
    15
    Ratings:
    +22
    Would it be possible to have 2 servers and have the same database?
     
    • Like Like x 1
  13. Brioche

    Brioche

    Messages:
    96
    Ratings:
    +31
    Interesting question (and not an easy one). I need to look into it.
     
    • Love Love x 1
  14. Brioche

    Brioche

    Messages:
    96
    Ratings:
    +31
    Brioche updated Kissmyrank - Local Assetto Corsa Server Plugin with a new update entry:

    Version 0.8

    Read the rest of this update entry...
     
  15. Brioche

    Brioche

    Messages:
    96
    Ratings:
    +31
    Since I've been asked a few times, here is a tutorial on how to create a cut line:

    Run the following commands in the Kissmyrank Console:
    [​IMG]

    Drive your car to the first point:
    [​IMG]

    Go back to the Kissmyrank console:
    [​IMG]

    Drive your car to the second point:
    [​IMG]

    Go back to the Kissmyrank console:
    [​IMG]

    Save your line:
    [​IMG]

    That's it line is active, do not cross it ;).

    "pit entry speed limit line" can be drawn in a similar way, you just need to park your car on both ends of the pit speed limit line and set max_speed to 80 (do not trigger the outlap only flag for this one).

    If a line is made by multiple segments just append $1 $2 at the end of the name.
    Like "pit exit line$1", "pit exit line$2" and so on.

    You can also set lines for cuts etc.. Just draw the line and set the max_speed a driver is allowed when crossing that line.

    Type "save" in the console if you wish to permanently save your changes to the tracks file.

    Use cut_line_list to list the cut lines
    Use cut_line_edit if you wish to change the cut line settings.
    Use cut_line_remove to remove the cut lines.
     
    • Beer Beer x 2
  16. Brioche

    Brioche

    Messages:
    96
    Ratings:
    +31
    Brioche updated Kissmyrank - Local Assetto Corsa Server Plugin with a new update entry:

    Version 0.8a

    Read the rest of this update entry...
     
  17. Xarlith

    Xarlith

    Messages:
    5
    Ratings:
    +3
    Let's say I want to run both KMR and stracker on a linux server. KMR is master, stracker is a slave. Such configuration works fine until track rotation occurs. acServer is restarted, but stracker isn't.

    I have replaced a path to acServer ("ac_server_bin_path") with a shell script restarting both acServer and stracker but then KMR keeps restarting acServer and finally disables track rotation.

    Code:
    15:09:58> The Assetto Corsa Server has been terminated.
    15:09:58> Starting the Assetto Corsa Server.
    15:09:58> The plugin running on 127.0.0.1:10007 requested an update interval of 200ms (currently running at: 200ms).
    15:09:59> connect ECONNREFUSED 127.0.0.1:8081
    15:09:59> Ping check has failed. Delaying the next check by 15s.
    15:10:05> The Assetto Corsa Server has been terminated.
    15:10:05> Starting the Assetto Corsa Server.
    15:10:06> The plugin running on 127.0.0.1:10007 requested an update interval of 200ms (currently running at: 200ms).
    15:10:12> The Assetto Corsa Server has been terminated.
    15:10:12> Starting the Assetto Corsa Server.
    15:10:13> The plugin running on 127.0.0.1:10007 requested an update interval of 200ms (currently running at: 200ms).
    15:10:19> The Assetto Corsa Server has been terminated.
    15:10:19> Starting the Assetto Corsa Server.
    15:10:20> The plugin running on 127.0.0.1:10007 requested an update interval of 200ms (currently running at: 200ms).
    

    Any ideas?
     
    • Like Like x 1
  18. Brioche

    Brioche

    Messages:
    96
    Ratings:
    +31
    KMR launches the ac server as children in order to monitor the process status (that's needed to manage it and kill it). If you use a shell script the plugin will get an invalid handle that ends when the shell script ends confusing the plugin. Stracker should be able to detect if the track changes just like KMR does. Try to wait a while and see if it updates (maybe it needs a bit).
    If not, let me know. Maybe I can provide an option in future versions to launch a separate shell script when the track rotates. This will allow you to run a stracker restart script when the track rotates.
     
    • Like Like x 2
  19. Xarlith

    Xarlith

    Messages:
    5
    Ratings:
    +3
    Thanks for reply. I might had something wrong in stracker config. :)
    It works exactly as you said. KMR controls acServer and stracker detects when the server is being restarted.
    I really apreciate your work on this plugin. A must have for asseto corsa server admins.

    Just a few more ideas:
    Add more ini options than just race length and session time. What about weather/dynamic_track?
    Rotating entry list.
    Next track voting through chat commands :whistling:
     
    • Like Like x 1
  20. Brioche

    Brioche

    Messages:
    96
    Ratings:
    +31
    Brioche updated Kissmyrank - Local Assetto Corsa Server Plugin with a new update entry:

    Version 0.8b

    Read the rest of this update entry...
     
    • Like Like x 1