still more fixes on ai serialization + some cleanings

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

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15955 3db68df2-c116-0410-a063-a993310a9797
Slightly improve fogging performance by avoiding the constant deletion/re-creation of mirages.
This makes the simulation update faster per entity but also makes the number of entities greater at a given moment. The performance gain is positive.

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

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

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15958 3db68df2-c116-0410-a063-a993310a9797
Clean up JSON parsing code. Refs #1374.
Fix Engine.ReadJSONFile() which did throw a JS exception that was not caught. Discovered by s0600204.
Expose Engine.ReadJSONFile() to the gui scripts.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15959 3db68df2-c116-0410-a063-a993310a9797
GUI cleanup.
Remove toTitleCase(). Unify iColorToString() and rgbToGuiColor().
Translate XMPP errors (displayed when connecting).

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15960 3db68df2-c116-0410-a063-a993310a9797
Split ScriptRuntime and ScriptInterface code to separate files.

The runtime is becoming more and more important in the JSAPI. As a result, we also have more functionality on the runtime level and having the whole ScriptRuntime class hidden in ScriptInterface.cpp doesn't make sense anymore. ScriptInterface.cpp also has become quite a large file and pulling out the runtime part makes it a bit smaller.

Refs #2462 


git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15961 3db68df2-c116-0410-a063-a993310a9797
prevent events from the first turn after deserialization to be thrown away

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15962 3db68df2-c116-0410-a063-a993310a9797
Fix mirages not flushed properly, introduced in r15956.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15963 3db68df2-c116-0410-a063-a993310a9797
Fixes build errors on Windows introduced in r15961 and r15960.


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

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15965 3db68df2-c116-0410-a063-a993310a9797
Amend the "Reveal All" behavior by always hiding mirages.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15966 3db68df2-c116-0410-a063-a993310a9797
Merge 'remotes/trunk'
Parse terrain properties without CParser. Refs #2589.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15967 3db68df2-c116-0410-a063-a993310a9797
Check for availability of XmppClient.
Move Lobby script function registration to the lobby JS interface.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15968 3db68df2-c116-0410-a063-a993310a9797
Change GUI tag parsing to use a FSM instead of using CParser. Refs #2589.

Parameters now have to be quoted with ".
Supports " in parameters by escaping them with \.
Tag start characters can be included in normal text by escaping them with \.
Better error handling and a error messages to help with fixing invalid/malformed strings.

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15969 3db68df2-c116-0410-a063-a993310a9797
Update tools/LICENSE.txt

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

git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@15971 3db68df2-c116-0410-a063-a993310a9797
Properly escape a character and remove a stray tag.

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