// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Measure coordinate loss through a string roundtrip // Not compiled or tested in-world // Setup: Use a spare owned test object. Move the test object, then touch. // Stop / restore: Disable/remove. Tests report privately and do not change visual prim properties. Any temporary timer stops at completion or timeout. // Notes: Default numeric formatting may lose precision; the harness reports the measured loss instead of requiring bitwise identity. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Runtime verification, not pre-certified behavior. default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; vector original=llGetPos(); string encoded=(string)original; vector restored=(vector)encoded; llOwnerSay("Position text="+encoded+" roundtrip error metres="+(string)llVecDist(original,restored)); } changed(integer flags) { if(flags&CHANGED_OWNER)llResetScript(); } }