Robosturm / Commander_Wars

The aim of this project is to create an Advance Wars Clone with a lot of additions customizations and modding support. For Contact Inforamtion see the wiki page. Take a view on the game.
https://github.com/Robosturm/Commander_Wars/releases
GNU Lesser General Public License v3.0
213 stars 33 forks source link

Error trying to display an error #1788

Closed Brilliand closed 4 months ago

Brilliand commented 5 months ago

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):