[AutoIt] CrayonCode Bot Project (OpenSource & Free)

05/15/2017 12:40 jmisterj#481
"limit reached stopping "
what should i do?
05/15/2017 14:04 CrayonCode#482
Quote:
Originally Posted by jmisterj View Post
"limit reached stopping "
what should i do?
Post the logfile. And actually explain wtf you want. That is a valid stopping condition.



Version 0.21 is out!

Please try out the Processing feature by starting the CrayonCodeProcessing.au3!
Quick Guide:
  1. Disable the auto-sort for the player inventory and clear the first 4 slots (or those items will get stuffed into your warehouse)
  2. Enable the auto-sort for the storage inventory (This will serve as an anchor)
  3. Place your self next to a warehouse that has the transport feature. (Most of them should have that except for the desert ones)
  4. Select one or more Materials for SimpleProcessing and start by hitting F5.
    This will scan the warehouse inventory and if one of the selected materials is found it will move an amount, defined by DefaultBatchSize into your inventory and start processing. Once the batch is processed it will continue with the next batch, or continue with the next material if the former one runs out.
  5. Setup one Recipe for the CustomProcessing and start by hitting F4.
    Select the processing method, select an ingredient, set BatchSize (0 for default), set max amount of items you want to process (0 for unlimited).
    This will now scan for the materials of the first Recipe. If nothing is found, maximum is exceeded or the material runes out it will move to the next Recipe on the list.

If it works for everyone, I will move to the material collection phase and hopefully people will help out. I especially lack shaking and grinding ingredients.

Features (like WorkerFeeding) that require presets will be added at a later stage.

Quote:
Originally Posted by Patchnotes

v0.21

- Few more Status messages added.
- Added handling if ReelIn window is obstructed. (Moved dailyspam escape to reelin instead of riddle)
- Fixed bug in DetectFullscreenToWindowedOffset() where the global $hBDO was overwritten by local.
- Fixed Buttons for sidefunctions not working after they started (Missing GUILoopSwitch)
- Changed loot_silverkey.bmp to stop certain fish from pretending to be silverkeys.

CrayonCodeProcessing.au3 added
- SimpleProcessing will just process all selected materials until you run out.
- CustomProcessing will enable custom recipes and supports up to two ingredients.
- Scans the complete warehouse inventory
- Supported materials are limited to Lumber, Planks, Ores and Melted Shards for now.
- Use of the Alchemy Stone can be enabled.

Requirements:
Standing next to a warehouse with Transport Option.
Auto-Sort for the Warehouse must be ENABLED.
Auto-Sort for the Inventory must be DISABLED.
The first 4 Player Inventory will be used for the processing.

Since I need an image of every material that you wan't to process I will need the help of the community for this.
There is a specific way the images need to be captured, because of the strange rendering of warehouse inventories.
Details will follow soon.
05/15/2017 17:43 King_Powa#483
Why it doesn't resolve the riddle?

17:41.42 Solving riddle.
17:41.46 Evaluating loot.
17:41.50 Loot:[-200][000][000][000]
17:41.50 Pick:[0][10][10][10]
17:41.52 Inventory Status: [17][3][2][0]
17:41.52 Unidentified state
17:41.52 Unidentified state (0s)
17:41.53 Unidentified state (1s)
17:41.54 Ready for fishing.
17:41.54 Casting Fishingrod

I checked everything (Loot Trash,event,relics,key)

EDIT: Ok now it resolved the riddle,but didnt take the loot
17:43.36 Reeling in. (0s)
17:43.37 PressIt detected
17:43.37 Scanning for blue bar
17:43.38 Solving riddle.
17:43.40 Riddle anchor found 840, 582
17:43.42 Riddle: saw
17:43.42 Evaluating loot.
17:43.45 Loot:[-100][-200][-200][-200]
17:43.45 Pick:[0][0][0][0]
17:43.45 Inventory Status: [17][3][2][0]
17:43.45 Unidentified state
17:43.46 Unidentified state (0s)
17:43.46 Ready for fishing.
17:43.46 Casting Fishingrod
17:43.53 Currently fishing. (0s)
17:43.53 Currently fishing. (1s)
05/15/2017 17:44 killzone#484
This doesnt require resolutions, right?


Quote:
Originally Posted by King_Powa View Post
Why it doesn't resolve the riddle?

17:41.42 Solving riddle.
17:41.46 Evaluating loot.
17:41.50 Loot:[-200][000][000][000]
17:41.50 Pick:[0][10][10][10]
17:41.52 Inventory Status: [17][3][2][0]
17:41.52 Unidentified state
17:41.52 Unidentified state (0s)
17:41.53 Unidentified state (1s)
17:41.54 Ready for fishing.
17:41.54 Casting Fishingrod

I checked everything (Loot Trash,event,relics,key)
Make sure:
1. Full Screen Window
2. Load the resolution for you, default is 1920x1080
3. 100% UI Scale
05/15/2017 18:40 Xerion777#485
the backtomount() function still doesnt function pretty well. Sometimes it doesnt go to the mount and just autowalks. I tried several solutions yet none work for example:

1) First drag the mousecursor to the mount button and then right click.
2) Remove one right click
3) Added more delay to the sleep() function

None of these above seem to work. Anyone got a fix to make this BackToMount() function work 100% ?
05/15/2017 18:57 CrayonCode#486
@[Only registered and activated users can see links. Click Here To Register...]: The processing should work at any resolution and language.
The imagesearches use 0 Shadevariation so I'll expect a few people reporting issues.
You can set $TestingMode = True in in the #Region - Global to just scan for the images and not pick them, to speed up the testing. (Only for SimpleProcessing)



Quote:
Originally Posted by King_Powa View Post
17:43.45 Loot:[-100][-200][-200][-200]
17:43.45 Pick:[0][0][0][0]
17:43.45 Inventory Status: [17][3][2][0]
It says:
WhiteTrash, Empty, Empty, Emtpy
No, No, No, No
17 Free Slots, 3 Picked items so far, 2 Bufferslots, 0 RelicReserve

You probably did set the min rarity higher than white. That's why it didn't pick anything in this case. Hard to tell from a single example. Just pastebin the log.


@[Only registered and activated users can see links. Click Here To Register...]: The search for the holy grail continues.
05/15/2017 20:14 King_Powa#487
I changed game resolution to 1920x1080,and changed the .ini (was trying in 1024x768), now seems to work.
Now i have few problems with AutoRestock (sometimes after repairing it tries to Trade items to the blacksmith instead of going to Trade Manager,so he goes back to mount,but with full inventory)
05/15/2017 20:16 killzone#488
That's part of the holy grail that we're looking for. ^
05/15/2017 21:50 Xerion777#489
the only thing we need is a verification of sorts that the autopath is set then every bug with the restock will dissapear >.>
05/15/2017 23:18 †Deadly†#490
#solved
05/16/2017 00:00 CrayonCode#491
v0.21

- Few more Status messages added.
- Added handling if ReelIn window is obstructed. (Moved dailyspam escape to reelin instead of riddle)
05/16/2017 11:35 iNiperx#492
Quote:
- Changed loot_silverkey.bmp to stop certain fish from pretending to be silverkeys.
I lost it xD
05/16/2017 13:45 imedbox#493
Quote:
Originally Posted by †Deadly† View Post
#solved
CTRL +F1 to froce close

Nice CrayonCode and ty for you time and work #TraderBargain# need full version of this xD
05/16/2017 15:54 jyer#494
the processing function finds the item absent when it is clearly there, what could be causing this?
05/16/2017 17:30 CrayonCode#495
Quote:
Originally Posted by jyer View Post
the processing function finds the item absent when it is clearly there, what could be causing this?
There is way to many reasons why it doesn't work.
I need way more info and a log also helps a lot, you can find it in the script folder as processingLOGFILE.txt.