Skip to content

Commit 267bf90

Browse files
committed
push cstv update
1 parent c5e51cf commit 267bf90

File tree

2 files changed

+52
-3
lines changed

2 files changed

+52
-3
lines changed

docs/cs2/cstv.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,31 @@ playdemo yourdemo.dem
4444
```
4545

4646
## CSTV Camera Positions
47-
`spec_pos` - which gives you the coordinations of your current location as a spectator (must have sv_cheats enabled)
47+
`spec_pos` - which gives you the coordinations of your current location as a spectator (must have sv_cheats enabled)<br />
4848
`spec_goto <coordinations>` - which instantly switches to that angle (or teleports you to the entered coordinations)
4949

50-
## Errors
50+
## Errors
5151

52-
- **[Demo] 2024-11-28_XX-XX-XX_XXXX_de_mirage_team_XXXX_vs_team_XXXXXX.dem: unable to extract addons from file** - [Follow this link](https://www.reddit.com/r/cs2/comments/18ei4n4/cant_play_demos_cs2_unable_to_extract_addons_from/)
52+
You have downloaded the demo, but you can't view it due to the following errors:
53+
54+
<div className="demo-error-block">
55+
```text
56+
[Demo] Requesting playback of '2025-XX-XX_XX-XX-XX_3_de_mirage_team_XXXXX_vs_team_XXXXX.dem'
57+
CRealMemoryDemoBuffer::Init: demo file '2025-XX-XX_XX-XX-XX_3_de_mirage_team_XXXXX_vs_team_XXXXX.dem' doesn't exist in pathid ''
58+
[DemoFile] CDemoFile::Open: couldn't open file 2025-XX-XX_XX-XX-XX_3_de_mirage_team_XXXXX_vs_team_XXXXX.dem for reading.
59+
[DemoFile] ReadDemoHeader: invalid pBuffer.
60+
[Demo] 2025-XX-XX_XX-XX-XX_3_de_mirage_team_XXXXX_vs_team_XXXXX.dem: unable to extract addons from file
61+
```
62+
</div><br />
63+
64+
Please delete the file you downloaded earlier and re-download it.
65+
66+
**Then follow these steps:**
67+
1. Open **Steam**
68+
2. Right-click on **Counter-Strike 2**
69+
3. Select **Properties**
70+
4. Go to the **Installed Files** tab
71+
5. Click **Browse**
72+
6. In the window that opens, navigate to the folder: `game``csgo`
73+
74+
This is where the `.dem` file should be located.

src/css/custom.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,33 @@ details[open] {
165165
}
166166
}
167167

168+
/* Force line wrap in <pre><code> blocks inside <details> */
169+
details pre code {
170+
white-space: pre-wrap;
171+
word-break: break-word;
172+
display: block;
173+
}
174+
175+
/* Style for the visible error block */
176+
.demo-error-block {
177+
background-color: var(--ifm-color-emphasis-100);
178+
border: 1px solid var(--ifm-color-emphasis-300);
179+
border-radius: 8px;
180+
padding: 1.2rem;
181+
margin-top: 1rem;
182+
box-shadow: var(--ifm-global-shadow-lw);
183+
overflow-x: auto;
184+
}
185+
186+
.demo-error-block pre {
187+
background-color: var(--ifm-code-background);
188+
padding: 1rem;
189+
border-radius: 6px;
190+
white-space: pre-wrap;
191+
word-break: break-word;
192+
font-size: 0.9rem;
193+
}
194+
168195
/* For readability concerns, you should choose a lighter palette in dark mode. */
169196
[data-theme='dark'] {
170197
--ifm-color-primary: #18E888;

0 commit comments

Comments
 (0)