I think he means say you pass through checkpoint 1 first time, try moving it afterwards, does it work in 'lap 2' in the new position? If so you could make a route yourself using multiple laps by moving each checkpoint as you go through them. Only problem would be it would only work for 1 car in race afaik
Here's what I have for the new car contact stuff, I added COLLISION_REPORT(50) to the PacketType enum and registeredTypes.put(PacketType.COLLISION_REPORT, CollisionResponse.class); to ResponseFactory too. Testing shows nothing happening at all atm
static public final int OG_TURBO = 8192; // show turbo gauge static public final int OG_KM = 16384; // if not set - user prefers MILES static public final int OG_BAR = 32768; // if not set - user prefers PSI
static public final int DL_SHIFT = 0; static public final int DL_FULLBEAM = 1; static public final int DL_HANDBRAKE = 2; static public final int DL_PITSPEED = 3; static public final int DL_TC = 4; static public final int DL_SIGNAL_L = 5; static public final int DL_SIGNAL_R = 6; static public final int DL_SIGNAL_ANY = 7; static public final int DL_OILWARN = 8; static public final int DL_BATTERY = 9; static public final int DL_ABS = 10;
in that version for OutGaugeResponse, shouldn't the DL_* ones be:
static public final int DL_SHIFT = 1; static public final int DL_FULLBEAM = 2; static public final int DL_HANDBRAKE = 4; static public final int DL_PITSPEED = 8; static public final int DL_TC = 16; static public final int DL_SIGNAL_L = 32; static public final int DL_SIGNAL_R = 64; static public final int DL_SIGNAL_ANY = 128; static public final int DL_OILWARN = 256; static public final int DL_BATTERY = 512; static public final int DL_ABS = 1024; static public final int DL_SPARE = 2048; static public final int DL_NUM = 4096;
seeing as the documentation says its bit numbers?
EDIT:
Yes it is, worked out dashlights wasn't in flasg (duh), then tried working with dashlights, then realised its in showlights lol xD I blame the alcohol. Anyways works fine now, thanks a lot Now to the program itself lol
Yeah sorry, I decided to try updating jinsim instead of using a relay seeing as I'm trying to keep the thing pure java. Where can I find the technical details about insim/outgauge?
It prints nothing at all in normal use when flicking lights/indicators, but pressing 1/2 seems to give random flags and getting wrong route/restricted area seems to do the same. Even entering pits or pressing Esc seems to give results, anything but what I expected really. BAR and KM work tho.
Am I still using outdated flag values or has outgauage packets changed too and I need to fix parsing of them?
Ah thats great didn't know it was outdated code, the main download link pointed to 0.3, I went and got 0.5. Looking at this thread there seems to be a 0.6 out but I can't find source for it.
I'll use the relay for now, I can't seem to find the specs for outgauge atm, but I'll have a go at updating jinsim for new patches when I've finished my program.
Ah OK makes sense, I haven't done algorithm stuff for ages, am I right in thinking to get the individual flags that are on I try taking away the largest flag number, if the result is minus it means its false, if its positive I make the flag number that amount less and then do the same with each of the rest of the flags in reverse number order?