Unknown Resource Pack for Datapack Visual Duplication
Please confirm the following.
- [x] I checked the existing issues for duplicate problems
- [x] I have tried resolving the issue using the support portal
- [x] I have ensured my Modrinth App installation is up to date
What version of the Modrinth App are you using?
Modrinth App 0.12.6
What operating systems are you seeing the problem on?
Windows
Describe the bug
Certain datapacks require the datapack itself to be duplicated and placed into the resource pack folder for the datapack to work properly. After this is done, the list of projects for the instance will list the file in the resource pack as an unknown file that is a .zip file.
When scrolling through the projects in the pack, if there are enough projects before or after the unknown zip file, it will start to visually duplicate/overwrite the other projects in the list.
When taking their place, you are unable to interact with the project that should be in its place. Trying to use the buttons near the top to limit what types of projects are seen (i.e. Mods, Resource Packs, Shaders) will still have the file visually overwriting what should be there, no matter the category.
After leaving the content tab/page and then returning, the visuals will return to normal, but scrolling again will have the duplicates return. This can also potentially happen when deleting projects out of the instance.
I was not able to replicate with a solo unknown .jar file, but duplicating a jar into the resource pack folder or datapacks folder also resulted in this bug. But it is most likely to be encountered when using a datapack that needs its file copied into the resource pack folder.
I was able to replicate this bug in difference instance types (i.e. fabric, forge)
Steps to reproduce
- Create an instance
- Add content to the instance
- Open the folder of the instance and navigate to a folder that has some of the added content.
- Copy one of the files of content and paste it within a different content holding folder (i.e. mods, datapacks, resourcepacks)
- Return to the modrinth and view the list of projects, finding the copied file listed by it's file name with no creator and an unknown version title.
- Scroll through the list, less projects might require scrolling up and down multiple times and/or faster scrolling.
- Duplicates of the copied file will start to appear in place of other projects in the list.
- Alternatively, if there are enough projects, deleting one can also create more duplicates.
Expected behavior
When scrolling, the unknown project should not start to replace other projects in the list. Scrolling through the full list of projects should allow the user to see all present projects even after scrolling through the list.
Additional context
The amount of content needed depends on the file name of the datapack. There must be a decent amount of projects before and after it in the list. It seems there must be at least 13 projects on one side of the file for there to be enough scroll space to activate. I was able to get the bug to replicate with a project that had 26 total projects, 12 before the unknown file, and 13 projects after. When making it 12 before and 12 after, it no longer occurred. Faster scrolling tended to cause it to happen more frequently, and since it seems to need a certain number of projects to one side, it may be connected to trying to load the rendering of the projects in the list. This has been occurring in multiple modrinth app versions and likely has been since the update from pages to endless scrolling, but I cannot guarantee that is fully the case.
i have this bug too!
Those .rpo files are generated by the Respackopts mod.
fixed