Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(val): Remove eslint validator, update dependencies, bug fixes #49

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

mammerla
Copy link
Collaborator

  • Refactor most info generators to use enums for titles
  • Fix some blockbench import issues with 1.8 geometries
  • Init audio files on import
  • Rename add-on validators to "cooperative add-on validators"

- Refactor most info generators to use enums for titles
- Fix some blockbench import issues with 1.8 geometries
- Init audio files on import
- Rename add-on validators to "cooperative add-on validators"
Copy link

@ihfdayton ihfdayton left a comment

Choose a reason for hiding this comment

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

Had a couple questions about some mismatched enum values, otherwise looks good.

info.defaultIcon = infoSet.getFirstStringValue("PACK", 21);
info.defaultBehaviorPackUuid = infoSet.getFirstStringValue(this.id, PackInfoGeneratorTest.behaviorPackUuid);

info.defaultIcon = infoSet.getFirstStringValue(this.id, 21);

Choose a reason for hiding this comment

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

info.defaultIcon = infoSet.getFirstStringValue(this.id, PackInfoGeneratorTest.resourcePackIcon)

instead?

Comment on lines 55 to 60
info.defaultIcon = infoSet.getFirstStringValue(this.id, 22);
}

// because it's heavy, remove pack icon from this list of issues. Though the summarize op is probably
// the wrong place to do this.
infoSet.removeItems("PACK", [21, 22]);

info.defaultBehaviorPackMinEngineVersion = infoSet.getFirstNumberArrayValue("PACK", 1);
info.defaultBehaviorPackName = infoSet.getFirstNumberArrayValue("PACK", 4);
info.defaultBehaviorPackDescription = infoSet.getFirstNumberArrayValue("PACK", 5);
info.defaultResourcePackUuid = infoSet.getFirstStringValue("PACK", 12);
info.defaultResourcePackMinEngineVersion = infoSet.getFirstNumberArrayValue("PACK", 11);
info.defaultResourcePackName = infoSet.getFirstNumberArrayValue("PACK", 14);
info.defaultResourcePackDescription = infoSet.getFirstNumberArrayValue("PACK", 15);

info.subpackCount = infoSet.getFirstNumberValue("PACK", 18);

info.subpackTier1Count = infoSet.getCount("PACK", 41);
info.subpackTier2Count = infoSet.getCount("PACK", 42);
info.subpackTier3Count = infoSet.getCount("PACK", 43);
info.subpackTier4Count = infoSet.getCount("PACK", 44);
infoSet.removeItems(this.id, [21, 22]);

Choose a reason for hiding this comment

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

As above (use enum instead)

PackInfoGeneratorTest.resourcePackDescription
);

info.subpackCount = infoSet.getFirstNumberValue(this.id, 18);

Choose a reason for hiding this comment

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

As above

Comment on lines 84 to 87
info.subpackTier1Count = infoSet.getCount(this.id, 41);
info.subpackTier2Count = infoSet.getCount(this.id, 42);
info.subpackTier3Count = infoSet.getCount(this.id, 43);
info.subpackTier4Count = infoSet.getCount(this.id, 44);

Choose a reason for hiding this comment

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

Any particular reason 41-44 are absent from the enumeration?

info.subchunkLessChunkCount = infoSet.getSummedNumberValue("WORLDDATA", 107);
info.subchunkLessChunkCount = infoSet.getSummedNumberValue(
"WORLDDATA",
WorldDataInfoGeneratorTest.subchunklessChunks

Choose a reason for hiding this comment

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

WorldDataInfoGeneratorTest.subchunklessChunks == 7, whereas before we used 107. Missing value in the enum?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I think this was an error originally in the code (in one place it was 7 and in another it was 107) that converting to enums helped me to catch

new ProjectInfoItem(
InfoItemType.info,
this.id,
WorldDataInfoGeneratorTest.chunks,

Choose a reason for hiding this comment

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

WorldDataInfoGeneratorTest.chunks == 1 whereas before we passed 101. Intentional?

);
items.push(
new ProjectInfoItem(
InfoItemType.info,
this.id,
107,
WorldDataInfoGeneratorTest.subchunklessChunks,

Choose a reason for hiding this comment

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

7 != 107. Intentional?

items.push(
new ProjectInfoItem(
InfoItemType.testCompleteFail,
this.id,
140,
CooperativeAddOnItemRequirementsGeneratorTest.ResourcePackDoesNotHavePackScopeWorld,

Choose a reason for hiding this comment

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

170 now instead of 140. Intentional?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This might have been another case where I had duplicate identifers for two different errors that is now straightened out :)

items.push(
new ProjectInfoItem(
InfoItemType.testCompleteFail,
this.id,
111,
CooperativeAddOnItemRequirementsGeneratorTest.BehaviorAnimationControllerNameNotInExpectedForm,

Choose a reason for hiding this comment

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

I believe this should be BehaviorAnimationNameNotInExpectedForm not BehaviorAnimationControllerNameNotInExpectedForm

@mammerla mammerla merged commit f72263b into main Dec 17, 2024
3 checks passed
@mammerla mammerla deleted the mammerla-val1224a branch December 17, 2024 21:04
Copy link
Contributor

🎉 This issue has been resolved in version 0.6.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants