Move to some Coordinates

Asked by Steve Francis

Hi there sikuli community. I'm new in programming and I need your help related to moving characters in 3D game. I need to get from point A to point B. I know how to determine coordinates but I don't know how to write that part of code. Character needs to be precise and to understand where he is at the moment. The distance that it needs to cross is not big. I can use 2D map for orientation by image recognition and also the coordinates. Character moves by pressing W (forward), S (backward), A (turn right), D (turn left). Camera position is determinated by mouse. Character needs to go from A to B, and to turn back to the starting point.
I don't know if my request is too hard, I'll appreciate your help and any tips...

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Steve Francis (steve77) said :
#1

Please any tip will be so helpful... I don't expect from you to write me full script, just some tips, text, old scripts, videos. Just to guide me in the right direction. :/

Revision history for this message
Eugene S (shragovich) said :
#2

Without going too deep into details, it does sound hard (or even impossible) to do. The way Sikuli works is by matching previously stored image patterns to whatever there is on the screen. The match will evaluate to true of 2 images match with a certain degree of similarity while it is not recommended to go below ~90%. From your description it sounds like the environment you are thinking to automate is graphically complex and contains constantly changing features. This is a problem with Sikuli as the way it matches the patterns is pixel by pixel so even slight changes in the picture will greatly reduce the match score to a point where your matching will just become unreliable.

That being said, if I made a wrong assumption about the game's graphical environment or if you could use some simplified mode to control your movement (like an in-game minimap or something), there might be few workarounds.

Let me know if what I said makes sense.

Cheers,
Eugene S

Can you help with this problem?

Provide an answer of your own, or ask Steve Francis for more information if necessary.

To post a message you must log in.