Getting rows in a data table affected by a delay?

Hello all, I hope someone can help…

I have a strange issue when I am getting rows in a data table…
I am using a loop with a delay to read the values as you’ll see.
All is fine except when I use a delay longer than 5 seconds, the longer the delay the less change the data is received from the table!
If I use a delay of 2 seconds or so, all rows get read, if I use a delay of 10 only 5 rows get read.
This really doesn’t make sense to me, I’ve extensively checked that this blueprint isn’t being triggered anywhere else (it’s the main game mode for the project).
There’s not much to this blueprint really, I’ve tried different data tables with different numbers of entries, but the behaviour is the same.
Any ideas woudl be much appreciated, thanks.

Can we see that loop?

Yep, just posted an image (its not a For loop, just a custome event that loops round and round)

Oh, so it’s neither a loop or a timer. Can’t see it clearly. Is this what you’re doing:

Is this supposed to be disconnected?

image

1 Like

Odd you can’t see it, I uploaded a big image if you click on it.
But yes that’s the sort of thing.

Yes that’s the rest of the code I omitted to take it out of the equation

This is what we actually see ;p:

It’s readable.

If I use a delay of 2 seconds or so, all rows get read, if I use a delay of 10 only 5 rows get read.

What does your print actually print? 1,2,3,4… ?

1 Like

Sorry yes that isn’t clear at all. I’ll try and do a bigger one.
Yes it prints the rows fine, all the way up to 10 if the delay is 4 or less, only up to 5 if the delay is 10, and only up to about 3 if the delay is 20.

1 Like

1 Like

Curious! Even though there’s technically nothing wrong with it, I’d advise against this very method, at least for this. Could you try this instead:

This timer executes the event every Time seconds. See how it goes.


Out of sheer curiosity, what else could that int be used for?

1 Like

Thanks for that, unfortunately it didn’t fix it but it now counts up to 6! (with a Time of 5).
It still counts up to 10 with a Time of 1, and up to 3 with a Time of 10.
The INT isn’t used anywhere else, to be sure I made a new one and it has the same behaviour.
I appreciate the help anyway.

I think we’re looking for the issue in the wrong place.

  • do you pause the game someplace?
  • how can you tell when it stops working? How are you testing this?
  • also, could you try this:
    – run the game, select the Offroad Game Mode in the debugger drop down at the top
    – right click the var name in the graph and Watch This Value

What do you get?

it didn’t fix it but it now counts up to 6! (with a Time of 5).

Can we get higher? Apart from the countdown not working, your game still works fine?

1 Like

I do use pauses but disabled them just in case, also the offroad gamemode blueprint is set to “unpauseable”

When watching the variable it goes blank when it reaches 10, 5, or 4 dependant on the same conditions as before.

Everything else in teh game works fine - I use this code to spawn groups of enemies aand noticed I could only spawn a certain amount of them, but I ytirrf dtripping it foen to just displaying numbers but its still the same.
I do agreee it must be somewhere else that the problem is happening - the only references to the offroad game mode is in the default for the level and the master map

1 Like

Is it possible that you have one of those crazies somewhere:

And literally flood the latency system?


The issue is not with the script you had.

the variable it goes blank when it reaches 10, 5, or 4

Blank as in there’s no value?

image

1 Like

No, nothing quite a crazy as that :slight_smile:
I will check as see if there is anything super demanding happening anywhere though.
Blank as in no grey box shows up at all after the offending number is reached

I’ve found the problem (at least the root cause of it)

I tried setting my Pawn to none in the game mode and it worked fine - all values at all delay times displayed normally.
There is a LOT going on it my Pawn blueprint, so I’ll go through that yntil I find what’s causing the latency issue.

Thanks so much for your time and helping me to track down where to look, its much apprecaied :heart:

1 Like

At the risk of others shaking their heads with disgust I’ll share an image of my Pawn blueprint (well most of it as it doesn’t all fit on the screen at once).
I need to spend some time refining this obviously, although I suspect I can narrow down exactly what it casuing the latency issue.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.