Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Thu Nov 21, 2024 6:57 pm

All times are UTC




Post a reply
Username:
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
Font size:
Font colour
Options:
BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Please click and drag the 2 correct statements to the right hand side.
Please click and drag the 2 correct statements to the right hand side.
Please select the options below to the correct list to avoid automated registrations.
Statements
2 correct statements
Dogs have 4 legs
Chickens can talk
Elephants can fly
Fish can swim
   

Topic review - Tetris Bot
Author Message
  Post subject:  Re: Tetris Bot  Reply with quote
I got a cool idea, don't know if it excists already but here it goes.
If there was an option that we could select a type of pixels and put a colored ball on it that puts that pixel in the ball type group. Then we could program that the pixels wich are in the same balls group should stick to eachother, this way we make a smart detection system that will put the right parts to eachother.

Put a file with my comment to show the idea I mean


edit: I think I didn't really get how this tetris worked haha, I was thinking that you needed to put the same colors together :roll:


Attachments:
File comment: picture
tetris.JPG
tetris.JPG [ 34.51 KiB | Viewed 1457 times ]
Post Posted: Thu Feb 23, 2012 4:23 pm
  Post subject:  Re: Tetris Bot  Reply with quote
Hem.
Amazing macro :D

Btw why many people interest to tetris bot? :D
Post Posted: Mon Feb 20, 2012 9:13 am
  Post subject:  Re: Tetris Bot  Reply with quote
hay guise i made dis
viewtopic.php?f=10&t=4450
which basically just moves the tetris piece across the screen, look at the "ghost piece" and choose the orientation and location that places the ghost piece as low as possible on the screen (which in ideal cases should fill gaps)
however the input can't do that fast enough to cycle through all the possible orientations before the piece lands so i capped it at 2 orientations
Post Posted: Mon Feb 20, 2012 8:45 am
  Post subject:  Re: Tetris Bot  Reply with quote
haha, tetris macro, i have to try it xD nice work :)
Post Posted: Tue Sep 20, 2011 8:48 pm
  Post subject:  Re: Tetris Bot  Reply with quote
BakT wrote:
Image

ok i explain,

1st you press on the image, where you want, "Eyedropper" is the same location zoomed in, where you can set by exact pixel where you want
2nd you look the RGB value
3rd the X and Y

so for this image:
Code:
  begin
     Color.Flush screen dump cache()
     If  Color.At coordinate is (RGB)("203", "47", "78", "776", "428")
          begin
               Color.Wait for color at coordinate not to be (RGB)("203", "47", "78", "776", "428")
               Macro.Pause("1000")
          end
     if  Color.At coordinate is (RGB)("203", "47", "78", "776", "428") <-- change the values for 2nd kind of color
          begin
               Color.Wait for color at coordinate not to be (RGB)("203", "47", "78", "776", "428")
               Macro.Pause("1000")
          end
 end
 
 


i hope this is the easiest way to start with it

so it would look like: it looks whats next, and now it waits until the color changes, then macro has values what to do with this kind of piece :P

but there must be some more code added in front that has values from the previous piece, to put the pice in right place before waiting for color to change

and after that code, that gives values to the next time

i think i did i right, but i might not :D

oh i might know how to show macro wheres free spots, just bunch 100+ color cordinate check :D

jeje im gettin stupid now, feelin my brain will explode when i try to think how to do this :o






Are thise working?
[battle2p]
sx=337
sy=248
bgc1=2236962
bgc2=2236962
pfw=10
pfh=21
blw=18
blh=18
recdata="0 -10 9934743 -8 0 9737364 0 0 2236962 17 0 2236962 1 1 2829099 16 1 2829099"

[battle6p]
sx=337
sy=283
bgc1=2236962
bgc2=2236962
pfw=10
pfh=21
blw=18
blh=18
recdata="0 -10 9934743 -8 0 9737364 0 0 2236962 17 0 2236962 1 1 2829099 16 1 2829099"

[sprint]
sx=336
sy=262
bgc1=2500134
bgc2=3092271
pfw=10
pfh=21
blw=18
blh=18
recdata="0 -12 15724527 -8 0 15592941 0 -1 3092271 17 -1 3092271 0 0 2500134 17 0 2500134"

[sprint5p]
sx=343
sy=277
bgc1=2236962
bgc2=0
pfw=10
pfh=21
blw=18
blh=18
recdata="0 -15 16290048 -8 0 10263708 0 0 2236962 17 0 2236962 1 1 2829099 16 1 2829099"

[ultra]
sx=528
sy=261
bgc1=2496768
bgc2=2496768
pfw=10
pfh=21
blw=18
blh=18
recdata="0 -8 10062955 -5 0 10194542 0 0 2496768 17 0 2496768 1 1 3483923 16 1 3483923"

[options]
winx=502
winy=258
gametype=2
tetrises=0
flineclear=1

[controls]
right=RIGHT
left=LEFT
hdrop=SPACE
rotatecw=X
rotateccw=Z
keystrint=25
keystrlen=30
Post Posted: Sat Sep 17, 2011 2:39 pm
  Post subject:  Re: Tetris Bot  Reply with quote
I can help guiding you in the right direction sure.

But I don't know the game, can you explain the exact rules of the game, and perhaps show me screen dumps of different scenarios in the game with explanations?

Also please create a new Topic for it, since its no longer "Tetris".
Post Posted: Sun Jul 04, 2010 1:35 pm
  Post subject:  Re: Tetris Bot  Reply with quote
Hmmm .... I wonder how to make a bot to the second game because it is easier to do.
So far I learn how to work in Blue Eye 3 days. And yet so I do not know too full of his ability could help me make a bot to the second game?
Post Posted: Sun Jul 04, 2010 1:32 pm
  Post subject:  Re: Tetris Bot  Reply with quote
It is difficult yep.

Those games will be slightly easier to do.
If you want to create a macro for them, I suggest you look into the "Pixel pattern" functions.

They will allow you to determine if 3 balls are found next to each other, and then calculate the point at which the next ball should hit.

Those two games, are also in the slightly more advanced category as well though. But definitely not as hard as Tetris.
Post Posted: Sun Jul 04, 2010 9:51 am
  Post subject:  Re: Tetris Bot  Reply with quote
Hmm... Maybe it is too difficult? Maybe try to make a bot for this game?
http://img697.imageshack.us/img697/8241/anthilldefender.jpg
http://img806.imageshack.us/img806/2341/beztytuupx.jpg
Post Posted: Sat Jul 03, 2010 6:32 am
  Post subject:  Re: Tetris Bot  Reply with quote
Ok, I have put a bit of time in to it, and sure it is possible, but its a very big and very complicated task, I don't think its a very good task for a first time attempt on a BE-Macro.

Ill have to suggest you go for something a bit simpler, something with less logic, or at least simpler logic, and more repetitive work.

If I was to create a Tetris macro, I'm afraid I would have to spent several days working on it, which unfortunately I do not have the time to do right now - perhaps sometime for a future youtube video of Blue Eye in action though!, however at the moment I'm quite busy working on library documentation and as always -the next version of BE.

If you are still going to work on a Tetris macro anyway, I will of cause check in regularly and post my thoughts if I think of something that might help you.
Post Posted: Fri Jul 02, 2010 8:56 pm

All times are UTC


Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group