Try to make my script, but right now i do not know what works and what not. i only know it's not playing my sound.
What you normal do is add a few debug print lines.
But how do you do that in sansar and how do you read it ?
Try to make my script, but right now i do not know what works and what not. i only know it's not playing my sound.
What you normal do is add a few debug print lines.
But how do you do that in sansar and how do you read it ?
You could search for my debug library that I posted here.
Though it's dated and probably needs an update due to API changes now.
The gist of it still is good.
Thanks. your api gives the hint. You need to write debiug info to local chat i guess at first look. <facepalm>
https://help.sansar.com/hc/en-us/community/posts/115009638226-My-Debugging-Library
Well there is the Log.Write() too, which can come in handy at times.
But one side effect is it isn't automatically persisted to your disk, so ultimately it's great for collecting info, but really only useful if you do a display of it all in chat so that it persist.
It has one other advantage in that it can register things like users leaving the scene. If you try to chat to them on the leave event, it will get lost :)
I like to tail the sansar log file, anything you Log.write ends up in there and it's easier to see in VR mode, if you leave the tailing console window above the sansar window you can just flip your headset up and see the output.
I use ConEMU in windows and tail -f /path/to/logfile.log