flag image file ext
-
I noticed on some maps flags are .gif and some are .png, but the xml file does not specify which. So is the engine testing for every type of image when it loads these?
-
@mahks .gif and .png are the only 2 that are supported and checked for.
-
As a supporter of the png format:
We should drop gif support
(But really migrate the existing images to png!! Because of the filesize and color variety) -
@roiex What do you mean? Dropping gif support for flags or generally or for what cases?
-
@Cernel I was just joking ^^
But PNG really is superior to gif -
@roiex Not necessarily. There is 1 thing PNG cannot do. Look at the notifications of Iron War.
Something like "WebP" would be absolutely superior to GIF. Would it make any sense to make a feature request to support "WebP", or just no way for java? -
Meaning PNG is superior to GIF except only for the fact that it doesn't support animations.
-
@Cernel I don't think such a feature requests would be feasible right now, simply because SWING is a very old framework that doesn't support new standards.
After an UI Migration this might be possible but we don't know yet.Are there some maps using gifs for animations?
-
Yes, the notification mini movies in Iron War are gif animations.
EDIT: I think that rotating globe that one of the maps has is also gif, but I'm not sure.
Just out of curiosity, can unit images be animated? Or flags etc. I have only seen animations in notes and notifications.
-
@roiex Are there any other ways at all but GIF to have animations, currently?
If the answer to my question is no, then the answer to your question is that all maps having animations are using gif.
@Frostion Unless recent changes, I tested all ways and animations on board (like having animated flags or units or decorations) never appeared to work. Only in notes or notifications.
-
@frostion Yes. Unless I'm unaware of other rotating stuff, the rotating globe of World At War is a gif, as I'm not aware that can be made any other ways.
-
Yeah, I don't think gifs in map images are possible from a code perspective either.
We're loading in the images during the loading of the map and draw it a single time when needed. So animations don't seems to be possible except in HTML contexts -
@roiex I also tried for an animated gif for the cursor and animated images of rolling dice for the custom dice images, but they didn't work, either.
-
@roiex said in flag image file ext:
After an UI Migration this might be possible but we don't know yet.
Cool. My suggestion would be keeping an eye open for anything that allows animation and it is not as limited as GIF. Like the possibility to have videos (MP4?) in the notifications (sounds are already supported), if not "WebP" images.
-
In regards to a new UI and videos, it might also be nice to be able to embed YouTube video into the notes or notifications. Perhaps this could be useful for examples, tutorials, map intros and stuff