InvisionFree - Free Forum Hosting
Fully Featured & Customizable Free Forums

Learn More · Sign-up Now
Welcome to Dominions 3. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Name:   Password:


 

 IdUpdater: Image based province definition updater
Elmokki
Posted: Aug 17 2012, 12:49 PM


*Spicy* Crew


Group: Members
Posts: 663
Member No.: 36
Joined: 4-May 10



If you have ever edited a map file to add or remove provinces, you know how removing or adding a province will make the definitions go haywire (unless it's done to the top righternmost province)

Yeah. I hate that too. In big maps it's easy to forget a province dot from some province and notice it too late or accidentally have two dots in some province. Those things generally mean redoing most of the map definitions. I'm pretty happy I haven't made those mistakes in a while. Similiarly if you're editing a map to add or remove provinces it'll break the definitions.

What this tool does is scan both old and new image for the white spots and finds out both the old and the new province number for the spot in that specific place. Then it writes a new .map file where any province that was found from the new image is refrenced with the province number it has in the new image.

It supports following .map file commands:
#specstart
#start
#nostart
#neighbour
#terrain

It does NOT support defining gods. I was lazy. All #setland and #land related commands listed on manual before the god stuff should be removed properly though when provinces are removed too, but I didn't test that.

Like all the other crap I've coded for Dom3, it'll work on Windows, Linux and OSX as long as you have a new enough Java Runtime Enviroinment installed. For OSX and Linux the magic phrase is something like "java -jar idupdater.jar" since java by default hates console and thus double clicking the .jar probably won't work.

You can find it from here:
http://koti.kapsi.fi/elmokki/dom3/mods/idupdater-v2.zip

Also check out a tutorial at http://z7.invisionfree.com/Dom3mods/index.php?showtopic=939
Top
Elmokki
Posted: Aug 17 2012, 10:18 PM


*Spicy* Crew


Group: Members
Posts: 663
Member No.: 36
Joined: 4-May 10



I had to release a new version.

- There was a bug that made province ids calculate wrongly when removing provinces from maps.
- Province name definitions weren't correctly updated
- Added support for most #land/#setland stuff (anything except god stuff)
- #imagefile is automatically updated to whatever is supplied as argument when the program asks for the new image file.
Top
« Next Oldest | Mods | Next Newest »
InvisionFree - Free Forum Hosting
Join the millions that use us for their forum communities. Create your own forum today.
Learn More · Sign-up for Free

Topic Options



Hosted for free by InvisionFree* (Terms of Use: Updated 2/10/2010) | Powered by Invision Power Board v1.3 Final © 2003 IPS, Inc.
Page creation time: 0.0567 seconds | Archive