07.08.2019 - 03:38
I made a new map recently in HTML5, and played it, people can Join when they are in the lobby , but once the game is started, Either they are Stuck on Finalizing and it doesnt load... Or they get the error below and Dont load. Error: Error: Uncaught InvalidStateError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0., Script: https://atwar-game.com/java/atwar.core.min.201903310737.js, Line: 1, Column: 86434, StackTrace: InvalidStateError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0. Please help me fix this thanks
Laden...
Laden...
|
|||
08.08.2019 - 02:35
It means the map is broken. What map is it? Also next time please read this before opening a bug report: https://atwar-game.com/forum/topic.php?topic_id=39713
----
Laden...
Laden...
|
|||
08.08.2019 - 06:48
The map is The Nine Districts by me, and all scenarios are affected . How can I fix the map?
Laden...
Laden...
|
|||
10.08.2019 - 06:52
Not sure if Dave already fixed the map (https://atwar-game.com/maps/?show_map_details=1&map_id=25019) but I don't have any problems or errors if I host the original map. But the scenarios might have some issues. I couldn't reproduce the finalizing error in firefox or chrome but got the following errors: Bug Report Expected behavior If I host the scenario called "District War I" (https://atwar-game.com/maps/?show_map_details=1&scenario_id=22579) I expect it to load into the game normally after starting without any errors and a normal starting picking phase. Actual behavior In firefox: After starting the game the error from the screenshot under attachments appears in chat and there's also a weird thing with the pick phase. Somehow the button for picking the scenario sides only shows up after some time and not instantly like it should and I was the only one picking. In chrome: Almost the same behavior as in firefox but different errors in chat. The picking scenario sides are also delayed for some reason. See the screenshots under attachments Steps to reproduce the behavior Host the scenario and start the game the errors will appear in chat and console. Information: Browser: Firefox and Chrome Browser version: Firefox Quantum 68.0.1 (64-bit) Google Chrome 76.0.3809 (64-bit) OS: Windows 10 (64-bit) Any other relevant information: To me, it looks like the errors don't influence the game besides the picking phase delay. Which is the only thing I noticed yet. Attachments: Firefox: Chrome:
---- Life has no limitations, except the ones you make. --Les Brown
Laden...
Laden...
|
|||
12.09.2021 - 09:36
This should be fixed now. I've released a patch to prevent this particular JS error from happening. However, the root cause of the error is glitched borders on the map, so its still possible you might run into other problems because of that. If so, take a look at this similar bug report, which explains that open borders (i.e. gaps in the borders) are one cause of it. @Mesopotamia explains how to fix it on that bug report. Beyond that, if you run into any more errors with it, just let me know
Thanks Sascha for providing the detailed info, that was what I needed to solve this
----
Laden...
Laden...
|
|||
12.09.2021 - 10:28
Cross-referencing related bug reports for my own benefit: https://atwar-game.com/forum/topic.php?topic_id=47074 https://atwar-game.com/forum/topic.php?topic_id=44331 https://atwar-game.com/forum/topic.php?topic_id=41897 https://atwar-game.com/forum/topic.php?topic_id=44989 https://atwar-game.com/forum/topic.php?topic_id=47870 (maybe) and https://atwar-game.com/forum/topic.php?topic_id=41303
----
Laden...
Laden...
|
Weet je het zeker?