FrankProjects / UltimateWarfare

Ultimate Warfare is an online multiplayer browser based strategy game written in PHP 8.3 and Symfony 7
https://ultimate-warfare.com
MIT License
32 stars 12 forks source link

Admin: Creating new game world doesn't generate map tiles #186

Open frank9999 opened 5 months ago

frank9999 commented 5 months ago

When manually generating game worlds from the admin panel it doesn't generate map tile images.

Workaround: Run console command to regenerate world images after generating the world.

php bin/console  game:maintenance:update:world-map-images
frank9999 commented 5 months ago

Hmm it does generate the map tile images, it's just a server permission issue:

Warning: imagejpeg(/var/www/prod.ultimate-warfare.com/releases/14/public/images/world/2.jpg): Failed to open stream: Permission denied

Note to self: Make public/images/world and public/images/sector a writeable symlinked directory. This will solve world generation images and we no longer have to regenerate all world images on new deploys