Results 1 to 1 of 1

Thread: session.members table bugged? Private?

  1. #1
    Superkart Pilot
    Join Date
    Jun 2015
    Posts
    123
    Platform
    PC

    session.members table bugged? Private?

    I've started working on my server addon for a self-managed server again and while it's coming along nicely, I've run into a problem.

    I want admins to be able to kick/ban players, however I am unable to do this because the global table session.members is always empty. Is this table bugged or locked to certain resources? 'Cause I know sms_stats uses it.

    This also messes with my command where admins can set the track whilst in the lobby, as I can't check how many players are currently in the server. I need to do this since if the track's maximum grid size is smaller than the currently allowed max players - the server selects a random track(usually Red Bull National).

    Wouldn't it be better if the grid is full, any extra players are put as spectators instead? Since I can only change MaxPlayers for the next session.

    Edit:

    So I've made my own workaround meanwhile. I haven't tested it all too much yet, just got it working for my kick command and checking how many players are online. If anyone else runs into this issue, here's the code that I use.

    I might make it a dedicated resource later on with dedicated functions such as GetPlayerByName and such.
    Last edited by Dealman; 31-05-2018 at 10:52.
    OS: Windows 10 64-Bit
    CPU: Intel Core i7 7700k
    RAM: 16GB Corsair Vengeance DDR4 3200MHz
    GPU: KFA2/Galaxy GeForce GTX 1070 Ti EX
    Wheel: Xbox One Controller

Similar Threads

  1. Problem Position Table
    By Chiro in forum Technical Help & Support (PC)
    Replies: 0
    Last Post: 28-10-2017, 17:14
  2. HTTP API - Session->Attributes->Privacy bugged?
    By Vincen in forum Third-Party Apps & API Discussion
    Replies: 1
    Last Post: 17-10-2017, 04:59
  3. Sampala Ice Circuit not available in private test session
    By JoshTheGeologist in forum General Discussion
    Replies: 11
    Last Post: 01-10-2017, 22:32
  4. Invite to the private session
    By roman.gaspar in forum Project CARS 2 on XBOX One
    Replies: 3
    Last Post: 25-09-2017, 10:52
  5. Can't create a private session?
    By astevo1989 in forum XB1 - Technical Help & Support
    Replies: 2
    Last Post: 13-05-2015, 19:27

Posting Permissions

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