Jump to content
  • Sign Up

Nironior

Members
  • Content Count

    6
  • Joined

  • Last visited

About Nironior

  • Rank
    Newbie
  1. Thanks! Appreciate it a lot
  2. This is the script in its entirety:
  3. Hey! I've used ACTool for a long time with only a limited amount of commands, so I had to get creative in order for things to work most of the time. I'm trying to get a bit better. I've successfully made a script which recognizes colors of gems in each of their possibly permutations which allow for a match. The thing is: It is still way less efficient than my really simple macro which just blindly matches the whole grid (8x8) in each of it's possibilities regardless of color by starting in the left/top corner and working down to the opposed corner horizontally and then vertically. Â I feel like my Object based script which takes color into account could be way better though. Have you got any tips for me? And more specifically: How could I turn this into a script which searches for any matching objects instead of one color at the time? Is that possible? This is what the game looks like (and below that I'll include my script): Â Â Edit: Sorry, didn't know that Tabs would disappear, will use spaces from now on. Â Â
  4. Thanks for replying again! That is exactly the code I'm using, except for the timestamp command. To get the RGB values I added this procedure: Procedure ShowColor using A, B  LoadRGB $A, $B  SetConst Red  = {RGBRed}  SetConst Green = {RGBGreen}  SetConst Blue = {RGBBlue}  saypaste $Red and $Green and $Blue op $A $B End But it is still a mystery to me because I'm using the same script on two laptops, and on one laptop I can get the correct values for the last picture (meaning that the values change when that picture changes), but on my main laptop the values won't change in that area even if it is an entirely different picture within the game  So it's not so much as an error in the script i guess, but more of a weird setting or something that I'm not aware of
  5. After some more testing I found out that I was lucky with getting values on the first two spells. It seems that on each picture there is only a small range in which LoadRGB actually reads the values of the picture itself and not the background. These are the values on ten adjacent pixels i got when testing the values on the second spell again: 29 and 114 and 255 op 228 362     29 and 114 and 255 op 228 362    Same 29 and 114 and 255 op 227 362    29 and 114 and 255 op 227 362     Same 29 and 114 and 255 op 226 362     29 and 114 and 255 op 226 362     Same 29 and 114 and 255 op 225 362     29 and 114 and 255 op 225 362    ,, 29 and 114 and 255 op 224 362     29 and 114 and 255 op 224 362    ,, 29 and 114 and 255 op 223 362     29 and 114 and 255 op 223 362    ,, 29 and 114 and 255 op 222 362     28 and 110 and 247 op 222 362    Different 29 and 114 and 255 op 221 362     25 and 97 and 215 op 221 362     Different 29 and 114 and 255 op 220 362     6 and 23 and 52 op 220 362        Different 29 and 114 and 255 op 219 362     4 and 8 and 28 op 219 362         Different  Do you guys think that my theory is correct? ("It seems that on each picture there is only a small range in which LoadRGB actually reads the values of the picture itself and not the background.")
  6. Hey, I've been having a weird problem with LoadRGB. I'm making a script for Gems of war (a match-3 game) which keeps matching gems until one of my four spells is ready and then casts one of the spells. The script is able to detect when a spell is ready because a picture changes entirely when it is ready to cast, so i constantly check the values with LoadRGB and override the normal script when the picture changes. Here's the weird thing, It works perfectly for two of the four spells, namely the top two in the screen. But the last two spells, even though the pictures change completely, keep outputting the exact same color values on every pixel (i've tried it on more than hundred pixels, all yield the same values).  Here's a screenshot of the game to clarify my problem:  The second picture which is circled in green does yield different values when the picture changes. The last one (which is circled red) does not output different values as you can see in my Notepad, even though those pictures are different. Does anyone have an idea how this is possible? My only theory is that for the last spell, LoadRGB somehow values the background instead of the picture itself. But that would be strange for several reasons, most of all that it does not do that for the spell/picture which is circled in green.
×
×
  • Create New...