Owlboy
十分な評価がありません
Cannon Challenge %100 AutoHotkey Script
作者: offfffffff
An AutoHotkey script that attempts the Cannon Challenge and usually gets all the coins and completes it.
   
アワード
お気に入り
お気に入り
お気に入りから削除
Intro
This is a script that completes the cannon challenge. I used apocalyptechs python code which uses xdotool from here[apocalyptech.com] as a base. If you are running Linux you can use that. If you are on Windows read on.
AutoHotkey
You need to install autohotkey if you don't have it. You can get it here[www.autohotkey.com] It lets you create keyboard macros and complicated input sequences.
Disclaimer
Some people, frustrated with the scripts success ratio, edited the script a bit. I've tested these and found them to be not better then mine on my PC BUT lots of people commented that they worked better then mine. This leads me to believe that script and/or the game behaves differently on different systems. I'm including links to other scripts here. Use them if mine is not working for you. As these codes and mine are really old it is possible that the game updates broke them. But they can still be used as a base. You have the tools to create a working script for your pc, game resolution and version. Just tweak the values for button presses and have fun trying to figure it out.
The code
Here is the code. Copy and paste it on an empty text document and save it as an .ahk file.

^r:: Reload Sleep 1000 ^j:: Click down right Sleep 100 Click up right Sleep, 300 Click down Sleep 50 Click up Sleep, 5750 Send, {d Down} Sleep, 1300 Send, {d Up} Sleep, 500 Send, {a Down} Sleep, 300 Send {a Up} Sleep, 500 Send, {a Down} Sleep, 1500 Send, {a Up} Sleep, 3750 Send, {a Down} Sleep, 1100 Send, {a Up} Sleep, 200 Send, {a Down} Sleep, 400 Send, {a Up} Sleep 100 Send, {a Down} Sleep, 400 Send, {a Up} Sleep, 100 Send, {a Down} Sleep, 400 Send, {a Up} Sleep, 1700 Send, {a Down} Sleep, 1000 Send, {a Up} Sleep, 400 Send, {a Down} Sleep, 300 Send, {a Up} Sleep, 1000 Send, {d Down} Sleep, 1200 Send, {d Up} Sleep, 1100 Send, {d Down} Sleep, 700 Send, {d Up} Sleep, 1000 Send, {d Down} Sleep, 900 Send, {d Up} Sleep, 500 Send, {d Down} Sleep, 300 Send, {d Up} Sleep, 1700 Send, {d Down} Sleep, 800 Send, {d Up} Sleep, 500 Send, {d Down} Sleep, 400 Send, {d Up} Sleep, 200 Send, {d Down} Sleep, 400 Send, {d Up} Sleep, 1900 Send, {a Down} Sleep, 600 Send, {a Up} Sleep, 400 Send, {a Down} Sleep, 400 Send, {a Up} Sleep, 400 Send, {a Down} Sleep, 400 Send, {a Up}
Running the script
Double click the .ahk file you created to open it. You should see the AutoHotkey logo on your windows notification area. Then switch back to the game. Make sure that keyboard and mouse controls are enabled and approach the cannon. Once you see the "press right click to enter" icon use "Ctrl+j" to start the script. If the script fails for some reason press "Ctrl+r" to reload it, get in front of the cannon and run it again. For some reason (poor accuracy of sleep commands, autohotkey, the game) the script is not %100 accurate but it should not take more then 5 tries to get it right. Repeat until it's succesfull.
32 件のコメント
JoeMD 2024年10月2日 8時51分 
I just can't get this to work. Tried all three and nothing.
Black Sheep 2023年7月20日 16時55分 
Ok, this might just support the 'Every copy of Owlboy is personalised' theory, but I just beat the game and after reopening the save and going through the Eternal Sanctuary , keyboard mode just forced itself on after leaving. I can now jump and enter the cannon with my keyboard, meaning the auto-scripts work.

I have no idea what's going on.
Black Sheep 2023年7月20日 9時18分 
Having a real hard time getting this to work. Can't /not/ use a controller as there's no Jump on keyboard apparently, and running these scripts just causes Otus to spin instead of enter the cannon - and as I can't enter manually and spin at the same time, nothing seems to work. How do I remove the automatic launch from the script, or fix keyboard controls?
e_rhymes_d 2022年1月23日 5時09分 
thanks for this - what a ridiculously unfun minigame.
Cley Faye 2021年10月3日 11時01分 
This is great. I'm usually all in favor of challenging stuff, but this minigame is only challenging because it's "fast paced tight tank control flying with poor camera that requires dying and retrying".

If at some point they change it to be skill-based, I'll come back to it. In the meantime, thanks for the tas.
Thing 2021年9月4日 9時20分 
so whens the "Every copy of Owlboy is Personalized" creepypasta lol
thank u for the script
zimzat 2020年8月18日 13時08分 
One thing that throws off the script timing is screen resolution. I have a 2K monitor and none of the scripts were working reliably. After changing my desktop resolution to 1920x1080 there were much more accurate and consistent results, at which point it really was closer to half a dozen to a dozen tries to get all of the rings.

A lot of the variance for timing is due to AutoHotkey's Sleep being based on system resource availability. If it takes 20 units longer for the game to say "Okay OS, you can let another program do something" then that `Sleep 300` time could become `320-340` which then throws off all of the subsequent timings as well.
j0hnnyclaymore 2020年7月18日 11時47分 
For all those players that still try all three scripts and fail:

- script 2 worked well for me, but it stops short before the end. you need to press left key to get to the end (only one time)

Dont know why script author did this ;-) if you press right shorty before you get the last coins as well.https://pastebin.com/SsSG3nCn
offfffffff  [作成者] 2020年7月7日 8時52分 
Yo MobiusPizza. Unless the developer added some randomness on each try to spite us you can use these scripts as a base. Launch otis and watch where he crashes, then tweak the script until he manages to do it. This is required as I said the game seems to behave differently on different computers. But I guarantee the process of tweaking the script is much more fun than actually trying to do it legit, albeit a bit less rewarding.
MobiusPizza 2020年7月7日 8時45分 
I can't get it no matter how much I try it. Otus keeps crcashing against everything. I only managed to get to the end once but I missed the last 3 rings. Damn I hate this part of the game.