Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raptor_spawner_defense: Call to synced math.random with no range. #4048

Open
saurtron opened this issue Dec 20, 2024 · 0 comments
Open

raptor_spawner_defense: Call to synced math.random with no range. #4048

saurtron opened this issue Dec 20, 2024 · 0 comments
Labels
Bug Something isn't working

Comments

@saurtron
Copy link
Collaborator

saurtron commented Dec 20, 2024

Description

Some players getting this error Empty interval in math.random() {synced}, not sure why. That implies the lower value is bigger than the higher one.

Expected Behaviour

There should be no error.

Actual Behaviour

Empty interval in math.random() {synced}
stack traceback:
	[C]: in function 'mRandom'
	[string "LuaRules/Gadgets/raptor_spawner_defense.lua"]:741: in function 'SpawnBurrow'
	[string "LuaRules/Gadgets/raptor_spawner_defense.lua"]:1829: in function 'GameFrame'
	[string "LuaRules/gadgets.lua"]:1152: in function 'selffunc'
	[string "LuaRules/gadgets.lua"]:818: in function <[string "LuaRules/gadgets.lua"]:815>"
[t=00:04:15.054057][f=0000046] Error: [LuaRules::RunCallInTraceback] error=2 (LUA_ERRRUN) callin=GameFrame trace=[Internal Lua error: Call failure] [string "LuaRules/Gadgets/raptor_spawner_defense.lua"]:741: Empty interval in math.random() {synced}
stack traceback:

Reproduction steps

No response

Other

No response

@saurtron saurtron added the Bug Something isn't working label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant