Jump to content
Sign in to follow this  
Wandering Soulstar

HELP - Unable to Paste Code???

Recommended Posts

Hi All,

Is anyone having any problems at the moment pasting text(code) into SL??

I had been working all day on an update to a module offline in my code editor, and then came inworld to do some testing. But when I tried to paste the code into a script it would not paste everything. Sometimes it was stopping half way through a line, sometimes not, but consistently not able to paste everything. Tried in a notecard and same problem. The code being pasted is under 2k lines (whitespace & comments included) and actually fewer lines than code that I brought inworld yesterday.

Never come across this before ....

Wanda

Share this post


Link to post
Share on other sites

I haven't had any trouble like that.  I'm using Second Life 4.0.1 (310054) Jan 14 2016.  I hear that one of the recent releases (maybe 4.0.2.311302 ?) had a lot of bugs in it. If you haven't installed the debugged version that was released Tuesday (4.0.2.311378), give it a try.

Share this post


Link to post
Share on other sites

and the answer is ... yes:

Maximum script source code size - 65536 single byte characters (that's a viewer limit and can be changed in the config file 'panel_script_ed.xml').

And I have passed the number of characters .. seems it does include comments in the count ... now if I could only find where (if) Singularity has this setting.

Share this post


Link to post
Share on other sites

Hmm.. Singularity is a bit obsolete by now, so I'm not sure how well it is tuned to changes that have been made in the main SL viewer since the last time it was upgraded a year ago.  Give it a try, though.  For the current SL viewer, the file you're looking for is stored on my machine in C:/ProgramFiles (x86)/SecondLifeViewer/skins/default/xui/en/panel_script_ed.xml .  The relevant part of that file on my machine says

<script_editor
left="0"
type="string"
length="1"
follows="left|top|right|bottom"
font="Monospace"
height="376"
ignore_tab="false"
layout="topleft"
max_length="262144"  <<<--- That's the number to change, if you can.  Clearly I have a higher limit in the SL viewer than 65536.  Maybe that's why I haven't hit the limit.

Share this post


Link to post
Share on other sites

Thanks Rolig .. yes .. not sure where Singularity stores the value as there is no file of that name for that viewer install ... in any case need to trim down my code as I am over memory as well <sigh>

Share this post


Link to post
Share on other sites

Assuming it's a windows machine, the file location will probably be similar to the one Rolig posted, only substitute Singularity for SecondLifeViewer.

So use Windows Explorer to open C:\Program Files(x86) and then look for the Singularity folder.   Open that, and then find the skins folder and drill down from there.

ETA:  If and when you find the file, be aware that if you try to open it using Open on the Windows Explorer menu or by double-clicking it, Windows will probably open it using Internet Explorer, which isn't what you want if you're going to edit it.

So use the Windows Explorer Open With menu command, and open it with Notepad or something similar.

Share this post


Link to post
Share on other sites

I copy/paste all of my scripts since I always edit them external. Never hit the 64k limit in all the years. Didn't even know there is one.

When using obsolete viewers, always install the LL viewer additionally and use that to verify problems.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...