screepsmod-market-deals-seeder
v0.1.0
Published
Seeds synthetic market deals to bootstrap market history on Screeps private servers.
Maintainers
Readme
screepsmod-market-deals-seeder
Seeds synthetic market deals to bootstrap market history on Screeps private servers.
What it does
This mod inserts synthetic market.sell deals into users.money using average prices from
active market.orders. It helps new private servers show a market history immediately.
Install
npm install screepsmod-market-deals-seederEnable in Screeps server
Add the mod to your server config (example config.json):
{
"mods": [
"screepsmod-market-deals-seeder"
]
}If you keep it locally, you can also use a relative or absolute path in mods.
Configuration
All settings are inside index.js and can be edited directly.
The mod entry point is module.exports = function(config) and uses
config.common.storage.db.
Defaults:
DAYS= 14MIN_DEALS_PER_DAY= 10AMOUNT_PER_DEAL= 1000SEED_TAG=market-deals-seedUSER_ID=systemRUN_EVERY_MS= 12 hoursPRICE_SCALE= 1000 (use 1 if your orders are full credits)COUNT_ALL_DEALS= true (count real + seeded deals)
Environment:
MARKET_SEED_BLACKLIST= comma separated list of resources to exclude
Notes
- The mod waits for
market.ordersandusers.moneyto exist before seeding. - It runs once at startup and then periodically.
Publishing to GitHub Packages
Publish to npmjs with npm publish.
