WoT personal full statistics

DarkWolf904
Posts: 11
Joined: 21 May 2023 09:43

Re: WoT personal full statistics

#11 Post by DarkWolf904 » 21 May 2023 09:45

Thank you for sharing this info OP, I didn't know this feature was a thing.
User avatar
thommy1972de3
Posts: 13
Joined: 07 Mar 2020 18:45
Location: Germany
Contact:

Re: WoT personal full statistics

#12 Post by thommy1972de3 » 10 Jun 2023 07:17

Sorry for the late reply, but does anyone happen to know all the parameter values?
params[1] - params[3] is safe, but what ist params[8] or params[12] ??

[ external image ]
I would change the world, but god won't give me the source code
User avatar
Steve Pitts
Posts: 857
Joined: 28 Feb 2016 12:00
Location: Kings Langley, England

Re: WoT personal full statistics

#13 Post by Steve Pitts » 11 Jun 2023 10:10

Happy to share what I know. Some of what follows is speculative but the guesses are documented along with some probably unnecessary background that may or may not enlighten (much of it was written back in 2016):

Code: Select all

/* The delivery_log_entry objects contain a single array - params -   */
/* that we've had to figure out the meaning of each value by          */
/* empirical means without a member name to guide us. Some may yet be */
/* incorrect, therefore, but what we've worked out thus far is:       */
/*                                                                    */
/* params[0]: internal time of end of job                             */
/* params[1]: volatile company object of source ("" for free roam)    */
/* params[2]: volatile company object of target ("" for free roam)    */
/* params[3]: cargo object of load ("" for free roam)                 */
/* params[4]: XP earned for job (50 for free roam)                    */
/* params[5]: actual revenue from job, in Euros (0 for free roam)     */
/* params[6]: actual job distance in kms (100 for free roam)          */
/* params[7]: percentage cargo damage, stored as a string, where      */
/*            "0.017" represents 1.7% (always "0.100" for free roam)  */
/* params[8]: my guess is that this is 'time left to expiry' because  */
/*            the negative values likely represent the twice I've     */
/*            been late with a job. Negatives are stored as strings   */
/*            with a leading minus sign (0 for free roam)             */
/* params[9]: mixture of 0 (85), 1 (22) and 2 (16) which I think      */
/*            represents urgency, with 2 being urgent, 1 important    */
/* params[10]: mostly 0, some 1s (4 of 123 as of week 10 Sunday).     */
/*             Perhaps this is the trailer parking bonus flag as a    */
/*             boolean, where true means used auto-parking??          */
/* params[11]: always 1 (as of week 10 Sunday) and originally         */
/*             interpreted as a cancelled job flag. However, v1.26    */
/*             made it apparent that this relates to the parking      */
/*             dialog (which would have been in ATS already at the    */
/*             time I first started playing ETS2)                     */
/* params[12]: always 1 for quick jobs and 0 for everything else, so  */
/*             perhaps a company truck flag??                         */
/* params[13]: advertised revenue from job, in Euros. Needs checking  */
/*             against the freight market, but for those that I've    */
/*             checked it is params[5] minus the cost of params[7]    */
/* params[14]: fines incurred, in Euros (always 0 for free roam??)    */
/* params[15]: internal time of start of job (0 for free roam)        */
/* params[16]: vehicle used for job (empty string for free roam)      */
/* params[17]: planned job distance in kms (0 for free roam)          */
/* params[18]: type of job (one of quick, compn or freerm originally  */
/*             with on_compn and spec_oversize added later)           */
/*                                                                    */
/* This structure has grown over time, starting out with 19 entries   */
/* (as above) increasing to 21 (v1.27), 23 (v1.27.2.?) and most       */
/* recently to 24 (with v1.32)                                        */
/*                                                                    */
/* First save with next two elements was game_w35_tue_0139 from 25th  */
/* Mar 2017, which had two free roam entries with the additional      */
/* elements over and above those from game_w35_mon_1515 the day       */
/* before, which coincides with the installation of v1.27, although I */
/* can see nothing in that update that is of relevance (perhaps just  */
/* positioning for the future, although Special Transport did not get */
/* released until December of that year)                              */
/*                                                                    */
/* params[19]: the route name for a Special Transport job (as         */
/*             defined in route.sii)                                  */
/* params[20]: unknown and blank in every case (as of 4 Nov 2018)     */
/*                                                                    */
/* Difficult to know exactly when these next two were introduced      */
/* because I did not complete a job between 19th May 2017 (1.27.2.3)  */
/* and 28th Aug 2017 (1.27.2.9) but between game_w38_fri_1001 and     */
/* game_w38_fri_1432 a job was completed at 379582 delivering sodium  */
/* from WGCC in Gdansk to NBFC in Calais for which only 21 elements   */
/* were recorded whereas the next job between game_w38_sat_0643 and   */
/* game_w38_sat_1215 was completed at 380889 for ammunition from NBFC */
/* in Calais to WGCC in Glasgow and saw 23 elements recorded.         */
/* The only obvious new additions in that time period were double     */
/* trailers and Steam achievements for the Heavy Cargo packs.         */
/*                                                                    */
/* params[21]: mostly zero with a handful of 1s (perhaps indicates    */
/*             the use of a double trailer?)                          */
/* params[22]: -1.000 for freerm entries and the total cargo mass for */
/*             all other cases (need to work out what unit)           */
/*                                                                    */
/* Next parameter was added with v1.32 and trailer ownership and      */
/* looks to tie up with cargo_count in the profit logs                */
/*                                                                    */
/* params[23]: number of units of cargo (ie. it ties up with the      */
/*             units_count member in player_job and job_info objects  */
/*                                                                    */
NOTE that a lot of the above was written before I'd ever played ATS and thus some things may differ (free roam entries are 100 miles for ATS, so 161 kms not 100, for instance).

Since you explicitly asked about them, params[8] is not meaningful for External jobs, where it is either 1 for in time or -1 for late and params[12] definitely looks to be set to 1 for Quick Jobs only (confirmed with my ATS profile).

FWIW params[11] is described rather vaguely in those old comments but the current code has a more useful definition:

Code: Select all

         1 => ParkingType::Easy,
         2 => ParkingType::Normal,
         3 => ParkingType::Tough,
Cheers, Steve
Post Reply

Return to “WORLD OF TRUCKS”

Who is online

Users browsing this forum: No registered users and 2 guests