Page 5 of 6
Posted: Tue May 20, 2008 8:55 pm
Another question... I hope I am not getting annoying.
When reading through some threads I get the idea that there is a limit to the length of a script. How many lines is the maximum? Do blank lines count? I ask cause on my new script I have over 1800 lines (including blank lines) and can easily go much higher. I just want to know how much more room I have to play with.
Posted: Tue May 20, 2008 9:04 pm
I have no real clue about that, my biggest scripts are around 2000 lines. If you're using ScAIEdit there seems to be a size limitation, you will probably get some weird error messages when compiling once you reach that limit.
For PyAI Edit, the limit seems to be quite higher and the use of external scripts can help, bajadulce had some issues when making Entropy2, I don't know if it was a size limitation problem. He was able to put together 5 scripts for a race using external scripts.
Posted: Wed May 21, 2008 5:02 pm
Thanks baja! My newest script is at 2029 lines and counting with no problems while compiling. If I do hit the ceiling, I will tell you what it is... I am using ScAIEdit.
Posted: Mon May 26, 2008 1:51 pm
Posted: Mon May 26, 2008 6:23 pm
Posted: Tue May 27, 2008 1:41 pm
Putting the kill_thread after the send_suicide 0 would have the same problems as my original question. The only difference would be that it would be able to run the send_suicide command before the thread is killed (both the end_suicide_loop and the train_units thread). Since it is killing the end_suicide_loop, it will never get to the goto end_suicide_loop and the AI will never do another suicide. This is what I can tell.
I have not yet had the opportunity to test my revision, but I will try to find some time tonight.
Thanks for your input.
Posted: Wed May 28, 2008 1:57 pm