Hi sicotange. Sorry for the off topic post but did you get the email I sent you today, about French translation? It's urgent as I will get the final translations for 0.6G tomorrow afternoon (not evening) and that will be it.

InSimDotNet EXPLOIT.zip
- 53.2 KB - 756 views


Not much to report at the moment, hoping the lib is stable in the long run. I think I may have found another bug though but I don't know if it is related to the recent InSim.NET releases. Either way I can reproduce it in 2.1.0 & 2.1.1. I haven't tested in an older version. The IS_CPR Plate string has difficulties with special characters and '^' doesn't seem to be digested well (unicode issue?). 
var hcp = new IS_HCP();
// Set handicap for XF GTI
hcp.Info[0].H_Mass = 50;
hcp.Info[0].H_TRes = 20;
// Set handicap for XR GT
hcp.Info[1].H_Mass = 20;
hcp.Info[1].H_TRes = 30;
// etc.
// Send packet.
insim.Send(hcp);hcp.SetHandicap(CarFlags.XFG, T_Mass = 50, H_TRes = 20);hcp.SetHandicap(CarFlags.XFG | CarFlags.XRG, T_Mass = 50, H_TRes = 20);
var hpc = new IS_HPC();
HandicapHelper.SetHandicap(hpc, CarFlags.XFG | CarFlags.XRG, T_Mass = 50, H_TRes = 20);
insim.Send(hpc);var hcp = new IS_HCP();
// Set handicap for XF GTI
hcp.Info[0].H_Mass = 50;
hcp.Info[0].H_TRes = 20;
// Set handicap for XR GT
hcp.Info[1].H_Mass = 20;
hcp.Info[1].H_TRes = 30;
// etc.
// Send packet.
insim.Send(hcp);
// Create packet.
var hcp = new IS_HCP();
// Set handicaps for specified cars.
HandicapHelper.SetHandicap(hpc, CarFlags.XFG | CarFlags.XRG, H_Mass: 50, H_TRes: 20);
// Send packet to LFS.
insim.Send(hcp);
HandicapHelper.SetHandicap(hpc, CarFlags.All, H_Mass: 50, H_TRes: 20);