Skip to content

Dump entire demo and all packets to console if needed - #22

Closed
Beherith wants to merge 1 commit into
masterfrom
dumpdemo
Closed

Dump entire demo and all packets to console if needed#22
Beherith wants to merge 1 commit into
masterfrom
dumpdemo

Conversation

@Beherith

Copy link
Copy Markdown

No description provided.

@Beherith

Copy link
Copy Markdown
Author

Sorry, I dont know why the CI fails, I know nothing about typescript, I just needed the dump of all commands in a human readable format, which was successful. TYVM @Jazcash <3

@p2004a
p2004a force-pushed the master branch 2 times, most recently from 9a65e09 to f0ea099 Compare February 1, 2026 16:06
Comment thread src/demo-parser.ts
const { startPositions, factions, colors } = await this.parsePackets(this.bufferStream.read(this.header.demoStreamSize));
const { startPositions, factions, colors, packets} = await this.parsePackets(this.bufferStream.read(this.header.demoStreamSize));

this.packets = packets;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We definitely do not want to aggregate unconditionally all packets in memory. The aggregation must be done on the client side.

Comment thread README.md

`npm run build`

`npx ts-node parse-demo.ts mydemo.sdfz > mydemo.json`

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead, the script should be added to https://docs.npmjs.com/cli/v11/configuring-npm/package-json#bin and then people can use npx to run the parser without forking/installing etc

@p2004a p2004a closed this Jun 1, 2026
@p2004a
p2004a deleted the dumpdemo branch June 1, 2026 19:26
@p2004a

p2004a commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

@Beherith
Beherith restored the dumpdemo branch July 20, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants