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

[Bug]: Interaction between PMMO and AML causes crash #390

Closed
ElasticKnife opened this issue May 11, 2023 · 5 comments
Closed

[Bug]: Interaction between PMMO and AML causes crash #390

ElasticKnife opened this issue May 11, 2023 · 5 comments
Labels
bug Something isn't working compatibility Involves other mods stale

Comments

@ElasticKnife
Copy link

ElasticKnife commented May 11, 2023

Describe the bug

I was fiddling around in the glossary from the Project MMO mod, setting filters for something and the game crashed. There's a chance this could be on their end too, but from the logs it looked like a small issue with Ars Magica.

Steps to Reproduce

  1. Play a world with both PMMO and Ars Magica Legacy.
  2. Hit P (by default) and click open glossary in the top right corner.
  3. The specific categories I filtered for were Requirement, Items, Mining, Use as Tool.
  4. When clicking View Info, the game crashed.

Expected behavior

I'm not quite sure as I have not played around much with PMMO, but I would think some sort of list telling me the level requirements for all the different available mining tools.

Screenshots

2023-05-11_10 09 54
2023-05-11_10 10 14

Version

1.18.2-1.2.4

Forge Version

40.2.2

Other Mods

pmmo-1.18.2-6.4.0

Log

https://bytebin.lucko.me/HloygEs5ll

@ElasticKnife ElasticKnife added the bug Something isn't working label May 11, 2023
@IchHabeHunger54 IchHabeHunger54 added the compatibility Involves other mods label May 11, 2023
@IchHabeHunger54
Copy link
Contributor

This looks like it's related to a display bug with infinity orbs.

This is only solvable for us to a limited extent: we can, of course, make infinity orbs fallback to a default color instead of crashing; however this will not display the items correctly. The correct display of item subtypes would have to be done on their end. So you might want to report it to them too; feel free to link them here.

We will, however, take care of the crash and add the fallback.

@Caltinor
Copy link

If I understand this bug correctly, the Infinity Orb Item requires some NBT data to display properly, but that data is not present when the user experiences the crash.

In the menu shown above where the crash occurs, the menu grabs all items from the ForgeRegistries and then uses a default instance of that object for itemstack rendering. I would expect if all assumptions are true that any mod grabbing this item from the registry and attempting to render it would have this same crash.

If all assumptions are true, i think a fallback is the right approach. I am open to catches on the pmmo side if that is necessary as well.

@IchHabeHunger54
Copy link
Contributor

For proper display, the PMMO side would probably need to add item stack variants support, similar to what JEI or the creative menu does for things like potions. Otherwise, only the default (unusable) version of the item would appear. Which might not be a big issue, but still notable.

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove the stale label or comment on this issue to dismiss the stale status or this issue will be closed in 7 days.

@github-actions github-actions bot added the stale label Jul 11, 2023
@github-actions
Copy link

This issue was closed because it has been stale for 7 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compatibility Involves other mods stale
Projects
None yet
Development

No branches or pull requests

3 participants