On windows I you could use pagent (the putty ssh key agent) and pscp.exe for scripted file transfers. Not sure about running remote ssh commands in a batch file though.
ever think of making it so automated that it even ftp's and such <3 I tar it then download it then do the work then ftp it :smile.gif:
ssh keys, scp, rsync and bash make this really easy to do if you're running linux.
The server is but doing near a gig map is a little hard ontop of a server with 50+ online running. So I kind have to do it on windows my local pc.
Try NetDrive up in my GUI post. If you have Windows Vista or higher, you'd probably have to use a different NetDrive, which has the same name but isn't made by the same people but does the same stuff, but runs a little slower than the original NetDrive. Available here: http://www.netdrive.net/features.html
Then, mount the FTP as a drive through the program, and tell AlphaVespucci to output to the appropriate directory on the FTP drive.
Which brings me to a suggestion for the next version: Allow the output of -tilemode to optionally output directly into the specified folder, rather than to a sub folder named after the title.
Currently, the program keeps generating layers until the top layer fits in a 256x256 image. If your map sticks out like it does, then the map will keep shrinking itself until the condition is met. You can probably change the mapMinZoom in the HTML to 3 or 4 so it starts from a reasonable size for now.
Yeah I tried changing min zoom in the html like 5 times and I can't seam to get it to start near full screen size. Just zoomed out a 100 miles away hehe
Hey Orange are you going to add in the cache feature some other mappers have?
So like the first time takes an hour or whatever, but the second time you generate an image it only look sat what has changed.
It sounds like a good idea, since the base work for a cache is already used in making large maps. Some extra info would be needed for it to act as a redrawing cache though.
Is there any other mapper than Minecraft Topological Survey that does caching? ("some other mappers")
Edit: Been pretty busy this week, but still working on an update.
Have you tried opening those files in one of the NBT readers on this site? It generally happens when the map chunk didn't decompress properly (due to corruption) or the file has garbage data mixed with it. One of my single player maps had a bad chunk a while ago, and NBTedit couldn't open it.
One thing I've noticed is that this seems to happen a lot when I try and map an active server. I tried copying the server world folder to another machine, but this actually compounded the problem. I was only ever able to get good renders from the transferred files if I initiated the transfer while the server was stopped, probably because the active editing and redrawing within the world corrupts the transferred files.
Using the server backup files seems to work flawlessly though.
Now for a question:
Is it possible to include a command to process the .conf file when generating a web map? After running a batch file of a half dozen maps and overlays, it would be awesome if there was some way for it to automatically begin the next step.
Now for a question:
Is it possible to include a command to process the .conf file when generating a web map? After running a batch file of a half dozen maps and overlays, it would be awesome if there was some way for it to automatically begin the next step.
Add "AlphaVespuccui -tilemode Conf.conf" (or whatever your conf file is called) to the end of the batch.
LrdPhoenix, I'm having trouble getting this GUI to actually output files. It gives me the "mapping *file* to *file.png*" type text when rendering, but then nothing seems to appear anywhere, and changing the output location seems to make the files not render at all (saying outputdir does not allow file creation, which is probably a Windows issue and not yours, but even when it does "allow" file creation to the default folder...nothing shows up anywhere).
Is it possible to see the instructions that the GUI is feeding into AlphaVespucci? I'm using the GUI because I can't figure out how to get the command line stuff to work right, been too long since I've needed to really feel my way around that sort of interface, so thanks a ton for writing the GUI, now I just need to get it to work for me.
So far the only way I've been able to have AlphaVespucci output files at all is just dragging the folders onto the .exe I thought like "AlphaVespucci.exe -w1 -night -obright" would work from the command line but this does not seem to, getting errors relating to not being able to write png's etc. Creating a .bat with the properties and running that seems to work until file output, at which point it just doesn't output anything much like with the GUI, saying folders don't allow file creation. I'm thinking these are Windows 7 security issues blocking this from working, no idea why the "Drag the folder" method works and nothing else does at all.
I've had none of these issues using the Cartograph mapper (using the GUI), but that seems unable to handle the large file sizes I'm dealing with on a current map, and AlphaVespucci handles it perfectly well, yet encounters all of these file/saving/admin issues. Argh.
LrdPhoenix, I'm having trouble getting this GUI to actually output files. It gives me the "mapping *file* to *file.png*" type text when rendering, but then nothing seems to appear anywhere, and changing the output location seems to make the files not render at all (saying outputdir does not allow file creation, which is probably a Windows issue and not yours, but even when it does "allow" file creation to the default folder...nothing shows up anywhere).
Is it possible to see the instructions that the GUI is feeding into AlphaVespucci? I'm using the GUI because I can't figure out how to get the command line stuff to work right, been too long since I've needed to really feel my way around that sort of interface, so thanks a ton for writing the GUI, now I just need to get it to work for me.
So far the only way I've been able to have AlphaVespucci output files at all is just dragging the folders onto the .exe I thought like "AlphaVespucci.exe -w1 -night -obright" would work from the command line but this does not seem to, getting errors relating to not being able to write png's etc. Creating a .bat with the properties and running that seems to work until file output, at which point it just doesn't output anything much like with the GUI, saying folders don't allow file creation. I'm thinking these are Windows 7 security issues blocking this from working, no idea why the "Drag the folder" method works and nothing else does at all.
I've had none of these issues using the Cartograph mapper (using the GUI), but that seems unable to handle the large file sizes I'm dealing with on a current map, and AlphaVespucci handles it perfectly well, yet encounters all of these file/saving/admin issues. Argh.
If you output the map creation commands to a batch, you can see exactly what commands it sends by opening it up in a text editor.
What folder are you trying to output into?
Anything in Program Files or any of the other protected directories in Windows 7 would require you to have full control and ownership of the directories before you can create or modify anything in them, or you could run it as Administrator, but I'm not sure if AlphaVespucci would automatically be launched as admin just because the GUI was launched as Admin.
If you are trying to work in Program Files, I'd suggest moving it to a new directory outside of Program Files just for ease of use, like C:\AlphaVespucci\.
I'd like to report a bug in the tilemode function. In short: the origin in OpenLayers is at the lower right, but the image is aligned to the upper left for the purpose of padding. So each level of zoom is offset by the amount of padding on the y-axis for that level. As a result, the image tends to jump up and down a little bit as you zoom in and out.
The effect is most pronounced if your image height is just a bit more than a power of two, so that every zoom level has maximum padding. For example, I have an image that is 2050px tall, so it has 254-255px of y-axis padding at each zoom level. In OpenLayers units, that works out to about 2000 units at zoom level 0, down to 254 units at zoom level 4 (1:1). With the padding in the lower-left corner, that causes a big jump as you zoom in.
The solution is for AlphaVespucci to put the padding at the top of the original image, instead of the bottom. It already handles the inverted y-axis correctly for the file naming and Javascript output, and there's no way to address this by tweaking those. As a workaround, you can crop or pad your images to a height that is a power of two before running them through tilemode.
It would be insanely awesome/welcome if AV could read from tar or zip (store) archives. This saves the enormous gigantic pain in the ass of unpacking ~125k files onto a windows machine and later removing them (hey takes 15 minutes each :SSSS:). You could for example do a dirlisting of the files in the archive to find the level.dat and use the relative paths from there inside the archive. This would be seriously much appreciated :biggrin.gif:
It allows you to mount a zip, rar, 7z, tar, gz, bz2, etc. as well as iso, cue, bin, etc. as a drive. I just tried it with a small world zipped up and it seems to work with AV.
Oh, and if you want to really quickly delete files in Windows, go through the command line with "rd /s <directorynamehere>".
Took me a while to get this working from the command line until I tried the GUI's batch mode to see what it was doing. :smile.gif:
You're doing a case-sensitive string comparison to "AlphaVespucci.exe" for argv[0], so typing in "alphavespucci.exe" or "AlphaVespucci" without the extension will not work.
You should either (a) ignore the first element, (:cool.gif: do a case-insensitive comparison on the first 13 characters, or (c) perform multiple case-sensitive comparisons to allow these:
I noticed the <2 args part earlier and thought I had fixed it, but that might have been in a different version I was testing. I started working on some improvements earlier, but they got complicated enough that I'm just going to rewrite some of the base stuff so it's easier to get started with GUI and threading ideas.
The server is but doing near a gig map is a little hard ontop of a server with 50+ online running. So I kind have to do it on windows my local pc.
Check out my Let's Play Series:
people on the server 24/7?
You tried -useMinimalRAM? Or use nice
On windows I you could use pagent (the putty ssh key agent) and pscp.exe for scripted file transfers. Not sure about running remote ssh commands in a batch file though.
Try NetDrive up in my GUI post. If you have Windows Vista or higher, you'd probably have to use a different NetDrive, which has the same name but isn't made by the same people but does the same stuff, but runs a little slower than the original NetDrive. Available here: http://www.netdrive.net/features.html
Then, mount the FTP as a drive through the program, and tell AlphaVespucci to output to the appropriate directory on the FTP drive.
Which brings me to a suggestion for the next version: Allow the output of -tilemode to optionally output directly into the specified folder, rather than to a sub folder named after the title.
http://godcraft.com/day/17/
Check out my Let's Play Series:
Check out my Let's Play Series:
So like the first time takes an hour or whatever, but the second time you generate an image it only look sat what has changed.
Is there any other mapper than Minecraft Topological Survey that does caching? ("some other mappers")
Edit: Been pretty busy this week, but still working on an update.
I was going to try it but all the things it needs are not compatible with Python 2.7 and I'm not changing!
One thing I've noticed is that this seems to happen a lot when I try and map an active server. I tried copying the server world folder to another machine, but this actually compounded the problem. I was only ever able to get good renders from the transferred files if I initiated the transfer while the server was stopped, probably because the active editing and redrawing within the world corrupts the transferred files.
Using the server backup files seems to work flawlessly though.
Now for a question:
Is it possible to include a command to process the .conf file when generating a web map? After running a batch file of a half dozen maps and overlays, it would be awesome if there was some way for it to automatically begin the next step.
Add "AlphaVespuccui -tilemode Conf.conf" (or whatever your conf file is called) to the end of the batch.
Is it possible to see the instructions that the GUI is feeding into AlphaVespucci? I'm using the GUI because I can't figure out how to get the command line stuff to work right, been too long since I've needed to really feel my way around that sort of interface, so thanks a ton for writing the GUI, now I just need to get it to work for me.
So far the only way I've been able to have AlphaVespucci output files at all is just dragging the folders onto the .exe I thought like "AlphaVespucci.exe -w1 -night -obright" would work from the command line but this does not seem to, getting errors relating to not being able to write png's etc. Creating a .bat with the properties and running that seems to work until file output, at which point it just doesn't output anything much like with the GUI, saying folders don't allow file creation. I'm thinking these are Windows 7 security issues blocking this from working, no idea why the "Drag the folder" method works and nothing else does at all.
I've had none of these issues using the Cartograph mapper (using the GUI), but that seems unable to handle the large file sizes I'm dealing with on a current map, and AlphaVespucci handles it perfectly well, yet encounters all of these file/saving/admin issues. Argh.
If you output the map creation commands to a batch, you can see exactly what commands it sends by opening it up in a text editor.
What folder are you trying to output into?
Anything in Program Files or any of the other protected directories in Windows 7 would require you to have full control and ownership of the directories before you can create or modify anything in them, or you could run it as Administrator, but I'm not sure if AlphaVespucci would automatically be launched as admin just because the GUI was launched as Admin.
If you are trying to work in Program Files, I'd suggest moving it to a new directory outside of Program Files just for ease of use, like C:\AlphaVespucci\.
The effect is most pronounced if your image height is just a bit more than a power of two, so that every zoom level has maximum padding. For example, I have an image that is 2050px tall, so it has 254-255px of y-axis padding at each zoom level. In OpenLayers units, that works out to about 2000 units at zoom level 0, down to 254 units at zoom level 4 (1:1). With the padding in the lower-left corner, that causes a big jump as you zoom in.
The solution is for AlphaVespucci to put the padding at the top of the original image, instead of the bottom. It already handles the inverted y-axis correctly for the file naming and Javascript output, and there's no way to address this by tweaking those. As a workaround, you can crop or pad your images to a height that is a power of two before running them through tilemode.
You could try WinMount (http://www.winmount.com/download.html or http://www.softpedia.com/get/Compression-tools/WinMount.shtml)
It allows you to mount a zip, rar, 7z, tar, gz, bz2, etc. as well as iso, cue, bin, etc. as a drive. I just tried it with a small world zipped up and it seems to work with AV.
Oh, and if you want to really quickly delete files in Windows, go through the command line with "rd /s <directorynamehere>".
You're doing a case-sensitive string comparison to "AlphaVespucci.exe" for argv[0], so typing in "alphavespucci.exe" or "AlphaVespucci" without the extension will not work.
You should either (a) ignore the first element, (:cool.gif: do a case-insensitive comparison on the first 13 characters, or (c) perform multiple case-sensitive comparisons to allow these:
alphavespucci
alphavespucci.exe
AlphaVespucci
AlphaVespucci.exe
The easiest option is to ignore the initial argument, the best is to just use strcmpi or whatever.
For example, none of these work:
AlphaVespucci.exe -w2
AlphaVespucci.exe -night
AlphaVespucci.exe -cave
...but all of these do:
AlphaVespucci.exe -w2 -obleft
AlphaVespucci.exe -w2 -obright
AlphaVespucci.exe -w2 -night
AlphaVespucci.exe -w2 -cave
AlphaVespucci.exe foo bar (creates World1-flat-day.png)
If you look back on page 2 or 3 near the bottom somebody posted a link to one
it is very good :smile.gif:
EDIT:
Middle of page 3
post by LrdPhoenix