Page 1 of 1

Automated mapping of ores (but I need a bit of help)

Posted: Wed Dec 28, 2011 3:08 pm
by littlewierdo
Very simply put, for miners, the holy grail would be a map of the world with all the ore locations.

But the next best thing would be an automated script that runs in the background, monitoring the ore you dig up and automatically creating a spot for you in UOAM, based on the coordinates you target (NOT where you are standing - this means, the exact tile that contains the ore is mapped, not just a general area).

The script posted below is NOT this script!! I am not yet done with it!!
Please keep reading, I need some more information to complete this!!

That my friends is what I am working on.

Using a modified version of veinmapper (modified by me of course), I have it working beautifully.

The way it works...

Simply run the script and it monitors as you mine. Every time new ore is added to your bag, the script sees what type of ore it was via the journal and then creates a new entry into a .map file.

What makes this script different from some of the others is several things:

1. It is completely automated - as you mine, it does the updating for you.
2. Each ore type gets a different .map file created for it. What this means is, if you dont want to see certain ore types, you very simply can hide that ore type (most people probably dont care about seeing Copper).
3. There is no menu with this script. No settings to configure, no buttons to press, it just works.
4. It monitors the coordinates you target to mine on rather than just marking where you are standing or assuming the 8x8 square you are standing in contains all the same type of ore.
5. With the way this script is setup, multiple ore types can be marked in the same tile (many of the others only mark one type of ore).

I have modified it to remove all of the menu (all of the options provided via the menu do not affect Pangaea) and have already modified the settings to work with Pangaea.

What I need from the community here is a list and colour of all the ore types. I dont need locations!! At last count, there were 48 but I know recently even more ore types were added.

At the bottom of this post will be a short script you can run to give me the colour (and type if it is not DWJ).

Simply copy and paste the script into easyuo and run it. It will ask you to target the item you wish to id, simply click the stack of ore and a menu will appear with some information.

What I need is the second item in the list, TYPE. While I am figuring that every ore is DWJ, I would like to confirm it so I can make sure this works with every ore.

I also need the third item in the list, COLOUR. This is a 4 digit number.

As I see new posts here, I will update the list here so that I can get this list into the script.

If a number is listed here, that means it has been confirmed by myself or another user.

And yes, I will share this script once I have a more complete ore list.

Dull Copper - 1002 - DWJ
Copper - 1538 - DWJ
Bronze - 1118 - DWJ

Re: Automated mapping of ores (but I need a bit of help)

Posted: Wed Dec 28, 2011 3:26 pm
by Biggs
Imperial has ores you could do the colour hue in moonglow city opposite the globe. well done sounds awsome! the only ore we dont have is the new one (rhodium?) as everything got asseyed then gms decided to add new veins, and its unfair that we gotto do it aggaaaain!

Re: Automated mapping of ores (but I need a bit of help)

Posted: Wed Dec 28, 2011 3:27 pm
by Monad
I edited the script out from your post. There is a script section for scripts, they are not allowed elsewhere.

Re: Automated mapping of ores (but I need a bit of help)

Posted: Thu Dec 29, 2011 12:45 am
by littlewierdo
*sigh*

That script is unchanged from the original from the easyuo forums....

uggg...

Ok, I will get the ore colours this weekend, thanks for the tip!

Re: Automated mapping of ores (but I need a bit of help)

Posted: Sat Dec 31, 2011 2:40 pm
by littlewierdo
Script has been posted under a new category (Gathering) and is waiting approval. It has bugs I am sure and it isnt perfect. Lemme know any issues you have so I can fix them!!

Re: Automated mapping of ores (but I need a bit of help)

Posted: Sat Dec 31, 2011 3:37 pm
by littlewierdo
3 bugs have been corrected, once script is approved, it should work great (I tested it with 8 or 9 ores and it works without any major issues. It still doesnt map anything if you get a statgain at the same time as getting ore, Ill have to fix that at a later time.

Unfortunately, the script has to be re-approved...

Absolutely absurd, here is a link to the scripts on pastebin until it gets re-approved. Put both scripts in the same directory as your UOAM directory and load them into EasyUO. Run script one (you need only run it once), then use script two as you mine. After running script one, In UOAM you need to go to Map -> Additional Settings -> Files and select the 51 different ore types. Then, in the same window click the filters tab and uncheck any ores you dont want to see.

http://pastebin.com/DrFCavjq

http://pastebin.com/XZBSgV7Z

Seriously, I get why scripts have to be approved but it also makes it impossible to iterate and post bug fixes. So, that forces me to work around the system.

I have a really cool mining and lumberjacking script as well as a crafting macro (works for smithing, tailoring, fletching, carpentry, & tinkering) that I may just post on pastebin and just use a single post here to post the links and changelog.