AntiqueAtlas icon indicating copy to clipboard operation
AntiqueAtlas copied to clipboard

“Adding custom markers” - question about instruction

Open mrJyggalag opened this issue 6 years ago • 6 comments

So, I have simple question: will the resource pack with custom markers be added as an example in https://github.com/AntiqueAtlasTeam/AntiqueAtlas/wiki/Adding-Custom-Markers? Because if i fllowing the wiki instructions, I cannot seem to figure out how to add a custom marker. If I just add a antiqueatlas:ship_01 (“ship_01” - name of new marker, for example) in markers.json gets me a missing texture or if I add antiqueatlasnewmarker:textures\marker\ship_01.png causes antique atlas to delete the entry in markers.json

mrJyggalag avatar Jan 17 '19 21:01 mrJyggalag

Have you added a texture accessible by a resource location? For example using Resource Loader?

tyra314 avatar Feb 13 '19 20:02 tyra314

How would you specify the location of a texture? Each time I try using Resource Loader I get a crash. Is there a possible example to follow?

Dever293 avatar Jun 19 '19 13:06 Dever293

So i've been trying to add just 1 icon its a 32x32 png i am using Resource Loader i dont have any crashes but AntiqueAtlas keeps removing my edits.. i started keeping backups of different ways i've tried editing the markers.json so i dont make the same mistake tho i do keep making a mistake somewhere which is why i assume AntiqueAtlas removes my changes below are different 'formats' ive tried.. the top being the latest


"antiqueatlas:village": {},
"example:example": {example:textures/gui/markers/example.png, 1, -1000, 1000, false, true, true, 0.5, 0.5}

"antiqueatlas:village": {},
"example:example": {example:textures/gui/markers/example.png,1,-1000,1000,false,true,true,0.5,0.5}

"antiqueatlas:village": {},
"example:example": {"textures": example:textures/gui/markers/example.png,"size": 1,"clipMin": -1000,"clipMax": 1000,"alwaysShow": false,"isTile": true,"isTechnical": true,"centerX": 0.5,"centerY": 0.5}

so with that maybe someone would be as so kind to point out the error in my ways perhaps even providing a example of the markers.json with a added entry..

DaleHat avatar Apr 07 '20 07:04 DaleHat

well good news is i figured out how to stop it from removing my edits (i made the .json read-only) bad news is it still doesnt show my marker as a option when creating a new marker on the map..

I also changed "isTechnical": true to false as i thought it needed to be true to be able to be a option on the map.. still nothin so i went and tried this


"example:example": {"textures": `example:textures/gui/markers/example.png`}

and that didnt work so next would be to remove the .png at the end and that also didnt work..

DaleHat avatar Apr 07 '20 08:04 DaleHat

Did it work in the end? I really want to add custom markers.

Kirin92 avatar Jan 04 '21 09:01 Kirin92

I figured it out.

Everyone (including myself) was typing their JSON in an invalid way.

\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\

1.	Move this resourcepack into your "resourcepacks" folder.
2.	< any order >
	a.	Open Minecraft and select to use this resourcepack.
	b.	Copy the contents of the file "markers.json.example.txt", 
		located inside this resourcepack, into the file "markers.json"
		 located inside your minecraft directory at
		"...\.minecraft\config\antiqueatlas".
3.	Close Minecraft.
4.	Open Minecraft.

Note: The resourcepack must be selected for use when Minecraft is launched so the textures/icons can be loaded.

\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\:::\

Sample image: https://imgur.com/gallery/6kobT1z Download: https://www.mediafire.com/file/2txc35fwbix0yei/Antique_Atlas_Custom_Icons_Example_-_%25281.12.2%2529.zip/file

PS: This is a duplicate comment from another issue. I think it would be easier found in the other issue-post at https://github.com/AntiqueAtlasTeam/AntiqueAtlas/issues/283

AustinMajeski avatar Jan 07 '21 02:01 AustinMajeski

I guess this was answered a long time ago.

tyra314 avatar Sep 13 '22 12:09 tyra314