Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Players randomly jumping start in dedicated server

  1. #1
    Kart Driver
    Join Date
    Oct 2018
    Posts
    10
    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
    10
    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
    10
    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
    10
    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
    10
    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,635
    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.

  7. #7
    Kart Driver
    Join Date
    Oct 2018
    Posts
    10
    Platform
    PC
    After testing my fix I've determined that WAIT_FOR_RACE_READY_INPUT does work so long as you do not use the sessionConfig page to change settings for your server. Using that page has the affect of disabling any flag it does not have an option for because any change made there runs a command to set the flags. I wasn't able to find the static page for sessionConfig anywhere (is it in the binary?). Thank you for following up. What I haven't been able to test is to see if it'll prevent random people from jumping the start as I won't be able to test how it works until we can get the same number of people in a lobby to start a race. I'll test that later this week.

    My suspicion is that not setting WAIT_FOR_RACE_READY_INPUT has something to do with the jumped starts. We can obviously run rolling starts but the group wants to be able to do standing starts if possible.

  8. #8
    WMD Member Asturbo's Avatar
    Join Date
    Jun 2012
    Location
    Asturias / Spain
    Posts
    812
    Platform
    PC
    I ever assumed that the "WAIT_FOR_RACE_READY_INPUT" flag in the DS was refered when you are in the lobby, the game waits the players push the ready button to advance to the race before the countdown ends (the thumbsup green), and I always have set to ON. Note that is "Race Ready" not "Race Start".

    I never thought it could be related with the starting penalties or jumping starts, but there is not info in the PDFs so I could be wrong.
    Last edited by Asturbo; 15-10-2018 at 17:40.
    CPU: Intel i7-8700K | GPU: nVidia RTX2080 | RAM: Gskill 2x8GB DDR4 3200 | MB: Asus ROG Strix Z370 | SSD: Samsung EVO 970 500Gb | Monitor: Acer Predator Z35P UW QHD | Wheel: Fanatec CSW 2.5 | SO: Windows 10 Pro 64bits
    WMD1 & WMD2 Gold Member /// Steam Profile /// Unofficial Issue List /// Button Box Label Template /// DS Flags Calculator/// Open Weather App

  9. #9
    Kart Driver
    Join Date
    Oct 2018
    Posts
    10
    Platform
    PC
    WAIT_FOR_RACE_READY_INPUT affects the transition from qualifying to the race. We noticed that playing peer-to-peer with this setting enabled we had no issues with people randomly jumping the start but on the dedicated server with it disabled it happens to ~30% of the group on entering the race.
    The following user likes this Post: Sankyo


  10. #10
    WMD Member satco1066's Avatar
    Join Date
    May 2015
    Location
    Graz, Austria
    Posts
    1,338
    Platform
    PC
    imho it does not make any sense to disable WAIT_FOR_RACE_READY_INPUT

    W/O you cannot
    load other setups than last used. I never would race w/ my qualy setup !
    make little changes in current setups
    finally check and select strategies
    prepare yourself for racing ( drink, eat, smoke, position you self in seat, put on HMD, whatever )

    Thats why i never encountered that "problem"
    Every car could be a race car, as long as you have the balls to drive it like that !

    System Shuttle SX79 | CPU i7 4930k @ 3.4 GHz | RAM 16GB 1600MHz | GPU GTX1080ti 11GB | OS Win 10 pro x64 V1709 | Screen Samsung KU6179 4k 49"
    Base Thrustmaster TS-PC Racer | Rim 458TX, GTE, T500RS Rim, TS-PC | Pedals Fanatec CSPv3 | Gearshifter TM T8HA | Button Box BBJ SimRacing 30F pro series
    HMD Oculus CV1 | Motion Next Level Motion V3
    Devil's Core Project Cars Team ( german language )
    Facebook: https://www.facebook.com/devilscorede/
    Closed Facebook Group: https://www.facebook.com/groups/941216635916992/
    STEAM: http://steamcommunity.com/groups/devils-core/


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, 14: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
  •