;==================================================
; Script Name: Remove Trap Cylinder Training
; Author: Gaderian
; Version: 2.10
; Client Tested with: 7.0.85.15
; EUO version tested with: 1.60 ver. 335
; Shard OSI
; Revision Date: 06/16/20
; Public Release: 07/03/19
; Cylinder Trap Kits are available for purchase from the Oddities Trader at the Lycaeum.
; Start Script up to GM
; Credits to TM's journal scan, Onkelatze for kit open, wait and click routines
;
; version 1.0 7/3/2019 initial cylinder trap trainer
; version 2.0 12/21/19 significant speed enhancement:
; *version 1.0 average solve time per puzzle about 100 seconds
; *version 2.0 average solve time per puzzle 35-45 seconds
; Note:average < 2 minutes on an initial reset of a partially solved puzzle
; which could also apply to suffering very poor internet connection
; - only tests 7 colors - calculates 8th
; - only tests 2 to as many slots as needed to determine count
; - resets on partially solved puzzle (should improve any lag issues; fixes restarts)
; known issue: a puzzle with all 5 slots the same color may break the script, but with the
; current reset it may continue. It can happen 1/32,768 puzzles - so too rare to test.
; The work around if it doesn't self correct is to stop and restart the script.
; If you encounter that, it is more rare than a Blaze Cu Sidhe - consider yourself
; privileged. :)
; version 2.1 6/16/2020 added number of attempts to set each box to assist lag correction
; much slower than without it, but can cleanup the testing when the internet isn't playing nice ;)
;==================================================
You should be gaining. I suspect your setup is not correct or you are experiencing Internet lag.
Double check your setup.
1) It won't work if the client is minimized.
2) kalocr.txt should be in your folder/directory where your Easyuo executable is
There are some versions of kalOCR.txt that didn't work (some copies labeled 6.06 and all copies labeled 6.07-6.09) because of a re-introduced bug.
If those things are correct, watch it try to solve the puzzle. If it doesn't solve a puzzle - it will be left in a state with left over colors in slots. It will try to find an unused color and set all slots to that color (so there are 0 matches - which is good for comparing good matches).
If it skips over setting all the slots with the unused color, then good chance you are experiencing Internet packet loss, so follow the directions in the 2.1 version to increase the attempts. It will severely slow down the puzzle solves, but can help solve puzzles. If you now get it to solve puzzles (where without the extra tries it was not completing puzzles), then gains should happen.
Give some feedback here on how that works (or what you tried that doesn't work).
If you have those requirements solved, then there can be a timing issue if you experience extreme packet loss on the Internet (lag).
I created version 2.1 that would retry a few times to reduce these failures due to lag. You may be able to increase the attempts to push through the lag failures.
Gaderian
Can you describe what happens?
Does it solve puzzles? I expect that it does not.
Since it gained to 77, your setup must be correct.
I suspect internet lag/packet loss. How many retry attempts have you set? There is a variable that controls this feature
Gaderian
before Garderian loss his head over this. Their is a chance that your toon is bug.,ATL was bug for me. I have use multiple time and it work, On one account I can't run the script because he never solde the puzzle. I had to train on other shard and move skill via stone, we try for day to figure it out. So do myself a favour and try another guy and event other shard to see if the problem stay.
I event Xfer to test center with my guy and still he was bug.
You need to describe what it does.
You can't imagine how many hours I have watched this script run, but I have trained about 4-5 characters with it that retained the skill. I have retrained a character on test center probably a dozen times to test issues. I have probably watched this run (not to count programming and debugging) for 200 hours or more.
Issues I have witnessed (some fixed in the script, so may not happen to everyone else):
1) kalocr.txt not in the correct folder (kalocr.txt belongs in the same folder/subdirectory as your Easyuo.EXE program)
2) game gump moving off screen
3) the slots not assigned the color (this is a lag issue where the click is actually dropped)
4) bad kalocr.txt version (this was out there from the late fall 2019 to winter 2020 - I have removed all the bad kalocr.txt versions. So if your kalocr is version 6.10 or higher then it is fine.)
5) the character reaches it's skill point limit of 700 or 720 and now the puzzles are solved but no gains (Admit it, I am not the only one that has done this - you have too! :-[ )
These puzzles are solving the classic game "Mastermind". Here is the basic logic in 2.1:
Phase 1:
If the puzzle is reset or purchased new so the puzzle starts with no saved colors from the previous attempt:
-Start by using 2 slots for each color
-Cycle through the colors
-Set how many slots we have used as the 'highest used', but reset to 2 if no color matches (because the left over colors in other slots do not give false-positive results)
-keep cycling until either 5 colors have been accounted for or all but the last color have been tried (assume any remaining part of the count is that last color - an optimization)
-keep track of the last color without a match (this is sometimes the last color tried, when the untested color has the assumed matches remaining - it was supposed to be an optimization, but I did not take advantage of it fully to skip over resetting the same color on the slots)
-If correct and wrong slots add up to how many slots we used, then increase the slots to use by 1.
continue that cycle until we know the colors and how many for each.
Phase 2:
-set all 5 slots to a non-used color up to the high used mark
-for each color, set the next available slot with the color to test if it is placed correctly
-once all 5 have been set, the puzzle will reset to fresh
If the puzzle is not solved with the solution at the end of Phase 2:
-use a routine to find a non-used color and set all 5 slots to this color, then go back to Phase 1
That is everything that must happen in the version 2.1. If at any time a residual color is left from a previous step, then you ARE experiencing lag. It means the click to set the color was dropped on the Internet and you will not get accurate results. All the script's logic to solve the puzzle is invalid when that happens. It is not a scripting problem. Since I can't watch it on your computer, you have to be able to evaluate this yourself.
Now let's say that you are experiencing this 'lag', it is not an insult or excuse. I had it happen to me, too. This is the reason the version 2.1 exists. My simple solution was to repeat the click loop attempt a number of times. The assumption is that you are getting enough traffic through for the connection not to drop completely, so you may be able to solve puzzles when the network traffic works. We already know that this works to solve the puzzles, we just have to overcome these "dropped" packets.
You can increase how many attempts it makes to click by adjusting this variable near the top of the script, immediately after the commented header:Code: easyuo
set %HowManyAttemptsToSet 1 ; If you are experiencing internet issues, you can set this to more than 1
Setting it to 2 means it will repeat the click operation to set the color slot 2 times, 3 = repeat 3 times, etc. It is very direct.
I have thought about this for a long time and how to make it more resilient. Here is my unimplemented idea:
After the script clicks to select the color for each slot:
-insert a test that the color is what I expect and repeat this click/check until it passes. (There is the concept for the improvement: If someone wanted to post the update here in this thread, I wouldn't be offended and would link to it in the header as long as it is posted here in the thread.)
Before I would consider making a new version of this, you should run the Basic version. It is much slower. There is probably no optimizations in any of the logic. There are 2x-3x more clicks to solve each puzzle. It is much easier to follow and exposes missed clicks (internet lag/dropped packets) because it sets all 5 slots to each color. If a slot does not get the same color as the rest of the turn, then clearly clicks are being dropped. However it also solves the puzzles without requiring the player to click and think - which is the goal to this training script.
Training scripts like this one are essentially disposable. Once the skill is trained, we do not go back to use it, unless for a different character/account.
Contrast training with scripts used for playing, like a healer or loot script that we use again and again. Optimizations here are much more useful!
I did the optimized version when I was out of work recuperating from surgery and I wanted something to do. I was bored. It worked and I have shared it because it is useful. The basic one works, too, it just takes longer.
So give that original version a shot and let me know how it performed for you. Pay attention to the colors being set as it investigates and solves the puzzle.
Gaderian
I tried a different computer (I was running UO in macOS under Parallels Desktop) and it works. May be an issue running it under VM, but that won't trouble 99% of people.
So with that much stuff open on your computer, had you minimized the UO Client?
Thanks! :o