Skip to content

Instantly share code, notes, and snippets.

@tai271828
Last active January 1, 2022 13:49
Show Gist options
  • Save tai271828/6156cada56b51f4e7745033942c7147a to your computer and use it in GitHub Desktop.
Save tai271828/6156cada56b51f4e7745033942c7147a to your computer and use it in GitHub Desktop.
Automation for the Steam pixel remaster (PR) version of FF3 (Finaly Fantasy III)

(English below) 英文說明在下方

概述

最終幻想三(太空戰士三) Steam pixel remaster (PR) Steam PR 重製版自動化;可用於練功、刷洋蔥系裝備。

此自動化概念可拓展到其他 FF III 使用情境與更多其他遊戲;更多相關說明請參考這則網誌貼文

安裝與使用方式

此自動化方法僅適用 Linux 桌面發行版。

  • Debian 系發行版可以透過 sudo apt install xdotool 取得 xdotool
  • 取得程式碼 ff3-auto.sh 之後,打開終端機執行此 shell script;執行後盡快將你的滑鼠游標移動到 FF III 正在跑的畫面。接下來就可以讓 ff3-auto.sh 控制你的 FF III Steam 視窗了。

歡迎交流各種自動化情境

歡迎開 pull request 或是送補丁給我!

Overview

Automation for the Steam pixel remaster (PR) version of FF3 (Finaly Fantasy III). It could be used to collect experience credits of level and opion equipments.

This automation approach could be used for the other FF IIi scenarios or games. For more details, please refer to this blog post.

Installation and Usage

This automation is only applicable to Linux desktop distributions.

  • Debian-based distributions could get xdotool executable via sudo apt install xdotool.
  • Clone the source. Use your termiinal to launch ff3-auto.sh. After invoking ff3-auto.sh, move your mouse indicator to the window running your FF III as soon as possible. That's it! ff3-auto.sh will then control your FF III window.

It is Welcome to Contribute Your Automation for Different Scenarios

It's welcome to send a pull request or patches to me!

#!/bin/bash
COUNTER=0
while true; do
echo
echo "Loop: ${COUNTER}"
sleep 1
# keep moving around
for i in $(seq 0 10)
do
xdotool key 0xff51
sleep 0.2
done
for i in $(seq 0 10)
do
xdotool key 0xff53
sleep 0.2
done
# auto-battle on/off
xdotool key q
sleep 4
xdotool key q
sleep 1
# press enter to end battles
xdotool key 0xff0d
sleep 1
xdotool key 0xff0d
sleep 1
let COUNTER=COUNTER+1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment