Cool VL Viewer forum
http://sldev.free.fr/forum/

Can't edit scripts
http://sldev.free.fr/forum/viewtopic.php?f=4&t=1366
Page 1 of 1

Author:  Jeeper [ 2014-01-25 15:29:51 ]
Post subject:  Can't edit scripts

I can't save an edited script on OSGrid with version 1.26.10. 1.26.4 works fine. It comes back with The server is experiencing unexpected difficulties. It creates a new script ok, but can not save the script after editing it. Attached is the log.

Attachments:
CoolVLViewer.zip [14.88 KiB]
Downloaded 167 times

Author:  Henri Beauchamp [ 2014-01-25 16:34:39 ]
Post subject:  Re: Can't edit scripts

It may happen that the server fails to receive the script upload (the log indeed shows a server-side error, because of a HTTP transaction failure reported by the server), but it's not under the control of the viewer... I cannot either reproduce the bug here (scripts save just fine for me, either in rezzed objects or in inventory): I suggest you try saving them in another simulator (the sim server could be the issue). You also can retry a failed saved script: simply add a space anywhere and save it again.

Author:  Henri Beauchamp [ 2014-01-25 19:25:55 ]
Post subject:  Re: Can't edit scripts

Update: it seems that OpenSim (not SL) is indeed having issues with scripts saving when the latter are contained inside a rezzed object (working fine when the script is in the inventory). I'm investigating, but since there is no difference in this part of the code between v1.26.4.98 and v1.26.10.8, the problem might be with the newer curl library used in recent viewer versions and an issue with how HTTP transactions are coded in OpenSim...

Author:  Jeeper [ 2014-01-25 22:07:56 ]
Post subject:  Re: Can't edit scripts

Thanks for confirming Henri.

Author:  Henri Beauchamp [ 2014-01-26 11:14:05 ]
Post subject:  Re: Can't edit scripts

I found the bug (introduced in yesterday's releases). It's the result of a BOOL (a BOOL is actually a 32bits integer) that was turned into a bool (a single byte) and that got translated into an LLSD (SL-specific XML-like file) as a Boolean instead of an Integer in the message sent to the server: SL's servers understand both, while OpenSim expects an Integer for that specific message and is clueless when receiving an LLSD message containing a Boolean instead...

The fix will be in next releases. See the attached diff.txt file, if you can't wait and wish to patch and recompile v1.26.10.8 yourself...

Attachments:
diff.txt [2.08 KiB]
Downloaded 170 times

Author:  Jeeper [ 2014-01-26 12:45:01 ]
Post subject:  Re: Can't edit scripts

Thanks Henri. I'll wait for the release.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/