Author Topic: Puzzle Boards  (Read 19165 times)

0 Members and 1 Guest are viewing this topic.

Offline cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Puzzle Boards
« on: October 02, 2009, 07:10:21 AM »
0
This post is about making a script to solve the puzzle boards.

If EUO can be used to check the color of pixels in certain locations then the script should be straight forward.
(Please keep in mind that I don't know how to use the scripting language to do anything so the steps are going to be simplistic.)

Prep for writing the script.
Get an item identifier for the puzzle token.
Open a puzzle and measure all the necessary positions relative to a corner of the puzzle? Some way to determine where the script should look for colors and also where to find the rows and the up or down clickers as well as the button that turns it in. The timer is 30 minutes but I'm not sure how long this measuring would take. For the colored dots the actual position of the color would suffice but for the bars I'd say measuring halfway between the dot positions would be the way to go.



1)Scan for the puzzle token

2)Click the token to open the puzzle box

3)Move the box to a set location.

4) Scan for colors in positions to recognize the puzzle that needs to be solved. Go to correct solution for that puzzle

5) Solution for board 1
      Here would be the correct clicks to solve board 1

6) Solution for board 2
      Here would be the correct clicks to solve board 2

etc.

22) Solution for board 16
      Here would be the correct clicks to solve board 16

End the script.


I'm not sure how fast OCR is but I'd think that doing the prep work to find the colors in the positions would be a one time effort and would cut down on computing time overall.




You know I might have just found a script that is easy enough for me to attempt to write it.
Sarcasm is your body's natural defense against stupidity.

Offline _C2_

  • AFK FtW
  • Global Moderator
  • *
  • *
  • Posts: 4077
  • Activity:
    0%
  • Reputation Power: 48
  • _C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!_C2_ has great potential!
  • RIP Pen Trick
  • Respect: +254
  • Referrals: 4
    • View Profile
Re: Puzzle Boards
« Reply #1 on: October 02, 2009, 07:28:00 AM »
0
YOu know I was thinking about how awesome this would be to run when you it the sack at night.  Endless nights scans the pixels on his buff bar scanner.  I bet you can do this.

Offline cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #2 on: October 02, 2009, 07:37:11 AM »
0
Well I think I can do it but I'm going to be asking lots of questions.
The logical steps are no problem for me making the script do what I say it needs to. That is the problem for me.
Sarcasm is your body's natural defense against stupidity.

Offline Masscre

  • Gran Master Jester !!
  • Scripthack
  • *
  • Posts: 4615
  • Activity:
    0%
  • Reputation Power: 55
  • Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!
  • Gender: Male
  • Air Guitar Commander !!
  • Respect: +144
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #3 on: October 02, 2009, 12:24:41 PM »
0
I will help Cgeorgemo, but my knowledge may not be the best that we have here.  I am willing to help in any question you have or guidance you need.

Offline cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #4 on: October 02, 2009, 12:32:07 PM »
0
I will help Cgeorgemo, but my knowledge may not be the best that we have here.  I am willing to help in any question you have or guidance you need.
Thanks I'm going to go through the EUO tutorials because I'm fairly certain this script is going to be simple commands.
When those simple things confuse me (and they will) I'll come screaming.
Sarcasm is your body's natural defense against stupidity.

Offline cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #5 on: October 02, 2009, 04:36:25 PM »
0
Well I've been looking through EUO wiki and I believe the info I was looking for to compare pixel color might be

savepix to save the color of a pixel

and

#pixcol to return the color of the last pixel saved with savepix

and

cmpPix to compare the color from a previously saved pixel with the current pixel

Have I missed any pixel commands that might help to sniff out certain colors in a specified location?
« Last Edit: October 02, 2009, 05:55:42 PM by cgeorgemo »
Sarcasm is your body's natural defense against stupidity.

Offline Oracle

  • Hero Member
  • *
  • Posts: 888
  • Activity:
    0%
  • Reputation Power: 14
  • Oracle barely matters.Oracle barely matters.
  • Gender: Male
  • We always want something that we cannot have...!
  • Respect: +97
  • Referrals: 3
    • View Profile
Re: Puzzle Boards
« Reply #6 on: October 02, 2009, 05:01:53 PM »
0
Sounds like you are getting ready to do a Puzzle Board Solution Script!   I wish I could help you, but I am not familiar with any of those commands...

A small sigh od relief that my Puzzle Board Frustration will be taken care of...!

 :D
ORACLE
Get me a Straw...because I suck...!
PIXEL CRACK -- Love it! Crave it! Want it! Got to have it!

Offline cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #7 on: October 02, 2009, 05:46:23 PM »
0
A small sigh od relief that my Puzzle Board Frustration will be taken care of...!

 :D
Do not count those chicken just yet....I still have to learn how to write a script.

I have however figured out that every possible shape/color combination in each row of the puzzle can be detected for color and shape in at most 2 checks of the color in a pixel position for each shape.

So it would take at most 8 checks to determine the color and shape of each row the puzzle board that needs to be solved.

And it would therefore require a maximum of 32 pixel checks to determine what board is being solved.


If I have it check from top row down the differences in the patterns will eliminate some further checks.
For instance there are only 4 puzzle boards that have a red single dot on the top row.
Once the script determines that the top row is a red dot I can check the 2nd row and that tells me which of the 4 patterns it is and I can send it to the solutions list.

« Last Edit: October 02, 2009, 06:10:04 PM by cgeorgemo »
Sarcasm is your body's natural defense against stupidity.

Offline Masscre

  • Gran Master Jester !!
  • Scripthack
  • *
  • Posts: 4615
  • Activity:
    0%
  • Reputation Power: 55
  • Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!Masscre is leading the good life!
  • Gender: Male
  • Air Guitar Commander !!
  • Respect: +144
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #8 on: October 02, 2009, 06:13:07 PM »
0
Very good so for Cg. Mind pming me the info for the puzzle combinations so when i am helping you. we can be looking at the same thing.

Offline Oracle

  • Hero Member
  • *
  • Posts: 888
  • Activity:
    0%
  • Reputation Power: 14
  • Oracle barely matters.Oracle barely matters.
  • Gender: Male
  • We always want something that we cannot have...!
  • Respect: +97
  • Referrals: 3
    • View Profile
Re: Puzzle Boards
« Reply #9 on: October 02, 2009, 06:33:15 PM »
0
Sounds like you are writing a Script for the puzzle board found in the Underworld at coordinates 52o 23'N 17o 47'W. You must navigate a perilous trapped hallway to reach the small room where a strongbox resides. Opening the strongbox will give you a board.

If so, the solutions have already been figured out and they are located at:

http://www.uoguide.com/Puzzle_Board
ORACLE
Get me a Straw...because I suck...!
PIXEL CRACK -- Love it! Crave it! Want it! Got to have it!

Offline cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #10 on: October 02, 2009, 07:15:13 PM »
0
Very good so for Cg. Mind pming me the info for the puzzle combinations so when i am helping you. we can be looking at the same thing.
Sure I'll send it to you once I get the steps mapped out.

If so, the solutions have already been figured out and they are located at:

http://www.uoguide.com/Puzzle_Board
Yeah I'm using those solutions in the script once I get it down how to have the puzzles recognized by EUO.
There are 16 puzzles and I'm still mapping out the combinations to see how quickly each one can be recognized.
Sarcasm is your body's natural defense against stupidity.

Offline manwinc

  • Elite
  • *
  • *
  • Posts: 2556
  • Activity:
    0%
  • Reputation Power: 32
  • manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!manwinc is a rising star!
  • Gender: Male
  • "The Devs Hard at Work"
  • Respect: +123
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #11 on: October 02, 2009, 07:18:49 PM »
0
I already have one i'll post when I get home.
Monkeys and Typewriters!

" Oh I know, We'll make a Boss Encounter that requires 3 keys per player to enter, Then we'll make it not a closed instance so you never know if you are going to pop into a fresh room or a boss that has 1% Health left with 20 dudes smashing its face in, wasting your time and effort"

Offline cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #12 on: October 02, 2009, 07:24:13 PM »
0
I already have one i'll post when I get home.
Woot.

Still going to try to write my own and learn some stuff.
Sarcasm is your body's natural defense against stupidity.

Offline cgeorgemoTopic starter

  • Hero Member
  • *
  • Posts: 586
  • Activity:
    0%
  • Reputation Power: 5
  • cgeorgemo has no influence.
  • Gender: Male
  • I'm Brian...cgeorgemo is Curious George Missouri
  • Respect: +19
  • Referrals: 1
    • View Profile
Re: Puzzle Boards
« Reply #13 on: October 02, 2009, 08:35:41 PM »
0
Ok here is what I've come up with so far as far as the logic goes.

There are 4 different colors I need to look for. Red, Blue, Green, and Grey. I'll refer to them as R,B,G,and Grey
 Imagine the rows with 5 locations.
*1*     *2*     *3*     *4*     *5*

Odd positions are where the dots can be in each row.



*********************************MY ROW CHECKING LOGIC*********************

A solid bar will have either R,B, or G in position *2*                   If it's a bar I'm done checking that row and I have it's color. If it's not a bar then I'll go on.

Now I simply need to check position *1* and *3*

Grey in *1* and a color in *3*    If I find that combination it's a single dot in the middle and I know the color

Color in *1* and Grey in *3*       If I find that combination it's 2 dots, one on each end and I know the color.

Color in *1* and *3*                 If I find that combination it's 3 dots all the same color and I know the color.

 Grey in *1* and *3*                 If I find that it's a blank row.

***************************END OF ROW CHECKING LOGIC**************************



There is no need to check more than the first 2 rows on the puzzle board because the 16 individual puzzles all can be identified by at most the first 2 rows.

4 of them have unique top rows
  A Blue Bar
  1 Green Dot
  2 Red Dots
  3 Blue Dots

3 of them start with a Red Bar on top then the 2nd rows are
  A Green Bar
  A Red Bar
  2 Green Dots

3 of them start with a Green Bar on top then the 2nd rows are
  1 Blue Dot
  2 Blue Dots
  A Blank Row
 
4 of them start with 1 Red Dot on top then the 2nd rows are
  A Green Bar
  1 Red Dot
  2 Green Dots
  A Blank Row

2 of them start with 3 Green Dots on top then the 2nd rows are
  A Green Bar
  A Blue Bar

Once I've determined which board it is I can send it to the correct sub for solving each of the boards.
Sarcasm is your body's natural defense against stupidity.

Offline UOMaddog

  • Maddog
  • Elite
  • *
  • *
  • Posts: 1625
  • Activity:
    0%
  • Reputation Power: 22
  • UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...UOMaddog might someday be someone...
  • Gender: Male
  • Biggest B@D@$$ of the Universe
  • Respect: +165
  • Referrals: 8
    • View Profile
    • Insane UO
Re: Puzzle Boards
« Reply #14 on: October 02, 2009, 11:31:29 PM »
0
Me being the hopeless optimist and specializing in "optimization" (my Comp. Engineering professor thinks I should go into code optimization or compiler coding), I will daresay that there is probably a way to uniquely identify each puzzle with only one pixel per puzzle!
There are 10 kinds of people in this world: those that understand binary and those that don't!

Windows:  A 64-bit tweak of a 32-bit extension to a 16-bit user interface for an 8-bit operating system based on a 4-bit architecture from a 2-bit company that can't stand 1 bit of competition!

Tags: