Hey TM,
I've been playing with a handful of your file system based scripts lately, and think I noticed an issue across a few of them.
With the stuff you added for allowing "call" or "gosub" I think there is a mismatch in same variable names:
if !TM_FunctionCalled = #TRUE ; successfully called function.
exit
if %0 = N/A
display ok You may not run this script directly.
else
display ok Function " , %1 , " not found.
stop
However, at the end of all the subs:
sub TM_NGFS_GetFSIndexVal
namespace push
namespace local TM_NGFS , _ , %1
set #RESULT *TM_FS . %1
namespace pop
set !TM_Function_found #TRUE
return #RESULT
TM_Function_found =/= TM_FunctionCalled
It's a simple enough fix I think, unless I'm missing some reason for them being different.
EDIT: As a second note - though I'm not sure if will accomplish anything, it seems that subsequent calls to this and the AFS both cause client crashes. It could be the way I'm using them but them seem to work fine 90% of the time. Often times when "loading" in either case it will just crash the UO client to desktop... it seems weird
I love the concept, the viewer is really nice and I have some ideas I'd love to implement using these features but having a hard time debugging the crashes