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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ LineEnding: LF
BreakTemplateDeclarations: Yes
# Macros invoked as whole declarations, without a trailing semicolon.
StatementMacros:
- RS7_FNVARS
- RS7_FNEXT
- RSXR_FNVARS
- RSXR_FNEXT
- PUB_VAR
- PAIR
- RS7_GPU_THUNK
- RSXR_GPU_THUNK
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ indent_size = 2
[*.md]
trim_trailing_whitespace = false

[*.{dds,bin,rs7da}]
[*.{dds,bin,rsxrda}]
charset = unset
end_of_line = unset
insert_final_newline = unset
Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

*.dds binary
*.bin binary
*.rs7da binary
*.rsxrda binary
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ labels: bug
**Steps to reproduce**

**Environment**
- rs7string version:
- RS Extended Range version:
- Game build (Steam, September 2022?):
- CDLC enabler:
- Other mods (RSMods, RS_ASIO, others):
- Song / chart and tuning:

**rs7string.log**
Paste the relevant lines from `rs7string.log` (next to the game exe). Remove personal paths.
**rsxr.log**
Paste the relevant lines from `rsxr.log`. You find it next to the game exe. Remove personal paths first.

Do not attach game files or encryption keys.
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
- [ ] `.\build.ps1` passes
- [ ] `uv run pytest tools\tests -q` passes
- [ ] `sitecheck.py` and `check_exports.py` pass (or say why not)
- [ ] Branch is not `main`
- [ ] The branch is not `main`
- [ ] No Ubisoft keys or game assets in this change
- [ ] Docs updated if behaviour or settings changed
- [ ] Docs are updated if behavior or settings changed
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Gates that need no game executable. The tests that read the user's own Rocksmith exe or memory snapshot skip
# (RS7_GAME_FILES points at an empty folder, tools/game_files.py); they, sitecheck.py and the in-game checks stay
# (RSXR_GAME_FILES points at an empty folder, tools/game_files.py); they, sitecheck.py and the in-game checks stay
# local (docs/DEVELOPMENT.md, "Continuous integration").
name: ci

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:

jobs:
build:
if: github.repository == 'SomeeName/rs7string'
if: github.repository == 'SomeeName/rs-extended-range'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -28,7 +28,7 @@ jobs:
path: site

deploy:
if: github.repository == 'SomeeName/rs7string'
if: github.repository == 'SomeeName/rs-extended-range'
needs: build
runs-on: ubuntu-latest
environment:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ docs/eight-audit.tsv
docs/publish-grid-manifest.json
.venv/
original/
rs7string/
rsxr/
*.nif
*.psarc
*.gfx
Expand Down
41 changes: 22 additions & 19 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# Agent and contributor guide

**Rules and commands for AI coding agents (and humans) working on rs7string.**
**Rules and commands for AI coding agents (and humans) working on RS Extended Range.**

[Contributing](CONTRIBUTING.md) · [Development](docs/DEVELOPMENT.md) · [Architecture](docs/ARCHITECTURE.md) · [RS7X spec](docs/release/RS7X-SPEC.md) · [Chart tools](docs/release/CHART-TOOLS.md) · [Releasing](docs/RELEASING.md) · **Agents**
[Contributing](CONTRIBUTING.md) · [Development](docs/DEVELOPMENT.md) · [Architecture](docs/ARCHITECTURE.md) · [Extension block](docs/architecture/extension-block.md) · [Chart tools](docs/release/CHART-TOOLS.md) · [Releasing](docs/RELEASING.md) · **Agents**

rs7string is a `dinput8.dll` mod that adds seven- and eight-string guitar and five- and six-string bass support to Rocksmith 2014
RS Extended Range is a `dinput8.dll` mod that adds seven- and eight-string guitar and five- and six-string bass support to Rocksmith 2014
Remastered (Steam, September 2022 build, 32-bit Windows). It patches the running game at byte-pattern
sites (`sites.json`) with naked stubs and mid-hooks, and ships no Ubisoft data.
sites (`sites.json`) with naked stubs and mid-hooks. It ships no Ubisoft data.

Read first: [README.md](README.md), [CONTRIBUTING.md](CONTRIBUTING.md),
Read these first: [README.md](README.md), [CONTRIBUTING.md](CONTRIBUTING.md),
[docs/DEVELOPMENT.md](docs/DEVELOPMENT.md) (build, tools, debug settings) and
[docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) (how the mod works, decisions, known limits).

## Rules

> [!IMPORTANT]
> - **Work only in `SomeeName/rs7string-private`.** The public `SomeeName/rs7string` repository is read-only; never push or make changes there.
> - **Work only in `SomeeName/rs-extended-range-dev`.** The public repository (`SomeeName/rs-extended-range`, named `SomeeName/rs7string` until the release) is read-only. Never push or make changes there.
> - **Never commit to `main`.** Work on a branch (`fix/...`, `feat/...`, `docs/...`) and open a pull request.
> - Commit messages and author/co-author fields must not contain AI assistant names or attribution.
> - **Do not push, tag or publish a release** unless the maintainer asked for it.
Expand All @@ -32,9 +32,9 @@ Read first: [README.md](README.md), [CONTRIBUTING.md](CONTRIBUTING.md),

## Build and gates

Windows, Visual Studio Build Tools (toolset v145, Win32), PowerShell, [uv](https://docs.astral.sh/uv/).
Commands, flags (`-Asan`, `-Fuzz`, `-SkipAnalysis`), CI and the game-image requirement are owned by
[docs/DEVELOPMENT.md](docs/DEVELOPMENT.md#build-and-test); the short form:
You need Windows, Visual Studio Build Tools (toolset v145, Win32), PowerShell and [uv](https://docs.astral.sh/uv/).
[docs/DEVELOPMENT.md](docs/DEVELOPMENT.md#build-and-test) is the main source for the commands, the flags
(`-Asan`, `-Fuzz`, `-SkipAnalysis`), CI and the game-image requirement. Here is the short form:

```powershell
.\build.ps1 # format check, DLL, unit tests, /analyze
Expand All @@ -43,19 +43,22 @@ uv run python tools\sitecheck.py # every site resol
uv run python tools\check_exports.py bin\Release\dinput8.dll # exports, image base, imports
```

- A new compiler warning (`/W4 /WX`), `/analyze` finding or layout-baseline growth fails the build: fix it,
do not disable it. If you run MSBuild yourself, pass `/p:PlatformToolset=v145` and
- A new compiler warning (`/W4 /WX`), a new `/analyze` finding or growth of the layout baseline fails the
build. Fix the cause, do not disable the check. If you run MSBuild yourself, pass `/p:PlatformToolset=v145` and
`/p:PostBuildEventUseInBuild=false`.
- `build.ps1` fails on unformatted sources: run `.\scripts\format.ps1` first.
- `sitecheck.py` and the emulator tests need your own unpacked game executable. The emulator tests skip without it;
`sitecheck.py` cannot run without it. Say so in the pull request. Never commit it.
- Docs-only changes: check that every relative link resolves (`mkdocs build --strict` does, see
- `build.ps1` fails on unformatted sources, so run `.\scripts\format.ps1` first.
- `sitecheck.py` and the emulator tests need your own unpacked game executable. Without it, the emulator tests
are skipped and `sitecheck.py` cannot run. Say so in the pull request. Never commit the executable.
- For docs-only changes, check that every relative link resolves. `mkdocs build --strict` does this (see
[docs/agents/docs-and-testing.md](docs/agents/docs-and-testing.md)).

Key rules kept here in short: generated headers (`src/generated/`, `*.generated.h`) are regenerated by
`tools/gen_*.py`, never hand-edited; new hooks are C++ mid-hooks, not new `__asm` stubs; no `gs`/`out`/`in`
operand names in inline asm; keep a feature's sites, hooks, settings and tests in `src/features/<name>/`; test
only your own game copy and never post game-derived output.
The key code rules:

- `tools/gen_*.py` regenerates the generated headers (`src/generated/`, `*.generated.h`). Never edit them by hand.
- Write new hooks as C++ mid-hooks, not as new `__asm` stubs.
- Do not use `gs`, `out` or `in` as operand names in inline asm.
- Keep a feature's sites, hooks, settings and tests in `src/features/<name>/`.
- Test only on your own game copy, and never post output taken from the game.

## Where to read more

Expand Down
31 changes: 18 additions & 13 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Contributing to rs7string
# Contributing to RS Extended Range

**How to build, test and send changes.**

**Contributing** · [Development](docs/DEVELOPMENT.md) · [Architecture](docs/ARCHITECTURE.md) · [RS7X spec](docs/release/RS7X-SPEC.md) · [Chart tools](docs/release/CHART-TOOLS.md) · [Releasing](docs/RELEASING.md) · [Agents](AGENTS.md)
**Contributing** · [Development](docs/DEVELOPMENT.md) · [Architecture](docs/ARCHITECTURE.md) · [Extension block](docs/architecture/extension-block.md) · [Chart tools](docs/release/CHART-TOOLS.md) · [Releasing](docs/RELEASING.md) · [Agents](AGENTS.md)

Thanks for helping. Bug reports, chart tests, docs and code are all welcome.

Expand All @@ -17,17 +17,22 @@ Thanks for helping. Bug reports, chart tests, docs and code are all welcome.

## Ground rules

The rules (no Ubisoft data, no generated game files, branch policy) are in [AGENTS.md](AGENTS.md#rules) and apply to everyone, not only to AI agents. Never commit directly to `main`.
The rules are in [AGENTS.md](AGENTS.md#rules). They ban Ubisoft data and generated game files and set the branch policy. They apply to everyone, not only to AI agents. Never commit directly to `main`.

## Build and gates

You need Windows, Visual Studio Build Tools (toolset v145, Win32), PowerShell, Python and
[uv](https://docs.astral.sh/uv/). Run `.\build.ps1`, then `uv run pytest tools\tests -q`,
`uv run python tools\sitecheck.py` and `uv run python tools\check_exports.py bin\Release\dinput8.dll`
before you open a pull request. What each step does, the flags, formatting
(`.\scripts\format.ps1`) and the game-image requirement for `sitecheck` and the emulator tests are in
[DEVELOPMENT.md](docs/DEVELOPMENT.md#build-and-test). Without your own game image, skip those gates and say so
in the pull request. The build never copies anything into your game folder.
[uv](https://docs.astral.sh/uv/). Before you open a pull request, run these gates (checks that must pass):

1. `.\build.ps1`
2. `uv run pytest tools\tests -q`
3. `uv run python tools\sitecheck.py`
4. `uv run python tools\check_exports.py bin\Release\dinput8.dll`

[DEVELOPMENT.md](docs/DEVELOPMENT.md#build-and-test) explains what each step does and lists the flags. It also
covers formatting (`.\scripts\format.ps1`). `sitecheck` and the emulator tests need your own game image. If you
do not have one, skip those gates and say so in the pull request. The build never copies anything into your
game folder.

For docs-only changes, check that every relative link resolves.

Expand All @@ -40,26 +45,26 @@ For docs-only changes, check that every relative link resolves.

## Commit style

A short, imperative subject with an area prefix:
Write a short subject in the imperative mood, with an area prefix:

```text
fix(freeze): never block in GetThreadContext under WoW64
chords: keep the chord frame on the floor
docs: explain the F9 overlay
```

Explain the why in the body when it is not obvious.
If the reason for the change is not obvious, explain it in the body.

## Testing in game

The rules (own game copy, plain PSARC charts, nothing game-derived shared, log lines in bug reports) are in [In-game testing](docs/agents/docs-and-testing.md#in-game-testing). For charts see the [charting guide](docs/release/CHARTING.md).
The rules are in [In-game testing](docs/agents/docs-and-testing.md#in-game-testing). Use your own game copy and plain PSARC charts, don't share anything taken from the game, and put log lines in bug reports. For charts, see the [charting guide](docs/release/CHARTING.md).

## Where the docs live

| Document | For | Contents |
|---|---|---|
| [README](README.md) | Players | Overview, quick install, FAQ. |
| [docs/release/](docs/release/README.md) | Players, chart authors | Install, settings, charting, changelog, RS7X format. |
| [docs/release/](docs/release/README.md) | Players, chart authors | Install, settings, charting, changelog. |
| [docs/GETTING-STARTED.md](docs/GETTING-STARTED.md) | New developers | How the mod works in five minutes, and where to go next. |
| [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md) | Developers | Build, tools, generated files, debug settings, overlay commands. |
| [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) | Developers | How the mod works, design decisions, known limits. |
Expand Down
2 changes: 1 addition & 1 deletion NOTICE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ for those parts:

- data/chord-diagrams/LICENSE (chord-diagram recipes)
- data/headstock/LICENSE.md (headstock build data; shipped in releases as
rs7string_headstock.LICENSE.md)
rsxr_headstock.LICENSE.md)
- third_party/imgui/LICENSE.txt (Dear ImGui)

This project ships no Ubisoft assets. The seven-peg headstock model and the
Expand Down
Loading
Loading