• Content Count

  • Joined

  • Last visited

Everything posted by LordOfAwesomnia

  1. As far as I can tell it only reads the map files, it doesn't modify them or anything, so they should be able to run side by side. I haven't tried it out though so let me know how it goes!
  2. I've added some more information to the guide. Basically, WurmMapGen doesn't care at all where it's located when you run it, as long as it can find the WurmMapGen.properties file and the template directory in the same directory as the WurmMapGen.jar. That said, you shouldn't place it in your XAMPP / server directory, since you don't need to serve the application itself, only the files that it creates. And you should also not place it inside the WU server directory, cause it might try to load it as a mod and WuMapGen is not a mod so it will cause problems if that happens. Easiest is to have it in a whole separate directory just for WurmMapGen. Where you put this directory (in the root directory of your C:/ harddrive, or in My Documents, or on your desktop, or...) is up to you.
  3. For all of you who have some issues getting WurmMapGen running, I've written a step-by-step guide to set up the map generator with XAMPP, aimed at non-technical users. Find it at the wiki https://github.com/woubuc/WurmMapGen/wiki/Step-by-step-guide-to-set-up-WurmMapGen Note: I know how all of this works so I may assume things that aren't actually obvious to a non-technical user. I tried setting up a server following this guide after I wrote it, and it seemed clear enough to me, but if there's something in the text that you don't understand, be sure to let me know so I can update it. The guide is a wiki page so if you have a Github account, feel free to contribute to the text to make things even more clear and understandable. I didn't really pay attention to image compression when updating this application, so yeah, it's very possible that there's no compression happening at all. I welcome a PR that adds image compression to the output, if you're interested in contributing.
  4. I'm a bit swamped at the moment, I already put it on my to do list but it'll be a while before I can get around to it. If anyone else wants to work on making the map generator easier to use for non-programmers, I welcome pull requests on Github :)
  5. Like bdew said - the scripts won't work if you just open the file (browsers limit a lot of features when running local files, for security reasons). You should serve the generated files from a (local) webserver, as mentioned in the documentation. There are plenty of applications that you can use to set up a local webserver. The classic xampp / wamp / mamp (or any *amp stack) will certainly do the trick.
  6. Oops, you're absolutely right, it's not a mod so it shouldn't go in the mods directory. Thanks for spotting that! I've updated the instructions. Other than that, it doesn't really matter where you put the application, as long as you set the correct paths in the properties file.
  7. First report of a crash I've gotten, can you provide some more info? Any error messages?
  8. That's strange, it should include all deeds on the map. Were the missing deeds recently created or disbanded? Can you give me some info about some of the deeds that can't be found?
  9. I'll take a look at the traders, see if I can make it work for them as well. Otherwise yeah I agree the option should only show when it actually works.
  10. I get the feeling you're using a managed hosting service (i.e. a "game hosting" package rather than a VPS where you run your own stuff), correct? If so, you'll have to resort to your hosting provider's documentation and support to figure out how to SSH into your server and run the map generator. Note: SSH is not something like FTP, it is a way to remotely access the command line interface of your server and execute commands on it. It's the standard way to interact with any typical VPS server, but unfortunately it's often not available with managed hosting services. Could you run the map generator again with the --verbose flag? It should include more information.
  11. I'm not sure what you mean here, in my experience most server hosting providers should give you at least SSH access to your server so running the mapgen shouldn't be an issue. Otherwise you could configure a cronjob (if they're available on your hosting service) to run the generator automatically at set intervals. In any case, I would think you should be able to start the application in the same way you would start any other application on your server?
  12. Adding custom IDs is on the roadmap, you'll have to wait a bit longer I wanted to get the bug with the towers fixed first.
  13. @DiWormI think I identified the issue, it was an old database query that didn't work correctly. I've published a new release on Github (v2.3.3), could you try it and let me know if it loads all the towers now?
  14. Users can toggle layers on and off using the options in the sidebar. I might add some more settings to configure which layers are on by default. Is this an existing mod or something custom on the server? If it's (based on) an existing mod I'd love to add it into the core mapgen. Thanks! I'll have a look.
  15. Noted As for the issues you're having, I'm not sure what's going on there. Are you certain there are more items on your server than the ones that are being loaded and displayed on the map? Would you mind sharing your wurmitems.db file with me (and the accompanying db-wal and db-shm files)? So I can run some tests to see if this is an issue on the side of WurmMapGen or if it's perhaps something with your database.
  16. I think you're missing -jar in there? I'll add it to the roadmap! Right now focus is on getting the current version working though
  17. @DiWormI've been looking over my code for several hours but I can't seem to find any reason why your modded towers wouldn't appear. I'm testing with the mod on my local server and it works perfectly, so I'm kind of at a loss. I've added some more logging output in the latest release so hopefully that will lead to something. Could you also share some records from your wurmitems database with guard towers that don't show up on the map? Along with the table schema. Perhaps it's an issue with my queries, or your database is set up differently in some way. The bug with markerType 3 portals should be fixed in the latest release (v2.3.2), that I just published on Github. Thanks for reporting!
  18. @DiWormThanks for the logging output! It made me realise there's a bug with the verbose setting, because it should normally output a lot more. Could you try the latest release (v2.3.1) from Github, and then share the verbose logging output again? It should include a lot more information this time around. As for the custom items - I see you're using different template IDs than the mod does (new portals uses IDs 4001-4016, your example uses ID 5000), so that's why it doesn't work out of the box. I will add a way to configure your custom IDs for portals and towers, but it may take some time for me to get around to implementing this.
  19. Can you share the logging output of the map generator? Run it with verbose logging enabled (java -jar WurmMapGen.jar --verbose) and then copy the logging output into a pastebin or similar. The portal data has only the properties name, x, and y. See PortalFileGen.java. Can you tell me why your mod wouldn't work with the map generator? Did you change the portal template IDs?
  20. It seems I forgot to add an empty portals.json in case no portals are loaded, thanks for letting me know! Fix should be published soon. For the kingdom towers, it should look up the tower template names in the modsupport.db database. Did you change the template names? You can view the template IDs and template names that the map generator looks for in DatabaseHandler.java. Can you double check these with your mods? I tested with the latest version of kingdom items and new portals but maybe the IDs are different in your version. Custom markers currently have the same issue with the map markers being handled through the Leaflet.js library, so they require a lot more than just a datafile. This is something I may look into later. You can always add your own changes in the template though, it shouldn't be too difficult to add a new marker type in the client Javascript code.
  21. I just published WurmMapGen v2.3.0, which adds portal markers and mod support for the kingdom items mod and the new portals mod. Check the download link & info in the first post. Thanks to @DiWormfor the tower mod suggestion. In most cases, you should be able to use a subdirectory independently from your CMS. For example, if I have a Wordpress installation at example.com/wordpress, I can set the output path of the map generator to example.com/wordpress/livemap and the webserver should serve all the files just fine from that location. If not, you may need to add a flag to your .htaccess file (or the equivalent for your server software). Adding configurable paths for each different type of asset (images, stylesheets, scripts) is not something I am planning to add, as it is quite a lot of work compared to the limited benefits, and I prefer to spend my time on adding features that more people will find useful. That being said, if this is important to you, I encourage you to fork the Github repository and add the feature yourself. I welcome pull requests that add more features and options to the map generator. Here's the problem with that: the map is not made with <div> elements. The map is built up with a combination of <img> tags for the markers, and <svg> paths for the borders. This all happens through the Leaflet.js library and I cannot control the generated html code directly, so I can't "just add a class to a div" like you suggest. I may look at some more detailed options for customisation in the future, but it won't be any time soon. For now, you can always edit the template source files to suit your needs, the code you need should be in resources/template/app/map.js and resources/template/app/markers.js.
  22. New release is published on Github, should fix the issue If you still have problems, let me know.
  23. I'm doing some tests and it seems that the option only appears when you have no item activated. I'll push a fix soon that will give you the option regardless of the active item.
  24. Check the properties file, you need to at least change the 'salt' option from its default value to a random character sequence, otherwise the mod will throw an error and refuse to work. If that's not it, take a look in the server logs. If something went wrong the mod should have logged an error.