• Welcome to PiBoSo Official Forum. Please login or sign up.
 
April 19, 2024, 12:07:29 AM

News:

World Racing Series beta14 available! :)


launch GPBike with parameters

Started by sdecorme, September 05, 2016, 07:11:40 AM

Previous topic - Next topic

sdecorme

September 05, 2016, 07:11:40 AM Last Edit: September 05, 2016, 07:20:40 AM by sdecorme
Hi,
I've found on the forum a gpbike launcher that works perfectly :
http://forum.piboso.com/index.php?topic=376.0
And would like to make mine because I need more parameters.
Apparently it launch the game in testing mode but I don't find the the testing file , so I think it works with a shell command to launch the game.
Is someone have information about that ?
Thanks you

sdecorme

Sorry it works with the testing file so report here to find how it works  ;D
http://forum.piboso.com/index.php?topic=13.0

sdecorme

done it my launcher make the testing.ini but when I launch core.exe with parameters "-testing".
The game normally mode with the menu at startup nad when I exit the game , after the yes to exit the game launch the testing mode with the parameters written in the testing.ini file.

the testing.ini :
Quote[bike]
bike_id = msm_125rr_07
paint=
[track]
track_id = Grobnik_GP v0.2_NDS
[settings]
weather_realistic= 0
weather_conditions= 0
temperature= 20
wind_direction= 0
wind_speed= 5
track_conditions= 0


and my function to launch the game look like this (I work in c#)

            ProcessStartInfo startInfo = new ProcessStartInfo("core.exe");
            Process.Start(startInfo);
            startInfo.Arguments = "-testing";
            Process.Start(startInfo);


Thanks you




sdecorme

The working solution is
ProcessStartInfo startInfo = new ProcessStartInfo("core.exe");
            startInfo.UseShellExecute = false;
            startInfo.Arguments = " -testing";
            Process.Start(startInfo);