docs(repo): add contributor development guides
Document development rules, patch formats, and PR review checks. Include reusable patch and PR templates, and correct the README development commands. Verified Markdown links, all three patch template types, root and launcher type checks, and exe and GUI checks on client 2.61.0.37.
This commit is contained in:
1 parent
53e4fe54ba
commit
39228c6e75
11 files changed
+364
-4
No files matched your search
@@ -0,0 +1,29 @@
|
||||
// Change a fictional label defined by the offline executable.
|
||||
// The local server does not supply this label.
|
||||
// The example would otherwise show the stock label.
|
||||
{
|
||||
"id": "example/local-label",
|
||||
"title": "Rename the example label in the offline client",
|
||||
"features": ["Replace with an existing feature tag"],
|
||||
"requires": [],
|
||||
"variants": [
|
||||
// Example data pattern for DemoLabel followed by a null byte. Use the actual build and bytes.
|
||||
{
|
||||
"written_for": "0.0.0.0",
|
||||
"locate": {
|
||||
"method": "signature",
|
||||
"section": ".rdata",
|
||||
"pattern": "44 65 6d 6f 4c 61 62 65 6c 00"
|
||||
},
|
||||
"edit": {
|
||||
"offset": 0,
|
||||
"data": {
|
||||
"encoding": "ascii",
|
||||
"text": "LocalDemo"
|
||||
},
|
||||
"bytes": "4c 6f 63 61 6c 44 65 6d 6f 00",
|
||||
"expect_original": "44 65 6d 6f 4c 61 62 65 6c 00"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
let exampleLabel = "Example"
|
||||
@@ -0,0 +1,18 @@
|
||||
// Set the label on a fictional local screen.
|
||||
// The script owns this label and reads no data from the server.
|
||||
// The example would otherwise display the stock text.
|
||||
{
|
||||
"id": "example/offline-label",
|
||||
"title": "Show an offline label on the example screen",
|
||||
"features": ["Replace with an existing feature tag"],
|
||||
"variants": [
|
||||
// Replace the fictional game version, script path, and fragment contents.
|
||||
{
|
||||
"written_for": "0.0.0.0",
|
||||
"file": "scripts/example/example.nut",
|
||||
"edits": [
|
||||
{ "find": "find.nut", "replace": "replace.nut" }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
let exampleLabel = "Offline example"
|
||||
@@ -0,0 +1,26 @@
|
||||
// Describe the values a fictional native module reads for the local copy.
|
||||
// This example locates a settings marker in read-only data and captures its mode byte.
|
||||
// The module would otherwise lack the value required for its example behavior.
|
||||
{
|
||||
"module": "local_mp_example",
|
||||
"features": ["Replace with an existing feature tag"],
|
||||
"requires": [],
|
||||
"sites": {
|
||||
"example_label_mode": {
|
||||
"variants": [
|
||||
// The fictional WTO_EXAMPLE marker ends before the one-byte mode.
|
||||
{
|
||||
"written_for": "0.0.0.0",
|
||||
"locate": {
|
||||
"method": "signature",
|
||||
"section": ".rdata",
|
||||
"pattern": "57 54 4f 5f 45 58 41 4d 50 4c 45 00 ??",
|
||||
"captures": {
|
||||
"mode": { "offset": 12, "type": "u8" }
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
## Change
|
||||
|
||||
<!-- Describe the player-visible result and the scope of this PR. -->
|
||||
|
||||
## Reason and evidence
|
||||
|
||||
<!-- Give the target client build and the relevant game file, script, or official source. -->
|
||||
<!-- For a client patch, explain why the local service or game configuration is insufficient. -->
|
||||
<!-- For tuning changes, record the source and unit of the new defaults. -->
|
||||
|
||||
## Client compatibility
|
||||
|
||||
<!-- List the affected builds and any change to patch variants or version records. -->
|
||||
|
||||
## Checks run
|
||||
|
||||
| Command or check | Client build if relevant | Result |
|
||||
| --- | --- | --- |
|
||||
| | | |
|
||||
|
||||
## In-game acceptance
|
||||
|
||||
<!-- Give the screen or entry point, the action, and the expected result. Record what was observed or mark the check pending. -->
|
||||
Reference in new issue
Block a user