مطلع حق بیمه برای مخفی کردن تمام تبلیغات
پست ها: 6   بازدید شده توسط: 32 users
07.08.2019 - 03:38
 ZEDO
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
بارگیری...
بارگیری...
08.08.2019 - 02:35
 Dave (رئیس)
نوشتع شده توسط ZEDO, 07.08.2019 at 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


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
----
All men can see these tactics whereby I conquer,
but what none can see is the strategy out of which victory is evolved.
--Sun Tzu

بارگیری...
بارگیری...
08.08.2019 - 06:48
 ZEDO
The map is The Nine Districts by me, and all scenarios are affected . How can I fix the map?
بارگیری...
بارگیری...
10.08.2019 - 06:52
 Sascha (وزارت دفاع)
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
بارگیری...
بارگیری...
12.09.2021 - 09:36
 Dave (رئیس)
نوشتع شده توسط ZEDO, 07.08.2019 at 03:38



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

نوشتع شده توسط Sascha, 10.08.2019 at 06:52



Thanks Sascha for providing the detailed info, that was what I needed to solve this
----
All men can see these tactics whereby I conquer,
but what none can see is the strategy out of which victory is evolved.
--Sun Tzu

بارگیری...
بارگیری...
12.09.2021 - 10:28
 Dave (رئیس)
----
All men can see these tactics whereby I conquer,
but what none can see is the strategy out of which victory is evolved.
--Sun Tzu

بارگیری...
بارگیری...
atWar

About Us
Contact

حریم خصوصی | شرایط و قوانین | بنرها | Partners

Copyright © 2024 atWar. All rights reserved.

به ما بپیوندید در

گسترش این کلمه