Error trying to display an error
Brilliand opened this issue · 0 comments
Brilliand commented
Describe the bug
I've been getting the following error in the game console while trying to debug a mod:
"TypeError: Property 'print' of object [object Object] is not a function in File: qrc:/resources/scripts/general/global.js at Line: 99 File: Line: 0 Function:"
To Reproduce
Steps to reproduce the behavior:
Try to use Math.random() in a mod.
Expected behavior
The console should instead show the error "Unsupported call to Math.random. Please use globals.randInt(min, max) instead"
Desktop (please complete the following information):
- OS: Windows 10
- Version: 2004
- Active Mods: Bug is about a modding interface
- Game Version: 0.33.1-main