amidst icon indicating copy to clipboard operation
amidst copied to clipboard

Amidst Feature request: export structure locations on a txt file

Open Dalinnar opened this issue 5 years ago • 7 comments

I make this request beacouse i have this idea i want to make a list of all the structures that generates on my word, amids is the best help bit is not that easy at this time. i ask if its possible to make an option dat you can save all the locations of structures (witch huts, igloos, nether fortress, villages, etc) on a organized txt file that shows you all the coord of the stuctures rendered on the amids map , or put a max leight to save center to 0,0. i play on 1.12.2 (amidst-v4-3-beta3) if you can make this on that version at least

Dalinnar avatar May 22 '19 05:05 Dalinnar

I need this too, for 1.14.4 thoe.

MrBruz avatar Jul 22 '19 01:07 MrBruz

This would be extraordinarily useful for me.

sohcah avatar Sep 27 '19 18:09 sohcah

Yes please

KevinDenys avatar Dec 26 '19 22:12 KevinDenys

This would be great for ship wrecks!

rjbarber avatar Jan 15 '20 18:01 rjbarber

Is this going to be done? Or is this something just lying around? I really want this possible but I'm guessing that this wont happen in the near future

Matlex2831 avatar Apr 21 '20 08:04 Matlex2831

Someone interested needs to pick this issue and start the work of implementing the feature.

This project is maintained by volunteers, so there is no guarantee that this will happen quickly, or ever.

moulins avatar Apr 22 '20 10:04 moulins

If anyone is still interested in this feature I added some code today to log villages coordinates to stdout using eclipse to run Amidst. Unfortunately I don't have time to do a proper job or support it, but the following is what I did to get the village data I wanted.

I changed the constructor in the WorldIcon.java file to:

` public WorldIcon(

		CoordinatesInWorld coordinates,
		String name,
		WorldIconImage image,
		Dimension dimension,
		boolean displayDimension) {
	this.coordinates = coordinates;
	this.name = name;
	this.image = image;
	this.dimension = dimension;
	this.displayDimension = displayDimension;
	if (name == "Village") {
		String x = Long.toString(coordinates.getX());
		String y = Long.toString(coordinates.getY());
		String mystr = "In WorldIcon" + name + " " + x + " " + y;
		System.out.println(mystr);
	}
}`

I'm not overly familiar with java and know hardly anything about the Amidst code so no doubt there is a better way of doing this, but for a quick temporary solution it worked well for me. If you want other structure types just change the check for "Village" to be whatever you want or alternatively remove it completely to get all structures.

gxmy avatar Aug 24 '21 09:08 gxmy