<div dir="ltr">The location of the plugindef function is not supposed to matter. Let me see if I can reproduce that here.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 18, 2023 at 8:42 AM Jan Angermüller <<a href="mailto:jan@angermueller.com">jan@angermueller.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Robert,<br>
<br>
thanks for your quick response!<br>
<br>
<blockquote type="cite">
<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">
<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">
<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>
</div>
_______________________________________________<br>
JWLua mailing list<br>
<a href="mailto:JWLua@jwmusic.nu" target="_blank">JWLua@jwmusic.nu</a><br>
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" rel="noreferrer" target="_blank">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br>
</blockquote></div>