Page 1 of 1

Locked Scene in V4.0.0

Posted: 13 Feb 2023, 14:44
by Muna
According to your manual, scripts would be protected from view and modification once the scene is locked. When I tested a locked scene in Coppilasim V4.3.0, it worked fine and I wasn't able to view the script. However, on V4.0.0 (both Pro and Player)I was able to view the script of the same scene. Moreover I was able to copy it to my clipboard. Is this a bug or am I doing somthing worng?

Re: Locked Scene in V4.0.0

Posted: 14 Feb 2023, 15:18
by coppelia
Hello,

you are right. Unfortunately there is that bug in CoppeliaSim V4.0 and V4.1. The bug only relates to scripts being viewable, but the scene is still locked (i.e. copy/past and save do not work).
One workaround would be to compile your code into bytecode via luac, then use the bytecode instead of the code, which is not really visible.

Cheers

Re: Locked Scene in V4.0.0

Posted: 23 Feb 2023, 05:19
by Muna
Hello, thanks for your answer, but that is not really a work around since binary lua can be easily decrypted.. but let's say I used a customization script like in here https://forum.coppeliarobotics.com/viewtopic.php?t=4571 can I also disable lua commander and disable SetBooleanParameter that would undo my settings even from within another script without any workarounds? i.e is there a solid away to protect scripts inside the scene without workarounds to unprotect them?

Re: Locked Scene in V4.0.0

Posted: 24 Feb 2023, 14:29
by coppelia
In general you will often find workarounds to decode/decrypt something. I am sure that also by inspecting the application memory, you'd be able to see the Lua bytecode of the scripts...

What application exactly do you have in mind?

Cheers