<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Robert,<br>
<br>
thanks for your quick response!<br>
<br>
<blockquote type="cite"
cite="mid:CAACncevbAe3TZ54io28GaRWaGnBkmXnaik2JbSv4cLn6Y+AS5Q@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<ul>
<li> Is it possible you requested the embedded version in the
wrong `plugindef` function? <br>
</li>
</ul>
</div>
</blockquote>
Solved it! <br>
The problem had indeed to do with the plugindef function. <br>
<br>
The plugindef function was only recognized correctly by RGP Lua when
it was at the very top of the plug-in code.<br>
<br>
Usually the plugindef is not at the top of the (uncompiled) version
of Perfect Layout. <br>
But when I moved it to the very first line of the code, it worked.<br>
Is this the expected behaviour in RGP Lua?<br>
<br>
As the compiled version of Perfect Layout works different (with a
second file that requires the main plug-in code), it is probably
different there. <br>
But I haven't checked a compiled Perfect Layout version with 5.4
yet. I assume it will work though.<br>
<br>
<br>
<br>
<blockquote type="cite"
cite="mid:CAACncevbAe3TZ54io28GaRWaGnBkmXnaik2JbSv4cLn6Y+AS5Q@mail.gmail.com">
<div dir="ltr">
<ul>
<li>That's weird about ZeroBraneStudio. I've been using it
interchangeably between 5.2 and 5.4 without issues. Maybe
mine was a newer installation. <br>
</li>
</ul>
</div>
</blockquote>
Could be that your installation was newer. I didn't reinstall
ZeroBraneStudio.<br>
<br>
<blockquote type="cite"
cite="mid:CAACncevbAe3TZ54io28GaRWaGnBkmXnaik2JbSv4cLn6Y+AS5Q@mail.gmail.com">
<div dir="ltr">
<ul>
<li>Should I investigate the `tonumber` issue? </li>
</ul>
</div>
</blockquote>
Any other opinions? <br>
I rarely use it and it was only one line in the code that had the
problem.<br>
<br>
I'll run more tests with my test suite later.<br>
<br>
Jan<br>
</body>
</html>