Question Dedicated Server API not updating TimeLeft

Discussion in 'Community Support' started by Stefan Mizzi, Feb 19, 2017.

  1. Stefan Mizzi

    Stefan Mizzi Well-Known Member

    Joined:
    Feb 6, 2015
    Ratings:
    +625 / 0 / -0
    Hi Sector 3,

    Not sure if you already know, but the Dedicated Server API is not updating TimeLeft

    This used to work and it used to decrease with time. Now it always stays at 599989

    Can you please have a look as now we cannot know if the session has ended or not and thus we cannot automatically stop the server.

    Thanks!!

    This is an example of one of our servers:

    [
    {
    "GameSetting": {
    "Id": 48493,
    "Name": "justrace.net#Testing Server Manager",
    "Password": "",
    "Experience": 2481,
    "TrackLayouts": [
    {
    "LayoutId": 4944,
    "Sessions": {
    "Qualify": {
    "Duration": 10,
    "TimeOfDay": 2,
    "SessionType": 0
    },
    "Practice": {
    "Duration": 10,
    "TimeOfDay": 2,
    "SessionType": 1
    },
    "Race1": {
    "Duration": 10,
    "TimeOfDay": 2,
    "SessionType": 1
    },
    "Race2": {
    "Duration": 0,
    "TimeOfDay": 0,
    "SessionType": 0
    },
    "Race3": {
    "Duration": 0,
    "TimeOfDay": 0,
    "SessionType": 0
    }
    }
    }
    ],
    "ReverseStartOrderPlaces": 0,
    "Cars": [
    2705,
    2728,
    2804,
    2842,
    2846,
    4046,
    3899,
    4197,
    4067,
    4579,
    4585,
    4554,
    4720
    ],
    "Liveries": [
    2707,
    2732,
    2733,
    2736,
    2734,
    2735,
    2737,
    2802,
    2730,
    2803,
    2806,
    2809,
    2810,
    2807,
    2808,
    2811,
    2844,
    2845,
    2848,
    3080,
    3079,
    3082,
    3081,
    3901,
    3902,
    3903,
    3904,
    4048,
    4049,
    4051,
    4053,
    4054,
    4056,
    4069,
    4070,
    4071,
    4199,
    4200,
    4202,
    4201,
    4556,
    4837,
    4836,
    4838,
    4839,
    4581,
    4823,
    4824,
    4828,
    4829,
    4825,
    4827,
    4826,
    4587,
    4831,
    4832,
    4833,
    4830,
    4815,
    4816,
    4817,
    4818,
    4819
    ],
    "Difficulty": 2,
    "MaxNumOfPlayers": 25,
    "FuelUsage": 1,
    "TireWear": 1,
    "VisualDamage": 2,
    "MechanicalDamage": 1,
    "WarmupDuration": 0,
    "RaceFinishDuration": 30,
    "FlagRules": 1,
    "CutRules": 0,
    "StateReportInterval": 3000,
    "KickNonReadyClientsTime": 0,
    "CompressionLevel": 3,
    "WreckerPrevention": 1,
    "MandatoryPitstop": 0,
    "NonReadyPitlaneStartDelay": 0
    },
    "ProcessState": {
    "Running": true,
    "Port": 60000,
    "TimePort": 60002,
    "PlayersOnServer": 0,
    "TimeLeft": 599989
    }
    }
    ]
     
  2. Henri Puustinen

    Henri Puustinen Well-Known Member

    Joined:
    Oct 23, 2016
    Ratings:
    +100 / 0 / -0
    Is this still a problem for you?
     
  3. Stefan Mizzi

    Stefan Mizzi Well-Known Member

    Joined:
    Feb 6, 2015
    Ratings:
    +625 / 0 / -0
    Seems to have been solved, thanks!
     
    • Like Like x 1