Determine if item_prototypes attribute is a pointer?
Posted: Fri Mar 10, 2023 1:46 pm
Is there a way to determine if an attribute in game.item_prototypes is a pointer rather than a static property?
With all Bob's mods loaded, I notice the following endless recursion using the Global Variable Viewer mod:

With all Bob's mods loaded, I notice the following endless recursion using the Global Variable Viewer mod:
Code: Select all
game.item_prototypes.diamond-5
.group.localised_name = "item-group-name.bob-gems"
.subgroup.group.localised_name = "item-group-name.bob-gems"
[....]
.subgroup.group.subgroups.[1].group.subgroups.[1].group.localised_name = "item-group-name.bob-gems"
