Page 1 of 2

Icons display improvements?

Posted: 21 Nov 2009, 22:01
by NTG
Hey guys/gals,
for some time I have been thinking about using some of system's API options and here comes my ideas:
Image
I hope you like it.
As far as I am concerned Windows (and Linux most likely as well) provides API for thumbnails (PDF readers, Crysis, Open Office... - matter of registering library) and for details (eMule, ...) - so why not to use it to preview maps (minimap; size, some other data) and mods (loading screen; some data about content)? It would really help managing and organising all those files.

What do you think about it?

Re: Icons display improvements?

Posted: 21 Nov 2009, 23:02
by bartvbl
+1
That would generally be awesome!
OpenOffice is open source, so we could (perhaps) use some of their code?

Re: Icons display improvements?

Posted: 22 Nov 2009, 14:50
by manolo_
really good idea

Re: Icons display improvements?

Posted: 22 Nov 2009, 15:18
by hoijui
this adds unitsync dependency to the OS
eg, your OS will die if you have an invlid map, or unitsync has a problem, or the OS plugin is written for an other unitsync version then you have installed, or cant find unitsync, ...
in short, your OS would get as bugged as before + spring bugs.

Re: Icons display improvements?

Posted: 22 Nov 2009, 17:40
by NTG
hoijui wrote:this adds unitsync dependency to the OS
eg, your OS will die if you have an invlid map, or unitsync has a problem, or the OS plugin is written for an other unitsync version then you have installed, or cant find unitsync, ...
in short, your OS would get as bugged as before + spring bugs.
Hmm, why not to use external plugin and:

Code: Select all

// check unitsynch interface version
if (unitsynch supported) get proper data
if (unitsynch doesn't return error / throws exception) return data to system
// unsupported unitsynch or error during operations:
return predefined image/ don't return anything*
And btw, if it would be distributed with Spring, there shouldn't be any problems with unitsynch - except it's internal errors - interface changes should block compiling.
By the way, about most of errors - can't find library, library doesn't return thumbnail etc - system tolerates it pretty well... Took me some time to register (and debug it when failed couple of times) FLV, MKV, RMVB, HTML extensions family, URL and MHT.

*No image returned = default application icon as in registry.

Re: Icons display improvements?

Posted: 22 Nov 2009, 21:09
by bartvbl
I agree. If the icon of the map/mod is mossing, just use the spring icon.

Re: Icons display improvements?

Posted: 22 Nov 2009, 21:43
by Satirik
No need for that, just chill.

Re: Icons display improvements?

Posted: 22 Nov 2009, 21:51
by AF
Nothing stopping us from opening the archive and checking the map filename against a folder of jpegs or bitmaps which is already written out by the lobby as a cache.

Or even better, some maps already bundle minimaps to speed up generation, or add water, in the form of a DDS.

I would say if this is implemented, it would be hundreds of times easier to implement in C# using the new windows 7 APIs.

Re: Icons display improvements?

Posted: 23 Nov 2009, 01:38
by smoth
I would be cool unfortunately this probably falls into that pile of cool ideas that no one is going to put the work into. However, good news is that this is an open source project! It would be a great learning experience for you if you tried to make this happen.

Re: Icons display improvements?

Posted: 23 Nov 2009, 12:04
by bartvbl
we should have a thread somewhere with all features like this, that no one wants to code, but were quite nice to have. That makes it much more inviting to others to pick one of them, and code them.

Re: Icons display improvements?

Posted: 23 Nov 2009, 20:24
by NTG
I think I've just found proper interface (thumbs, not additional data) and short course how to use it. I'll try coding in 2-4 weeks - too busy at the moment.

Re: Icons display improvements?

Posted: 23 Nov 2009, 20:31
by bartvbl
awesome!!

Re: Icons display improvements?

Posted: 23 Nov 2009, 23:07
by CarRepairer
I hate to be discouraging, but I'm curious of what use would this be? Users don't need to know map and mod files even exist. Would an experienced content creator benefit from this, if so how?

Re: Icons display improvements?

Posted: 23 Nov 2009, 23:55
by smoth
when getting ready for a lan, I like to reduce the size of my spring dir to specific maps so I can transfer quicker. If the files have icons it makes the copy paste faster :)

Re: Icons display improvements?

Posted: 24 Nov 2009, 00:16
by CarRepairer
smoth wrote:when getting ready for a lan, I like to reduce the size of my spring dir to specific maps so I can transfer quicker. If the files have icons it makes the copy paste faster :)
Interesting, an understandable scenario (that I never considered). Any others?

Re: Icons display improvements?

Posted: 24 Nov 2009, 04:04
by MidKnight
I have 4 files named Ice_mountain.sdz, each with a different map inside. :P

Re: Icons display improvements?

Posted: 24 Nov 2009, 13:12
by NTG
CarRepairer wrote:I hate to be discouraging, but I'm curious of what use would this be? Users don't need to know map and mod files even exist. Would an experienced content creator benefit from this, if so how?
If I download map/mod, use ArchiveMover and after a battle or two I think it sucks and want to delete it - it's easier to find.

Swapping files as smoth said - when my Spring dir is huge I usually delete some maps or burn them to DVD. Going back to old maps/mods is easier with that.

Searching for maps I don't remember name of - SpringLobby loads minimaps for quite a long (at the moment I have 150+) and Windows cache is pretty much faster.

Sometimes when I want to play some battles with friends I like to decide what maps to play (or which would suit me). This way I can easily prepare list, send maps they don't have (if LAN or fast connection) instead of sending list to search... Not everybody likes/have SpringDownloader.

Plus it's pretty good for newbies like me ( :roll: ) who like some personalisation and new gadgets... especially colourful gadgets as it's more inviting ;)

Re: Icons display improvements?

Posted: 24 Nov 2009, 15:54
by bartvbl
true. The generation of minimaps by SL is darn slow. Vista (and I suppose win7 too) has some nice features on resizing the size of the images. Overall it would be a great help :-)

Re: Icons display improvements?

Posted: 24 Nov 2009, 16:52
by Tobi
Why do you think Windows can extract data from 7-zip files faster than 7-zip?

Re: Icons display improvements?

Posted: 24 Nov 2009, 16:58
by CarRepairer
NTG wrote:
CarRepairer wrote:I hate to be discouraging, but I'm curious of what use would this be? Users don't need to know map and mod files even exist. Would an experienced content creator benefit from this, if so how?
If I download map/mod, use ArchiveMover and after a battle or two I think it sucks and want to delete it - it's easier to find.

Swapping files as smoth said - when my Spring dir is huge I usually delete some maps or burn them to DVD. Going back to old maps/mods is easier with that.

Searching for maps I don't remember name of - SpringLobby loads minimaps for quite a long (at the moment I have 150+) and Windows cache is pretty much faster.

Sometimes when I want to play some battles with friends I like to decide what maps to play (or which would suit me). This way I can easily prepare list, send maps they don't have (if LAN or fast connection) instead of sending list to search... Not everybody likes/have SpringDownloader.

Plus it's pretty good for newbies like me ( :roll: ) who like some personalisation and new gadgets... especially colourful gadgets as it's more inviting ;)
Well thank you for coming up with the idea and working on it. What I was hinting at was that it would be more useful for lobby clients to handle the management of maps and mods, but it couldn't hurt to have this too. It would certainly help in some scenarios.