-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
mammerla
commented
Dec 16, 2024
- 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"
There was a problem hiding this 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.
app/src/info/PackInfoGenerator.ts
Outdated
info.defaultIcon = infoSet.getFirstStringValue("PACK", 21); | ||
info.defaultBehaviorPackUuid = infoSet.getFirstStringValue(this.id, PackInfoGeneratorTest.behaviorPackUuid); | ||
|
||
info.defaultIcon = infoSet.getFirstStringValue(this.id, 21); |
There was a problem hiding this comment.
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?
app/src/info/PackInfoGenerator.ts
Outdated
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]); |
There was a problem hiding this comment.
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)
app/src/info/PackInfoGenerator.ts
Outdated
PackInfoGeneratorTest.resourcePackDescription | ||
); | ||
|
||
info.subpackCount = infoSet.getFirstNumberValue(this.id, 18); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As above
app/src/info/PackInfoGenerator.ts
Outdated
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); |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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
🎉 This issue has been resolved in version 0.6.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |