Knuckle Cracker

Knuckle Cracker => Support => Topic started by: Karsten75 on August 11, 2010, 03:37:44 PM

Title: Thumbnails - what does it take to do this?
Post by: Karsten75 on August 11, 2010, 03:37:44 PM
If I look at pictures on my computer, one of the options in viewing a folder is to see a thumbnail image. This is ttremendously helpful in identifying a picture.

With over 800 custom maps in my custom maps folder, it is very hard and approaching  impossible to find a specific map if I cannot remember the name of the map.

So what would it take (development-wise) to make it so there is a renderer (or whatever it is called) to show the thumbnail images in a folder view of Windows?
Title: Re: Thumbnails - what does it take to do this?
Post by: UpperKEES on August 11, 2010, 03:46:00 PM
When something like this would be implemented (like for CW2), it would also be nice if the file extension (i.e. '.cwm') was associated with the application, so you can just double-click any thumbnail to play that custom map.
Title: Re: Thumbnails - what does it take to do this?
Post by: Echo51 on August 11, 2010, 04:06:21 PM
A gallery like view would be nice, so would doubleclick to play maps.


The gallery view could be implentet as rendered on the run and as generated thumbnails that are saves(.jpg's)

but thats up to virgil to decide on ;)
Title: Re: Thumbnails - what does it take to do this?
Post by: thepenguin on August 12, 2010, 10:03:32 AM
Quote from: UpperKEES on August 11, 2010, 03:46:00 PM
When something like this would be implemented (like for CW2), it would also be nice if the file extension (i.e. '.cwm') was associated with the application, so you can just double-click any thumbnail to play that custom map.

I wrote a little script to do this for me
Title: Re: Thumbnails - what does it take to do this?
Post by: Karsten75 on December 10, 2010, 03:40:49 PM
Why don't you post that script here? It may be useful to others.
Title: Re: Thumbnails - what does it take to do this?
Post by: thepenguin on December 16, 2010, 07:38:12 PM
ok, just hit a minor bug (I hard-coded the directory) (5 minute fix)
Title: Re: Thumbnails - what does it take to do this?
Post by: Kamron3 on December 16, 2010, 09:58:54 PM
Quote from: thepenguin on December 16, 2010, 07:38:12 PM
ok, just hit a minor bug (I hard-coded the directory) (5 minute fix)
*notices that it has been over 2 hours...*
Title: Re: Thumbnails - what does it take to do this?
Post by: Overbyte on December 17, 2010, 01:34:52 AM
Quote from: thepenguin on December 16, 2010, 07:38:12 PM
ok, just hit a minor bug (I hard-coded the directory) (5 minute fix)

a cmd in windows would consist of :
in say creeper.cmd

@ echo off
copy %1 "%userprofile%\AppData\Roaming\CreeperWorld\workingmap.cwm"
"C:\Program Files (x86)\KnuckleCracker\Creeper World\Creeper World.exe"
exit


this needs to be placed in the path and associated with cwm files.
then, you can play the double clicked map through the "launch your custom game" button..

enjoy..
Overbyte
Title: Re: Thumbnails - what does it take to do this?
Post by: ontheworld on December 17, 2010, 02:56:42 AM
Quote from: Gaara on December 16, 2010, 09:58:54 PM
Quote from: thepenguin on December 16, 2010, 07:38:12 PM
ok, just hit a minor bug (I hard-coded the directory) (5 minute fix)
*notices that it has been over 2 hours...*

*nearing 7 hours...*
Title: Re: Thumbnails - what does it take to do this?
Post by: Kamron3 on December 17, 2010, 07:19:05 AM
Quote from: ontheworld on December 17, 2010, 02:56:42 AM
Quote from: Gaara on December 16, 2010, 09:58:54 PM
Quote from: thepenguin on December 16, 2010, 07:38:12 PM
ok, just hit a minor bug (I hard-coded the directory) (5 minute fix)
*notices that it has been over 2 hours...*

*nearing 7 hours...*

*is now 11 hours*
Title: Re: Thumbnails - what does it take to do this?
Post by: Kamron3 on December 17, 2010, 07:19:57 AM
Quote from: Overbyte on December 17, 2010, 01:34:52 AM
Quote from: thepenguin on December 16, 2010, 07:38:12 PM
ok, just hit a minor bug (I hard-coded the directory) (5 minute fix)

a cmd in windows would consist of :
in say creeper.cmd

@ echo off
copy %1 "%userprofile%\AppData\Roaming\CreeperWorld\workingmap.cwm"
"C:\Program Files (x86)\KnuckleCracker\Creeper World\Creeper World.exe"
exit


this needs to be placed in the path and associated with cwm files.
then, you can play the double clicked map through the "launch your custom game" button..

enjoy..
Overbyte


Thanks for that. I'll be sure to add a download to my list.
Title: Re: Thumbnails - what does it take to do this?
Post by: thepenguin on December 17, 2010, 04:40:32 PM
Quote from: Overbyte on December 17, 2010, 01:34:52 AM
@ echo off
copy %1 "%userprofile%\AppData\Roaming\CreeperWorld\workingmap.cwm"
"C:\Program Files (x86)\KnuckleCracker\Creeper World\Creeper World.exe"
exit

that's about what my code was, but I couldn't get it to work right on my computer (5 minutes estimated time) = 5 days realtime

I also tried to add 10K more features

(use as working map)
(copy to disk)