MaxStudio Posted April 22, 2009 Share Posted April 22, 2009 Is there a limit to how much code can be input into a script? I've written a long code that compiled fine. When I went to run the script I got an output error. When trying to troubleshoot the code I found it cut off my code at line #1866... anyone ever run into this problem? Is this many lines unheard of? Quote Link to comment
Pat Stanford Posted April 22, 2009 Share Posted April 22, 2009 The built in editor has a limit of around 32K. To get around that limit, use the {$INCLUDE} directive to put the code in an external file. See the Vectorscript Language Guide for information on using INCLUDE. Quote Link to comment
MaxStudio Posted April 22, 2009 Author Share Posted April 22, 2009 ok apparently its not a line limit but a character limit... Has anyone dealt with this problem? I know my code can simplified... but "how" is the question... Does anyone know if Returns count as 1 character... do spaces and tabs count as characters as well? Quote Link to comment
MaxStudio Posted April 22, 2009 Author Share Posted April 22, 2009 Hey Pat, I knew that was going to be one of the answers. lol I'll have to tackle that include directive so I can simplify my life. thanks Quote Link to comment
Miguel Barrera Posted April 23, 2009 Share Posted April 23, 2009 It seems that it may be a combination of code length and number of parameters. I hit the wall on a 257K plug-in with 80+ parameters. After typing a few lines of code, the script editor would not take anymore of the input. On the other hand, I have another script with 273K of code and less than half parameters and did not have problems compiling it. I have a Windows system, so the limit may also be different on the Mac. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.