Kryose's AI question(s) - ongoing

Help - Resources - AI Scripting - Grafting - Plugins - Modding Projects
Kryose
Posts: 49
Joined: Fri Apr 25, 2008 4:26 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby Kryose » 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.

Thanks,
Kryose
User avatar
ashara
Posts: 170
Joined: Wed Feb 06, 2008 11:12 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby ashara » 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.
Kryose
Posts: 49
Joined: Fri Apr 25, 2008 4:26 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby Kryose » 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.
Kryose
Posts: 49
Joined: Fri Apr 25, 2008 4:26 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby Kryose » Mon May 26, 2008 1:51 pm

Kryose
Posts: 49
Joined: Fri Apr 25, 2008 4:26 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby Kryose » Mon May 26, 2008 6:23 pm

Kryose
Posts: 49
Joined: Fri Apr 25, 2008 4:26 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby Kryose » 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.
Kryose
Posts: 49
Joined: Fri Apr 25, 2008 4:26 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Postby Kryose » Wed May 28, 2008 1:57 pm


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “StarCraft Modding”

Who is online

Users browsing this forum: No registered users and 0 guests