Shortened IDs for .svg: 2024-06-19 13:56:01 |
Coenquistatore
Level 58
Report
|
It's been a while now that i started waging my personal battle against .svg's weight.
As a mapper, it's kinda hard to understand that all the artistic skulduggery i place on the map will be converted in simple lines of code: color, map coordinates, size and shape, all turn in a series of characters. Among all of these, object IDs play a fundamental role, as to let the WZ editor recognize the territories and the bonuses as such, we are required to keep each object separate and Name them Territory_1, Territory_2, or BonusLink_X and BonusLink_Y.
So i begun wondering what if the Editor recognized as Territories and Bonuses shorter IDs like T_1 or T_2 and BL_ in addition to their longer counterparts?
I made a a series of experiments and my upcoming map with 3500 territories and 600 bonuses would be reduced from 2.9 mb to 2.6mb. Cool right?
Edit: I verified my claim and it seems that some awkward combination made me save this much space, but this happened only on one map and shouldn't be considered a valid example. The average loss is much less, sadly...
Edited 6/19/2024 23:57:59
|
Shortened IDs for .svg: 2024-06-19 15:29:29 |
Mgreedy
Level 35
Report
|
An extra 300 MB when you’re using all the extra tricks to save on space would be actually so much more to play with. Great idea!
|
Shortened IDs for .svg: 2024-06-19 18:21:56 |
(deleted)
Level 63
Report
|
That’s a really good idea.
|
Shortened IDs for .svg: 2024-06-20 01:54:56 |
(deleted)
Level 63
Report
|
With 43KB saved you can add more map art.
|