Play with B2, B3 texts to adjust line height or default font height. This excel tool does not support kerning. In cell L1 you can adjust how many pixels will be added between characters (characters spacing). Finally, copy text in column B and save it as. Formulas in column B extracts data and build xml entry. Next, put chars you need into column A - it must be in order of your json output! (not sure if Texturepacker guarantees order, but my tool does) - in case of need add lines. or you can use my atlas tool - it is reffered in this article: ) Open excel and copy chars data to cell N1 and bellow (you will probably be missing property "anchor" if you are using texture packer, so you will have to adjust either excel or your output to include empty line. It is without support nor feature requests, but I will describe here, how it works:įirst create standard sprite atlas with your characters. What I did is I created excel file that helped me to create xml defs. I also included the Iranian flag which already exists in Vanilla for comparison.Hi, I had similar problem - I needed to create bitmap font xml from sprites I had. In conquest, also go to ConquerCountrySettings.json and copy-paste an existing line of code in whatever era you’re adding the country in, remembering to change the “CountryID” to a new value.Įnd result on the red hex (colours are added in-stage). If you're adding, then edit the "main" block as shown below, and add a country "block" at the end of all the country blocks so you can designate your country.Ī useful link here is the BTL guide so you'll know how to edit your country: /thread/9609/wc4-btl-guide If replacing an existing country, simply changing the “country” byte of the “country” block to the ID you added (in my case, 50). You'll have to scroll down a fair amount to find them.Īdding said country to your game: Compile all the files into your APK. Step 6: Go to stringtable_en.ini and add the name of your country under the country number you added. You might use US models, USSR models, etc. “Mod”: Whatever design units will have, which you can copy-paste from other countries. ![]() “Camp”: If you’re adding an axis, then 1. “Name”: Put the Chinese version of your country’s name. Note: Make sure to end your code without a comma, otherwise the game will crash. Go to CountrySettings.json and copy-paste any line of code, and make some edits. Because of the dimension ratio you can simply just scale the image down for the smaller image. Step 4: Now do the same thing in tactical maps but twice Once for flag_.png as a 52 x 54 image, and once for f_.png as a 37 x 38 image. Now find the coordinates of the UPPER LEFT CORNER (NOT CENTER) of your image and set that as the x and y values in your xml file. Step 3: Take your flag and slap it onto image_flags_hd.webp where it won’t overlap with anything else. If your picture looks grainy don't worry cause it's gonna get really shrunken down in-game Preferably you want your flag to also be a circle (cause it looks better). Just copy-paste the last line of code before the closing bracket, and change the image name to a number that hasn’t been used (You should have 48, but I have 49 cause I made another country earlier).įrom this we see that you want your flag image to be 52 x 54 in size. Step 2: Open image_flags_hd.xml and create a new country profile. ![]() I’m currently working on a Cold War mod so here I’m gonna be adding the Azerbaijan People’s Government, which existed from 1945 - 1946 during the Iran Crisis. ![]() An image editor (I use on a pc) a JSON editor (can probably do on phone) ) or a map editor (you can find two in CM’s playlist)Ħ. Stringtable_en.ini (under assets), (optionally you can include cn, ko, tw, etc.)ĥ. Image_flags_hd.webp & image_flags_hd.xml (under assets -> image)Ĥ. Countrysettings.json (under assets -> json)ģ. Tacticalmap.webp & tacticalmap.xml (under assets)Ģ. You should check the Unity application log. You may print the path in method Start () Secondly make sure you didn't get an exception in method Load (). (edit: idk why link doesn't take you there so just copy-paste it)Ĭanadian Modder’s Guides: What You’ll need:ġ. That is the file config2.xml exists in path Application.dataPath + 'Config/'. I wanted to make a more visual guide by combining the existing EFC guide and Canadian Modder’s Youtube guide.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |