Upcoming Games

(UTC times)


Full list
Add a game

Upcoming Events

No events to display

Signal update frames duplicating?

You are here: Home > Forum > Customising SimSig > Interface Gateway > Signal update frames duplicating?

Page 1 of 1

Signal update frames duplicating? 30/06/2024 at 08:23 #157709
itwithlyam
Avatar
2 posts
Hi, I have been experimenting with the Interface Gateway recently and have managed to connect reliably running with a scenario using full ARS. However, looking through the data, some events like signal updates appear to be duplicated (sending twice), and sometimes even tripled. I have attached some examples (after being sent into a Discord channel by a bot) of this happening.






Post has attachments. Log in to view them.
Log in to reply
Signal update frames duplicating? 30/06/2024 at 08:27 #157710
itwithlyam
Avatar
2 posts
Now I think about it, this may just be how ARS works? I've not tested it with humans yet so it will be interesting to see the differences.
Log in to reply
Signal update frames duplicating? 02/07/2024 at 08:29 #157718
jonathanp
Avatar
17 posts
I don't think that any guarantee is given that a Signal Data message represents a discrete event which has just occurred in the simulation. It simply says what the current state is. If no non-event messages were ever sent it would be impossible to get the full state of the program without clearing and replacing every signal.
It's up to your program to keep track of the simulation state and determine if any relevant changes have occurred.

Last edited: 02/07/2024 at 08:30 by jonathanp
Reason: None given

Log in to reply
Signal update frames duplicating? 02/07/2024 at 15:29 #157720
Dionysusnu
Avatar
576 posts
Online
SimSig does implement the Snapshot request message to get the whole state of the simulation. From my experience, signal states only get sent when they do update.
Nevertheless, I agree that a discreteness guarantee is not a useful expectation.

Last edited: 02/07/2024 at 15:30 by Dionysusnu
Reason: None given

Log in to reply
Signal update frames duplicating? 02/07/2024 at 17:39 #157722
GeoffM
Avatar
6318 posts
It is possible that some internal states trigger an Interface Gateway message without any apparent changes. That said, the example shown only shows one of the nine possible Information Gateway signal change types (ie only showing aspect) so is not a helpful example.

Yes, SimSig uses snapshots.

SimSig Boss
Log in to reply