Posted November 8, 2015 (edited) Edit 6/2018: Project deleted (GitHub = sellouts). Hello, I'm working on a simple Google Maps generator for WU. It's actually continuation of my older project (Google Maps for WO). Current version: v0.9-beta.5 (2015-11-16)GitHub repositoryDownloadUser guideExample maps (possible spoilers!) Generated maps are standalone (only HTML, CSS, JS and images), not connected to WU in any way anymore. Maps can be viewed locally (using any modern web browser) or uploaded to a web server (no PHP or Java needed). Generator is written in Java, so far working only on Windows (Linux fix coming soon). Future features: - more configurable options - bridges - walls, doors, fences, gates (only when zoomed enough) - in-game map annotations - altars - dens - source fountains - source springs - custom markers and labels (non database stuff: points of interest, road names, sea names, mountain names, canal names, tunnel names...) - tower zones (guards response, building restrictions) - settlement zones (deed, perimeter) - bigger zoom - progressive zoom - more... Any feedback or ideas are welcome. Edited June 5, 2018 by Borgir 6 Share this post Link to post Share on other sites
Posted November 8, 2015 (edited) I just added link to an underground map type example. I still need to fix colors for some tile types (reinforced walls, floors, etc.) and add proper legend. ... and also bigger zoom. Edited November 8, 2015 by Borgir Share this post Link to post Share on other sites
Posted November 8, 2015 Looks nice. Would love to deploy this. 1 Share this post Link to post Share on other sites
Posted November 8, 2015 Would love to see the cave map on a WO server like Xanadu. 1 Share this post Link to post Share on other sites
Posted November 8, 2015 Would love to see the cave map on a WO server like Xanadu. Haha, yeah, that'd be interesting to see. Some time ago we've been trying to map Indy (by counting tiles manually), but it was pretty much impossible task (without the server database access): http://diggu.github.io/independence/underground/ 1 Share this post Link to post Share on other sites
Posted November 8, 2015 Added new zoom level 6 (max. map size 16384px). Share this post Link to post Share on other sites
Posted November 9, 2015 (edited) GitHub repository: https://github.com/diggu/wu2gmap (currently beta version, more features and guide coming soon) Also list of supported map sizes: https://github.com/diggu/wu2gmap/wiki/Map-size Edited November 9, 2015 by Borgir Share this post Link to post Share on other sites
Posted November 10, 2015 Added the download link and usage guide (still in beta). Share this post Link to post Share on other sites
Posted November 10, 2015 (edited) This looks really cool, however I ran into a slight problem.. C:\wumap>java -jar WU2GMap.jar c:\wumap\source c:\wumap\webWU2Gmap - Google Maps generator for Wurm Unlimitedhttps://github.com/diggu/wu2gmaphref='https://github.com/diggu/wu2gmap' rel="external nofollow"> STARTException in thread "main" java.lang.ClassNotFoundException: org.sqlite.JDBC at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at dig.borgir.wu2gmap.wu.MyWuMap.openAllDatabases(MyWuMap.java:142) at dig.borgir.wu2gmap.wu.MyWuMap.<init>(MyWuMap.java:50) at dig.borgir.wu2gmap.wu.WuMapFactory.createWuMap(WuMapFactory.java:14) at dig.borgir.wu2gmap.WU2GMap.main(WU2GMap.java:51) .map files are in c:\wumap\source\ and I copied the entire folder "sqlite" into the same folder as the .map-files (keeping the directory).static.zip is extracted into c:\wumap\static\ (no double subfolder, the files are located directly in the static\ folder) C:\wumap>java -versionjava version "1.8.0_65"Java SE Runtime Environment (build 1.8.0_65-b17)Java HotSpot 64-Bit Server VM (build 25.65-b01, mixed mode) What am I doing wrong? The c:\wumap\web folder exists and is empty. Edit: perhaps I need the third party stuff somewhere? I'm a cluts when it comes to java-related stuff Edited November 10, 2015 by Forked Share this post Link to post Share on other sites
Posted November 10, 2015 My bad, I'll upload fixed .jar asap. Thanks for testing Share this post Link to post Share on other sites
Posted November 10, 2015 (edited) I have to figure out this GitHub release system, but meanwhile you can download lib.zip from here https://drive.google.com/file/d/0B5u2Jp0dOEj3VTRBMFVFMVpDMjg/view?usp=sharing and extract the content in the lib subdirectory, so file structure is like this: WU2GMap.jarlib/commons-lang3-3.4.jarlib/pngj-2.1.1.jarlib/sqlite-jdbc-3.8.11.2.jarlib/WurmAPI-2015-11-07-common.jar obsolete Edited November 10, 2015 by Borgir Share this post Link to post Share on other sites
Posted November 10, 2015 (edited) Also use C:\wumap>java -jar WU2GMap.jar c:\wumap\source\ c:\wumap\web\ instead of C:\wumap>java -jar WU2GMap.jar c:\wumap\source c:\wumap\web I'll fix this later. PS: static.zip stuff is important only later for generated maps Edited November 10, 2015 by Borgir Share this post Link to post Share on other sites
Posted November 10, 2015 That did the trick! C:\wumap\web\2015-11-10-15-17-55\index.html Is it possible to have an option where it does not include the date and time in the folder name? Oh and just a small note. When specifying source folder you have to have the leading \ behind it. C:\wumap>java -jar WU2GMap.jar c:\wumap\source c:\wumap\webWU2Gmap - Google Maps generator for Wurm Unlimitedhttps://github.com/diggu/wu2gmap STARTOpening c:\wumap\sourcesqlite\wurmlogin.db... C:\wumap>java -jar WU2GMap.jar c:\wumap\source\ c:\wumap\web\WU2Gmap - Google Maps generator for Wurm Unlimitedhttps://github.com/diggu/wu2gmap STARTOpening c:\wumap\source\sqlite\wurmlogin.db<everything works> Share this post Link to post Share on other sites
Posted November 10, 2015 (edited) Is it possible to have an option where it does not include the date and time in the folder name? Edited November 10, 2015 by Borgir Share this post Link to post Share on other sites
Posted November 10, 2015 (edited) Ok, I simplified whole process little bit - only one single file (6 MB zip) to download now, plus easier usage.Also fixed the "\ bug". Edited November 10, 2015 by Borgir Share this post Link to post Share on other sites
Posted November 10, 2015 I can remove timestamp based subdirectory completely, but generator would have to delete everything in the output directory first.Thank you. For my part I'll write a script that dumps the needed files, run your .jar and then upload the resulting files to a different server using either FTP or SCP. It would be more of a pain to make when I have to find the correct folder to upload from. I'll test the new version either later today or tomorrow and give you (more, but hopefully not as annoying ) feedback. Share this post Link to post Share on other sites
Posted November 10, 2015 (edited) Not annoying at all, quite the opposite. I appreciate your feedback and help. I'll get rid of that timestamp thingy tomorrow (too tired tonight already). Edited November 10, 2015 by Borgir Share this post Link to post Share on other sites
Posted November 11, 2015 (edited) And I'm back looking at this. Do you run this on linux or windows?I see that it creates tiles.cmd under both map\ and underground\ in my output directory.That file use convert to do stuff. However it does not run the file and running it manually gets me this: C:\wumap\web\2015-11-11-09-07-06\map>mkdir tiles\0 C:\wumap\web\2015-11-11-09-07-06\map>convert 1.png -resize 256x256 tiles\0\0-0.pngInvalid Parameter - -resize C:\wumap\web\2015-11-11-09-07-06\map>mkdir tiles\1 C:\wumap\web\2015-11-11-09-07-06\map>convert 1.png -resize 512x512 map-512.pngInvalid Parameter - -resize C:\wumap\web\2015-11-11-09-07-06\map>convert map-512.png -crop 256x256 -set filename:tile "%[fx:page.x/256]-%[fx:page.y/256]" +repage +adjoin "tiles\1\%[filename:tile].png"Invalid Parameter - -crop C:\wumap\web\2015-11-11-09-07-06\map>del map-512.pngCould Not Find C:\wumap\web\2015-11-11-09-07-06\map\map-512.png C:\wumap\web\2015-11-11-09-07-06\map>mkdir tiles\2 C:\wumap\web\2015-11-11-09-07-06\map>convert 1.png -resize 1024x1024 map-1024.pngInvalid Parameter - -resize C:\wumap\web\2015-11-11-09-07-06\map>convert map-1024.png -crop 256x256 -set filename:tile "%[fx:page.x/256]-%[fx:page.y/256]" +repage +adjoin "tiles\2\%[filename:tile].png"Invalid Parameter - -crop C:\wumap\web\2015-11-11-09-07-06\map>del map-1024.pngCould Not Find C:\wumap\web\2015-11-11-09-07-06\map\map-1024.png C:\wumap\web\2015-11-11-09-07-06\map>mkdir tiles\3 C:\wumap\web\2015-11-11-09-07-06\map>copy 1.png map-2048.png 1 file(s) copied. C:\wumap\web\2015-11-11-09-07-06\map>convert map-2048.png -crop 256x256 -set filename:tile "%[fx:page.x/256]-%[fx:page.y/256]" +repage +adjoin "tiles\3\%[filename:tile].png"Invalid Parameter - -crop C:\wumap\web\2015-11-11-09-07-06\map>del map-2048.png C:\wumap\web\2015-11-11-09-07-06\map>mkdir tiles\4 C:\wumap\web\2015-11-11-09-07-06\map>copy 2.png map-4096.png 1 file(s) copied. C:\wumap\web\2015-11-11-09-07-06\map>convert map-4096.png -crop 256x256 -set filename:tile "%[fx:page.x/256]-%[fx:page.y/256]" +repage +adjoin "tiles\4\%[filename:tile].png"Invalid Parameter - -crop C:\wumap\web\2015-11-11-09-07-06\map>del map-4096.png C:\wumap\web\2015-11-11-09-07-06\map>mkdir tiles\5 C:\wumap\web\2015-11-11-09-07-06\map>copy 4.png map-8192.png 1 file(s) copied. C:\wumap\web\2015-11-11-09-07-06\map>convert map-8192.png -crop 256x256 -set filename:tile "%[fx:page.x/256]-%[fx:page.y/256]" +repage +adjoin "tiles\5\%[filename:tile].png"Invalid Parameter - -crop C:\wumap\web\2015-11-11-09-07-06\map>del map-8192.png C:\wumap\web\2015-11-11-09-07-06\map>mkdir tiles\6 C:\wumap\web\2015-11-11-09-07-06\map>copy 8.png map-16384.png 1 file(s) copied. C:\wumap\web\2015-11-11-09-07-06\map>convert map-16384.png -crop 256x256 -set filename:tile "%[fx:page.x/256]-%[fx:page.y/256]" +repage +adjoin "tiles\6\%[filename:tile].png"Invalid Parameter - -crop C:\wumap\web\2015-11-11-09-07-06\map>del map-16384.png convert.exe in windows (at least win 2012 r2) is for converting a FAT volume to NTFS. Now I'm going to guess that this should be usable for this task. Going to try it with convert.exe from ImageMagick-6.9.2-5-portable-Q16-x64.zip Using that convert.exe seems to do the trick. It's running now, so I'll update this post with the result. Update: contents of static/ are still not copied into the static-folder in the output dir, but after doing that manually and using the convert.exe from the .zip above everything looks good Edited November 11, 2015 by Forked Share this post Link to post Share on other sites
Posted November 11, 2015 I just uploaded new version (beta.2) and new instructions. Tested on Windows only atm, will update for Linux later today. Share this post Link to post Share on other sites
Posted November 11, 2015 (edited) Now I'm going to guess that this should be usable for this task. Going to try it with convert.exe from ImageMagick-6.9.2-5-portable-Q16-x64.zip Edited November 11, 2015 by Borgir Share this post Link to post Share on other sites
Posted November 11, 2015 (edited) convert.exe in windows (at least win 2012 r2) is for converting a FAT volume to NTFS. Edited November 11, 2015 by Borgir Share this post Link to post Share on other sites
Posted November 11, 2015 Vanilla Adventure maps (SPOILERS!) http://diggu.github.io/adventure/map/ http://diggu.github.io/adventure/underground/ Share this post Link to post Share on other sites
Posted November 11, 2015 I guess I'll have to add "path to the IM convert.exe" to the configuration and generate batch files using full path, to prevent confusions like this. Yeah, sorry about that. I'm just about done writing a .cmd script that handles everything for me. The only thing missing is uploading it through ftp. Using 0.9 beta 2 now and it appears to work great. Share this post Link to post Share on other sites
Posted November 11, 2015 Vanilla Adventure with just two guys playing on it: http://tda.nu/wumap/map/Everything works excellent. The underground map only shows ore veins you have found and our little settlement is visible. 1 Share this post Link to post Share on other sites
Posted November 12, 2015 Version 0.9-beta.4 released today:simplified executiononly one file to edit (config.ini)only one file to run (run.bat)plus some other tweaksNext step - more configurable options (colors, labels, markers). Slowly getting closer to the first stable version, hopefully 2 Share this post Link to post Share on other sites