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

[BUG] Blank Screen on the Map Editor #99

Open
JasminDreasond opened this issue Oct 30, 2023 · 8 comments
Open

[BUG] Blank Screen on the Map Editor #99

JasminDreasond opened this issue Oct 30, 2023 · 8 comments
Labels
bug Something isn't working

Comments

@JasminDreasond
Copy link

System information
Linux Ubuntu 23
Game 1.2.5

Describe the bug
The Map Editor simply opens a blank window. At first everything seems to behave normally, but at some random moment when I try to open the map editor, this will happen, and not even clearing the software cache will not solve the problem.

Expected behavior
The Map Editor opens normally.

Screenshots
It's simply a blank page, I don't see the need to take a screenshot of a 100% solid color screen.

@JasminDreasond JasminDreasond added the bug Something isn't working label Oct 30, 2023
@Durtur
Copy link
Owner

Durtur commented Oct 30, 2023

If I understand you correctly the map window opens normally but at some random point you are not able to open it? Is the window then completely unresponsive or are you able to open the developer tools with ctrl+shift+i ?

@JasminDreasond
Copy link
Author

yep. the window becomes completely unusable, but the page continues to work. I updated to version 1.2.6, but the problem continues.

the first time I had suddenly managed to stop the bug somehow, but now I can no longer in any way remove the bug because I don't know what to do. I would recommend you first update electron to last electron version, this way maybe I can also try to figure out what is going on.

@Durtur
Copy link
Owner

Durtur commented Oct 31, 2023

Last time I built this for linux it was the sharp image library (https://sharp.pixelplumbing.com/) that was causing the window to become completely unresponsive on Linux, I guess the solution might be to move it into the main process (it should be there anyway, along with all nodejs stuff). Updating electron might help yes, unfortunately I don't have a lot of time to work on this project these days but I will take a look at this

@Durtur
Copy link
Owner

Durtur commented Oct 31, 2023

Upon further reading it seems like the sharp library needs to be installed on a machine that has the same runtime architecture. So if you would like to fix the build for your machine you can try to remove it and add it again, e.g.

yarn remove sharp
yarn add sharp

@JasminDreasond
Copy link
Author

yep. When I did this, many things that were previously working incorrectly were suddenly working correctly. I would recommend you put this information in "README.md".

@JasminDreasond
Copy link
Author

I'm still a little confused. Why doesn't saving the map save the position of tokens and players?
I tried to find some documentation on how to use the application, but I couldn't find it.

@Durtur
Copy link
Owner

Durtur commented Nov 8, 2023

The map doesn't save the state of the tokens. Instead I would recommend you add your players in the player menu and set their tokens, so they are added on map load. As for monsters, you can add tokens to the individual statblocks and add them to the map by doing ctrl+shift+e and then add to map. That way you track the combat state and tie each row to a specific token on the map

@Durtur
Copy link
Owner

Durtur commented Nov 8, 2023

Unfortunately I have not set up any sort of documentation but there is a little bit outdated usage guide in the about window, (?) icon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants