Im having a lot of trouble dointg this with imagemajik...If one of you guys got it to work and wouldn't mind could you e-mail me the png files ....thanks in advance...my e-mail is [email protected]ks again.:)
Printable View
Im having a lot of trouble dointg this with imagemajik...If one of you guys got it to work and wouldn't mind could you e-mail me the png files ....thanks in advance...my e-mail is [email protected]ks again.:)
Umm, I don't think it would be a good idea to send the PNG files. However, I can troubleshoot a little. What method are you using? The OP version or mine?
THANK YOU!
I am running Windows 7 and this worked perfectly.
One note I did have to manually create the JPGImages folder in the same directory with the VBS files. After this I had to properly install ImageMagick and change the first line of the convert_Images.bat to show the following entry:
PATH=%PATH%;C:\Program Files\ImageMagick-6.5.7-Q16
I really appreciate the time and effort you have placed into doing this.
Cheers!
Quote:
Originally Posted by zbjump
OK, I found out why it didn't automatically create the JPGImages folder. My internet connection is Wireless and will often have packet loss. If the Download times out it will not finish downloading and will not move all of the images to the JPGImages folder.
If this happens you simply just need to delete any images that you've downloaded and run the Download_Images.vbs again.
When it finished downloading the first time I had 908 images, after deleting those images and running the download again I had 1168 images and it properly created the JPGImages folder.
Anyway, Just thought if someone had the same problem I did that they might find this helpfull.
Ok i think i got it to work ...thanks ....
Updated the scripts:
1) Added Savage Encounters (for a total of 1208 images/tokens)
2) Scripts can now put all images/tokens in one directory or put each set in its own directory. (If all are put in one directory, some have a suffix of "2" since there are some duplicate names (e.g., "Gargoyle.jpg" and "Gargoyle 2.jpg"))
3) Made names a little bit better for some sets (removed suffix "_tn" , removed leading numbers, removed leading "72GoL", and replaced "_" with space)
Kewl, i'm trying it out now.
Ran this on OSX with Parallels and it worked without a hitch, very very awesome! Thanks!
edited to say: "nevermind." I found the error (user, of course).
Got it to work, and it is awesome!
One thing that might be helpful to others who might be as clueless as I was: the ImageMagick download you want is the "Binary Release" for Windows; that is the self-installing one.
Also, be careful when inserting the line Valeros suggested at the beginning of the "convert_images.bat" file that you only insert the part beginning with "PATH=%PATH%".
Just some tips to any other not-so-savvy types that might be out there.
What is the advantage of the Warband Generator method as compared to Valeros' method?
Warband GeneratorQuote:
Originally Posted by Bidmaron
* Sizes the creatures based on their Size (S, M, L, Garganutan, etc)
* Does not include newer miniature sets
Number two sounds like a disadvantage, but thanks for the reply.
True, but if WotC takes down those image galleries, then the other version is in the same boat. Although I'm sure they'd also think to strip the Warband Generator too.Quote:
Originally Posted by Bidmaron
The newer 4e minis are nice to have though. I'm sure that a revision would allow for pulling either way, but that would require a bit of actual work ;)
I was bored this last weekend and thought I'd give updating the script a go.
Attached is a VBScript file that will download the images from the WotC website, add them to folders with the set name (ex, ...\Harbinger\[images]), and convert the files to PNG format for the size of the miniature (determined by Pixels and scaled to S, M, L, H, etc).
Please note, this file is not complete! Also, none of the miniatures have been changed to represent their true size. Only Harbinger is supported at this time.
I'm looking for people to test to make sure that it's working correctly. The task of associating files to desired file names will take a bit of time to fill out the remaining sets. This has worked on my system. If you receive any errors, let me know. Keep in mind, this is a test script!
Changes to be made by the user:
- Line 15, change the directory to where the VBScript file is saved.
- Line 94, change the directory of ImageMagick to match your own as well as the version number (see previous posts on how to install).
To run:
- Extract the VBScript file
- Double Click on the "DownloadAndResize.vbs" file
- Enter a number for the pixel size you desire
- After the run is complete (you'll receive a message box), run the "resize.bat" by double clicking.
I had two problems running both scripts from Valeros. I'm running Windows XP still because I'm a Linux guy (except games) and see no reason to give Bill any more money :)
Anyway, the main problem was the error:
"Interface Not Registered" in line 120 (Set images = objIE.Document.images)
I haven't programmed in Windows for several years and never used VB so I don't remember what needs to be registered. I Googled it and didn't find a solution, so here is a command to download all images from a web page with Linux:
wget -r -A jpg https://www.<OnePathFromTheOriginalScript>
(You can use -A jpg,gif,etc for multiple formats)
ImageMagick also works with Linux, but I just copied all the images to the XP machine and ran the resize script. The resize worked but it didn't move the files. I got an error in convert_images.bat. Something about not being able to move multiple files in to a single file. I had to change:
'move *.png ..\%1x%1' to 'move *.png %1x%1'
It then worked. Thanks for the scripts, Valeros.
Ok i don´t know what i´m doing wrong but to me it only downloads the first pack and then stops...can anyone help me out...? Vista user :)
Is this in regards to the latest version I downloaded? If that's the case, it will only download the one (Harbinger).Quote:
Originally Posted by Placebo
You can change this yourself by modifying line 23 of the script to read
for i = 1 to 22
and putting an apostrophe at the beginining of line 81
'txtBatch = txtBatch & CreateBatchFile(CurrLoc, SetName, objFSO.GetFileName(image.src), SetNum)
This will download all the files, but will not modify them in any way (rename, convert, etc).
There are a considerable amount of images that need to be renamed in my version. The end goal would be to set up the images as an Extention (I hear this reduces the load time). Unfortunately, I don't have a lot of free time lately. Hopefully soon...
Ohh thank you so much! it worked :P the rest i do with corel ;)
Thanks
I'll keep that in mind. Not a bad idea to prompt if you would like to do that part yourself.Quote:
Originally Posted by Placebo
This works really well, thanks.
I just manualy resized the Monsters that I needed to afterwards. For example eye of beholder.
If you parse in the Monster Manual using the community tool, it even draws the size of the boxes it takes up
Community tool?Quote:
Originally Posted by BruntFCA
The tool I was refering to was the Parser generated by some users. You can read about it and download it here. There are many references to the "Parser" on these boards as well.
https://www.fouruglymonsters.com/com...d=49&start=240
Quote:
Originally Posted by BruntFCA
Could I get a link to a tutorial on how to use this? also is this for the Compendium? and is there a way to parse PDFs that I own?
Hi, if you are lucky enough to own a PDF, then yes you can parse that, as well as through the compendium.Quote:
Originally Posted by TR0LL
I'm not aware of any tutorial. I had a bit of a nightmare working it out, but once you do it's actually really simple.
Could we talk through emails, or perhaps a messenger, Id really like some helping getting it sorted out.Quote:
Originally Posted by BruntFCA
Lumbering_Troll at hotmail.com email and msn, or TR0LL on steam. thanks.
HI,
There are some web-pages you can subscribe to that are used by tech support. If both of us log in to it, I can see your screen. It's perfectly safe, I've used it for business clients b4.
It's the easiest way, trying to type out all the intructions is just painful, especially due to the quirks. Not a lot of the quicks are not to do with the app, but they way Wizards represent the data.
Incidentally, this forum has a private message facility, we can set up something through that if you like. It would take me 5 mins to do it on screen. Typing a doc or making a vid would take more like 5 hours.
It really is worth it in the end, since you get a ton of stuff available in FG2 that you can just click, drag and drop and so on. Cheers.
Here is the link. Its made by Cisco, so you can be assured it's not some cowby outfit.
https://www.webex.co.uk/lpintl/uk/pr...ebexUK_1019859
Sorry to ask this but can you guys make a script for Star Wars minis too...? we could use the same that tdewitt274 made maybe...
Star Wars minis to tokens script attached. Same rules/instructions as D&D minis (and readme file included in zip file.) (Be sure Image Magick is loaded and allow it to be in path when installing.)
Note that I only saw image galleries for four sets (Universe, Clone Strike, Rebel Storm, and Revenge of the Sith.) If there are others, please post the URLs.
If anything is named wrong in Universe, you can correct the rename_universe.bat file or fix manually. But please post the error so I can correct. Thanks
Excellent piece of work. Very handy. Is there some way to set this up so that it uses the native resolution of the images but still squares them up?
Attached are scripts to "squareup" the images. Run the appropriate "squareup_images_directory_per_set" script (one for D&D (_Dnd), one for Star Wars (_SW)). Leaves images in a folder called Square under each set.
** Be aware that the script spawns a DOS window for EACH image (to calculate its size). So it sort of takes over your computer when running because it keeps moving mouse focus to the DOS window, making it impossible to work on something else. **
Also, script assumes that you used the newer script that downloads images into folders by set and not all into one directory. If all in one directory, simply change the script to list just that one directory. But there still must be an "Original" directory inside that directory that holds the images.
Updated script for D&D minis that names the tokens much better. Just replace existing script with attached script.
1) Add spaces between words
2) Capitalize first letter of each word
3) Strip "-" for heroes
4) Move gender to end for heroes
5) Replace "Aspectof" with "Aspect of"
... and keeps the original resolutions! That's exactly what I was hoping for.Quote:
Originally Posted by valeros
I removed backgrounds and bases on 8 of these sets by hand, taking the opportunity to add things like bowstrings and other minor effects... but that took me around 3-8 minutes per mini.
Doing one at a time tends to make things a little more accurate, but nothing beats the sheer speed and convenience of what you've provided everyone here.
Thanks again, Valeros.
Ok i need some help in here...i use the script and after i donwload the first set i got an error and goes down :( the set dont go to a folder and the images are all 1,2,3,4...the one from tdewitt274 worked so well :(Quote:
Originally Posted by valeros
Help please...
First, try the new set of scripts posted (star_wars_minis.zip).
It slightly changes how directories are created which seems to be the problem you have. After downloading, script creates folder named for set (e.g., "Rebel Storm"), renames them if needed (only for Universe set), and then moves them into the folder. Since it downloaded the images and them stopped, it seems it could not create the directory. What is the exact error? Did you get all 60 JPGs before it crashed? Do you have a Universe folder? Does it have an Original folder inside?
If the new scripts do not work, try this:
1) Create four folders: "Rebel Storm", "Universe", "Revenge of the Sith", and "Clone Strike"
2) Create a folder inside each of those called "Original"
3) Use the second set of scripts for downloading each set individually. Do this for each:
a) Run the script that downloads that set
b) run the "delete_junk.bat"
c) For universe, run the "rename_universe.bat"
d) move all the JPGs to the appropriate Original folder
Now you have all the images and can run the resize script to make tokens from them.
Ok with the first one i get the same error but it download all the minis from the first set but give them numbers instead of names...the error is some kind of crazy crap i cant find out sorry...now the other one works like a charm :D thank you so much :)
When I extract these files my system thinks one of the VBS files is a trojan virus. Is this something expected based on the way the script works or has something been infected? Looks like a great utility so I'm hoping that it is just a false positive.Quote:
Originally Posted by valeros
With what file...? and what antivirus said that...?
Thanks
VBScript is pretty powerful. The FileSystemObject and Shell commands are used. In the code that I've written, it moves files, creates folders, downloads files, and manipulates files. I've also used code from the original poster to make my files.Quote:
Originally Posted by Hye Jedi
You can view the code in the file by right clicking on the file name in Explorer and chosing "Edit". If you don't know Visual Basic coding languages (or even C based for that matter), it may not make sense.
Rule of thumb, if you don't feel comfortable don't use it. That being said, I wouldn't post it to a public forum if it did something bad.
Not really something that I'd be interested in. However, in theory, it could be done.
Warhammer, as requested. Remember, requires ImageMagick be installed to resize images.