Functions from image.lua disappearing
I override a few functions in image.lua in my token height extension (https://www.fantasygrounds.com/forum...ight-Indicator). Everything typically works just fine, but a couple of users have found that the functions that I don't override "disappear" at some point into their session (even when not changing maps). By "disappear", I mean a call in my extension to getGridSide() starts becoming a nil value and a call to onDrop() outside of my extension becomes a nil value.
Not sure if this is relevant, but a few builds ago I changed the overriding in extension.xml from
Code:
<windowclass name="imagewindow" merge="join">
<sheetdata>
<image_record name="image">
<script file="campaign/scripts/image.lua" />
</image_record>
</sheetdata>
</windowclass>
to
Code:
<template name="image_record_step">
<imagecontrol name="image" merge="join">
<script file="campaign/scripts/image.lua" />
</imagecontrol>
</template>
I didn't have any such error reports before that switch or for a couple builds after it, but can't think of what else it would be. The change was made because making the map full screen/"sending to background" would revert to the original image.lua for some reason.