MCModderAnchor / TACZ

128 stars 25 forks source link

The game crashes when i add scope to any gun but it's not a case for other extensions like extended mag , grip ,muzzle ,elc #232

Open Tsuraj56 opened 2 months ago

Tsuraj56 commented 2 months ago

Dear TACZ Mod Developer,

I hope this message finds you well. I am experiencing a rendering issue specifically with scope attachments while using the TACZ mod (version 1.0.2-hotfix3) on my Android device through PojavLauncher (which emulates Minecraft’s Fabric environment). I am running Minecraft version 1.20.1 with Fabric Loader 0.15.11.

Log file

latestlog.txt

Key Issue: Scope Attachment Rendering

While testing various attachments, I found that scope attachments cause rendering issues. These issues seem related to:

latestlog.txt

com.tacz.guns.client.renderer.item.AttachmentItemRenderer.renderDefaultAttachment

latestlog.txt

The rendering errors are specific to scopes. Other types of attachments (such as grips, magazines, and barrels) work fine and do not exhibit any issues. I believe the problem may arise when attempting to render the scopes on-screen, as they trigger visual glitches or fail to render correctly.

Here is a related log entry:

com.tacz.guns.util.RenderHelper.enableItemEntityStencilTest

OpenGL Compatibility Considerations

Since I am using PojavLauncher on an Android device, this may also be contributing to the problem. PojavLauncher utilizes an OpenGL ES 2.1 wrapper (gl4es) that attempts to map desktop OpenGL functionality to mobile hardware, which sometimes causes compatibility problems. A warning in my log suggests this:

It appears that PojavLauncher is being used with an OpenGL compatibility layer. This will likely cause severe performance issues, graphical issues, and crashes when used with Sodium.

While the mod works well for other attachment types, scope rendering seems to be the primary issue.

Environment Details

Mods i used (Sodium and Elite x Quality Guns mods are not problem here in this case)

apocalypse-1.1.1_1.20.1-1.20.2 apocalypsedrops-1.0.0-1.20 architectury-9.2.14-fabric BadOptimizations-2.1.4-1.20.1 balm-fabric-1.20.1-7.3.9 bulletproofenchant-1.0-1.20.1 cardinal-components-api-5.2.2 citresewn-1.1.5+1.20.1 collective-1.20.1-7.84 contagion-1.4.1-1.20 Corgilib-Fabric-1.20.1-4.0.3.2 coroutil-fabric-1.20.1-1.3.7 cullleaves-fabric-3.2.0 Elite x Quality Guns Fabric v1.2 - 1.20.1 Enhanced-Celestials-Fabric-1.20.1-5.0.1.0 entityculling-fabric-1.6.6-mc1.20.1 fabric-api-0.92.2+1.20.1 fabric-carpet-1.20-1.4.112+v230608 fabric-language-kotlin-1.11.0+kotlin.2.0.0 Falling Tree-1.20.1-4.3.4 fastitems-1.0.0-mc1.20.1 ForgeConfigAPIPort-v8.0.0-1.20.1-Fabric gravestones-v1.15 ImmediatelyFast-Fabric-1.2.18+1.20.4 indium-1.0.31+mc1.20.4 krypton-0.2.3 letmedespawn-fabric-1.20.x-1.2.1 mixintrace-1.1.1+1.17 mobsunscreen-fabric-1.20.1-3.1.1 modmenu-7.2.2 moreculling-1.20.4-0.24.0 morezombievillagers-1.20.1-3.6 Mo'ZombiesWave-1.20.1-0.1.0-fabric noisium-fabric-2.3.0+mc1.20-1.20.1 porting_lib-2.3.4+1.20.1 RailOptimization-1.20(.1)-1.0 reeses_sodium_options-1.7.2+mc1.20.1-build.101 sodium-extra-0.5.4+mc1.20.1-build.115 sodium-fabric-0.5.8+mc1.20.1-con-edit tacz-fabric-1.20.1-1.0.2-hotfix3 trashslot-fabric-1.20-15.1.0 travelersbackpack-fabric-1.20.1-9.1.16 YetAnotherConfigLib-3.5.0+1.20.1-fabric zombieawareness-fabric-1.20.1-1.13.1 Zombie-Horsemen-v1 zombies_plus-2.0.5-1.20-.4(excl.3)-[forge-fabric] zombievillagersfromspawner-1.20.1-3.9 Zoomify-2.14.0+1.20.1

To reproduce the issue

Conclusion

I would be very grateful if you guys can give any me assistance regarding the scope attachment rendering issue, as other attachments work perfectly without causing any problems. Any recommendations or updates to improve compatibility, especially with OpenGL ES on mobile platforms, would be extremely helpful. And finally thank you guts for your time and hard work on the TACZ mod. I really like your mod I think it is THE greatest gun mod in fabric and I am looking forward to your insights!

Best regards,
T.suraj A PojavLauncher User

xjqsh commented 1 month ago

Unfortunately, we don't have the energy and ability to solve the rendering-related problems of the mobile java launcher, at least not in the short term...