Extended MP Font Support and National Insignias

From SEOW Wiki (IT)
Jump to: navigation, search

Extended MP Font Support

As of SEOW v3.2, the Mission Planner supports an extended range of international characters (Unicode). This is most obvious in the new verbose flight names. There are now 1998 different air regiments defined in SEDB32 (645 made newly available through the HistorySFX Mod), each with its own (editable) historical name. Some examples are:

340 Squadron (FAFL) GC IV/2 "Ile de France"

82 Squadron "United Provinces" RAF

G. de Chasseurs-Bomb. I/18 "Vendée"

14. Staffel (Jabo), JG5 "Eismeer"

J/88 JagdGruppe "Legion Condor"

1 Squadriglia 1a sq "Asso di Bastoni", 1 GC ANR

85th Dokuritsu Dai Shijugo Chutai IJA

309th "Ziemi Czerwienskiej" FS

USN VF-32 "Outlaw's Bandits", USS Langley CVL-27

Similarly, Army Division names defined in the Army_Units table now also support extended character sets. The Statistics engine reproduces the character sets faithfully, so there is significantly improved scope for added realism in developing your orders of battle.

The Statistics pages are rendered in the UTF-8 character set. If you find that your Statistics pages are not decoding escaped character sequences properly, then the chances are that your Statistics pages might need some extra help. The function LL in the file Statistics/stats-functions.php might need to have some extra character mappings added (see Unicode 4.0 Definitions for assistance). The current (Statistics v1.121) definition of this function is:

 function LL($string) {
 $unicodechar = array("\u00c1","\u00d6","\u00dc","\u00e0","\u00e1","\u00e4","\u00e9","\u00ed","\u00f1","\u00f3","\u00f5","\u00f6","\u00fa","\u00fc","\u010D");
 $textchar    = array("Á","Ö","Ü","à","á","ä","é","í","ñ","ó","õ","ö","ú","ü","č");
 $s = str_replace($unicodechar,$textchar,$string);
 return utf8_decode($s);

Note that the $textchar entries above are entered in the LL function code as NCR values found on the Unicode 4.0 Definitions page (they are just rendered here as characters by your browser). Typically, non-Latin characters requiring Unicode support may appear in Airforce, Army, Navy or Railway unit names, as defined in the Airforce_Units, Army_Units, Navy_Units and Railway_Units tables of the SEOW database. They might also appear in the Verbose names entries of the Object_Specifications table.

National Insignias

SEOW v3.2 also includes extra national insignias, so designers can include more diverse orders of battles in their campaigns. Recent inclusions are: Belgium,Brazil,Bulgaria,China,Croatia,Czech,Egypt,Greece,Iraq,Israel,Spain,Switzerland,Syria,Thailand,Vichy France,Yugoslavia

(Borduria, Syldavia and ROA have just been contributed by Warg)

One of the really nice features is that from SEOW v3.2, the national insignia will be displayed on individual platoon tooltips. Previously, the dominant Axis or Allied insignia was displayed. Now, for example, Romanian and Italian ground units will be clearly identifiable from their insignia in the Stalingrad sector, even though they are fighting for the dominant German forces.

Here is the full list of insignia provided by default with SEOW v3.2 (in the MP4/uniticons folder):

Europe-Australia.gif Australia

Europe-Belgium.gif Belgium

Europe-Borduria.gif Borduria (Fictional)

Europe-Brazil.gif Brazil

Europe-Britain.gif Britain

Europe-Bulgaria.gif Bulgaria

Europe-BulgariaLate.gif Bulgaria (Late War)

Europe-Canada.gif Canada(MP4 v4.556)

Pacific-China.gif China

Europe-Croatia.gif Croatia

Europe-Czech.gif Czech

Europe-Egypt.gif Egypt

Europe-Finland.gif Finland

Europe-France.gif France

Europe-Germany.gif Germany

Europe-Greece.gif Greece

Europe-Hungary.gif Hungary

Europe-Iraq.gif Iraq

Europe-Israel.gif Israel

Europe-Italy.gif Italy

Europe-ItalyANR.gif Italy ANR

Europe-ItalyICAF.gif Italy ICAF

Pacific-Japan.gif Japan

Europe-Netherlands.gif Netherlands

Europe-NewZealand.gif New Zealand

Europe-Poland.gif Poland

Europe-Romania.gif Romania

Europe-Russia.gif Russia/Soviet Union

Europe-ROA.gif Russian Liberation Army (ROA)

Europe-Slovakia.gif Slovakia

Europe-SouthAfrica.gif South Africa

Europe-Spain.gif Spain

Europe-Switzerland.gif Switzerland

Europe-Syldavia.gif Syldavia (Fictional)

Europe-Syria.gif Syria

Pacific-Thailand.gif Thailand

Europe-USA.gif USA

Europe-VichyFrance.gif Vichy France

Europe-Yugoslavia.gif Yugoslavia

Adding New National Insignias to SEOW

If you want to add support for new nationalities, here is how to do it.

Each nationality needs to have three separate GIF files created for it in the uniticons folder. These are called "Europe-*.gif" or "Pacific-*.gif", depending on whether the nation will be active in Europe or Pacific/Asia (or both!). As an example, let's see how to add two new national insignias: Walt (Axis) and Joe (Allied).

Assume that Walt and Joe will only be active in Europe. We will therefore need to build the following GIFs:

Europe-Walt.gif (large icon for airbases etc)

Europe-WaltSB.gif (large icon for seaplane bases)

Europe-Walt_small.gif (small icon for stats, unit listing inside airbase tooltips etc)

Europe-Joe.gif (large icon for airbases etc)

Europe-JoeSB.gif (large icon for seaplane bases)

Europe-Joe_small.gif (small icon for stats, unit listing inside airbase tooltips etc)

We should use the Germany GIFs as templates for Walt, and USA GIFs as templates for Joe. Then we will get the correct background colours for Axis and Allied in Europe. The pixel dimensions of the images should not be changed. Put the new GIFs in the MP4/uniticons folder.

Now, in your campaign database, all references to relevant divisions/regiments in the Army_Units and Airforce_Units tables should use "Walt" and "Joe" as the respective Country value. Edit the AirRegimentStructure table to include your lines for the new "Walt" and "Joe" nationalities. Do the same for the Railway_Units and Navy_Units tables. The identities "Walt" and "Joe" are now functional and may even be used in the Sector_Dominance table.