Skip to content

Fix _create-energy inserting a object with a numeric id#146

Merged
o4kapuk merged 1 commit intoscreeps:masterfrom
tiennou:fix/history-id-break
Mar 1, 2026
Merged

Fix _create-energy inserting a object with a numeric id#146
o4kapuk merged 1 commit intoscreeps:masterfrom
tiennou:fix/history-id-break

Conversation

@tiennou
Copy link
Copy Markdown
Contributor

@tiennou tiennou commented Nov 3, 2025

This causes issues later in the client when viewing history, as that id can never match with the for…in stringified key when unrolling the packed history chunk, leading to stray objects saying alive until the next chunk is loaded.

@tiennou tiennou force-pushed the fix/history-id-break branch from 3c305c9 to bc9d66c Compare November 3, 2025 15:27
CarsonBurke pushed a commit to screepers/steamless-client that referenced this pull request Nov 3, 2025
This fixes a bug with resource piles having the server use the
"bulk insert counter" as an id, which makes the `_.find()` check miss
them when the "object should be removed"/`null` gets processed in the
same chunk.

Based on #48.

Ref: screeps/engine#146
This causes issues later in the client when viewing history, as that id
can never match with the for…in stringified key when unrolling the
packed history chunk, leading to stray objects saying alive until the
next chunk is loaded.
@tiennou tiennou force-pushed the fix/history-id-break branch from bc9d66c to c2c4ad9 Compare February 24, 2026 23:12
@o4kapuk o4kapuk merged commit e2515a4 into screeps:master Mar 1, 2026
@tiennou tiennou deleted the fix/history-id-break branch March 1, 2026 14:06
@tiennou
Copy link
Copy Markdown
Contributor Author

tiennou commented Mar 1, 2026

Nice, thanks!

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