Results 1 to 6 of 6

Thread: Players randomly jumping start in dedicated server

  1. #1
    Kart Driver
    Join Date
    Oct 2018
    Posts
    5
    Platform
    PC

    Players randomly jumping start in dedicated server

    I am running a dedicated server for our league and we want to be able to run standing starts. However when the race starts even if players are holding down the brake pedals and clutch some of them get drive through penalties for jumping the start. It is almost as if the car is being dropped or something and goes out of the bounds. Does anyone know a fix for this?

    Also WAIT_FOR_RACE_READY_INPUT doesn't seem to work. I've tried both setting and not setting it and it doesn't change anything. Here is an expert of my config:

    Does anyone see what I'm doing wrong here?

    Code:
    sessionAttributes : {
        // The host player can control track selection if set to 0. Set to 1 to disable track selection in the game.
        "ServerControlsTrack" : 1,
    
        // The host player can change the vehicle class by going through the garage if set to 0. Set to 1 to disallow players changing the class.
        // Flag FORCE_SAME_VEHICLE_CLASS (1024) should be also set for this to make sense, otherwise players are able to choose cars from any class.
        "ServerControlsVehicleClass" : 1,
    
        // Players can change their vehicle if set to 0. Set to 1 to disallow players changing the vehicle.
        // Flag FORCE_IDENTICAL_VEHICLES (2) should be also set for this to make sense.
        "ServerControlsVehicle" : 1,
    
        // Grid size up to 32, all reserved to players, so no AI.
        // Note that 32-bit clients will not be able to join the game if this is larger than 16.
        "GridSize" : 24,
        "MaxPlayers" : 24,
    
        // Just 5 race laps.
        "PracticeLength" : 10,
        "QualifyLength" : 5,
        "RaceLength" : 10,
    
        // Race flags - bitfield consisting of many flags, the default is set like this:
        // ALLOW_CUSTOM_VEHICLE_SETUP (8) + ABS_ALLOWED (32) + SC_ALLOWED (64) + TCS_ALLOWED (128) + "
        // FORCE_SAME_VEHICLE_CLASS (512) + FILL_SESSION_WITH_AI (131072) + AUTO_START_ENGINE (524288) = 656106"
        // See /api/list/flags/session in HTTP API, or globals "lists.flags.session" or "SessionFlags" in Lua API for the full list.
    
        // FORCE_IDENTICAL_VEHICLES = 2
        // ALLOW_CUSTOM_VEHICLE_SETUP = 8
        // FORCE_REALISTIC_DRIVING_AIDS = 16
        // ABS_ALLOWED = 32
        // SC_ALLOWED = 64
        // TCS_ALLOWED = 128
        // FORCE_MANUAL = 256
        // FORCE_SAME_VEHICLE_CLASS = 512
        // FORCE_MULTI_VEHICLE_CLASS = 1024
        // FILL_SESSION_WITH_AI = 131072
        // MECHANICAL_FAILURES = 262144
        // AUTO_START_ENGINE = 524288
        // TIMED_RACE = 1048576
        // PASSWORD_PROTECTED = 4194304
        // ONLINE_REPUTATION_ENABLED = 8388608
        // WAIT_FOR_RACE_READY_INPUT = 16777216
        // HAS_RACE_DIRECTOR = 33554432
        // HAS_BROADCASTER = 67108864
        // PIT_SPEED_LIMITER = 134217728
        // PIT_STOP_ERRORS_ALLOWED = 268435456
        // DISABLE_DRIVING_LINE = 536870912
        // ANTI_GRIEFING_COLLISIONS = 1073741824
        // COOLDOWNLAP = -2147483648
    
        // setup = FORCE_IDENTICAL_VEHICLES | ABS_ALLOWED | FORCE_MANUAL |  MECHANICAL_FAILURES | AUTO_START_ENGINE | ONLINE_REPUTATION_ENABLED | WAIT_FOR_RACE_READY_INPUT | DISABLE_DRIVING_LINE
        "Flags" : 562823458,
    
        // AI opponent difficulty, from 0 to 100. Applies only on loading if GridSize is larger than MaxPlayers, and the FILL_SESSION_WITH_AI flag is enabled.
        "OpponentDifficulty" : 85,
    
        // full damage
        "DamageType" : 3,
    
        // Normal tire wear.
        "TireWearType" : 6,
    
        // Normal fuel usage
        "FuelUsageType" : 0,
    
        // Manual pit stops
        "ManualPitStops" : 0,
    
        // Penalties on.
        "PenaltiesType" : 1,
        "PitWhiteLinePenalty" : 1,
        "DriveThroughPenalty" : 1,
        "AllowablePenaltyTime" : 5,
    
        // Any camera view allowed.
        "AllowedViews" : 0,
    
        // Track Laguna Seca
        // See /api/list/tracks
        "TrackId" : -660300766,
    
        // Vehicle class Vintage Touring class B
        // See /api/list/vehicle_classes
        "VehicleClassId" : 560967002,
    
        // Vehicle Ford Escort RS1600 (Racing)
        // See /api/list/vehicles/ in HTTP API or globals "lists.vehicles", "id_to_vehicle" or "name_to_vehicle" in Lua API.
        "VehicleModelId" : -615186701,
    
        // Starting date and time.
        "RaceDateYear" : 2018,
        "RaceDateMonth" : 10,
        "RaceDateDay" : 10,
        "RaceDateHour" : 13,
    
        // Single weather slot set to "Weather_Clear1". See /api/list/enums/weather in HTTP API or globals "lists.enums.weather" or "Weather" in Lua API.
        "RaceWeatherSlots" : 1,
        "RaceWeatherSlot1" : -934211870,
        "RaceWeatherSlot2" : -934211870,
        "RaceWeatherSlot3" : -934211870,
        "RaceWeatherSlot4" : -934211870,
    
        "PracticeWeatherSlots": 1,
        "PracticeWeatherSlot1": -934211870,
    
        "QualifyWeatherSlots": 1,
        "QualifyWeatherSlot1": -934211870,
    
    }

  2. #2
    Kart Driver
    Join Date
    Oct 2018
    Posts
    5
    Platform
    PC
    I've done some more testing to see what is happening and I think I've discovered somethings. When I use the web interface for changing the track it unsets some of the flags. Specifically if I change the track using the sessionConfig config page WAIT_FOR_RACE_READY_INPUT is being disabled. I also discovered it will disable the flags PIT_SPEED_LIMITER and HAS_RACE_DIRECTOR. Does this give anyone ideas of what is happening to us?

  3. #3
    Kart Driver
    Join Date
    Oct 2018
    Posts
    5
    Platform
    PC
    In testing this I think I figured out the reason that flag was being unset. It has to do with a bug in the sessionConfig page. Looking at the console output and persisting across page loads I discovered it outputs the API command it runs. Before I ran this command the flag were set to: 730595618 which are these flags:

    Code:
    730595618
    ---------
    MECHANICAL_FAILURES,
    FORCE_IDENTICAL_VEHICLES,
    PIT_SPEED_LIMITER,
    DISABLE_DRIVING_LINE,
    FORCE_MANUAL,
    ONLINE_REPUTATION_ENABLED,
    HAS_RACE_DIRECTOR,
    WAIT_FOR_RACE_READY_INPUT,
    AUTO_START_ENGINE,
    ABS_ALLOWED
    This is the command that's run changing tracks:

    Code:
    /api/session/set_attributes?copy_to_next=false&session_VehicleModelId=-615186701&session_TrackId=-1695214357&session_RaceLength=10&session_RaceDateDay=10&session_RaceDateMonth=10&session_RaceDateYear=2018&session_RaceDateHour=13&session_RaceWeatherSlot1=-934211870&session_RaceWeatherSlot2=-934211870&session_RaceWeatherSlot3=-934211870&session_RaceWeatherSlot4=-934211870&session_RaceWeatherSlots=1&session_RaceWeatherProgression=0&session_RaceDateProgression=0&session_RaceFormationLap=0&session_RaceMandatoryPitStops=0&session_RaceRollingStart=0&session_PracticeLength=10&session_PracticeDateDay=10&session_PracticeDateMonth=10&session_PracticeDateYear=2018&session_PracticeDateHour=13&session_PracticeWeatherSlot1=-934211870&session_PracticeWeatherSlot2=-934211870&session_PracticeWeatherSlot3=-934211870&session_PracticeWeatherSlot4=-934211870&session_PracticeWeatherSlots=1&session_PracticeWeatherProgression=0&session_PracticeDateProgression=0&session_QualifyLength=5&session_QualifyDateDay=10&session_QualifyDateMonth=10&session_QualifyDateYear=2018&session_QualifyDateHour=13&session_QualifyWeatherSlot1=-934211870&session_QualifyWeatherSlot2=-934211870&session_QualifyWeatherSlot3=-934211870&session_QualifyWeatherSlot4=-934211870&session_QualifyWeatherSlots=1&session_QualifyWeatherProgression=0&session_QualifyDateProgression=0&session_AllowedViews=0&session_DamageType=3&session_FuelUsageType=0&session_TireWearType=6&session_ManualPitStops=0&session_OpponentDifficulty=85&session_VehicleModelId=-615186701&session_MinimumOnlineRank=0&session_MinimumOnlineStrength=100&session_PenaltiesType=1&session_AllowablePenaltyTime=5&session_DriveThroughPenalty=1&session_PitWhiteLinePenalty=1&session_Flags=546046242&
    You can see the last variable there is the session_Flags variable and it is setting it to 546046242 which are these flags:

    Code:
    546046242
    ---------
    MECHANICAL_FAILURES,
    FORCE_IDENTICAL_VEHICLES,
    DISABLE_DRIVING_LINE,
    FORCE_MANUAL,
    ONLINE_REPUTATION_ENABLED,
    AUTO_START_ENGINE,
    ABS_ALLOWED,
    This unsets these flags:

    Code:
    730595618 - 546046242 = 184549376
    ---------
    PIT_SPEED_LIMITER,
    HAS_RACE_DIRECTOR,
    WAIT_FOR_RACE_READY_INPUT,

  4. #4
    Kart Driver
    Join Date
    Oct 2018
    Posts
    5
    Platform
    PC
    How can this be so broken? I can't find the static code for the website anywhere so it must be built into the server binary. There is javascript for the page but if you look at the html it's generated by something and it is missing options causing this bug. Is there anywhere better to submit a bug report? How are users expected to use this server? Has anyone else written a better interface for controlling it?

  5. #5
    Kart Driver
    Join Date
    Oct 2018
    Posts
    5
    Platform
    PC
    I found a work around for us that will allow us to continue to use the webui and have it setup how we want. I changed line 581 of web_files/js/sessionConfig.js to this:

    flags = 16777216 | 134217728;

    What this does is enable the pit limiter and the ready_up feature. I hope this will help solve the jumping the start issue.

    tyler

  6. #6
    Moderator Sankyo's Avatar
    Join Date
    Sep 2011
    Location
    The Netherlands
    Posts
    7,501
    Platform
    PC
    Thanks for the detailed reporting.

    Has anyone else encountered this issue? Or is it a specific combination of settings that not everyone uses that causes this?

    Also, regarding this:

    Quote Originally Posted by tylerjw View Post
    Also WAIT_FOR_RACE_READY_INPUT doesn't seem to work. I've tried both setting and not setting it and it doesn't change anything. Here is an expert of my config:
    How did you test whether this option is working or not?
    CPU i7 7700K | RAM Corsair 16GB 2400MHz | GPU Asus GTX1080 Ti OC 11GB | Mobo Asus Strix Z270H | Audio SB Zx @ 5.1/AKG K401 | OS Win 10 x64 | Screen LG 27EA63V-P 27" 1920x1080 | Controllers Fanatec CSW v2.5 + UH, CSP v3, CSS SQ, CSH | Misc TrackIR 4 Pro, Playseat Revolution, DS button box

    With the right to say what you think comes the obligation to think about what you say.
    Don't take life too seriously. No-one gets out alive anyway.

Similar Threads

  1. Replies: 5
    Last Post: 31-08-2018, 14:35
  2. Solution for Hosts who keep randomly kick players
    By vitinho0z in forum Multiplayer
    Replies: 0
    Last Post: 07-10-2017, 16:02
  3. Replies: 21
    Last Post: 03-10-2017, 19:42
  4. Replies: 8
    Last Post: 25-04-2017, 23:52
  5. Start Project Cars on startup and join a dedicated server
    By Universesciencepark in forum Virtual Reality Devices Support
    Replies: 0
    Last Post: 12-01-2017, 13:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •