Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Dwarf Fortress Remote's communication protocoll  (Read 1916 times)

klaus.hauschild

  • Escaped Lunatic
    • View Profile
Dwarf Fortress Remote's communication protocoll
« on: August 09, 2017, 02:18:29 am »

Hi everyone,

is there anywhere a detailed documentation about the used communication protocoll bewtween Dwarf Fortress and awesome native iOS-client (http://mifki.com/df/)?
Will both exchange raw data (the current screen from dwarf fortress and keystrokes) or is there any kind of high level communication like at tile 324,431 is grass and a drwaf and he is wounded and so on.

Thanks alot.
« Last Edit: August 09, 2017, 02:20:27 am by klaus.hauschild »
Logged

mifki

  • Bay Watcher
  • works secretly...
    • View Profile
    • mifki
Re: Dwarf Fortress Remote's communication protocoll
« Reply #1 on: August 09, 2017, 04:52:47 am »

Hi everyone,

is there anywhere a detailed documentation about the used communication protocoll bewtween Dwarf Fortress and awesome native iOS-client (http://mifki.com/df/)?
Will both exchange raw data (the current screen from dwarf fortress and keystrokes) or is there any kind of high level communication like at tile 324,431 is grass and a drwaf and he is wounded and so on.

Thanks alot.

Map is sent as just tiles as you see them and as it stored in screen buffer. For everything else there are commands roughly corresponding to UI actions and data displayed, e.g. "get building info and list of jobs", "remove building", "suspend/repeat/cancel job", "get list of possible building owners", "set building owner", etc.

klaus.hauschild

  • Escaped Lunatic
    • View Profile
Re: Dwarf Fortress Remote's communication protocoll
« Reply #2 on: August 09, 2017, 06:29:08 am »

Sound like a hybridish variant of both extremes.

Is there a documentation so that I can reuse the huge amount of effort you and others habe invested?
Logged

Warmist

  • Bay Watcher
  • Master of unfinished jobs
    • View Profile
Re: Dwarf Fortress Remote's communication protocoll
« Reply #3 on: August 09, 2017, 07:45:40 am »

Sound like a hybridish variant of both extremes.

Is there a documentation so that I can reuse the huge amount of effort you and others habe invested?

Afaik there is no documentation but there is source code here: github repo