;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; mpres event_definitions V2.00 ; ; stores events to handle within mpres ; ; directory: script main path ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; COMMMENT: lines beginning with ";" will be ignored and considered as a comment ; You may use empty lines and/or whitespaces (space/tabstops) at the beginning/end of the lines if you need to for structuring ; each league or single event that is to be processed must be defined here as follows ; first you have to distinguish leagues (events with multiple rounds/racedays) ; from single events (only one round per season, but possibly multiple races/sessions) by naming them correspondingly ; afterwards some global settings for the event are to be given ; then each season of the event (be it a league or a (recurring) single event) is to be defined, giving some basic rules for replay processing ; the format of the definitions are as follows: ; ### league ### --> initializes a new league or single (### single ###) ;+++ global +++ --> beginning of the event's global (for all seasons) settings short: WHC --> event denominator or short-tag. This is required and has to be unique for a given type (i.e. either single or league. A single and a league may have the same short-tag, but two leagues or two singles may not!) name: Westhill Cup --> here goes the event's full name as displayed on the overview page ;headlink: I_AM_A_LINK --> link to league/event main page to be followed when klicking on the site's header logo (fallback to default if empty) ;headlogo: I_AM_A_LOGOFILE --> logo (path relative to script main directory) to display in the header when this event/league is selected (fallback to default if empty or not found) ;--- global --- --> end of global event settings +++ season +++ --> beginning of a new season number: 2015 --> number/denominator of the season either in arabic or roman numbers. This is required and has to be unique for a given event (i.e. a single-event or a league, different singles/leagues may of course have an identical season.) dir: replays/ --> path to where the replays of this season are found (relative to the script's main directory with trailing "/"). This is mandatory in order to find any replay! replay_prefix: whc_ --> prefix to be found at the beginning of each of this season's replays prior to the mandatory nomination [(ROUNDNUMBER_)(gGRIDNUMBER_)SESSIONTYPE(SESSIONNUMBER)] daterange: 2015 --> date or date range to be displayed on the overview page for this season (displayed as is) ; logo: I_AM_A_LOGOFILE --> logo (path relative to script main directory) to be shown on the season's session selection screen toc: false --> Are takeovers allowed (true) or not (false)? If true, provide tocdata (same name as replay but with "tocdata" as extention) maxleavelaps: 2 --> Up to which point is it allowed to rejoin the race? Either an integer(!) value (meaning x laps completed by the current leader) or a fraction of the race (a float bewteen 0 - 1.0 -> setting to 0.2 in a 10-lap-race will set the limit to 2 laps completed by the leader). In case of resulting odd numbers, value will be rounded up to next integer. minracepart: 0.8 --> minimum percentage of the race to be completed by a driver to get a result instead of "DNF" (value between 0 (anyone on track will get a result) and 1.0 (you have to pass the chequered flag)) keeplapsonrejoin: true --> If a player rejoins the race are his/her previous stints to be kept (true) or not (false)? In case of true all stints will be summed up to give the endresult. rejoinpenlaps: 1 --> If a player rejoins the race (after a disconnect, SHIFT+S or SHIFT+P etc.), how many laps will he/she be stripped off as penalty? appendunfinished: false --> Are players that did not see the chequered flag but did complete the minimum part of the race (minracepart) to be appended AFTER all finished players (true) or are they to be inserted regularly by their completed laps and racetime (false) safetycarstart: false --> Is the race started behind a safetycar that is the first in the starting grid (true) or not (false)? Setting this to true will eliminate the first car of the grid from all results, shifting all other cars one starting position up (thus gaining the correct values). THIS DOES NOT WORK IF THE SAFETYCAR IS NOT FIRST OF THE GRID!!!! ; --- season --- --> end of season's definitions