Skip to content

Send only the written bytes of each network packet - #155

Merged
RecursivePineapple merged 2 commits into
GTNewHorizons:masterfrom
JakfutCC:fix-packet-padding
Oct 31, 2026
Merged

RecursivePineapple merged 2 commits into
GTNewHorizons:masterfrom
JakfutCC:fix-packet-padding

Conversation

@Jakfut

@Jakfut Jakfut commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

The network channel now hands FML only the written bytes, as FML's own network wrapper does. Column data also had the zero padding a second time, inside the packet.

@Nikolay-Sitnikov Nikolay-Sitnikov left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

As mentioned in GTNewHorizons/GT5-Unofficial#8596:

You are not using the PR template which all of our PRs are required to use. When you remake this PR in Hodgepodge (or keep it here, if there's a good reason to do so), make sure to use the PR template, read the AI Policy, and check the appropriate boxes.

@Jakfut

Jakfut commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

I agree that its not worth it to fix the 15 or so other mods which have this bug one by one, but this should still be fixed in CC, because by far the most traffic comes from CC, and Hodgepodge can't fix all of it, column packets also store the padded array as their column data, inside the packet, so with only the Hodgepodge fix they're still about 30% zeros.

@Jakfut

Jakfut commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

Checklist

  • I have tested this PR in DevEnv
  • I have tested this PR in Fullpack
  • This PR is in compliance with the GTNH AI Policy
  • This PR requires another PR in order to merge

@RecursivePineapple
RecursivePineapple dismissed Nikolay-Sitnikov’s stale review October 31, 2026 22:38

Template checkboxes were added in a comment

@RecursivePineapple
RecursivePineapple merged commit 97351aa into GTNewHorizons:master Oct 31, 2026
1 check passed
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.

3 participants