Kirilllive / tuesday-js

simple web-based, free and open-source visual novel editor that can be used in a web browser. It is written in JavaScript without using any third party libraries and thus does not require additional software installation. The engine uses standard HTML document elements such as div and img. This allows the use of any media format supported by browsers including vector graphics svg, gif animations and css styles.
https://kirilllive.github.io/tuesday-js/
Apache License 2.0
514 stars 62 forks source link

Uncaught TypeError: Cannot read properties of undefined (reading 'resolutions') #22

Closed drkl151 closed 1 year ago

drkl151 commented 1 year ago
Снимок экрана 2023-11-06 в 15 56 53

Hello, I am getting an error when trying to launch the preview screen. A couple of days ago everything was working, I didn’t change anything much, but the preview screen stopped working and gave the error Uncaught TypeError: Cannot read properties of undefined (reading 'resolutions'). Please tell me what could be the problem?

Kirilllive commented 1 year ago

Hello! I fixed the error with "resolutions", but I think this is not the problem, can you show what is in the "Add-on" section?

_Users_odin-interactive_Documents_Tuesday%20JS_tuesday_visual html

drkl151 commented 1 year ago
Снимок экрана 2023-11-06 в 18 05 04

Yes of course, here's my addition

Kirilllive commented 1 year ago

I tried to recreate your project, but I couldn't reproduce the error.

Screenshot 2023-11-06 at 19 44 51

I can assume from the mention of blob in the screenshot that there is a problem in one of the project files (the problem may be in the file name). You can send the JSON project file to tuesdayjsengine@gmail.com for a more precise definition of the problem?

drkl151 commented 1 year ago

I sent a json file, I will be very grateful if you can help me figure out the error)

Kirilllive commented 1 year ago

You really have a problem with the file names. You need to change the file names for the sounds from 1, 2, 3 to longer ones, I recommend using only latin characters for file names for maximum compatibility.

Screenshot 2023-11-06 at 20 12 36

To prevent the error with "resolutions" from happening again, you need to specify the screen size

Screenshot 2023-11-06 at 20 16 53
drkl151 commented 1 year ago

This helped a lot, thanks!