Exported game without debug behaves differently than with debug or in editor

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By lxknvlk

Wtf and how do i fix it?

Its like the code just for some reason randomly does not execute, there is a Timer node involved. There are no irregularities, just a code that is executed in a timer callback, and
the timer is started again, so to execute the code with delays, using random intervals with

randomize()
randi()

and also incrementing of a variable happens and some other things like instantiation a node with textures.

For 4 iterations it goes as needed, then for some reason it doesnt happen anymore.

The exact function of getting intervals is

func get_random(minv, maxv):
	randomize()
	return randi() % (maxv - minv) + minv

used with small values less then 10. Okay i have an idea, i will check the interval that was produced here, perhaps it is just for some reason happening to be a huge interval.

Can the ranomize/randi functions work strange on release builds?

Well, for starters, you need to provide more information… What does behaves differently mean exactly? And, what’s the export target?

jgodfrey | 2020-11-14 17:10

i have updated the question

lxknvlk | 2020-11-14 19:55