Page 1 of 1
Bug in math.random?
Posted: Thu Sep 06, 2018 6:11 pm
by wx3
math.random(7) seems to be returning values from 0 to 7 (should return from 1-7). Is this a known bug?
I'm on version 1.7.7.2.
Re: Bug in math.random?
Posted: Thu Sep 06, 2018 7:46 pm
by Tony Li
Hi,
Yes, that appears to be a bug in LuaInterpreter. I'll fix it in versions 1.8.6 and 2.0.5. I'm going to be traveling next week, which will delay 1.8.6 until the week after. I'll still be providing support through email and the forum, but development will be on hold next week.
Re: Bug in math.random?
Posted: Fri Sep 07, 2018 11:58 am
by Abelius
Oh, this could explain some bugs we had in the past.
Re: Bug in math.random?
Posted: Sun Sep 09, 2018 12:11 pm
by Tony Li
This is fixed for version 2.x in patch 2018-09-09. (PM me your Asset Store invoice number if you need access.)
- Fixed: Lua math.random(x) now correctly return values [1..x] instead of [0..x].
- Fixed: TextMesh Pro Typewriter Effect wasn’t using alternate audio clips.
- Input Device Manager: Added Control Graphic Raycasters checkbox.
- Standard & Unity UI dialogue UIs & quest log windows: Added Add EventSystem If Needed checkbox.
- articy:draft: Instructions and Jumps are now converted as blank nodes with None() sequences instead of Group nodes.
- Invector Controller: Added vAddItemByID() Lua function.
I'll have a fix in 1.8.6 the week after next.