PDA

View Full Version : [SOLVED] sharedmemory no ABS SC TC, plz update the SM-API and/or sharedmemory.h



bigj_pcars
16-12-2016, 08:25
Hello there at SMS

I made some overlays for pCars in windowed mode.
With the sharedmemory.h and all the structs it is relatively easy to access all data
I want to display except mCarFlags.
example: in a race mCarFlags=2 (CAR_ENGINE_ACTIVE works)
I turn on the headlights => mCarFlags=3 (+1 form CAR_HEADLIGHT works)
but if I turn on ABS or Stability or TractionControl nothing changes, mCarFlags=3 still

I know, u guys are very busy but is there a way to update the SharedMemory-API or sharedmemory.h
so mCarFlags is updated correctly?
Or am I missing something and using mCarFlags wrong?

atleast in the Forum this update for UDP and SM is stated (though not working for me):
// (Type#9) Car Flags (to be used with 'mCarFlags')
enum
{
CAR_HEADLIGHT = (1<<0),
CAR_ENGINE_ACTIVE = (1<<1),
CAR_ENGINE_WARNING = (1<<2),
CAR_SPEED_LIMITER = (1<<3),
CAR_ABS = (1<<4),
CAR_HANDBRAKE = (1<<5),
CAR_STABILITY = (1<<6),
CAR_TRACTION_CONTROL = (1<<7),
};

thx a lot in advance for any help or answer!!!! ;)

satco1066
18-12-2016, 21:53
Hello there at SMS

I made some overlays for pCars in windowed mode.
With the sharedmemory.h and all the structs it is relatively easy to access all data
I want to display except mCarFlags.
example: in a race mCarFlags=2 (CAR_ENGINE_ACTIVE works)
I turn on the headlights => mCarFlags=3 (+1 form CAR_HEADLIGHT works)
but if I turn on ABS or Stability or TractionControl nothing changes, mCarFlags=3 still

I know, u guys are very busy but is there a way to update the SharedMemory-API or sharedmemory.h
so mCarFlags is updated correctly?
Or am I missing something and using mCarFlags wrong?

atleast in the Forum this update for UDP and SM is stated (though not working for me):
// (Type#9) Car Flags (to be used with 'mCarFlags')
enum
{
CAR_HEADLIGHT = (1<<0),
CAR_ENGINE_ACTIVE = (1<<1),
CAR_ENGINE_WARNING = (1<<2),
CAR_SPEED_LIMITER = (1<<3),
CAR_ABS = (1<<4),
CAR_HANDBRAKE = (1<<5),
CAR_STABILITY = (1<<6),
CAR_TRACTION_CONTROL = (1<<7),
};

thx a lot in advance for any help or answer!!!! ;)

I don't really know if it works in SM, in UDP it does.
Can't you read that values with UDP at localhost ?

MikeyTT
18-12-2016, 22:09
ABS only shows when you have ABS enabled in the game and you're braking hard enough to actually trigger ABS on the car.

As for Stability and Traction, then they aren't supported in Shared Mem, it's only UDP.

bigj_pcars
19-12-2016, 17:31
thx, guys :)

there is mCarFlags and AntiLockActiv
what sence does it make to have such flags like CAR_ABS, CAR_STABILITY and CAR_TRACTION_CONTROL
in both UDP and SM if in SM they dont work?
well some day i will try out UDP
i would prefer sharedmemory though, because i need the overlays on my pCars machine
no need for lan/local host connections (i guess there is bigger latency going over lan or connection instead of directly to SM?)
ill upload the overlays as soon as some more testing is finished

thx satco and Mickey for your help
and big thx to SMS for a real great race sim!!!!

Edit: sry if i sounded too rude :) wasnt intended ;) cu all

bigj_pcars
22-12-2016, 06:50
satco1066, MickeyTT

i finally just tried it out and you were right:
ABS, SC and TC only show up when triggered.
it works in SM, too
it was my fault.
i expected the same behaviour like the headlights flag (technically its the same :) shows when triggered)

thx again and happy racing!!!!!!!!!!!!!!!!!
;)