After fixing other bugs, I suddenly get this error:
Code:
Error org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
General error during class generation: Method code too large!
at org.objectweb.asm.MethodWriter.a(Unknown Source)
at org.objectweb.asm.ClassWriter.toByteArray(Unknown Source)
at org.codehaus.groovy.control.CompilationUnit$14.call(CompilationUnit.java:788)
at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1027)
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:564)
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:542)
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:519)
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:279)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:258)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:244)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:202)
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:212)
at ss.EditorFrame.threadedTest(EditorFrame.java:878)
at ss.EditorFrame.access$22(EditorFrame.java:870)
at ss.EditorFrame$32.run(EditorFrame.java:849)
1 error
... but since it doesn't tell me where the error originates, I have no idea how to fix it (or even if this is a program glitch, not a script one). Surely it doesn't mean the SCRIPT FILE is too large, does it? It's only 102kb! If that's SexScripts' (or Groovy's) hardcoded size limit for scripts, that's a MAJOR problem that needs solving.
However, I tried a previous version of the script (96kb) and it ran fine. So I whittled my new version down to 94kb... same error! Leading me to think that it can't be a file size issue, since the larger (old) version runs and the newer one doesn't.... meaning an error in my additions to the script! But how do I find the error with no further information?
I tried splitting the script into three files, in case it WAS a size problem... but of course then the script doesn't work because values aren't carried across from one script to the other (right?)... and with more than 45 of them needing to be set at the start of the script, that's a LOT to try and convert and store in data.properties before each segment loads!!!