Skip to content

Compatibility for newest version - #7

Open
IDeserveToBeWrited wants to merge 3 commits into
jackrv:masterfrom
IDeserveToBeWrited:master
Open

Compatibility for newest version#7
IDeserveToBeWrited wants to merge 3 commits into
jackrv:masterfrom
IDeserveToBeWrited:master

Conversation

@IDeserveToBeWrited

Copy link
Copy Markdown

I managed to find differences that caused #6 and fix it. I also added new Scanias.
The new regex is:

\[(?<tHours>[\d{2}]+):(?<tMinutes>[\d{2}]+):(?<tSeconds>[\d{2}]+)\]\s+Spawning\s+GameTruck\s+\((?<name>.+)\((?<gameID>\d+)\)\s+-\s+(TruckersMP\s+ID:|TMPID:\s|ETS2MPId:)(?<ets2mpID>\d+)(?<adInfo>.*)\)\s+Additional\s+data:\s+(?<adData>.+)[\s\S]\[00\]\s+.+\s+.\/def\/vehicle\/truck\/(?<truck>.+)\/data.sii.

It works as far as 16-08-2015, but in oreder to work now one must enable advanced logging in the settings, otherwise the logs looks like this:

[16:39:29] Spawning GameTruck (VoDviL(153) - TMPID: 946383 - Tag: ) Additional data: 
[16:39:29] Spawning GameTruck (BARACUDA78(70) - TMPID: 948896 - Tag: TURKEY) Additional data: 
[16:39:29] Spawning GameTruck (nachodash9(98) - TMPID: 961266 - Tag: ) Additional data: 
[16:39:29] Spawning GameTruck (HMD40(351) - TMPID: 580176 - Tag: ) Additional data: 

Also with compatibility for older versions.
NOTE: You must enable advanced logging in TruckersMP options in order
for program to work correctly.
@Bluscream

Copy link
Copy Markdown

https://regex101.com/r/TZw9Yr/1

[17:58:17] Spawning GameTruck (Zoboy240118(1311) - TMPID: 2114780 - Tag: ) Additional data: 
[0][00] - GameAccessory: "/def/vehicle/truck/mercedes.actros2014/data.sii"

Added MAN TGX Euro6 (ETS) and Volvo VNL (ATS)
Fixed typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants