Skip to content

Conversation

@NgLoader
Copy link
Member

@NgLoader NgLoader commented Jun 18, 2025

The binary storage system has been migrated to a JSON-based format.

Description

The previous binary storage format has been replaced with a new JSON format.
Additionally, the file names now end with .json, making it possible to detect whether a file is in binary or JSON format.
A "Convert All" command was also implemented, allowing users to convert all backpacks at once.
Version support for 1.21.6 has also been added.

Related Issue

#41 Can't open backpack anymore
#3 Linking multiply Items at the same time

How Has This Been Tested?

  • 1.19 R1 Spigot & Paper
  • 1.19.3 R2 Spigot & Paper
  • 1.19.4 R3 Spigot & Paper
  • 1.20.1 R1 Spigot & Paper
  • 1.20.2 R2 Spigot & Paper
  • 1.20.4 R3 Spigot & Paper
  • 1.20.6 R4 Spigot & Paper
  • 1.21.1 R1 Spigot & Paper
  • 1.21.3 R2 Spigot & Paper
  • 1.21.4 R3 Spigot & Paper
  • 1.21.5 R4 Spigot & Paper
  • 1.21.6 R5 Spigot & Paper

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

feat: convert nbt into readable json binary
Copilot AI review requested due to automatic review settings June 18, 2025 23:31

This comment was marked as outdated.

@NgLoader NgLoader self-assigned this Jun 18, 2025
@NgLoader NgLoader force-pushed the feat-support-1_21_6 branch from 0698476 to 2f64594 Compare June 18, 2025 23:45
@NgLoader NgLoader marked this pull request as draft June 18, 2025 23:53
NgLoader added 3 commits June 19, 2025 02:17
feat: added migrate command for converting all existing backpacks at once
fix: giveUnsueableContent is now saving after the payer recived there items
@NgLoader NgLoader marked this pull request as ready for review June 22, 2025 03:06
@NgLoader NgLoader linked an issue Jun 22, 2025 that may be closed by this pull request
@NgLoader NgLoader requested a review from Copilot June 22, 2025 03:17
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request implements support for version 1.21.6 by converting the existing binary backpack storage into a JSON format. Key changes include updating resource and language configuration files to reflect the new JSON-based storage and migration commands, overhauling data conversion methods in various classes (such as NmsManager implementations and Backpack-related classes), and adding new dependencies & build scripts to support version 1.21.6.

Reviewed Changes

Copilot reviewed 41 out of 41 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
zip-plugin/src/main/resources/lang/en_US.yml Added new migration-related messages with a few spelling inconsistencies.
zip-plugin/src/main/java/net/imprex/zip/util/AbstractHttpService.java Updated JSON-based HTTP response parsing; potential bug in InputStreamReader usage.
zip-plugin/src/main/java/net/imprex/zip/… (multiple files) Replaced binary serialization methods with JSON conversion approaches across backpack migration and storage.
zip-nms (various versions) Overhauled itemstack conversion methods and updated logging messages; added version 1.21.6 support.
.github/workflows/buildtools.sh Added build support for version 1.21.6.
Comments suppressed due to low confidence (1)

zip-nms/zip-nms-v1_21_R5/src/main/java/net/imprex/zip/nms/v1_21_R5/ZipNmsManager.java:147

  • Fix the spelling errors in the log message: 'shoudt' should be 'should' and 'manuel' should be 'manually'.
				// something went wrong !? maybe user modified it him self

@NgLoader NgLoader changed the title Feat support 1.21.6 Feat support 1.21.6 and change to JSON format Jun 22, 2025
@NgLoader NgLoader linked an issue Jun 22, 2025 that may be closed by this pull request
@NgLoader NgLoader merged commit 9121bc4 into master Jun 22, 2025
1 check passed
@NgLoader NgLoader deleted the feat-support-1_21_6 branch June 22, 2025 18:06
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.

1.21.6 Support Linking multiply Items at the same

2 participants