Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/site/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ CORS rule on the R2 bucket (Cloudflare dashboard, not this repo) allowing `GET`

Client-side OS detection is shared: `detectPlatform()` in `src/lib/os-detect.ts` returns `'windows'`, `'linux'` or `null`, and is imported by the three components with download buttons — `Hero.astro`, `DownloadSection.astro`, `Nav.astro`.

Principle: a build is proposed only once its platform is recognized, never by default. The markup proposes nothing: the hero's per-platform download buttons are hidden, the nav Download buttons link to the download section, and every download in that section is secondary. A recognized platform reveals its hero button, points the nav buttons at its build and fills its main download (the Linux install command is the one-liner served by `functions/install.sh.ts`). Change detection logic only in `os-detect.ts`.
Principle: a build is proposed only once its platform is recognized, never by default. The markup proposes nothing: the hero's per-platform download buttons are hidden, the nav Download buttons link to the download section, and every download in that section is secondary. A recognized platform reveals its hero button linking to its build, points the nav buttons at the same build and fills its main download (the Linux install command is the one-liner served by `functions/install.sh.ts`). Hero and Nav share the build URLs from `getDownloadUrls()` in `src/lib/github.ts`. Change detection logic only in `os-detect.ts`.

### Analytics & consent

Expand Down
2 changes: 1 addition & 1 deletion apps/site/astro.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const modrexCodeTheme = {
'editor.foreground': '#f4f4f3', // --color-text
},
tokenColors: [
{ scope: ['comment'], settings: { foreground: '#756f6b' } }, // --color-text-subtle
{ scope: ['comment'], settings: { foreground: '#847e7a' } }, // --color-text-subtle
{
scope: [
'keyword',
Expand Down
4 changes: 2 additions & 2 deletions apps/site/src/components/DownloadSection.astro
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ const extension = (file: DlFile) => file.name.split('.').pop()
<div class="nightly-body">
<p class="nightly-warn">
<i data-lucide="triangle-alert" />
Nightly is for people who want to help test Modrex, and it may not be as
stable as the Stable version.
Nightly builds are for testing Modrex and may be less stable than regular
releases.
</p>
<a class="btn-lg secondary dl-btn" href={nightlyUrl}>
Open the nightly release
Expand Down
26 changes: 17 additions & 9 deletions apps/site/src/components/Features.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
import { Picture } from 'astro:assets'
import { sitePath } from '../lib/site-path'
import type { ModIndexStats } from '../lib/mod-index'
import type { NexusModCounts } from '../lib/nexus-mod-count'
import browseMods from '../assets/screenshots/browse-mods-window.webp'
Expand Down Expand Up @@ -44,7 +45,7 @@ function crop(x: number, y: number, w: number, h: number) {
}
}

const launchCrop = crop(1760, 0, 800, 156)
const launchCrop = crop(1760, 0, 800, 64)
const browseCrop = crop(300, 70, 1120, 600)
const installedCrop = crop(300, 242, 1120, 600)
---
Expand All @@ -60,8 +61,9 @@ const installedCrop = crop(300, 242, 1120, 600)
<div class="row-text">
<h3>From mod page to game</h3>
<p>
Find a mod on ModWorkshop or Nexus Mods, install it, switch it on and start
the game, modded or vanilla.
Open a mod's page in Browse and install it from there. Switch it on in
Installed, then start the game from the top bar, with your mods or without
them.
</p>
</div>
<Sketch name="mod-route" />
Expand All @@ -71,15 +73,14 @@ const installedCrop = crop(300, 242, 1120, 600)
<div class="row-text">
<h3>Launch modded or vanilla</h3>
<p>
Launch with enabled mods or use Launch without mods. Ready or Not uses Safe
Mode for Pak mods. Other games temporarily hide managed mods and restore
them when the game exits.
Start the game with your enabled mods, or use Launch without mods for{' '}
<a href={sitePath('/docs/concepts/launch-modes')}>supported mod types</a>.
</p>
</div>
<div class="crop" style={launchCrop.frameStyle}>
<Picture
src={installedMods}
alt="The Launch without mods and Launch modded buttons in the Modrex top bar"
alt="The Launch without package mods and Launch modded buttons in the Modrex top bar"
widths={CROP_WIDTHS}
sizes={launchCrop.sizes}
formats={['avif']}
Expand All @@ -97,7 +98,10 @@ const installedCrop = crop(300, 242, 1120, 600)
Search both sites with categories, tags and sorting, read the mod page, and
install from the result.{' '}
{nexusModsAvailable && (
<span>Nexus lists {nexusModsAvailable} mods for these games.</span>
<span>
Nexus lists {nexusModsAvailable} mods across{' '}
<a href={sitePath('/docs/games/')}>supported games</a>.
</span>
)}
</p>
</div>
Expand Down Expand Up @@ -229,7 +233,7 @@ const installedCrop = crop(300, 242, 1120, 600)
.row-text p {
margin: 0;
max-width: 44ch;
font-size: 15px;
font-size: 17px;
line-height: 1.6;
color: var(--text-secondary);
}
Expand Down Expand Up @@ -302,6 +306,10 @@ const installedCrop = crop(300, 242, 1120, 600)
}

@media (max-width: 640px) {
.row-text p {
font-size: 16px;
}

.also {
grid-template-columns: minmax(0, 1fr);
margin-top: 48px;
Expand Down
9 changes: 5 additions & 4 deletions apps/site/src/components/Hero.astro
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
import { sitePath } from '../lib/site-path'
import { Picture } from 'astro:assets'
import type { Release } from '../lib/github'
import { getDownloadUrls, type Release } from '../lib/github'
import gamePicker from '../assets/screenshots/game-picker-window.webp'
import browseMods from '../assets/screenshots/browse-mods-window.webp'
import installedMods from '../assets/screenshots/installed-mods-window.webp'
Expand All @@ -13,6 +13,7 @@ interface Props {
}

const { release = null } = Astro.props
const downloadUrls = getDownloadUrls(release)

// Imported rather than served from public/ so astro:assets emits AVIF and WebP at
// several widths. The sources are 2560px WebP screenshots, a few hundred kilobytes each; the
Expand All @@ -21,7 +22,7 @@ const shots = [
{
src: gamePicker,
name: 'Game picker',
alt: 'Choosing a game in Modrex: PAYDAY 3, PAYDAY 2, PAYDAY: The Heist, Crime Boss and RAID',
alt: 'Choosing a supported game in Modrex',
},
{
src: browseMods,
Expand Down Expand Up @@ -82,7 +83,7 @@ const releasedOn = release
</p>
<div class="cta-row">
<a
href={sitePath('/#download')}
href={downloadUrls.windows}
class="btn-lg primary hero-dl"
data-platform="windows"
hidden
Expand All @@ -91,7 +92,7 @@ const releasedOn = release
Download for Windows
</a>
<a
href={sitePath('/#download')}
href={downloadUrls.linux}
class="btn-lg primary hero-dl"
data-platform="linux"
hidden
Expand Down
8 changes: 2 additions & 6 deletions apps/site/src/components/Nav.astro
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
---
import { sitePath } from '../lib/site-path'
import type { Release } from '../lib/github'
import { getDownloadUrls, type Release } from '../lib/github'

interface Props {
activePage?: string
release?: Release | null
}
const { activePage = '', release = null } = Astro.props

const fallback = 'https://github.com/modrexio/modrex/releases/latest'
const winUrl =
release?.assets.find((a) => a.name.endsWith('.exe'))?.browser_download_url ?? fallback
const linUrl =
release?.assets.find((a) => a.name.endsWith('.AppImage'))?.browser_download_url ?? fallback
const { windows: winUrl, linux: linUrl } = getDownloadUrls(release)
---

<nav>
Expand Down
2 changes: 1 addition & 1 deletion apps/site/src/components/SiteFooter.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { sitePath } from '../lib/site-path'
MOD<span>REX</span>
</a>
<p class="legal">
A free, open-source desktop mod manager powered by ModWorkshop and Nexus Mods. Not
Free, open-source desktop mod manager powered by ModWorkshop and Nexus Mods. Not
affiliated with any game studio or publisher.
</p>
<div class="social">
Expand Down
2 changes: 1 addition & 1 deletion apps/site/src/content/docs/docs/concepts/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sidebar:

import { sitePath } from '../../../../lib/site-path'

Modrex is built around a few concepts that stay the same as more games are added. Game pages explain the current values for each game; concept pages explain how those values behave in the app.
Modrex is built around a few concepts that stay the same as more games are added. Game pages explain the current values for each game. Concept pages explain how those values behave in the app.

## Concepts

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Modrex can start the active game with managed mods enabled or launch without sup

Click **Launch** to start the active game with enabled mods in place. Modrex uses the active game's saved launcher and passes through launch options when that launcher supports them.

Disabled mods stay disabled. Missing files are not restored during launch; reinstall or repair them from the Installed tab first.
Disabled mods stay disabled. Missing files are not restored during launch. Reinstall or repair them from the Installed tab first.

## Launch without mods

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sidebar:
order: 30
---

The Installed tab is the source of truth for how Modrex presents your managed mods. Disk layout still matters, so Modrex writes only the parts that each game target supports safely.
Order and enable mods in the Installed tab. Modrex changes files on disk only in ways each game target supports.

## Visual order

Expand All @@ -31,7 +31,7 @@ Enable the mod again to move it back to the active target.

## Untracked mods

Modrex periodically scans each game's mod folders for files it isn't already tracking - for example,
Modrex periodically scans each game's mod folders for files it isn't already tracking, such as
mods you placed manually outside Modrex. These show up in the Installed list automatically.

A newly discovered mod is identified by checking its file hash against Modrex's mod index. A match
Expand Down
4 changes: 1 addition & 3 deletions apps/site/src/content/docs/docs/contributing.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ you want to help with.
## Report a problem

Open a [bug report](https://github.com/modrexio/modrex/issues/new?template=bug_report.yml) with the
steps that caused the problem. Attach your Modrex log when possible; see

<a href={sitePath('/docs/troubleshooting#log-file-location')}>Troubleshooting</a> for its location.
steps that caused the problem. Attach your Modrex log when possible. See <a href={sitePath('/docs/troubleshooting#log-file-location')}>Troubleshooting</a> for its location.

Running a <a href={sitePath('/docs/nightly')}>nightly build</a> and reporting what breaks is one of the
most useful ways to help, because problems get caught before they reach Stable.
Expand Down
5 changes: 2 additions & 3 deletions apps/site/src/content/docs/docs/games/crime-boss.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ The official ModKit target is directory-based and is not renamed for priority. L
## Choosing an install target

New Crime Boss mods install into `CrimeBoss/Mods` (ModKit) by default, where they merge with other
mods' Data Table content. The older `CrimeBoss/Content/Paks/~mods` location has no merging - only
mods' Data Table content. The older `CrimeBoss/Content/Paks/~mods` location has no merging. Only
use it for mods that specifically need the legacy pak format.

By default Modrex installs every new mod automatically into the ModKit location. To decide per
install instead, go to **Settings > Game > New Mod Installs** and select **Always ask**. Modrex then prompts
To decide per install, go to **Settings > Game > New Mod Installs** and select **Always ask**. Modrex then prompts
you to pick ModKit or legacy before each new Crime Boss install.

You can also move an already-installed mod between targets later. Open its `⋮` menu on the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Modrex installs and detects the current DAHM release. An older DAHM install does

## .pdmod files

PAYDAY: The Heist has a native mod format with the `.pdmod` extension. Modrex installs `.pdmod` files directly — download one from ModWorkshop or install it from a local file the same way as any other mod. Modrex extracts its assets into `assets/mod_overrides/` automatically.
PAYDAY: The Heist has a native mod format with the `.pdmod` extension. Modrex installs `.pdmod` files directly. Download one from ModWorkshop or install it from a local file the same way as any other mod. Modrex extracts its assets into `assets/mod_overrides/` automatically.

## Priority

Expand Down
30 changes: 13 additions & 17 deletions apps/site/src/content/docs/docs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,28 @@ import { sitePath } from '../../../lib/site-path'
import { CardGrid, LinkCard } from '@astrojs/starlight/components'

Modrex is a free, open-source desktop mod manager for Windows and Linux. Browse, install, and
organize mods from [ModWorkshop](https://modworkshop.net/) or Nexus Mods in one place - no manual file juggling -
then launch the game modded or vanilla straight from the app.
organize mods from [ModWorkshop](https://modworkshop.net/) or Nexus Mods,
then launch the game modded or vanilla from the app.

![The Modrex installed mods list with folders and load order](../../../assets/screenshots/installed-mods-window.webp)

## Key Features
## Key features

- **Browse ModWorkshop and Nexus Mods** - search the catalog with categories, tags, sorting, rich mod pages, and
- **Browse ModWorkshop and Nexus Mods** with catalog search, categories, tags, sorting, mod pages, and
dependency info.
- **One-click install** - install, enable, disable, and remove mods from `.pak`, `.zip`, `.7z`,
`.rar`, `.tar.gz`, and `.tar.xz` files. Multi-file archives are grouped as one mod.
- **Organize in folders** - sort your library into nested folders with drag-and-drop reordering
that sticks.
- **Smart updates** - Modrex detects out-of-date mods and lets you update them selectively or all
- **Install in one click** from `.pak`, `.zip`, `.7z`, `.rar`, `.tar.gz`, and `.tar.xz` files, then
enable, disable, or remove mods. Multi-file archives are grouped as one mod.
- **Organize your library** into nested folders and reorder them by dragging.
- **Update checks** detect out-of-date mods so you can update them selectively or all
at once.
- **Launch your way** - start with managed mods enabled or use
- **Launch modes** let you start with managed mods enabled or use
<a href={sitePath('/docs/concepts/launch-modes')}>Launch without mods</a> for the active game's
supported mod targets.
- **Auto-detects your install** - finds supported games across their launchers and picks up mods
- **Game detection** finds supported games across their launchers and picks up mods
you added outside Modrex.

## Start here

Choose a section below based on what you need.

<CardGrid>
<LinkCard
title="Installation"
Expand Down Expand Up @@ -65,9 +62,8 @@ Choose a section below based on what you need.
/>
</CardGrid>

## Community & Support
## Community and support

- **Discord** - join the [Modrex Discord](https://modrex.net/discord) for support, discussions,
- **Get help** on the [Modrex Discord](https://modrex.net/discord), which also has discussions
and updates.
- **Contributing** - report problems, suggest features, translate Modrex, or contribute code using
the <a href={sitePath('/docs/contributing')}>contribution guide</a>.
- **Contribute** by following the <a href={sitePath('/docs/contributing')}>contribution guide</a>.
11 changes: 3 additions & 8 deletions apps/site/src/content/docs/docs/installing-mods.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ button shows a live download percentage and progress bar while the file is trans
To browse Nexus Mods, sign in from **Settings > Advanced > Nexus Mods Account**. If the game has
multiple sources, select Nexus at the top of Browse. Open the mod’s **Files** tab on Nexus and choose **Mod Manager Download**. Nexus
hands the download back to Modrex, which shows its progress and installs supported files into the
active game. Ready or Not Pak downloads need an archive from Nexus to preserve their filenames. See

<a href={sitePath('/docs/games/ready-or-not')}>Ready or Not</a> for loose Pak files, movie
active game. Ready or Not Pak downloads need an archive from Nexus to preserve their filenames. See <a href={sitePath('/docs/games/ready-or-not')}>Ready or Not</a> for loose Pak files, movie
replacements, and configuration presets.

Use search, category, and sort controls to narrow a catalog. ModWorkshop also supports tag filters:
Expand All @@ -29,11 +27,8 @@ select a tag once to include it, again to exclude it, and once more to clear tha
Supported local file formats: `.pak`, `.zip`, `.7z`, `.rar`, `.tar.gz`, `.tar.xz`.

Archives can contain loose `.pak` files, directory mods, `mod_overrides` content, UE4SS Lua mods, or
game-specific folder layouts. Modrex routes entries based on the active game's install targets. See

<a href={sitePath('/docs/concepts/archives-and-loaders')}>Archives and loaders</a> for the
classification rules and
<a href={sitePath('/docs/games/')}>Supported games</a> for the exact targets for each game.
game-specific folder layouts. Modrex routes entries based on the active game's install targets. See <a href={sitePath('/docs/concepts/archives-and-loaders')}>Archives and loaders</a> for the
classification rules and <a href={sitePath('/docs/games/')}>Supported games</a> for the exact targets for each game.

### Multi-file mods

Expand Down
6 changes: 2 additions & 4 deletions apps/site/src/content/docs/docs/launching.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import LauncherMatrix from '../../../components/docs/LauncherMatrix.astro'
Click **Launch** in the top bar to start the active game with all enabled mods active. Modrex passes
your configured launch options to the game and hands off to your launcher.

For PAYDAY 3, pak mods load only when UE4SS is installed. See

<a href={sitePath('/docs/games/payday-3#ue4ss')}>PAYDAY 3</a>.
For PAYDAY 3, pak mods load only when UE4SS is installed. See <a href={sitePath('/docs/games/payday-3#ue4ss')}>PAYDAY 3</a>.

## Launch without mods

Expand All @@ -25,7 +23,7 @@ For other games, Modrex temporarily backs up the managed mod folders.

When a backup-based session closes, Modrex automatically detects this and restores your mods. While a vanilla
session may still be running, a banner across the top reminds you mods are hidden and offers a
**Restore mods** button - use it if Modrex closed before it could restore automatically (for example,
**Restore mods** button. Use it if Modrex closed before it could restore automatically (for example,
if the app itself was closed mid-session).

See <a href={sitePath('/docs/concepts/launch-modes')}>Launch modes</a> for how target-scoped backups and restore behavior
Expand Down
Loading
Loading