Fix some errors reported by Gildas, Lion_Kanzen and Gameboy. Prepare for formation fighting in the attack plans by having a more generic "army" component.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14629 3db68df2-c116-0410-a063-a993310a9797
check version and mods before loading a file, fixes #2361 and #2385.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14630 3db68df2-c116-0410-a063-a993310a9797
add back some lines removed unintentionally by previous tag

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14631 3db68df2-c116-0410-a063-a993310a9797
Fix various bugs. Try to make the AI build its buildings closer together (WIP, and it's brute-force).

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14632 3db68df2-c116-0410-a063-a993310a9797
Let certain formations stay in formation while attacking

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14633 3db68df2-c116-0410-a063-a993310a9797
Fix tests + improve behaviour of attacking when not in formation

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14634 3db68df2-c116-0410-a063-a993310a9797
A bunch of updated portraits. Thinking of going this color-coded route: Blue for citizen-soldiers. Red for champions and heroes. Maybe green for mercenary soldiers.

Tweaked a couple footprints.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14635 3db68df2-c116-0410-a063-a993310a9797
Cavalry Spearmen for Sparta. Gives them a melee cavalry for proper anti-siege.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14636 3db68df2-c116-0410-a063-a993310a9797
Style improvements (thanks Leper).
Fix AI building its buildings closer together by properly moving failed foundations out of the world.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14637 3db68df2-c116-0410-a063-a993310a9797
Use a filter to pick a new attack target in the same turn, while still avoiding an infinite loop

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14638 3db68df2-c116-0410-a063-a993310a9797
Improve some building placement. May improve dropsite usage slightly.
Should fix #1964

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14639 3db68df2-c116-0410-a063-a993310a9797
Removing the AI check for producing un-allowed units. Should be fixed in the AI side with r14639. Refs #1964.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14640 3db68df2-c116-0410-a063-a993310a9797
An addition to r14640, also refs #1964

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14641 3db68df2-c116-0410-a063-a993310a9797
Added greek, arabic and big tents as eyecandy, they will be used in the ptolemaic mercenary camp.
Added Stanislas69's new gaul farmstead with some fixes. (Thanks Stanislas69!)
Added carpet texture fragments to the ptolemaic struct texture

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14642 3db68df2-c116-0410-a063-a993310a9797
Fix typo in the Lake random map script.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14643 3db68df2-c116-0410-a063-a993310a9797
Serialise Cost component since the population bonus is tech-modifiable. Fixes #2399

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14644 3db68df2-c116-0410-a063-a993310a9797
Add vector prototype to vector-like return values from C++ to JS. Fixes #2394.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14645 3db68df2-c116-0410-a063-a993310a9797
Automated build.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14646 3db68df2-c116-0410-a063-a993310a9797
Merge 'remotes/trunk'
commited basic_glow.xml material for self-illumination objects.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@14647 3db68df2-c116-0410-a063-a993310a9797