Flags issue
|
9-Ball |
Posted on 27-10-2013 21:23
|
Domestique
Posts: 477
Joined: 16-08-2008
PCM$: 200.00
|
Can someone direct me to where the IDregions (i.e. 2-10501, covering regions from the countries in the game) connects in the DB to flags?
I'm having issues with riders who are defined as from some countries having no nation flag, just a pink texture placeholder. I'm pretty certain all the flags are there, however.
As an e.g., I have a rider in DYN_Cyclist with a fkIDregion value of 10301, which I understand to be Azerbaijan, as defined in STA_region.
The correctly formatted azerbaijan.tga flag file is in gui/country_flags.
In game, I see a pink texture. Same issue applies for a few other countries and I've treble-checked the graphic files and IDs.
I'm not sure of the cause. So, ideas? Thanks in advance.
It was eleven more than necessary.
Jacques Anquetil
|
|
|
|
Selwink |
Posted on 27-10-2013 21:24
|
Grand Tour Champion
Posts: 8856
Joined: 17-05-2012
PCM$: 200.00
|
10301 is region Azerbeidzjan, for the country it's 103. Not sure, might be totally wrong here.
|
|
|
|
CrueTrue |
Posted on 27-10-2013 22:42
|
Tour de France Champion
Posts: 29989
Joined: 20-10-2006
PCM$: 200.00
|
Did you add the country yourself? If so, you have to add the ID for the flag in STA_TGA and link it in STA_country. |
|
|
|
Ad Bot |
Posted on 27-12-2024 04:54
|
Bot Agent
Posts: Countless
Joined: 23.11.09
|
|
IP: None |
|
|
9-Ball |
Posted on 27-10-2013 23:54
|
Domestique
Posts: 477
Joined: 16-08-2008
PCM$: 200.00
|
No, the country was already in the PCM Daily DB. Where is the STA_TGA, however? That might help unravel the mix-up. I don't see it in the main CDB. Is it in the Local or some other file?
It was eleven more than necessary.
Jacques Anquetil
|
|
|
|
CrueTrue |
Posted on 28-10-2013 00:00
|
Tour de France Champion
Posts: 29989
Joined: 20-10-2006
PCM$: 200.00
|
In that case, it should be working per default (and it does at my end). From the FAQ:
There's purple flags or purple icons in the equipment selection screen.
This means that the game isn't using the Local.cdb file that's compatible with the PCM.daily DB.
Open up the folder where Pro Cycling Manager is installed and find the folder called PCM.daily DB Backup. Inside it, there's a Local.cdb. Copy it to My Documents/Pro Cycling Manager 2013. Replace the existing file.
If you use Steam, you need to copy the Local.cdb to the Database folder of your installation - e.g. C:\Program Files\Steam\steamapps\common\Pro Cycling Manager - Season 2013\Database
If you can't find the backup files, note that they are also attached to this thread. |
|
|
|
9-Ball |
Posted on 28-10-2013 00:25
|
Domestique
Posts: 477
Joined: 16-08-2008
PCM$: 200.00
|
That fixed it - many thanks.
It was eleven more than necessary.
Jacques Anquetil
|
|
|
|
Jaywol |
Posted on 28-10-2013 18:39
|
Domestique
Posts: 723
Joined: 02-08-2008
PCM$: 200.00
|
Hi. I have posted with the same issue in the 2012 Database thread, local and CDB file attached. I have followed the same steps as above without success. Can anyone check the files to see if they can figure out the issue please ? |
|
|
|
lluuiiggii |
Posted on 28-10-2013 18:49
|
Grand Tour Champion
Posts: 8542
Joined: 30-07-2010
PCM$: 200.00
|
The solution should be the same - are you sure that you're copying the correct Local.cdb? You could try re-downloading the .cdb files in the first post of the Support and Comments thread (if it's the PCM12 DB, then the PCM12 thread for Support and Comments).
|
|
|
|
Jaywol |
Posted on 28-10-2013 22:47
|
Domestique
Posts: 723
Joined: 02-08-2008
PCM$: 200.00
|
The local cdb is copied to the correct folder and all tga id's are correct, as are those in sta_country. All the tga files are in the the GUI_country_flags folder. Most of the flags show correctly, yet some such as eritrea and syria do not ? |
|
|
|
JayJunior072 |
Posted on 28-10-2013 23:21
|
Neo-Pro
Posts: 389
Joined: 28-09-2012
PCM$: 200.00
|
In order to make a rider come from a certain country, you'll have to add the country to STA_region as well, so you can assign a rider to that region in a DB editor.
That way a rider will show up as a eritrean or syrian rider f.e.
Tables you have to edit:
In the DB itself:
STA_country (for the country itself)
STA_region (for a region to be added and to assign a rider to)
Local.cdb:
STA_TGA (for the flag tga ingame, make sure to have added the flag tga to the correct folder)
STA_localized_string (for the country/region to have a correct name/translation)
Make sure all the parameters are the same in each table (f.e. country ID's, file names, etc.
"The only thing that stand between you and your dream, is the will to try and the belief that it is actually possible." - Joel Brown
|
|
|
|
lluuiiggii |
Posted on 28-10-2013 23:22
|
Grand Tour Champion
Posts: 8542
Joined: 30-07-2010
PCM$: 200.00
|
Try doing some edit to the Local.cdb, like changing the name of a country to 'test'. That can be done in table STA_localized_string (not sure if the Fast Editor works for editing Local.cdb btw, I think you have to use Lachi's or the Full Editor). Then in game you'll be able to know with certainty whether the game is using the correct Local.cdb (in which case the country you've changed name should have a different name) or if it's replacing by the default one (in which case the country name will be normal and the pink flags will be explained). If it's the latter, and you're sure you've already copied the correct Local.cdb to both My Docs/PCM12 and [Main PCM Folder]/Database, you could also try setting it as 'read only' (right click -> Properties -> read only), maybe it helps.
|
|
|
|
Jaywol |
Posted on 29-10-2013 12:07
|
Domestique
Posts: 723
Joined: 02-08-2008
PCM$: 200.00
|
Hi. The riders already show the correct country in game. However, I will try all suggestions and feed back. |
|
|
|
Jaywol |
Posted on 02-11-2013 16:15
|
Domestique
Posts: 723
Joined: 02-08-2008
PCM$: 200.00
|
Hi. Just for info, I checked the country_id's in STA_Region against those in STA_Country and some were incorrect. All flags now showing correctly |
|
|