Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[screenshot.js] Error loading textures #119

Closed
shketov opened this issue Jan 14, 2021 · 1 comment
Closed

[screenshot.js] Error loading textures #119

shketov opened this issue Jan 14, 2021 · 1 comment

Comments

@shketov
Copy link

shketov commented Jan 14, 2021

When I try to take a screenshot, I get an error that no. png file with textures was found at the specified path

Using version: 1.12
(node:2072) UnhandledPromiseRejectionWarning: Error: ENOENT, No such file or directory 'C:\Users\shketov\Desktop\Bot\node_modules\prismarine-viewer\public\textures\1.12.png'
    at setSource (C:\Users\shketov\Desktop\Bot\node_modules\canvas\lib\image.js:91:13)
    at Image.set (C:\Users\shketov\Desktop\Bot\node_modules\canvas\lib\image.js:62:9)
    at C:\Users\shketov\Desktop\Bot\node_modules\canvas\index.js:34:15
    at new Promise (<anonymous>)
    at loadImage (C:\Users\shketov\Desktop\Bot\node_modules\canvas\index.js:23:10)
    at loadTexture (C:\Users\shketov\Desktop\Bot\node_modules\prismarine-viewer\viewer\lib\utils.js:7:3)
    at WorldRenderer.setVersion (C:\Users\shketov\Desktop\Bot\node_modules\prismarine-viewer\viewer\lib\worldrenderer.js:61:5)
    at Viewer.setVersion (C:\Users\shketov\Desktop\Bot\node_modules\prismarine-viewer\viewer\lib\viewer.js:34:16)
    at Object.module.exports.main (C:\Users\shketov\Desktop\Bot\modules\screenshot.js:27:10)
    at C:\Users\shketov\Desktop\Bot\commands\help.js:17:16

image

@rom1504
Copy link
Member

rom1504 commented Jan 14, 2021

duplicate of #120

@rom1504 rom1504 closed this as completed Jan 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants