Shared Memory API

Discussion in 'Community Workshop' started by Mikael Hermansson, Jun 7, 2015.

  1. mr_belowski

    mr_belowski Well-Known Member Beta tester

    Joined:
    Apr 23, 2015
    Ratings:
    +1,307 / 0 / -0
    So are we all happy this this is now stable and represents the final version for the upcoming patch? I'm a lazy lazy man and the prospect of doing *any* work brings me out in a cold sweat so the risk of having to do work twice makes me absolutely crap meself.

    I think I might know the answer in advance, but any idea when these changes will go live?
     
  2. mr_belowski

    mr_belowski Well-Known Member Beta tester

    Joined:
    Apr 23, 2015
    Ratings:
    +1,307 / 0 / -0
    looking at the recent changes, one thing might trip up my app - the SessionPhase enum used to be

    public enum SessionPhase
    {
    Unavailable = -1,
    Garage = 0,
    Gridwalk = 2,
    Formation = 3,
    Countdown = 4,
    Green = 5,
    Checkered = 6,
    Terminated = 7 // seems to be 7 when the session is 'killed', it isn't in the API but does happen from time to time
    }


    Now it's
    public enum SessionPhase
    {
    Unavailable = -1,
    Garage = 1,
    Gridwalk = 2,
    Formation = 3,
    Countdown = 4,
    Green = 5,
    Checkered = 6,
    Terminated = 7 // seems to be 7 when the session is 'killed', it isn't in the API but does happen from time to time
    }


    Garage has changed from 0 to 1, with 0 now being the undefined value. Obviously my app will work with the new enum values but I was wondering if this was a typo? I'll add some logging so the app will grumble if this value is 0
     
  3. Viktor Öfjäll

    Viktor Öfjäll KW Studios Developer

    Joined:
    Jan 16, 2015
    Ratings:
    +6 / 0 / -0
    Hi,

    Garage = 1 is correct. It's been like that since july 2015.

    0 is phase start. Used temporary after joining/switching session.
    7 is phase end which means the session is over.
     
  4. Stefan Mizzi

    Stefan Mizzi Well-Known Member

    Joined:
    Feb 6, 2015
    Ratings:
    +625 / 0 / -0
    Yep, I agree....my current one is like this

    upload_2016-10-13_19-2-25.png
     
  5. mr_belowski

    mr_belowski Well-Known Member Beta tester

    Joined:
    Apr 23, 2015
    Ratings:
    +1,307 / 0 / -0
    Cool, I stand corrected :)
     
  6. mr_belowski

    mr_belowski Well-Known Member Beta tester

    Joined:
    Apr 23, 2015
    Ratings:
    +1,307 / 0 / -0
    http://crewchief.isnais.de/CrewChiefV4_for_r3e_beta.msi

    This is a version of Crew Chief that uses the struct as defined in the october patch branch. It's only for r3e beta testing - it (obviously) won't work with the regular version of the game. Give me a shout if it doesn't work or trashes your house
     
  7. Andi Goodwin

    Andi Goodwin Moderator Beta tester

    Joined:
    Jan 16, 2015
    Ratings:
    +790 / 0 / -0
    thanks ... testing it now ...

    Andi
     
  8. Stefan Mizzi

    Stefan Mizzi Well-Known Member

    Joined:
    Feb 6, 2015
    Ratings:
    +625 / 0 / -0
    Hmmm, maybe I should apply to be a beta tester....... :rolleyes:
     
  9. mr_belowski

    mr_belowski Well-Known Member Beta tester

    Joined:
    Apr 23, 2015
    Ratings:
    +1,307 / 0 / -0
    I was going to offer my services as a beta tester too but you're expected to actually put some effort in, and test rather than just play. The "making an effort" part disqualified me :)
     
  10. Stefan Mizzi

    Stefan Mizzi Well-Known Member

    Joined:
    Feb 6, 2015
    Ratings:
    +625 / 0 / -0
    Yeah, that's exactly why I never applied too...but maybe 3rd party "devs" should be allowed just to make sure that their shit works ;)
     
  11. mr_belowski

    mr_belowski Well-Known Member Beta tester

    Joined:
    Apr 23, 2015
    Ratings:
    +1,307 / 0 / -0
    There, fixed that for you ;)

    It would be cool to be able to access the new stuff but the shared memory changes are quite infrequent so it would feel like we're taking the p!ss a bit having beta access just in case, but not having to do any proper beta testing
     
    • Like Like x 1
  12. le_poilu

    le_poilu Well-Known Member

    Joined:
    Jan 30, 2015
    Ratings:
    +278 / 0 / -0
    I think you could both apply to be beta tester in this game, you already did enougth here to proove the value of your inputs ;)
    The guys from SimXperience are in too, and I don't think they do much that working on their own stuff for compatibility purpose
     
    • Agree Agree x 1
  13. mr_belowski

    mr_belowski Well-Known Member Beta tester

    Joined:
    Apr 23, 2015
    Ratings:
    +1,307 / 0 / -0
    So did it work then?
     
  14. mr_belowski

    mr_belowski Well-Known Member Beta tester

    Joined:
    Apr 23, 2015
    Ratings:
    +1,307 / 0 / -0
    • Like Like x 2
  15. Stefan Mizzi

    Stefan Mizzi Well-Known Member

    Joined:
    Feb 6, 2015
    Ratings:
    +625 / 0 / -0
    @Viktor Öfjäll I'm trying to update the classes to the latest October update and saw this in the C# example

    Shouldn't the C# PitStopStatus property be enum PitStopStatus instead of Int32 ?

    Thanks!!!


    upload_2016-10-20_17-17-54.png


    upload_2016-10-20_17-19-9.png
     
  16. Christian G

    Christian G Topological Agitator Beta tester

    Joined:
    Apr 8, 2015
    Ratings:
    +2,411 / 0 / -0
    Have a few minutes tonight so I'll give it a go.
     
  17. Christian G

    Christian G Topological Agitator Beta tester

    Joined:
    Apr 8, 2015
    Ratings:
    +2,411 / 0 / -0
    Well my Crew Chief didn't spit me in the face like he normally does, so.... yeah, big improvement.

    Only had two short races but didn't experience anything out of the ordinary and as far as I can tell everything that should have been there was there.
    If I find more time I'll do some more runs and pay attention to the details.

    Just one thing I've been missing in the public release as well lately, I don't seem to hear the background sounds anymore, my fault?
    Come to think of it, nvm answering that question. Let me re-phrase: Anything I can do get them back? ;)
     
    Last edited: Oct 21, 2016
  18. mr_belowski

    mr_belowski Well-Known Member Beta tester

    Joined:
    Apr 23, 2015
    Ratings:
    +1,307 / 0 / -0
    dunno, i guess it depends on what you did to make them go away :)

    Turn them up maybe? If I remember correctly, the background sounds are played using a Windows media player object, so maybe you killed media player?
     
    • Like Like x 1
  19. Viktor Öfjäll

    Viktor Öfjäll KW Studios Developer

    Joined:
    Jan 16, 2015
    Ratings:
    +6 / 0 / -0
    I kept the enums as Int32's since the current master branch example does that (probably to explicit show that they take up 4 bytes each, and memory alignment is very important). Using the enum should work though since it should be the same size as an int32 by default.

    Added a comment to see the PitStopStatus enum to the c# example.
     
    • Informative Informative x 1
  20. VladGets

    VladGets New Member

    Joined:
    Nov 2, 2016
    Ratings:
    +0 / 0 / -0
    thanks for the quick reply.
    Here is a link from the program what I meant