PDA

View Full Version : [solved] Dedicated Server - RaceStatFlags extraction



m1ndgames
06-01-2018, 13:25
Hello,
im currently hacking together a small script that spits out a table with fastest laps. (i run Nordschleife Training 24/7 and wanted to keep track)

Now i would like to show the racers setup (controller used, abs, etc) aswell, and i know that this number is generated by adding up values.

Is there a smart man who could give me a hint on how to extract all the values back from it?

Example:

'11521' => {
'index' => 1,
'participantid' => 2,
'join_time' => 1514925904,
'leave_time' => 1514926020,
'name' => 'm1ndgames',
'setup' => {
'RaceStatFlags' => 1073750244,
'VehicleId' => 152867459,
'LiveryId' => 54
},
'steamid' => '76561198031915032'
},

1073750244 - How can i get what was configured?

edit: this should be in the pcars 1 forum, sorry!
edit2: i got it working :)