Ballara's Cookbook: wrong type names in StockEffectFilter.lua
Mod: Ballara's Cookbook (CurseForge ID 1796932, RecipeHolder_5443B5F4)
What happens
The game's Lua check reports an error for this mod:
> Lua Script Error
* Lua diagnostic error: Type 'UAB1FXAnchorActor' is accessed via INZOI but is not in cpp_global_table.json.
Why
lua/B1/RecipeHolder/StockEffectFilter.lua uses two type names that do not exist:
scan(inzoi.UAB1FXAnchorActor, function(a) add(a.BoundNiagaraComponent) end)
scan(inzoi.UAB1NiagaraActor, function(a)
each(a:K2_GetComponentsByClass(UE.USceneComponent), add)
end)
The real class names are AB1FXAnchorActor and AB1NiagaraActor, with no leading U. The check reports only the first error, but line 54 (UAB1NiagaraActor) has the same problem.
Earlier ModKit Lua type definitions listed these classes with an extra U by mistake, so autocomplete suggested the wrong names and the check accepted them. That has been fixed, and the check now reports the wrong names.
This code never worked in game. inzoi.UAB1FXAnchorActor and inzoi.UAB1NiagaraActor have always returned nil at runtime. Your if not class then return end guard skipped the scan quietly, so there was no error, but effects on these two actor types were never collected or hidden.
How to fix
Rename the two types in StockEffectFilter.lua:
scan(inzoi.AB1FXAnchorActor, function(a) add(a.BoundNiagaraComponent) end)
scan(inzoi.AB1NiagaraActor, function(a)
each(a:K2_GetComponentsByClass(UE.USceneComponent), add)
end)
Check for the same pattern elsewhere in your mod. Any inzoi.UA... name should be inzoi.A....
After the fix, these scans will actually find actors for the first time, so test the prep surface in game:
- Ingredient effects near the casserole prep surface are hidden as intended.
- Effects outside that area are not affected.
- Effects are restored when the Zoi leaves.