Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Preperation:
- - Download a clean copy of Dwarf Fortress 34.11 SDL from http://www.bay12games.com/dwarves/older_versions.html
- - Download DF Hack 0.34.11-r5 from http://dffd.wimbli.com/file.php?id=8682
- - Download the latest version of Webfort from https://github.com/Ankoku/df-webfort/releases
- - Download a copy of Mongoose web server from http://cesanta.com/mongoose.shtml -NOTE- You can also host with another web server application of your choice.
- Installation:
- 1. Extract Dwarf Fortress to a location of your choice.
- 2. Extract DF Hack into your Dwarf Fortress directory. If you have any problems installing DF Hack, consult the DF Hack Readme - https://github.com/DFHack/dfhack/blob/0.34.11-r3/Readme.rst#installation-removal
- 3. Extract Webfort into your Dwarf Fortress directory.
- 4. Move or Copy the Mongoose application into the 'web' directory inside your Dwarf Fortress directory.
- 5. Start the Mongoose application within your 'web' directory.
- 6. Start Dwarf Fortress.exe
- 7. Navigate a browser to http://<YOUR HOST>/webfort.html
- You are now hosting a Web Fortress! Please note that you will need your external address, and to forward ports for users outside your network to connect. Additionally, you can customize your session by adding parameters to the URL and change the Tileset, or Text font. See below for more information.
- Further Considerations:
- - For players outside your network, you will need to provide your WAN IP address, or your Internet-facing IP address. you can use a service like 'http://www.whatismyip.com/' to get it. You will also need to forward ports 8080 and 1234 in your router, to the computer you are hosting Dwarf Fortress from. If you haven't done this before, see http://portforward.com/ for a list of guides for common routers.
- Customizing:
- webfort.html supports a number of query parameters for configuration. Some
- of these really should be persistent settings but others are really only
- for debug purposes. here are all of them:
- | option | value | default | description |
- |-------------|---------------------|----------------------|-------------------------------------------|
- | `host` | any hostname | current hostname | The websocket domain to connect to. |
- | `port` | any port number | 1234 | The port number of the websocket. |
- | `tiles` | an image in `art/` | `Spacefox.png` | The tileset to use. (in the web\art Dir.) |
- | `text` | an image in `art/` | `ShizzleClean.png` | the tileset to use for ingame text. |
- | `show-fps` | a boolean | false | Whether or not to show the FPS counter. |
- | `hide-chat` | a boolean | false | Whether or not to hide the IRC side pane. |
- | `colors` | a file in `colors/` | default colorscheme | The colorscheme to use, in json format. |
- | `nick` | any string | random | The nickname to use |
- | `store` | a boolean | undefined | if true, store all current settings |
- You can use a single parameter by adding it to the end of your Forts URL, preceeded by a ? mark. For example, if you wanted to set your nickname for the session, you use add the 'nick' parameter to the URL like this:
- http://myhost/webfort.html?nick=YourUserName
- Additional parameters can be added with an & between each additional argument. For example, if you wanted to hide the chat side panel, and change the tileset to Phoebus, you would add the parameters like this:
- http://myhost/webfort.html?hide-chat=true&tiles=Phoebus.png
- You can add multiple parameters together to customize the session to your liking. Here is an example of using the Phoebus tileset, with the Cheepicus text:
- http://myhost/webfort.html?hide-chat=true&tiles=Phoebus.png&text=t_Cheepicus.png
- Parameters can be stored into your browser's localStorage, where they can
- persist between sessions. for example, opening:
- http://myhost/webfort.html?nick=myNick&store=true
- will store the nick `myNick` and restore it such that
- http://myhost/webfort.html
- will also have the the nick `myNick`. ATM, storage can only be reset to
- defaults by using the console command:
- localStorage.clear()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement