Programming Projects

Here can be found some programming projects I’ve worked on.

Final Fantasy XI Add-Ons

I have made five add-ons for the MMO Final Fantasy XI (FFXI). These add-ons are written in lua, and automate playing of the game, and could easily be referred to as bots. The add-ons are entirely written by me, but use functions included with the third-party program “Windower” (which the add-ons are run through), and also rely on some functions and methods written by others for bot functionality.

The code written by me lays out the logic for determining overall AI behavior (such as deciding what actions and paths to take depending on in-game location or situation), the pathing for the bots to take, and sending network packets to interact with NPCs and other features.

Here is a short video demonstrating some of the functionality. The gameplay shown in the video is controlled entirely by the bot AI, with some minor camera adjustments made manually to help visibility.

Considering these add-ons break the terms of service for FFXI, I will not be providing download links to them here. If you are interested in looking at the code or downloading the add-ons, please email me at codypaterson@gmail.com

Final Fantasy Tactics Team Analyzer

As a fun scripting exercise, I made an elaborate Google spreadsheet – which can be found at this link. Made for the Final Fantasy Tactics Battleground twitch channel – a stream that allows viewers to bet on AI-ran teams in the PS1 game Final Fantasy Tactics.

The sheet I made runs scripts using website APIs to pull data from the current match of the stream, and calculates suggested bets and odds of teams winning based on the teams’ Units, Equipment, and other stats. The spreadsheet also performs various other calculations, including average winrate for the teams, how much damage each unit can deal to each other, and more.