Skip to content

nvcc fails on desert pyramid bone constraint (1.17.1) #50

Description

@Epicer12

nvcc fails on desert pyramid bone constraint (1.17.1)

Trying to find loot seeds for desert pyramid chests with 56 bones on 1.17.1. Built Lootinator on Colab, CLI runs fine but the generated .cu won't compile.

Loot table: https://mcasset.cloud/1.17.1/data/minecraft/loot_tables/chests/desert_pyramid.json

Constraints:

[{"item":"minecraft:bone","range":{"min":56,"max":56},"slot":0}]

Command:

./lootinator-cli --loot-table desert_pyramid.json --constraints bones56.json -v 1.17.1 -o bones56.cu -so loot_seeds.txt
nvcc -O3 bones56.cu -o bones56_search

Error:

bones56.cu(222): error: expected an expression
  = calculated_count;
bones56.cu(238): error: expected an expression
 if (!( == 56)) return;

Looks like the variable name before = is missing in the generated code. Same thing with and without -sc.

Bone shows up in both pools in that loot table — might be why? Not sure if that's related.

Use case: seedfinding high bone count desert pyramid chests in Java 1.17.1.

Maybe related to #32 but that was a different error (item_count undefined).


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions