Skip to main content

Download and publish EverQuest scripts and software using the RedGuides API

Project description

redfetch logo with a dog terrorizing a park

redfetch is for updating EverQuest multiboxing software and scripts that RedGuides recommends, as well as those you "watch".

Installation (Windows)

On Windows the easiest way to install redfetch is to download and run redfetch.exe. (optional: If you care how it looks, set Windows Terminal as your default terminal.)

Python / Linux

If you have a recent version of Python, you can install redfetch with pip,

pip install redfetch

Usage

1) Double-click redfetch.exe to run the script.

Take a moment to consider your configuration and the settings tab.

2) Click the big blue "Easy Update" button.

a screenshot showing the easy update button
Wait until it completes. (It's updating Very Vanilla MQ and any of its scripts or plugins you have watched on RedGuides, your licensed resources, and scripts recommended by staff. If you're watching thousands of resources, your first run will take a long time.)

3) In the shortcuts tab, click the "Very Vanilla MQ" button

a screenshot showing the shortcuts tab

This starts MacroQuest, and now you're ready to multibox EQ.

Add more MQ Scripts

To add more MacroQuest scripts, "watch" them on RedGuides, and then run the Easy Update button again.

a screenshot showing the watch button on a resource page

If there are non-MQ resources you'd like to keep in sync with redfetch, you can add them as a "special resource" in the local settings file.

Alternative Interfaces

Command Line

To update everything you've watched from the command line (as well as special resources),

redfetch.exe --download-watched

Web UI

Another UI option! Run this command and then browse https://www.redguides.com/community/resources

redfetch.exe --serve

redfetch Web UI, with a hastily drawn circle around the install button

Command-Line Options

  • --download-resource <RESOURCE_ID | URL>: Downloads a resource by its ID or URL.
  • --download-watched: Downloads all watched and special resources.
  • --force-download: Clears recent download dates in the cache.
  • --list-resources: Lists all resources in the cache.
  • --serve: Runs as a flask server to interact with the web UI.
  • --update-setting <SETTING_PATH> <VALUE> [ENVIRONMENT]: Updates a configuration setting. The setting path should be dot-separated. Environment is optional.
  • --switch-env <ENVIRONMENT>: Changes the server type (LIVE, TEST, EMU).
  • --logout: Logs out and clears cached tokens.
  • --uninstall: Uninstalls redfetch and outputs a text guide for cleaning up downloaded data.
  • --version: Displays the current version of redfetch.
  • push <resource_id> [options]: Update you or your team's resource. There's also a github action for this. Options include:
    • --description <README.md>: Path to a description file which will become the resource's overview description.
    • --version <version_number>: Specifies a new version number.
    • --message <CHANGELOG.md | MESSAGE>: Version update message or path to a changelog file.
    • --file <FILE.zip>: Path to the zipped release file.
    • --domain <URL>: Domain to prepend to relative URLs in README.md or CHANGELOG.md files. (mostly for images. e.g., https://raw.githubusercontent.com/yourusername/yourrepo/main/)

Settings

settings.local.toml is found in your configuration directory, which by default is c:\Users\Public\redfetch\settings.local.toml. Any keys you add will override their default values in settings.toml.

All settings are prefixed with the environment,

  • [DEFAULT] - encompasses all environments that are not explicitly defined.
  • [LIVE] - EverQuest Live
  • [TEST] - EverQuest Test
  • [EMU] - EverQuest Emulator

Adding a special resource

Here's how to add a non-MQ resource. You need the resource ID (numbers at the end of the url) and a target directory.

[LIVE.SPECIAL_RESOURCES.153]
custom_path = 'C:\Users\Public\Daybreak Game Company\Installed Games\EverQuest\maps\Brewall_Maps'
opt_in = true
  • Note the use of single quotes around the path, which are required for windows paths.

The above will install Brewall's maps to the EQ maps directory the next time --download-watched is run for LIVE servers.

Overwrite protection

If there are local files you don't want overwritten by a resource, you can add them to the PROTECTED_FILES_BY_RESOURCE setting. Include the resource ID and files you want to protect. e.g.,

[LIVE.PROTECTED_FILES_BY_RESOURCE]
1974 = ["CharSelect.cfg", "Zoned.cfg", "MQ2Map.ini", "MQ2MoveUtils.ini"]
153 = ["citymist.txt", "innothule.txt", "oasis.txt"]

Tinkerers

If you self-compile MacroQuest or use a discord friend's copy, you can still keep your scripts and plugins in sync with redfetch by opting out of Very Vanilla:

redfetch.exe --update-setting SPECIAL_RESOURCES.1974.opt_in false LIVE
redfetch.exe --update-setting SPECIAL_RESOURCES.60.opt_in false EMU
redfetch.exe --update-setting SPECIAL_RESOURCES.2218.opt_in false TEST

or edit the settings.local.toml file directly:

[LIVE.SPECIAL_RESOURCES.1974]
opt_in = false

Then assign the Very Vanilla MQ path to your self-compiled MacroQuest.

Known Issues

  • Directory selectors can't change drive letters yet. To change the drive letter in a path, you'll need to type the new drive letter in the input field.

Todo

  • Instead of keeping a db entry for each file downloaded and its version, we should check the files on the drive.
  • Refactor download logic, now that we know our needs.
  • Re-write auth for latest Xenforo version.

Contributing

I'd love help, conceptually and technically. I'm not a developer and this is my first big python script.

To set up a development environment,

git clone https://github.com/RedGuides/redfetch
cd redfetch
pip install hatch
hatch env create dev
hatch shell dev

You can then run your dev version with,

redfetch

Or if the issue is ui-specific, run the terminal UI in debug mode,

textual run --dev .\src\redfetch\main.py

When you're done, type exit to leave the shell.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

redfetch-0.5.0.tar.gz (82.8 kB view details)

Uploaded Source

Built Distribution

redfetch-0.5.0-py2.py3-none-any.whl (75.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file redfetch-0.5.0.tar.gz.

File metadata

  • Download URL: redfetch-0.5.0.tar.gz
  • Upload date:
  • Size: 82.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for redfetch-0.5.0.tar.gz
Algorithm Hash digest
SHA256 348c59ec03ec47c7f6fc3abbd1db42b88dec980b17dd36899f17b321d635ba20
MD5 0c02992fd7834fcd4280eda44d50567c
BLAKE2b-256 a4dbbfd35280d99031a2615f79355d815f9ddf560c9d0f1d53f4ab671ac8f872

See more details on using hashes here.

Provenance

The following attestation bundles were made for redfetch-0.5.0.tar.gz:

Publisher: pipeline.yml on RedGuides/redfetch

Attestations:

File details

Details for the file redfetch-0.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: redfetch-0.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 75.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for redfetch-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 786b43b50f04a1749958d9224e8ec1bd8a8ccf288dd9d3214a1009ec02375d99
MD5 b7c2d7671b0eefdc440c295a792dda2d
BLAKE2b-256 d46d71edfa1b7af99cf0dff548f2014f774f27133e56e65c0645feee57f36c2a

See more details on using hashes here.

Provenance

The following attestation bundles were made for redfetch-0.5.0-py2.py3-none-any.whl:

Publisher: pipeline.yml on RedGuides/redfetch

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page