PCM.daily banner
24-11-2024 19:30
PCM.daily
Users Online
· Guests Online: 61

· Members Online: 1
superdd67

· Total Members: 161,803
· Newest Member: actronspareparts
View Thread
PCM.daily » Pro Cycling Manager 2006-2020 » Pro Cycling Manager 2015
 Print Thread
Flag
jeremyrobin
Hi Guys


I want to know how to add flags in the file "country_flags1080.tga" and how to make this to work with CDB

 
matt17br
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? Wink
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. Smile


(Former) Manager of pcmdaily.com/images/mg/2020/Micros/gen.png Generali pcmdaily.com/images/mg/2020/Micros/gen.png
 
http://v.ht/Matt17
jeremyrobin
I cann't see flag but i think all is ready

ps : sorry for my english

 
matt17br
jeremyrobin wrote:
I cann't see flag but i think all is ready

ps : sorry for my english

Can I take a look at both the country_flags files? Wink


(Former) Manager of pcmdaily.com/images/mg/2020/Micros/gen.png Generali pcmdaily.com/images/mg/2020/Micros/gen.png
 
http://v.ht/Matt17
jeremyrobin

 
matt17br

Well, it's clearly because of the size of the flag and how it's placed. This should do, however.


Edited by matt17br on 04-04-2016 20:38
(Former) Manager of pcmdaily.com/images/mg/2020/Micros/gen.png Generali pcmdaily.com/images/mg/2020/Micros/gen.png
 
http://v.ht/Matt17
jeremyrobin
What pixel size do you advise me?

 
matt17br
jeremyrobin wrote:
What pixel size do you advise me?

I thought I had attached it, but I forgot tga didn't work... Pfft

Sorry, here it is: https://www.dropbox.com/s/15tq3yjtjhm...0.rar?dl=0


(Former) Manager of pcmdaily.com/images/mg/2020/Micros/gen.png Generali pcmdaily.com/images/mg/2020/Micros/gen.png
 
http://v.ht/Matt17
lormeno
hello, can rise again and xml tag file, where is the flag of Peru. The link is down.

Thank you

 
matt17br
Peru's flag is not included natively with PCM 15. What are you looking for exactly?


(Former) Manager of pcmdaily.com/images/mg/2020/Micros/gen.png Generali pcmdaily.com/images/mg/2020/Micros/gen.png
 
http://v.ht/Matt17
Ad Bot
Posted on 24-11-2024 19:30
Bot Agent

Posts: Countless
Joined: 23.11.09

IP: None  
lormeno
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)

Thank you

 
matt17br
Ah ok that's fine, this should work though (extract the content in Gui).

Bear in mind you would still need to add Peru via local.cdb, sta_country and sta_region to the db, so follow the last part of my guide for that.


(Former) Manager of pcmdaily.com/images/mg/2020/Micros/gen.png Generali pcmdaily.com/images/mg/2020/Micros/gen.png
 
http://v.ht/Matt17
lormeno
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.

Thank you

 
matt17br
I've sent you the file man, just put the fiels in the archive in main folder/gui and overwrite Wink


(Former) Manager of pcmdaily.com/images/mg/2020/Micros/gen.png Generali pcmdaily.com/images/mg/2020/Micros/gen.png
 
http://v.ht/Matt17
lormeno
Thank you so much, I solved my big problem.

Thank you

 
Jump to Forum:
Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Latest content
Screenshots
Caisse 'd Epargne sets the pace
Caisse 'd Epargne sets the pace
PCM 07/08 Official Screenshots
Fantasy Betting
Current bets:
No bets available.
Best gamblers:
bullet fighti... 18,376 PCM$
bullet df_Trek 17,374 PCM$
bullet Marcovdw 15,345 PCM$
bullet jseadog1 13,552 PCM$
bullet baseba... 10,439 PCM$

bullet Main Fantasy Betting page
bullet Rankings: Top 100
ManGame Betting
Current bets:
No bets available.
Best gamblers:
bullet Ollfardh 21,890 PCM$
bullet df_Trek 15,520 PCM$
bullet Marcovdw 14,800 PCM$
bullet jseadog1 13,500 PCM$
bullet baseball... 7,332 PCM$

bullet Main MG Betting page
bullet Get weekly MG PCM$
bullet Rankings: Top 100
Render time: 0.42 seconds