Please login or register.

Login with username, password and session length
Advanced search  

News:

Please use .png instead of .bmp when uploading unfinished sprites to the forum!

FFT custom AI scripting concept  (Read 454 times)
Pages: [1]
Raijinili [Posts: 66]
  • View Profile
  • share
  • [March 27, 2017, 03:55:40 AM]
FFT custom AI scripting concept
« on: March 27, 2017, 03:55:40 AM »
I want to externalize the AI. "Externalizing" meaning, when a character on a particular team is to take a turn, the emulator pauses, calls an external script (one per team) to decide what to do, writes the choices into memory, jumps to the FFT code, and resumes. The eventual goal is to have custom AI tournaments.

I ignore the problem of finding an emulator that can do this, and currently must figure out:
- Where to stop. (Entry point of turn-decider.)
- What data to expose to the script.
- Where to write to.
- Where to resume. (Exit point of decider.)

(For complete automation, there needs to be a hack to make "Crystal" automatically pick "Heal HP/MP", but I'm also ignoring that for now.)

Rather than running ASM within the emulator, I imagine the custom AI code running externally, and communicating with the emulator. This method doesn't need a way to generate ASM and find a place for it in the code, or for the scripter to write ASM. I'd aim to have Python bindings for ease of learning, and Lua bindings, since Lua is popular among emulators and the TAS community. The engine will probably be written in Lua, because, again, emulators commonly support Lua.
French Maid
Xifanie (Webmistress) [Posts: 4320]
  • View Profile
  • Final Fantasy Hacktics
  • http://steamcommunity.com/id/Xifanie
  • share
  • [March 27, 2017, 05:50:52 AM]
Re: FFT custom AI scripting concept
« Reply #1 on: March 27, 2017, 05:50:52 AM »
(For complete automation, there needs to be a hack to make "Crystal" automatically pick "Heal HP/MP", but I'm also ignoring that for now.)
...I made that, for Arena, too.

    • Modding version: PSX
  • <R999> My target market is not FFT mod players
    <Raijinili> remember that? it was awful
    nitwit [Posts: 210]
    • View Profile
    • share
    • [March 27, 2017, 08:07:39 AM]
    Re: FFT custom AI scripting concept
    « Reply #2 on: March 27, 2017, 08:07:39 AM »
    This interests me.
    Internet Cool
    Dokurider [Posts: 2807]
    • View Profile
    • http://steamcommunity.com/profiles/76561198023738783/
    • share
    • [March 28, 2017, 10:03:12 PM]
    Re: FFT custom AI scripting concept
    « Reply #3 on: March 28, 2017, 10:03:12 PM »
    Don't worry too much Rai, I'll keep looking into where the AI begins in proper.
    Raijinili [Posts: 66]
    • View Profile
    • share
    • [March 29, 2017, 05:47:56 AM]
    Re: FFT custom AI scripting concept
    « Reply #4 on: March 29, 2017, 05:47:56 AM »
    Don't worry too much Rai

    No U.

    It's unlikely that I'll end up doing anything with it, given my track record, and I intended to look for the entry point myself anyway. I just made this topic to draw the discussion out of your topic.
    Pages: [1]