FYI im running windows 8.1, but i run the compile.sh to compile the bin folder, but it fails with 37 errors as it cannot find the needed files for it to build. I'm assuming I will need to get my linux machine out to compile it fully?
You should be able to extract that to the anvilmapper repo/directory (well, or where ever I guess) and then run it from there like I explained earlier.
You should be able to extract that to the anvilmapper repo/directory (well, or where ever I guess) and then run it from there like I explained earlier.
It works! Although the colors are still alittle funky XD
It's all purple, this is with vanilla minecraft. This was the issue i had before that i could not figure why.
It requires an old version of the MapWriter code as well, ie. it doesn't even compile against the latest code in the original author's MapWriter repo.
My compile script checks out an old commit where it still compiles. I haven't bothered to update the AnvilMapper code itself for later versions of MapWriter, since it still seems to work just fine (for me at least) with the old code.
Btw, how does MapWriter handle the block colours nowadays when the block IDs are dynamic? I've still seen the colors in the MapWriterBlockColours.txt file as IDs rather than block registry names. Are they read from the Block.getBlockColor() on first launch/if they are not present in the colors file, or how does it work?
it still uses the old way of getting a block id for each block when a world loads. (unless you disables this in the confog then you will probably get some funky maps.....
i have it on my todo list to switch over to the blocknames instead of the id's but i havn't had the time yet for that.
as for getting the colors it gets them from the texture atlas with the icon information of each block. this ensures that the colors will be the same on the map as in the game.
i might update the anvill mapper to new code, but that might be long in the fueture as i dont actually use it myself.
Did you copy over the MapWriterBlockColours.txt from your mod pack/modded instance and point to that that when running anvilmapper?
I haven't had problems with colors, I don't think, at least I don't remember it...
Are you saying that the entire map is just purple and nothing else?
I did, i even deleted the MapWriterBlockColours.txt file from the mods folder, told mapwriter to rebuilt it, and copied the rebuilt txt to the anvilmapper folder overwriting the old txt file. The rendered map chunks are all purple. With the old txt file it renders fine exept 1.7+ blocks.
Hmm. Is this a server world or a single player world? I think you might have to join/load the world in question before copying the file, so that the block color id mappings are for that particular world. Which version of Minecraft? Which version of MapWriter are you using (which build/made by who)? I don't know if there have been any changes to that part of the mod in vectron's or someone else's builds lately... I think the version I have been using (in 1.7.10) is from jk-5's github, basically the latest version available from the original author plus the small fix to make it compatible with 1.7.10 instead of 1.7.2.
Hmm. Is this a server world or a single player world? I think you might have to join/load the world in question before copying the file, so that the block color id mappings are for that particular world. Which version of Minecraft? Which version of MapWriter are you using (which build/made by who)? I don't know if there have been any changes to that part of the mod in vectron's or someone else's builds lately... I think the version I have been using (in 1.7.10) is from jk-5's github, basically the latest version available from the original author plus the small fix to make it compatible with 1.7.10 instead of 1.7.2.
Version of Minecraft: 1.8 modded with Forge/Liteloader
I believe the reason of 1.8 mismatch is due to the new block naming scheme in 1.8. I had tried to get around this but it requires a re-write of how anvilmapper reads the block id's.
The change from block IDs to names occured already in 1.7. I think mostly just items changed in 1.8 to also use names instead of IDs in the save files, like the contents of chests etc.
I haven't used the 1.8 version of MapWriter, but I have rendered my vanilla 1.8.x world using AnvilMapper, it works just fine for me. I'm using a block colors file from 1.7.2 for that atm it seems, I'll need to generate a new file for that which includes the 1.8 blocks as well...
But as to why it is not working for you, I'm running out of ideas... Could you pastebin the block colors file?
Here are my current files, as I said, I need to update the color file to 1.8 still, but this should still work for the most part:
Aha! I generated a new color file for myself in the 1.8 version of MapWriter, put that on my server and re-generated the anvilmapper map, and it was all purple
Then I quickly compared the color file to the previous one I used, and noticed that for some reason the 1.8 version also writes a non-transparent color for block 0 (= Air) to the file. Thus it probably rendered the whole map as purple air blocks
So the fix for the purple rendering is to simply remove the line from the MapWriterBlockColours.txt where it defines a color for block 0 (ie. remove the line "block 0 * ff7c007c" in my case).
Aha! I generated a new color file for myself in the 1.8 version of MapWriter, put that on my server and re-generated the anvilmapper map, and it was all purple
Then I quickly compared the color file to the previous one I used, and noticed that for some reason the 1.8 version also writes a non-transparent color for block 0 (= Air) to the file. Thus it probably rendered the whole map as purple air blocks
So the fix for the purple rendering is to simply remove the line from the MapWriterBlockColours.txt where it defines a color for block 0 (ie. remove the line "block 0 * ff7c007c" in my case).
You sir/mam are awesome, thank you so much for the help!!!! I owe you a beer or something :-P
I myself play factions and think that if you can add something to see chests or chests sky bases that it would help me and many more faction players. Also, in the Xaero minimap mod there is an option to see all entities like items, mobs, and players I think that this would be another cool addition to this already awesome mod. Thank you for your time
Personally, I hope radar never gets added. This is the only minimap I've found without it. This minimap mod is simple. It has a map. It has waypoints. Nothing else. Every map I've used that had radar caused much more lag than this one. This mod barely drops my fps, if at all.
Not sure if its been said but on 1.8 when u change a lot of stuff the map starts flickering with the new version and the old one until you relog into the server.
A little Bug Report:
Im getting this thrown when i use Better Storage(BetterStorage-1.7.10-0.13.0.125.jar) <Crates> Block in the World
(When placed in map sight)
Using Version
MapWriter-1.7.10-2.1.5-Beta-2.jar
MapWriter-1.7.10-2.1.4.jar || Didnt test any other Versions
[B#308] [19:12:13] ...: java.lang.StringIndexOutOfBoundsException: String index out of range: -5
[B#308] [19:12:13] ...: at java.lang.String.substring(Unknown Source)
[B#308] [19:12:13] ...: at mapwriter.region.MwChunk.getBlockAndMetadata(MwChunk.java:225)
[B#308] [19:12:13] ...: at mapwriter.region.ChunkRender.getColumnColour(ChunkRender.java:79)
[B#308] [19:12:13] ...: at mapwriter.region.ChunkRender.renderSurface(ChunkRender.java:168)
[B#308] [19:12:13] ...: at mapwriter.region.SurfacePixels.updateChunk(SurfacePixels.java:86)
[B#308] [19:12:13] ...: at mapwriter.region.Region.updateChunk(Region.java:166)
[B#308] [19:12:13] ...: at mapwriter.region.RegionManager.updateChunk(RegionManager.java:123)
[B#308] [19:12:13] ...: at mapwriter.tasks.UpdateSurfaceChunksTask.run(UpdateSurfaceChunksTask.java:24)
[B#308] [19:12:13] ...: at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[B#308] [19:12:13] ...: at java.util.concurrent.FutureTask.run(Unknown Source)
[B#308] [19:12:13] ...: at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
[B#308] [19:12:13] ...: at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[B#308] [19:12:13] ...: at java.lang.Thread.run(Unknown Source)
and probably unrelated to the Better Storage;
[B#308] [19:11:14] ...: java.lang.StringIndexOutOfBoundsException: String index out of range: -5
[B#308] [19:11:14] ...: at java.lang.String.substring(Unknown Source)
[B#308] [19:11:14] ...: at mapwriter.region.MwChunk.getBlockAndMetadata(MwChunk.java:225)
[B#308] [19:11:14] ...: at mapwriter.region.ChunkRender.getColumnColour(ChunkRender.java:79)
[B#308] [19:11:14] ...: at mapwriter.region.ChunkRender.renderSurface(ChunkRender.java:168)
[B#308] [19:11:14] ...: at mapwriter.region.SurfacePixels.updateChunk(SurfacePixels.java:86)
[B#308] [19:11:14] ...: at mapwriter.region.Region.updateChunk(Region.java:166)
[B#308] [19:11:14] ...: at mapwriter.region.RegionManager.updateChunk(RegionManager.java:123)
[B#308] [19:11:14] ...: at mapwriter.tasks.UpdateSurfaceChunksTask.run(UpdateSurfaceChunksTask.java:24)
[B#308] [19:11:14] ...: at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
[B#308] [19:11:14] ...: at java.util.concurrent.FutureTask.run(Unknown Source)
[B#308] [19:11:14] ...: at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
[B#308] [19:11:14] ...: at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[B#308] [19:11:14] ...: at java.lang.Thread.run(Unknown Source)
Also saving configs seems broken (Windows 7, MapWriter-1.7.10-2.1.4.jar [didnt test it on the beta-2])
is it posible that you have forge multipart installed?
i'll add a check to prevent that error in the next version. (not that i know why indexof returns a -5 value.....)
I think he means lots of changes to the blocks/terrain (basically so that you can actually notice that the terrain changes in the minimap). It has been a bug in MapWriter at least since 1.6.4, maybe even longer, that the minimap cycles between different states of the world. Some sort of weird buffer duplication or something somewhere.
If the bug he is talking about is the same as mine, he means like say there is a forest. You then cut down the trees and build a house in their place. The minimap will start flickering between the old trees and the new house. I've noticed this bug before, but never thought much of it because quitting to the title screen and reloading the world fixed it.
the flickering has something to do with the making of the different maps. and updating the land. i'm planning to have a look at this some time in the future.
I uploaded the bin folder (aka the compiled program) here: http://maruohon.kapsi.fi/minecraft/tools/anvilmapper/anvilmapper_compiled.zip
You should be able to extract that to the anvilmapper repo/directory (well, or where ever I guess) and then run it from there like I explained earlier.
My mods on CurseForge. My Github page with mods, tools and other stuff.
It works! Although the colors are still alittle funky XD
It's all purple, this is with vanilla minecraft. This was the issue i had before that i could not figure why.
Did you copy over the MapWriterBlockColours.txt from your mod pack/modded instance and point to that that when running anvilmapper?
I haven't had problems with colors, I don't think, at least I don't remember it...
Are you saying that the entire map is just purple and nothing else?
My mods on CurseForge. My Github page with mods, tools and other stuff.
it still uses the old way of getting a block id for each block when a world loads. (unless you disables this in the confog then you will probably get some funky maps.....
i have it on my todo list to switch over to the blocknames instead of the id's but i havn't had the time yet for that.
as for getting the colors it gets them from the texture atlas with the icon information of each block. this ensures that the colors will be the same on the map as in the game.
i might update the anvill mapper to new code, but that might be long in the fueture as i dont actually use it myself.
I did, i even deleted the MapWriterBlockColours.txt file from the mods folder, told mapwriter to rebuilt it, and copied the rebuilt txt to the anvilmapper folder overwriting the old txt file. The rendered map chunks are all purple. With the old txt file it renders fine exept 1.7+ blocks.
Hmm. Is this a server world or a single player world? I think you might have to join/load the world in question before copying the file, so that the block color id mappings are for that particular world. Which version of Minecraft? Which version of MapWriter are you using (which build/made by who)? I don't know if there have been any changes to that part of the mod in vectron's or someone else's builds lately... I think the version I have been using (in 1.7.10) is from jk-5's github, basically the latest version available from the original author plus the small fix to make it compatible with 1.7.10 instead of 1.7.2.
My mods on CurseForge. My Github page with mods, tools and other stuff.
Version of Minecraft: 1.8 modded with Forge/Liteloader
Version of Mapwriter: 1.8 http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1286882-mapwriter-an-open-source-mini-map?comment=1108
I believe the reason of 1.8 mismatch is due to the new block naming scheme in 1.8. I had tried to get around this but it requires a re-write of how anvilmapper reads the block id's.
The change from block IDs to names occured already in 1.7. I think mostly just items changed in 1.8 to also use names instead of IDs in the save files, like the contents of chests etc.
I haven't used the 1.8 version of MapWriter, but I have rendered my vanilla 1.8.x world using AnvilMapper, it works just fine for me. I'm using a block colors file from 1.7.2 for that atm it seems, I'll need to generate a new file for that which includes the 1.8 blocks as well...
But as to why it is not working for you, I'm running out of ideas... Could you pastebin the block colors file?
Here are my current files, as I said, I need to update the color file to 1.8 still, but this should still work for the most part:
http://pastebin.com/L0VVpHfF
http://pastebin.com/Nk7hX30B
My mods on CurseForge. My Github page with mods, tools and other stuff.
Aha! I generated a new color file for myself in the 1.8 version of MapWriter, put that on my server and re-generated the anvilmapper map, and it was all purple
Then I quickly compared the color file to the previous one I used, and noticed that for some reason the 1.8 version also writes a non-transparent color for block 0 (= Air) to the file. Thus it probably rendered the whole map as purple air blocks
So the fix for the purple rendering is to simply remove the line from the MapWriterBlockColours.txt where it defines a color for block 0 (ie. remove the line "block 0 * ff7c007c" in my case).
My mods on CurseForge. My Github page with mods, tools and other stuff.
You sir/mam are awesome, thank you so much for the help!!!! I owe you a beer or something :-P
I myself play factions and think that if you can add something to see chests or chests sky bases that it would help me and many more faction players. Also, in the Xaero minimap mod there is an option to see all entities like items, mobs, and players I think that this would be another cool addition to this already awesome mod. Thank you for your time
seeing stuff like chests etc feels bit cheaty to me, and ruins the fun of adventuring.
as for the entitie radar. it's all posible but i'm keeping to the orginal develepors ideas of not adding them to the minimap mod itself.
i did make a player radar using the overlay API. but i dont have any plans to show anything else then players atm with it.
i will probably post a link to it somewhere in the future.
That's good to hear. There are already lots of cheaty radars about, nice to see this one will be remaining more pure.
Personally, I hope radar never gets added. This is the only minimap I've found without it. This minimap mod is simple. It has a map. It has waypoints. Nothing else. Every map I've used that had radar caused much more lag than this one. This mod barely drops my fps, if at all.
I have no idea how I ever played Vanilla.
what do you mean chaning lot of stuff?
is it posible that you have forge multipart installed?
i'll add a check to prevent that error in the next version. (not that i know why indexof returns a -5 value.....)
I think he means lots of changes to the blocks/terrain (basically so that you can actually notice that the terrain changes in the minimap). It has been a bug in MapWriter at least since 1.6.4, maybe even longer, that the minimap cycles between different states of the world. Some sort of weird buffer duplication or something somewhere.
My mods on CurseForge. My Github page with mods, tools and other stuff.
If the bug he is talking about is the same as mine, he means like say there is a forest. You then cut down the trees and build a house in their place. The minimap will start flickering between the old trees and the new house. I've noticed this bug before, but never thought much of it because quitting to the title screen and reloading the world fixed it.
I have no idea how I ever played Vanilla.
the flickering has something to do with the making of the different maps. and updating the land. i'm planning to have a look at this some time in the future.
i'll add a check to fix this in the next version.
Where can I find the latest version for 1.7.10? I'm having trouble with the current version I'm using, so i need to update.
above link is the latest version. i havnt had time yet to upload it to curse but that will probably happen this week.