RosaryMala / armok-vision

A 3d realtime visualizer for Dwarf Fortress
MIT License
319 stars 27 forks source link

Add network configuration options for remote servers #64

Open alexchandel opened 6 years ago

alexchandel commented 6 years ago

Currently, Armok Vision assumes remotefortressreader listens from TCP port 5000 (or the env DFHACK_PORT if it exists) on localhost.

However, AV has the potential to serve as a DF network client (multiplayer at last! /s). Could you add an option in the startup prompt to specify to a remote server/port? Currently the prompt only asks for a preferred resolution, graphics quality, keybindings (which seem to be ignored on macOS), and whether it should be windowed.

It's probably possible to work around this with a SOCKS proxy, but an explicit option to specify a remote hostname/port would be much simpler (and require less overhead).

RosaryMala commented 6 years ago

While it is true that DFHack allows outside connections now, the RFR plugin requires quite a bit of work before it is suitable for using with more than one person at a time.

alexchandel commented 6 years ago

RFR isn't used merely for polling and pushing changes? What sort of client-specific data is stored during connections?

Though even without multiple connections, it'd still provide an interesting way to run DF from a server & play remotely, jumping from client to client as needed. (That applies even without AV, for a generic DF client that uses RFR)

RosaryMala commented 6 years ago

Right now, it keeps track of what the client already knows. It would have to keep that data separate per client, or be re-written to be more intelligent about it.