Running on Windows 7, Nvidia GTX 1050Ti, I5, 16GB ram, Arcade mode, turns (8) characters VS cpu Single, 1280x720 windows mode, no shaders.
not sure what it is but got an error log, game suddenly crash.
Spoiler, click to toggle visibilty
invalid argument to Intn
goroutine 1 [running, locked to thread]:
github.com/yuin/gopher-lua.(*LState).PCall.func1(0x8a4644, 0x1384a360, 0x2a12dddc, 0x0, 0x0, 0x0)
/code/go/src/github.com/yuin/gopher-lua/state.go:1964 +0x4d3
panic(0x7fd4c0, 0x92cef0)
/usr/lib/go-1.12/src/runtime/panic.go:522 +0x165
math/rand.(*Rand).Intn(0x138768a0, 0x0, 0x0)
/usr/lib/go-1.12/src/math/rand/rand.go:169 +0x7b
math/rand.Intn(...)
/usr/lib/go-1.12/src/math/rand/rand.go:329
github.com/yuin/gopher-lua.mathRandom(0x1384a360, 0x13968078)
/code/go/src/github.com/yuin/gopher-lua/mathlib.go:196 +0xf3
github.com/yuin/gopher-lua.callGFunction(0x1384a360, 0x0, 0x1398a580)
/code/go/src/github.com/yuin/gopher-lua/vm.go:163 +0x31
github.com/yuin/gopher-lua.init.3.func26(0x1384a360, 0x7c000403, 0x13968000, 0x0)
/code/go/src/github.com/yuin/gopher-lua/vm.go:764 +0x311
github.com/yuin/gopher-lua.mainLoop(0x1384a360, 0x13968000)
/code/go/src/github.com/yuin/gopher-lua/vm.go:31 +0xba
github.com/yuin/gopher-lua.(*LState).callR(0x1384a360, 0x0, 0xffffffff, 0x0)
/code/go/src/github.com/yuin/gopher-lua/state.go:1191 +0x18c
github.com/yuin/gopher-lua.(*LState).Call(...)
/code/go/src/github.com/yuin/gopher-lua/state.go:1943
github.com/yuin/gopher-lua.(*LState).PCall(0x1384a360, 0x0, 0xffffffff, 0x0, 0x9320b0, 0x2b880ac0)
/code/go/src/github.com/yuin/gopher-lua/state.go:2006 +0xe2
github.com/yuin/gopher-lua.(*LState).DoFile(0x1384a360, 0x1384ed40, 0xf, 0x1384a360, 0x56)
/code/go/src/github.com/yuin/gopher-lua/auxlib.go:394 +0x93
main.main()
/code/src/main.go:263 +0x1833
stack traceback:
[G]: in function 'random'
.\script\select.lua:408: in function 'f_selectStage'
.\script\select.lua:977: in function 'f_selectAdvance'
script/main.lua:1616: in function 'f_mainMenu'
script/main.lua:2211: in main chunk
[G]: ?