Closed
Description
Distribution
Linux x64 APT package
Bug description
When compiling a pack that contains Shaders from objmc (https://github.com/Godlander/objmc), I've been getting errors from Shaders that work correctly within Minecraft. Seems like they cannot be parsed but are correctly formatted.
Output:
PackSquash v0.3.1-8-g349eaf0 (release, 2022-04-14) for x86_64-unknown-linux-gnu
Minecraft resource and data pack optimizer (CLI)
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. Use the -v command line switch for
more details about these conditions.
- Reading options from file.toml...
- Options read. Processing pack...
- Working around automatically detected Minecraft quirks: bad_entity_eye_layer_texture_transparency_blending
! assets/minecraft/shaders/include/objmc_light.glsl: Shader parse error: error: 0: at line 5:
if (isCustom == 0) {color *= vertexColor;}
^
expected ';', found i
1: at line 5, in Alt:
if (isCustom == 0) {color *= vertexColor;}
^
2: at line 1, in Many1:
//objmc
^
! assets/minecraft/shaders/include/objmc_main.glsl: Shader parse error: error: 0: at line 4:
isCustom = 0;
^
expected ';', found i
1: at line 4, in Alt:
isCustom = 0;
^
2: at line 1, in Many1:
//objmc
^
! assets/minecraft/shaders/core/render/block.vsh: Shader parse error: error: 0: at line 43:
#define BLOCK
^
expected '}', found #
! assets/minecraft/shaders/core/render/entity_overlay.vsh: Shader parse error: error: 0: at line 52:
#define ENTITY
^
expected '}', found #
! assets/minecraft/shaders/core/render/entity.fsh: Shader parse error: error: 0: at line 36:
#define ENTITY
^
expected '}', found #
> assets/minecraft/shaders/include/fog.glsl: Minified
> assets/minecraft/shaders/core/rendertype_cutout.json: Minified
> assets/minecraft/textures/block/outworld.png: Optimized with 100% quality color quantization
> assets/minecraft/textures/block/outgui.png: Barely optimized. If not optimized externally, try tweaking options for extra savings
! assets/minecraft/shaders/core/render/entity.vsh: Shader parse error: error: 0: at line 50:
#define ENTITY
^
expected '}', found #
> assets/minecraft/shaders/core/rendertype_translucent.json: Minified
> assets/minecraft/textures/block/outhand.png: Optimized with 100% quality color quantization
> assets/minecraft/shaders/core/rendertype_item_entity_translucent_cull.json: Minified
> assets/minecraft/shaders/include/objmc_tools.glsl: Minified
> assets/minecraft/shaders/core/rendertype_solid.json: Minified
> assets/minecraft/textures/block/shuba.png: Optimized with 93% quality color quantization
> assets/minecraft/textures/block/cube.png: Optimized with 97% quality color quantization
! Pack processing error: An error occurred while processing a pack file
Another error message with more information was emitted before. You might need to scroll up to see it.
These troubleshooting instructions might be useful: <https://packsquash.page.link/Troubleshooting-pack-processing-errors>
Reproduction steps
- Download the following folder from objmc (the resource pack example): https://github.com/Godlander/objmc/tree/main/objmc
- Use the pack squash command on the downloaded folder with the basic config file:
pack_directory = 'PATH_TO_PACK'
output_file_path = 'PATH_OUTPUT'
zip_spec_conformance_level = 'disregard'
Expected behavior
The pack should compile normally
Attached files
No response
Additional context
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done