-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
((original suggestion by Roy on the TW forum thread))
Instead of having to make mod releases everytime new banners need to be added, there should be a feature where faction "lords"
can upload a image in game. Admins get a notification about this and then can approve or reject the image.
Once an image got approved it will be distributed to all connected clients so they can display an image that they do not have stored locally on their machine.
- For ease of implementation, images can be transported via base64
- A CustomBannerChange NetworkMessage will trigger a check if the image is already available on the client via hashcompare on a file level
- if the image is available it will be set accordingly
- if the image is not available the client will ask the server to send the encoded image to the requesting client
- Images are stored on the server file system on upload.
- First iteration will be without database reference to images to avoid out of sync issues if files are deleted on the FS or vice versa in the database
- The image file header needs to be checked for magic numbers to ensure file type security as well as a file size limitation
- Upload should be a config in states:
- disabled: no upload is possible, only already shipped images
- temporary: images will be deleted on map change or server restart
- permanent: images will be kept on the file system
🏰 Discord Suggestion from BridgeTroll@7127