Page 2 of 2 FirstFirst 12
Results 11 to 11 of 11

Thread: Another shared memory question - participant array ordering

  1. #11
    Kart Driver
    Join Date
    Jun 2015
    Posts
    19
    Platform
    PC
    hey guys

    from my experience (i use only shared memory) in pcars 1 the local player had index 0 in offline sessions
    and in online sessions the owner/host of the lobby had index 0
    so i did some similar to mr_belowski: searched the participants by name and saved the corresponding index (all the time) (i do the same in pcars2)
    (at least it works )

    by the way @mr_belowsky: you started a string enconding in pcars thread
    if u still need info: doesnt seem to be real or 100% UTF-8: i got the usual ascii values but also negativ values
    if you still need it i can give u the list of all letters and correspondig values i found so far

    EDIT: this thing could be Windows related

    as u surely experienced ur self already: sometimes the * is in the name string data, most of the time names containing a * results in empty name string data
    if im not mistaken: even pcars (1 and 2) is inconsitant in displaying such names (sometimes playername display is empty/ no name)

    greetings



    didnt want to start a new thread, maybe u guys can help: (shared memory 2)

    concerning mPitSchedules[]

    which uses

    // (Type#8) Pit Stop Schedule (to be used with 'mPitSchedule') => at least it would make sense, in the header file Type#7 is written, but must be a mistake?
    enum
    {
    PIT_SCHEDULE_NONE = 0, // Nothing scheduled
    PIT_SCHEDULE_PLAYER_REQUESTED, // Used for standard pit sequence - requested by player
    PIT_SCHEDULE_ENGINEER_REQUESTED, // Used for standard pit sequence - requested by engineer
    PIT_SCHEDULE_DAMAGE_REQUESTED, // Used for standard pit sequence - requested by engineer for damage
    PIT_SCHEDULE_MANDATORY, // Used for standard pit sequence - requested by engineer from career enforced lap number
    PIT_SCHEDULE_DRIVE_THROUGH, // Used for drive-through penalty
    PIT_SCHEDULE_STOP_GO, // Used for stop-go penalty
    PIT_SCHEDULE_PITSPOT_OCCUPIED, // Used for drive-through when pitspot is occupied
    //-------------
    PIT_SCHEDULE_MAX
    };

    is it possible this is not fully implemented yet?
    when a driver/player gets a drive through penalty mPitSchedules[] is 5 => PIT_SCHEDULE_DRIVE_THROUGH
    in all other cases mPitSchedules[] is 0
    and stop-go is this ment to represent slow-down penalties?

    thx
    Last edited by bigj_pcars; 06-01-2018 at 18:56.

Similar Threads

  1. [HowTo] Shared Memory (API) App
    By Lars Rosenquist in forum Third-Party Apps & API Discussion
    Replies: 53
    Last Post: 09-03-2017, 13:56
  2. Use Shared Memory ON = no internet connection
    By slimzlim in forum PC - Technical Help & Support
    Replies: 12
    Last Post: 09-08-2016, 23:27
  3. Getting Shared Memory Data mCarFlags
    By hophans in forum Third-Party Apps & API Discussion
    Replies: 4
    Last Post: 09-05-2016, 15:04
  4. Shared Memory On/Off Hotkey...
    By townnet in forum General Discussion
    Replies: 2
    Last Post: 06-07-2015, 03:52
  5. [ANSWERED] what its shared memory
    By Chanur in forum PC - Technical Help & Support
    Replies: 7
    Last Post: 08-05-2015, 21:34

Posting Permissions

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