-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from mutoo/dev
improve docs for pre-release build
- Loading branch information
Showing
23 changed files
with
651 additions
and
346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,45 @@ | ||
# Don't Starve AirDrop Mod Server | ||
|
||
This is a mod for Don't Starve that allows players to send items to game via web app. | ||
This is a mod for Don't Starve (and DST) that allows players to send items to game via a web app. | ||
|
||
![Arch](./docs/arch.png) | ||
|
||
## Features | ||
|
||
- Mod: a slim mod which is polling supplies from airdrop server every 10 seconds. | ||
- Server: a self host server running on the same machine to communicate with the mode. | ||
- Client: a web interface to communicate with local airdrop server, allow collecting items ready for next airdrop. | ||
|
||
## Usage | ||
|
||
### Install mod | ||
|
||
First, you will need to install the mod either from the workshop or directly download it from github release page. | ||
|
||
Ensure the mod is installed in your Don't Starve (or DST) game folder: | ||
|
||
* Windows: `C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together\mods` | ||
* MacOS: `~/Library/Application Support/Steam/steamapps/common/Don't Starve Together/dontstarve_steam.app/Contents/mods` | ||
|
||
Enable the mod when you start a new game. | ||
|
||
### Install server | ||
|
||
The airdop server is required to communicate with the mod. The mod will keep polling the items from the server every 10 seconds (by default). | ||
|
||
Please install the latest server from the github release page. | ||
|
||
The server is a standalone executable file, once started, it runs at http://localhost:9987. | ||
|
||
### The Web Client | ||
|
||
You don't need to host the web interface by your own. Once the airdrop server is running, open https://airdrop-mod.mutoo.im in the browser windows on the same computer and it should works. | ||
|
||
Now you can select any items in the list, and then drop it in the game. Enjoy the adventure! | ||
|
||
## Project Structure | ||
|
||
- `dont-starve-airdrop-mod/` - The don't starve mod that query the server for items to airdrop | ||
- `dont-starve-airdrop-server/` - The node.js server for holding the items to airdrop and communicating with the don't starve game | ||
- `dont-starve-airdrop-client/` - The React web app for sending items to the server | ||
- `dont-starve-assets-extractor/` - The handy tool for extracting inventory assets from the don't starve game | ||
|
||
## Diagram | ||
|
||
[Arch](./docs/arch.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,9 @@ | ||
# Don't Starve AirDrop Client | ||
|
||
This is the web client for Don't Starve (or DST) Airdrop mod. | ||
|
||
## Usage | ||
|
||
The latest client is deployed at https://airdrop-mod.mutoo.im | ||
|
||
Once your Airdrop Server is started locally, open above link and you should see the interface. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
const { getLoader } = require("@craco/craco"); | ||
|
||
module.exports = { | ||
plugins: [ | ||
{ | ||
plugin: { | ||
overrideWebpackConfig: ({ context, webpackConfig }) => { | ||
console.log( | ||
webpackConfig.module.rules.find((rule) => | ||
rule.hasOwnProperty("oneOf") | ||
) | ||
); | ||
const { isFound, match: fileLoaderMatch } = getLoader( | ||
webpackConfig, | ||
(rule) => rule.type === "asset/resource" | ||
); | ||
|
||
if (!isFound) { | ||
throw new Error( | ||
`Can't find resource loader in the ${context.env} webpack config!` | ||
); | ||
} | ||
|
||
fileLoaderMatch.loader.exclude.push(/\.ya?ml$/); | ||
|
||
const yamlLoader = { | ||
use: "yaml-loader", | ||
test: /\.(ya?ml)$/, | ||
}; | ||
webpackConfig.module.rules.push(yamlLoader); | ||
return webpackConfig; | ||
}, | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export default function BuyMeCoffee() { | ||
return ( | ||
<div className="text-gray-500 space-y-4"> | ||
<div className="">If you like this mod, you may support me with</div> | ||
<div className="w-48"> | ||
<a | ||
href="https://buymeacoffee.com/mutoo" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
<img src="/bmc_qr.png" alt="Buy Me A Coffee"></img> | ||
</a> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.