How to extract .PNG images of .ARE files with Auto-map notes visible on the images?
Rik_Kirtaniya
Member Posts: 1,742
I'm using NearInfinity to extract the .PNG images of the .ARE files to add them to the Icewind Dale Wiki. I enabled Automap Notes under the Layers section of the right-hand-side menu of the Area Viewer. So far it's okay, and I can see the Automap notes visible on my desktop. Now, when I'm trying to Export the Map Image as a .PNG file, the Automap Notes layer is not getting included in it. And that's the problem. Can anyone please tell me how I can include that Automap Notes layer in the extracted .PNG file?
And yes, if anyone wishes to help in building up the Icewind Dale Wiki, I shall be very glad and most grateful. For that purpose please see this thread first, and then pay a friendly visit to the Icewind Dale Wiki!
And yes, if anyone wishes to help in building up the Icewind Dale Wiki, I shall be very glad and most grateful. For that purpose please see this thread first, and then pay a friendly visit to the Icewind Dale Wiki!
0
Comments
By default Near Infinity does not support exporting the layers it overlays in its Area Viewer. However, I have made a quick modification (literally a couple of lines difference) that adds this functionality to Near Infinity. I have attached the modified version to this post. I've also included the source code in this zip file, just to show that the code is clean, if anyone is so inclined.
As a side effect of including the layers in the output image, the output image's size is now dictated by the zoom level in the Area Viewer. I would suggest using 100% zoom to get the highest quality exported image, though you can use lower zoom levels to make the layered elements bigger.
Edit: Zoom settings over 100% raise an exception, as this is a quick and dirty hack just to get it working. Please don't go above 100% when exporting
I believe? I am allowed to post this here (I'm pretty sure the license allows this as long as I include the source), though I don't want to step on anyone's toes. I'll remove this if I am indeed breaking some rule, or if argent is displeased with me redistributing Near Infinity here.
Edit2: I should also point out that this is by no means supposed to be a replacement for your main Near Infinity installation. Just use this to export the area images you need, and then go back to using the normal release.
......
"For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights."
"We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library.".....
I have a question regarding Near Infinity and Exporting ARE maps from BG2:EE, as they include water, anims etc.. I downloaded Bubb's NI file from above, and every function including exporting as PNG files is working quite nicely. However, some of the biggest maps, like the City Docks, cannot load and give the error message "Not enough memory to load area." Just wondering if there is a solution, in Near Infinity, Java, or Windows 10 itself. Even some of the Huge TIS maps cannot load or export either with same message.
Regardless, thank you all for the aforementioned posts to help gamers capture some incredible artwork!
The official NearInfinity builds also include information about the currently used Java runtime, including memory values. You might want to install one of the newer x64 runtimes.
As mentioned above, the requested feature already exists in the official Near Infinity. You can enable it in the Area Viewer options ("Include layer items when exporting map as graphics").
The insufficient memory issue is a strong indication that you're using the 32-bit version of Java to run NI which uses terrible memory settings by default. I would recommend to download and install the setup version from the latest release to install Near Infinity. It already includes the right version of Java and associates the "chitin.key" file from the games with Near Infinity, so you can run Near Infinity simply by double clicking on the file in the file manager.
Appreciate the help with troubleshooting!