A packet going into LFS. To put it bluntly:
• Player x types command !i_want_objects_added_here
• InSim program creates the IS_AXM and assigns the UCID of the player to the IS_AXM packet UCID
• InSim program sends the packet
• LFS receives the packet, adds (or deletes) the objects and sends the IS_AXM reply
That IS_AXM reply with that player UCID can be useful. The InSim program can detect exactly who sent IS_AXMs and when they are received. It's the same as what LFS reports when a player adds an object using the LFS autocross editor only for custom InSim IS_AXM packets.
In the end after some thought I think it's a messy explanation and probably only useful to me but on the other hand I maintain that TINY_SEL on multiplayer hosts would be nice
Good to know
EDIT:
To answer your question from a few pages back. I successfully tested this multiple race idea running 3 races on Westhill simultaneously. It works seamlessly (although that might be another story on a packed server). But InSim wise it is now easy to implement multiple races.
With an option to flash a color on/off/on/off so you don't need to send a zillion OCO packets would be great.
In open layout mode it then is possible to recreate the yellow/blue flags sector based / race control based. And it's an add on to the existing track combo's.
Comment about the packet; "byte Zero;" whats this? Shouldn't that be Sp0?
Comment 2 about bits, I get;
bit0 : lights off bit1 : red bit2 : middle red bit3 : double red bit4 : lights off bit5 : red bit6 : middle red bit7 : double red bit8 : green bit9 : red and green bit10: middle red and green bit11: all lights on \o/
When I test it.. I am confused about this. Does bit mean bitwise? Also doesn't look like it's bitwise
Also I am unable to set a specific identifier. I have some lights placed on the track, identifiers 0, 1, 2, 3, 4 but whatever I do they all react together on every OCO including the official start light (layout is loaded by server first). I tried sending an OCO with OCO_LIGHTS_RESET followed by a OCO_LIGHTS_SET packet but that didn't help? Official track light and all OCO_INDEX_MAIN keep reacting all together.
Yes that would be good. I also want to work on getting access to all the other lights on the tracks, giving them an index and an identifier. But not for this update which we want to release this week.
The eight bits of a byte are numbered from 0 to 7.
Bit 0 is the 1's column
Bit 1 is the 2's column
Bit 2 is the 4's column, etc.
So to set bit 0, you send the number 1.
To set bits 2 and 0 you send the number 5 (101)
To set all the low 4 bits you send the number 0xf (1111)
In your example, you are using the Index 240, that means set all lights including the official start lights.
OK.. Didn't read correctly and assumed all the time I needed to use 240, thanks for clearing this up.
But.. I still dont get the bits thing. Lets assume sending a 10, 0xA in Hex or 1010 in binary. So bit0 is 1 and bit2 is also 1. InSim.txt says;
// bit 0 : red1 // bit 1 : red2 // bit 2 : red3 // bit 3 : green
So red1 and red3 ... No idea how to distinguish red1,2 and 3 . But besides that... I don't get a red1 and red3 at all. I get the middle one in red and I get green?
I'm just trying to think how the car's timers could work, if I could do a system to allow the car's clocks to be independently started and you could send in splits and finish lines from InSim, so hooking into the game's system.
I'm not considering it any more for this update as it's too complicated and we want to get the full version out on Saturday. I'm just interested to know what mode the server is in. I suppose it's cruise mode, but practice mode would also work, I guess.
I joined this morning but it didn't seem to be in race mode. Maybe there's a good time later today or this evening?
Are the drag strip lights fully controllable? I guess the data byte would be different. Would be nice if these (and South City's road traffic lights) were placeable objects
If you place the start lights object mid-race and try to set the lights for it, they will not do anything until the race is restarted or ended and started again.
Changed TINY_SEL to more useful TTC_SEL to get a connection's selection
Similarly IS_AXM with PMO_SELECTION can set a connection's selection
Overridden start lights states are now sent to joining players
I've made K21 unlockable now. But if K9 was unlocked and you installed K21 exe in the same place, you should not have needed to unlock K21. I don't know if that also is the explanation for the texture error?