Coder Social home page Coder Social logo

dfplex's Introduction

DFPlex

"Why must the cancer of multiplayer afflict everything?" -- /u/JesterHell

"...could be the end of all games." -- /u/r4nge

DFPlex is a plugin for DFHack which brings simultaneous, real-time co-op multiplayer Fortress mode to Dwarf Fortress. Each player has their own independent view, cursor, menus, etc. so nobody has to wrestle for control. It's a fork of Webfort, so players can join just by connecting from their web browser.

If you prefer the solo experience, DFPlex allows you to have multiple views into your own fortress, or simply to run the game without pausing every time you enter a menu (an optional feature that improves the pacing on multiplayer).

Installing

See the releases page for a pre-built option. Simply extract the zip file into your DFHack installation, paying attention to ensure that the files end up in the appropriate subdirectories.

To compile from source, you can use git:

git clone --recursive https://github.com/white-rabbit-dfplex/dfhack

Then just follow the build instructions for dfhack. Please take care to ensure that you install into the correct version of Dwarf Fortress. You can check which version DFHack is compatible with by looking at the CMakeLists.txt file in the DFHack repo.

Launching DFPlex

After installing DFPlex (along with DFHack), simply put the line enable dfplex in your dfhack.init file. Consider removing all other lines from that file, because dfplex is currently incompatible with many other plugins. Then simply connect to http://localhost:8000/ in your web browser.

Configuration

Edit the file data/init/dfplex.txt to configure dfplex. If that file is missing, it can be found here.

In addition, we suggest enabling seasonal autosave (in data/init/d_init.txt) and disabling pause/zoom for certain common announcements (data/init/announcements.txt) by replacing their respective lines with these: [BIRTH_CITIZEN:A_D:D_D], [MOOD_BUILDING_CLAIMED:A_D:D_D], [ARTIFACT_BEGUN:A_D:D_D]. (While playtesting, these particular announcements have been especially disruptive.)

To customize the graphics, edit hack/www/config.js. Players can set their own graphics by editing the URL in their web browser -- here is a guide from the authors of Webfort.

Online Play

DFPlex requires two ports to be available. They are both displayed in the dfplex window upon launching, and can be configured in data/init/dfplex.txt. To play on LAN, players can simply connect to your LAN IP address at the correct port: for example, http://192.168.1.1:8000/. To play online (as opposed to on LAN), port forwarding must be enabled on your router. Enabling port forwarding and finding your LAN or WAN IP address are beyond the scope of this readme, so please look these up online if you are unfamiliar with the process.

DFPlex is not secure. If you wish to play with people you do not trust, please take your own security precautions, such as running Dwarf Fortress within an isolated container. No efforts were taken by the authors of DFPlex to prevent clients from accessing the host filesystem.

Contribution

To learn how the code is structured and how the project works, please read the overview.

dfplex's People

Contributors

alloyed avatar ankoku avatar benlubar avatar cvazir avatar daknig avatar dragoon209 avatar lizelive avatar mikejsavage avatar paingouin avatar pronvit avatar uguu2137 avatar white-rabbit-dfplex avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.