View Full Version : D&D Miniatures Resizing Script Problem
kanyon00
April 17th, 2010, 07:40
A little background information first. I'm running windows 7 home edition. I downloaded the "download and resize" dnd mini script. I installed Imagemagick, and edited the script file to reflect the correct path.
When I run the script I get a "windows script host" box that pops up with the following error.
Script: C:\temp\DownloadAndResize.vbs
Line: 160
Char: 3
Error: Path not found
Code:800A004C
Source: Microsoft VBScript runtime error
Any help would be appreciated.
Thanks,
Alan
tdewitt274
April 18th, 2010, 18:23
I'd like to get a little background first.
What version of the script are you running? The most recent version is v3.
If you did not download Version 3 (https://www.fantasygrounds.com/forums/showpost.php?p=88983&postcount=6), try that version and let me know if you have issues. The only reason I can see for an issue is on v2.
Did a black DOS screen populate?
If no, do you have a "Set Symbols" and "Savage Encounters" folder that you updated on line 22?
If no, what folders do you have?
Thanks!
kanyon00
April 19th, 2010, 01:34
Thanks for all your help. It's a beautiful script. Wish I could code =)
I downloaded v3 script, and here's the error I get
Script: C:\temp\DownloadAndResizev.003\DownloadAndResize.v bs
Line:196
Char:3
Error: Path not found
Code:800a004C
Source:Microsoft VBScript runtime error
Again, thanks for your help. It's prob something I'm doing wrong.
tdewitt274
April 19th, 2010, 03:51
Not a problem. People that don't know anything about coding are the best testers. I can code forever, but without testers and users, it's pretty much worthless.
The error populates on creating a subfolder. Can you copy Line 22 from your code?
Does the folder that you specified on Line 22 exist?
The default is "C:\Downloaded Files\Fantasy Grounds\ddm\tokens\"
The script assumes that at least the second to last folder exists (in the above, "C:\Downloaded Files\Fantasy Grounds\ddm\"). If the last folder isn't there, it creates it.
If this folder exists, do you have a "Set Symbols" and "Savage Encounters" folder that you updated on line 22? If you don't have Savage Encounters, what folders do you have?
Eventually I'll update it with more user friendly options. But I have a couple more things I want to look at.
Thanks!
kanyon00
April 19th, 2010, 14:26
Maybe that's the issue. I don't have "C:\Downloaded Files\Fantasy Grounds\ddm\tokens\"
My believe my fantasy grounds folder runs under "program files".
I will create those folders tonight, and try again =)
I will also copy out line 22 and post it up here.
Thanks again,
Not a problem. People that don't know anything about coding are the best testers. I can code forever, but without testers and users, it's pretty much worthless.
The error populates on creating a subfolder. Can you copy Line 22 from your code?
Does the folder that you specified on Line 22 exist?
The default is "C:\Downloaded Files\Fantasy Grounds\ddm\tokens\"
The script assumes that at least the second to last folder exists (in the above, "C:\Downloaded Files\Fantasy Grounds\ddm\"). If the last folder isn't there, it creates it.
If this folder exists, do you have a "Set Symbols" and "Savage Encounters" folder that you updated on line 22? If you don't have Savage Encounters, what folders do you have?
Eventually I'll update it with more user friendly options. But I have a couple more things I want to look at.
Thanks!
tdewitt274
April 19th, 2010, 18:36
You can use any location that you like, including the temp folder that yousaved the script in. You just need to replace what is in the quotes on line 22.
kanyon00
April 20th, 2010, 02:46
I created the path in line 22, and also had to edit the directory name for Imagemagick, as I have a newer version.
ConvertLoc = chr(34) & "c:\program files\ImageMagick-6.6.1-Q16\convert.exe" & chr(34) & " "
Looks like we are getting somewhere =).
Now it's asking me for pixel size? Is there a special number I should use? Sorry I feel like I should know the answer to this question.
You can use any location that you like, including the temp folder that yousaved the script in. You just need to replace what is in the quotes on line 22.
kanyon00
April 20th, 2010, 02:54
I went ahead and hit enter without entering a size, and it appears to be working =). Once it's done then what is the next question =).
I created the path in line 22, and also had to edit the directory name for Imagemagick, as I have a newer version.
ConvertLoc = chr(34) & "c:\program files\ImageMagick-6.6.1-Q16\convert.exe" & chr(34) & " "
Looks like we are getting somewhere =).
Now it's asking me for pixel size? Is there a special number I should use? Sorry I feel like I should know the answer to this question.
tdewitt274
April 20th, 2010, 02:58
Pixel size is a matter of preference, I've never seen a definative answer on the board. Some 50, some 100, etc. The higher the number, the bigger the file. The smaller the number, the less detail you see. The script goes through and resizes the original file to the size that you enter (ex, the original is 230x100, the result is 50x50).
kanyon00
April 20th, 2010, 03:09
ok, I wil rerun the script and use 50. Once it completes. I am suppose to copy something right? Sorry =), I know I'm asking 1000 questions.
[QUIOTE=tdewitt274]Pixel size is a matter of preference, I've never seen a definative answer on the board. Some 50, some 100, etc. The higher the number, the bigger the file. The smaller the number, the less detail you see. The script goes through and resizes the original file to the size that you enter (ex, the original is 230x100, the result is 50x50).[/QUOTE]
tdewitt274
April 20th, 2010, 03:16
ok, I wil rerun the script and use 50. Once it completes. I am suppose to copy something right? Sorry =), I know I'm asking 1000 questions.
Pixel size is a matter of preference, I've never seen a definative answer on the board. Some 50, some 100, etc. The higher the number, the bigger the file. The smaller the number, the less detail you see. The script goes through and resizes the original file to the size that you enter (ex, the original is 230x100, the result is 50x50).
After the script is finished, you can copy the MOD files to your Application Data folder (a shortcut is through Start > Programs > Fantasy Grounds). Find the "modules" folder (create it if it does not exist) and paste the MOD files there.
Next, open FG and either open an existing campaign or a new one. Then, open your "Modules" (use the small icon) and you'll see a listing of the mini MODs. Opening the module ("swiping" the book open) populates the miniatures in the Token box.
kanyon00
April 20th, 2010, 03:30
Ok just finished resizing them to 50. Where are these mod files? I currently have a ton of folders with all the images. The folders also contain zip files, thumbnails,definition, and tokens.
Thanks again
After the script is finished, you can copy the MOD files to your Application Data folder (a shortcut is through Start > Programs > Fantasy Grounds). Find the "modules" folder (create it if it does not exist) and paste the MOD files there.
Next, open FG and either open an existing campaign or a new one. Then, open your "Modules" (use the small icon) and you'll see a listing of the mini MODs. Opening the module ("swiping" the book open) populates the miniatures in the Token box.
tdewitt274
April 20th, 2010, 03:42
Ok just finished resizing them to 50. Where are these mod files? I currently have a ton of folders with all the images. The folders also contain zip files, thumbnails,definition, and tokens.
Thanks again
After the DOS screen goes away, there is one final step that is produced the MOD files by re-packing them. After the repacking, they are renamed and ready to go.
kanyon00
April 20th, 2010, 03:52
Are these the Zip files in the folders such as "tokens - blood war.zip"? Is that the files I copy to the mod folder?
After the DOS screen goes away, there is one final step that is produced the MOD files by re-packing them. After the repacking, they are renamed and ready to go.
tdewitt274
April 20th, 2010, 04:58
Are these the Zip files in the folders such as "tokens - blood war.zip"? Is that the files I copy to the mod folder?
The MOD files should appear in the folder you created (ex, the default is "C:\Downloaded Files\Fantasy Grounds\ddm\tokens\"). So, for example, you would find C:\Downloaded Files\Fantasy Grounds\ddm\tokens\Tokens - Blood Wars.mod
If this didn't happen, then it is possible that Win7 doesn't like one of the commands. Take a look at the size of the ZIP files. If they are 1 KB in size, then the final process did not kick off. I'll have to figure out another way to kick off that portion. To resolve this and finish off the process, do the following:
Go to the folder that has the script.
Right click on the file and choose "Create Shortcut"
Right click on the newly created shortcut and choose "Properties"
In the "Target" box, add a space at the end and then type "auto" INCLUDING quotes (ex, the result should be something like "C:\Downloaded Files\DownloadAndResize.v003\DownloadAndResize.vbs" "auto")
Double click the shortcut.
The process will resume and finish off the MOD files.
If the ZIP files are larger than 1 KB, then you can copy the ZIP files into your "modules" folder (described above) and rename each to end in ".mod" instead of ".zip"
kanyon00
April 20th, 2010, 19:59
I will give that a try tonight. I believe the zip files are only 1k =(. Again thanks for your help.
kanyon00
April 21st, 2010, 02:53
Perfect! The auto command worked like a charm. Now I have the mod files =). Now to move them, and see if I can open them in FG.
I will give that a try tonight. I believe the zip files are only 1k =(. Again thanks for your help.
kanyon00
April 21st, 2010, 03:19
Worked great! Thanks for all your help! How do you delete a campaign off the selection screen? I want to remove some test campaigns Ive created.
Perfect! The auto command worked like a charm. Now I have the mod files =). Now to move them, and see if I can open them in FG.
tdewitt274
April 21st, 2010, 05:52
Worked great! Thanks for all your help! How do you delete a campaign off the selection screen? I want to remove some test campaigns Ive created.
I'm not sure. I believe you just delete them from your "campaigns" folder.
kanyon00
April 21st, 2010, 21:04
Excellent! Thanks again for your help. The tokens look great!
I'm not sure. I believe you just delete them from your "campaigns" folder.
tdewitt274
April 22nd, 2010, 03:35
This has been updated in the v004 version (https://www.fantasygrounds.com/forums/showpost.php?p=89395&postcount=10).
kanyon00
April 25th, 2010, 05:09
Now I'm having a weird issue with the tokens. When I open the tokens box, I cant select but a few. I can tell they going off the screen below the box. I can highlight a blank area and it will show the name of the token. I can drag it out, but I can't see the entire list.
This has been updated in the v004 version (https://www.fantasygrounds.com/forums/showpost.php?p=89395&postcount=10).
tdewitt274
April 25th, 2010, 05:14
Now I'm having a weird issue with the tokens. When I open the tokens box, I cant select but a few. I can tell they going off the screen below the box. I can highlight a blank area and it will show the name of the token. I can drag it out, but I can't see the entire list.
Do you have a Screenshot? What Module are you using?
kanyon00
April 25th, 2010, 06:36
Notice where the token name is showing. The hand is in the first bottom square. Almost like a resolution issue? The token is there, but it's out of range in the box. I can drag the name to a map and the token shows up. I used the latest version of the script.
https://i159.photobucket.com/albums/t125/kanyon00/screenshots/Screenshot.jpg
Do you have a Screenshot? What Module are you using?
Oberoten
April 25th, 2010, 06:41
Do you have a Screenshot? What Module are you using?
Mousewheel to scroll down.
kanyon00
April 25th, 2010, 06:51
I'm a moron, ugh. Im using a notebook. Is there a different way to scroll down? I can use the touchpad, but it's a pain. If not, then no big deal. Thanks again for all the help.
Mousewheel to scroll down.
tdewitt274
April 25th, 2010, 14:36
Hold CTRL and drag the border of the box. This will make the Token Box bigger so that you're able to see the other tokens. Optimum is 8 wide by 10 tall (or vice versa).
Powered by vBulletin® Version 4.2.1 Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.