I want to know how to add flags in the file "country_flags1080.tga" and how to make this to work with CDB
Adding flags is a bit more complicated this year. First of all, you need to open the original file with paint.net or irfanview or any other image editor.
Now, add the new flag in any blank space making sure it's perfectly aligned with all the others, otherwise it will be bugged in game, and we don't want that do we?
Save the file in tga 32 bit format, making a backup of the old one in case anything goes wrong. Now, onto the second step:
Open conutryflags1080.xml in notepad or in notepad++, just not in excel. Add a new line, between the already existing ones, with this code "<SubTexture name="Country Name" x="XXX" y="XXX" width="30" height="30" />".
Replace Country Name with the Country Name you'll add in sta_country, but that's for later, which is the longest procedure... then replace the x coordinates with the vertical coordinates of where you put the flag. For example, if you put it in the same "column" as
Sweden, that will be Sweden's x value, which is 353. Do the same for y, except you will look for the horizontal coordinates now.
Save the file, again, after making a backup, and brace yourself for the longest part... adding the country.
At this point, open any advanced editor such as PCM Fast Editor or Lachi's Editor and look at sta_country first. Add a new rowe with an unused ID, such as 109, in CONSTANT input the 3 letter constant for the country (VAT for Vatican City?), put a 0 in national team unless you want to add a national team for it which has been covered in other threads, gene_tgaID_flag is for later, for now put a number which has not been used yet such as 509, in gene_sz_flag the same name I talked about above when telling you how to edit the flags xml file, gene_i_strid_country_name again, that's for later for when we'll be editing local.cdb, for now put an unused number such as 1909, 0 in the next column, and now open sta_tga_skin to decide the skin color for regens coming from that country, and input the id of the skin you decided in the next column. Open sta_calendar for the next column and decide which calendar you want your country to belong to. Input, like before, the id you decided in the calendar column. Climat put a 1 and 2 0s in the last 2 columns.
No you're far from being done. Open sta_region now, and add a new row with a number, which in case you put 109 in sta_country, will have to be 10901. Put the same 3 letters constant as before, same gene_strid_name as before, country id same as before, put a tick or put a 1 in gene_b_europa if your country is in Europe. Now, decide the amount of regens your country will produce. The number you input will have to be multiplied by 5,5 to know more or less how many regens from that country you'll find when starting a career. I've done some research here if you're interested: https://pcmdaily.com/forum/viewthread....st_1133584. If you put 0 or 1 however, you will only get 0 or 1 rider. Now, onto fkIDclimat. That's the kind of weather (found in sta_climat) that will be dominant in races held in that country, and has an influence on the favoured/disliked weathers by riders in your country as well. gene_i_pos_x and gene_i_pos_y... well just leave both to 0 unless you really want to add a scouting zone, in which case I'll try to assist you although it takes a shitload of time. The last 15 columns or so should be straightforward enough. Basically they regulate the chance of a kind of rider coming out of your country and the total of those has to be 100, otherwise that won't work either. Now, if you want all your riders to be stage racers just put a 100 in there, but of course, you can be more realistic as well.
In the next ones, just put the same numbers that are there for the other columns and you're done! You can save the db (after having done, again, a backup of the original one).
And finally, onto the very last part of all of this hassle! Open local.cdb with Excel Editor (necessarily that, otherwise other editors won't be able to save it correctly and that will make you adding regen names and surnames easier as well). Click on extract cdb, select that one, open it, let it convert all the tables to excel-readable files, and when a new screen pops up, open the tables LOC, sta_regen_firstname and lastname... wait for them to open, which is to say, wait 5 minutes or so becuase they are quite heavy xml files, and add a new line to LOC. Now, the line id should be the one of gene_i_strid_country_name of sta_country, and the constant the 3 letters abbreviation. You now need to put the name of the country in all the languages you want, which can only be 1 as well, the language you're playing with for example. If that is for example French, you only need to add the country name in French to save you some time. You're done with LOC.
We're onto a slightly more time consuming part, adding first and lastnames for regens. Open sta_regen_firstname and look for a list of names in the country you're interested on the internet, wikipedia should have them for almost all. Copy the ones you are interested in and paste them all with unique ids and with 109 (or any other ID you initially used for sta_country) under the column region. Now do the same for sta_regen_lastname, except that is for lastnames. The process is the same. If you think you are done, go back to the initial sheet, and click on "build cdb", saving the db as Local.CDB (not before you have done a backup of the old local as you know by now).
Let me know if you managed, the process is quite tricky and could be quite hard if you're not used to it, but I hope I have explained it in detail.
thanks for answering, tag and xml file jeremyrobin flag was including Peru, have tried to do this and not make it, I'm clumsy with design software. therefore I asked if they could send me those two files added jeremyrobin flag Peru. (Excuse my writing in English is bad)
Thanks again for the answer, and modify the local database and OfficialRelease, my problem is not knowing how to add the flag of Peru in the country_flags1080.tag file've tried with gimp but I could not, so I sought help.