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

Crash when interacting with other mods that use kotlinx.serialization because classes are not relocated #61

Open
solonovamax opened this issue Jan 16, 2024 · 0 comments · May be fixed by #62

Comments

@solonovamax
Copy link

Describe the Bug

Due to the fact that kotlinx.serialization version 1.4.1 is shaded into the jar, but not relocated, this causes any mod that is compiled with the latest version of it to crash, as it will attempt to load kotlinx.serialization from create track map rather than, as it should be doing, from fabric language kotlin.

Please make sure to relocate your shaded dependencies, as well as depending on fabric language kotlin rather than shading it.

Reproduction Steps

  1. clone BeaconOverhaulReloaded, build mod from source.
  2. Create a new 1.20.1 minecraft instance with the following mods (I listed the version used, however any newer versions should suffice)
  • Cloth Config 11.1.118
  • Fabric Api 0.91.0+1.20.1
  • Fabric Language Kotlin 1.10.17+kotlin.1.9.22
  • Silk 1.10.1
  • ARRP (Advanced Runtime Resource Pack) 0.8.1
  • Create Fabric 0.5.1-d-build.1161+mc1.20.1
  1. Client successfully launches, so it's not an issue with the mods. Close game.
  2. Add Create Track Map 1.4+mc1.20.1-fabric
  3. Launch game
  4. Crash ""caused by"" beacon overhaul reloaded due to a method that does not exist.

Expected Result

Does not crash

Screenshots and Videos

N/A

Crash Report or Log

https://mclo.gs/1X2r6Sg

Operating System

Arch Linux 6.6.10-zen1-1-zen

CTM Version

1.4

Create Version

0.5.1d

Minecraft Version

1.20.1

Mod Loader

Fabric

Modloader Version

0.15.5

Instance Type

Singleplayer

Other Mods

  • Cloth Config 11.1.118
  • Fabric Api 0.91.0+1.20.1
  • Fabric Language Kotlin 1.10.17+kotlin.1.9.22
  • Silk 1.10.1
  • ARRP (Advanced Runtime Resource Pack) 0.8.1
  • Create Fabric 0.5.1-d-build.1161+mc1.20.1
  • Beacon Overhaul Reloaded, compiled from source

Additional Context

No response

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 a pull request may close this issue.

1 participant