21 posts
Posted 21 July 2012 - 08:46 AM
I am playing some with technic mod pack, and I started thinking of a turtle miner. Not just any mining algorithm, but a self learning one, so a Turtle with a learning agent. To explain for the agent what to collect we would need to rank block types, that is where EMC comes in.
For you who don't know, EMC is a term from Equivalent Exchange that most block types have that defines how valuable it is. So the goal would be to get as much combined EMC per second as possible. I assume there is no mods that makes it possible for a turtle to scan EMC values? So this is all theoretical.
So anyway, the agent should receive praise when it collects something (depending on the EMC value) and much more praise when it returns stuff to the chest (depending on how long time it took and the EMC value). And to make sure the turtle doesn't ruin the world, it should get bad feedback for removing blocks and dropping items.
As I said this is so far just theoretical, I would probably need to take a new course to make a working learning agent on my own. I just thought it would be an interesting subject to write of here. Has anything similar been done? Do you think it's easy, hard or impossible?
Oh, and is there anyway, possibly with a mod, to scan for EMC or use a divine staff (whatever that EE item is called) with a turtle?
14 posts
Location
Hongkong
Posted 18 August 2012 - 01:14 PM
OMG
so u are asking 4 some kind of AI? :(/>/>
also,to detect how much EMC a block worth
i think i have a quite awkward solution
make a table that contain all kinds of block's ID that the turtle might dig up,and set EMC values to them
so turtle could know how many EMC worth about the block it dug
[sorry for my bad english]
120 posts
Posted 19 August 2012 - 01:34 AM
i think he's going more for a turtle to use dowsing rods and be able to intelegently find anf gather those high value ores
209 posts
Location
In your fridge.
Posted 26 August 2012 - 02:46 AM
I'd say impossible. To make an AI would take thousands of lines of code, take FOREVER to scan a single block and decide what to do with it, and on top of that, you need to either make a mod, or get someone to make a mod, so turtles even know what EMC is.
I've heard talk of database turtles, a peripheral mod here on the forums has them. I don't know how to use it, but apparently you can teach it blocks and it will know what they are later. THEN you could make an algorithm manually ranking every block in the vanilla game (over a hundred) yourself. That would save you a lot of time, actually, but would still take a ton of work.
I'd say: get a mining turtle that mines with the dimensions you set and returns items to a chest. (my own is a good choice, it's under "Turtle Programs") and then use Redpower (my favorite) or BuildCraft, or Factory+, (I think that's what it's called) anything that allows sorting, to sort items in a warehouse. That's the easiest, and it's what I do.
If you can, or do make such a program, please post it on the forums, that sounds really cool!
294 posts
Posted 26 August 2012 - 06:34 PM
So even if that AI would work, how it would help you gain items? How it would mine more items than regular mining program?
21 posts
Posted 05 November 2012 - 06:07 AM
Sorry I haven't replied until now, I haven't been at this forum for a while.
I guess I got the responses I thought I would, of course the only way for a computer to know about EMC would be by accessing a database.
@matejdro, it's a big chance the AI would not even be as effective as a simple mining program. I guess I just came up with this idea from the start just because it would be interesting to watch what it learned to do. If it went really smoothly and someone let it learn for some ages it might realise the best way to go is to build a emc/farm, but I think it's more probably it would just become a mining program that avoids stones and dirt.
If I happens to come across a AI script I might give it a try, but otherwise it will be too much work.
351 posts
Posted 05 November 2012 - 07:57 AM
I dunno why you need learning to do this exactly. You can come up with an optimal algorithm for mining beforehand, and have an AI simply follow the already known best strategy, instead of learning.
Also, why are you trying to mine if you have EMC availible? Do cow milkers, dark rooms, blaze rod grinders and so on no longer work?
21 posts
Posted 05 November 2012 - 11:27 AM
I dunno why you need learning to do this exactly. You can come up with an optimal algorithm for mining beforehand, and have an AI simply follow the already known best strategy, instead of learning.
Also, why are you trying to mine if you have EMC availible? Do cow milkers, dark rooms, blaze rod grinders and so on no longer work?
Yes, of course. As I just said it was most for fun, and for practice. There are millions of better ways to get resources in Tekkit.