Adding stages - confused
|
|
Ad Bot |
Posted on 23-11-2024 16:18
|
Bot Agent
Posts: Countless
Joined: 23.11.09
|
|
IP: None |
|
|
Wiley |
Posted on 04-01-2012 23:37
|
Domestique
Posts: 683
Joined: 24-02-2011
PCM$: 200.00
|
As simply as possiblecould someone please explain how to add a new custom race into a db....
I've searched but everything i find confuses me more
I use the ingame editor or lachis editor
a step by step guide would be great
thanks
Ferrari-BA > Psuedo Man Game
|
|
|
|
lluuiiggii |
Posted on 05-01-2012 02:50
|
Grand Tour Champion
Posts: 8542
Joined: 30-07-2010
PCM$: 200.00
|
Well the official editor seems very simple yet still quite complete to add a race. If you find the others confusing then maybe you can use this one to add the race. However I'll write a quick 'step by step' on how to do it using the PCM Fast Editor (which must be pretty much the same to the other unofficial editors, however in this one you can 'Use Lists in Grid', making it easier - you can activate this option in Settings):
1. Open the DB you want to edit in the PCM Fast Editor.
2. Go to STA_race and click "Add". A new line with the ID already filled will appear.
3. Fill the line. Here's a brief explanation of each column:
Spoiler gene_sz_race_name: Name of the race
gene_sz_race_name_nolicence: Just put the same thing of the above one
Country: well.. the country - see STA_country for the country IDs
fkIDnewUCIclass: choose the category of the race: 1.HC, 2.1 - see STA_UCI_class for this
fkIDseason_class: 0
First and last stage: skip these for now
Popularity: whatever you want the popularity of your race to be
gene_i_number_stages: number of stages of your race, 1 if it's a classic
game_b_isactive: make sure it's ticked/has a 1
gene_i_min and max cyclist: minimum and maximum cyclists per team in the race
gene_sz_mail_organisateur: email of the organization, put whatever you want
gene_ilist_fkID_team: list of teams that will appear when you play your race in single play and choose 'Real teams'
fkIDLastRaceLeader: 0
constant: whatever you like - basically it only defines the name of the race logo file, if you have one (* the race logo file should be placed on Program Files/Cyanide/PCM11/Gui/race_logo)
local_temp_count: 0
gene_sz_classification_xml: the file that will set the bonuses (points for points/KoM classement, time bonuses, etc).. normally each race category has one, and the major races have their own.
gene_f_organisateur_coeff: 0
gene_sz_variant_xml: the name of the files ruling the variants, if you have them for your race, and also the name the Startlist file for that race should have
gene_b_aso: organized by ASO or not;
gene_b_ForceProTour: if ticked, Pro Tour teams are forced to participate in the race.
4. Now, move on to STA_stage. Again click 'Add' for a new line, and add one line for each stage you have. Now fill the line:
Spoiler Race: choose your race in the dropdown menu/add the ID of your race
Gene_i_day and month: well... day and month
gene_i_computed_date: month number x 50 + day number. E.g.: March 15th = 3x50 + 15 = 165
gene_sz_stage_name: name of the stage that will appear in-game
fkIDstage_type: 1 for road race, 2 for ITT, 3 for TTT
fkIDrelief: 1 for flat, 2 for hilly, 4 for mountains
gene_sz_stage_filename: the name of the file of the stage in Program Files/Cyanide/PCM11/CM_Stages
Region: normally the country of the race, but if the race happens in a specific region (e.g. Vuelta al Pais Vasco) you can add a specific region (for country, see STA_country, for region, STA_region)
gene_i_stage_number: number of the stage in the race, if it's a classic it's 1
feat_f_wind: power of the wind in the stage (from 0 to 100)
feat_f_direction_wind: 999 for a random direction of the wind. Between 0 and 359 if you want to set the
direction of the wind in your stage. Use it if you want to make realistic crosswinds in a special stage.
gene_b_selected: ticked/1
gene_b_ladder and ladder_md5: not ticked and nothing
gene_b_fake_stage: if your stage isn't 'real', tick it to hide information (e.g. mountain names etc)
gene_f_time_gap: in-game time for a gap to be established in the results. Normally 20/15 for flat stages, 10 for hilly and 7 for mountain. 0 for ITT and 20 for TTT.
Constant: nothing
fkIDclimat: the climat of the stage, if you're using lists you'll see the name of each climat, just choose the one according to your race, if not take a look in STA_climat
gene_b_hascobble: tick if the stage has cobblestones
gene_f_mountain: Allows you to define which attribute (hill or mountain) is used by the game's AI when calculating effort. At 0 (or close to 0) it is the "hill" attribute; at 1 or close to 1 it is the "mountain" attribute
gene_f_uphillsprint: Between 0 and 0,7. A 0,7 value will change the "Sprint" characteristic into "Hill" characteristic. Most of the time this attribute must be set to 0, but if you have a flat stage which arrives at the top of a little climb, set it to 0,7.
5. Go back to STA_race and fill in fkIDfirst and last_stage. If the first and last stages do not appear in the list, disable the 'lists in grid' and manually insert the ID of the first and last stages.
6. In the menu 'Database', click "Save the DB" or "Save the DB as", if you don't want to overwrite your initial file (I'd recommend the later)
7. Choose your DB in the game, play
Btw, don't forget to place the stage files in CM_stages. Good luck!
Edited by lluuiiggii on 01-10-2012 23:19
|
|
|
|
Wiley |
Posted on 05-01-2012 09:40
|
Domestique
Posts: 683
Joined: 24-02-2011
PCM$: 200.00
|
Thanks lluuiiggii, thats perfect
Ferrari-BA > Psuedo Man Game
|
|
|
|
Atlantius |
Posted on 06-02-2013 10:37
|
Team Leader
Posts: 6795
Joined: 21-07-2010
PCM$: 200.00
|
Is the "gene_f_distance" irrellevant?
I've been trying to add a couple of races to a savegame (in the off season). If I enter the values found in the info in the stage db the game crashes when going to the next season. If I just enter "0" it works just fine, but the stage info doesn't contain the stage length. Will this be a problem when the race is to be run or is it purely cosmetic?
|
|
|
|
lluuiiggii |
Posted on 06-02-2013 13:05
|
Grand Tour Champion
Posts: 8542
Joined: 30-07-2010
PCM$: 200.00
|
I would think so (it is irrellevant). Usually I just opened the .cds file in the Stage Viewer ( "see stage info" ) and copied the stage distance there, with one or perhaps 2 numbers after the comma, so not very precise either. Did you make sure you were using a comma? The Stage DB uses a dot to separate full kilometers, so perhaps if you were copying and pasting, there could be a problem.
But either way, I don't think setting it 0 will be a problem. It's only cosmetic as far as I know.
|
|
|
|
Atlantius |
Posted on 06-02-2013 14:36
|
Team Leader
Posts: 6795
Joined: 21-07-2010
PCM$: 200.00
|
Just copied the DB to sim may way to the first of the races.
It appears correctly in the calendar, the computed date from my number fits with what it should and according to the "team_race" table in the editor plenty of teams have signed up to the race.
But when I reach the date the game just ignores the new race and neither allows me to race the stage nor does it simulate results
The same goes for a number of races I have copy/paste'd from another DB of PCMfreaks.dk (https://pcmfreaks.dk/infusions/pro_dow...hp?did=252)
The stages are shown correctly when I click the race in the calendar.
I have been comparing my races and stages to the default ones and can't seem to find any differences (the ones from the Danish DB have distance entered so it cant be that)
Races I have confirmed the problem with counts "Post Cup Harridslev" (race 7 / stage 8) from the DB and "Rheinland-Pfalz Rundfahrt" (race 5007 / stages 3084-3088) from the stage DB here on Daily.
.cdb file (from December) attached if I could get you to have a quick look at it and see what I'm missing...
Edited by Atlantius on 06-02-2013 14:37
|
|
|
|
lluuiiggii |
Posted on 06-02-2013 15:01
|
Grand Tour Champion
Posts: 8542
Joined: 30-07-2010
PCM$: 200.00
|
Taking a look at the DB everything seems correct indeed. Only one thing is different, the gene_i_computed_date in STA_stage. Did you try using the Unix time stamp codes? A hypothesis could be that the "easier" gene_i_computed_date (month*50 + day) only works on non-save DBs, since the game then converts them to Unix time stamp on saves.
Well, my PCM11 is for some reason quite messed up, so I can't test it in game, but it should be rather easy: try moving one of the races to Jan 8th. Simulate in game and see if it works. Now copy and paste the gene_i_computed_date from the Australian NC, which is on Jan 8th. Simulate and see if it works.
|
|
|
|
Atlantius |
Posted on 06-02-2013 15:33
|
Team Leader
Posts: 6795
Joined: 21-07-2010
PCM$: 200.00
|
Makes no difference. Didn't expect so either as the "easy" dates are converted to Unix time stamps when going between seasons.
The races does seem to work in the DB I copy/pasted the rows from and the "old" races work fine as well. I'll probably just give up then and leave them if they decide to work at some point (I added a Swedish TT'NC in the beginning, that didn't work until the second season...).
Anyway thank for trying
|
|
|
|
stefaan1309 |
Posted on 11-05-2013 20:42
|
Amateur
Posts: 17
Joined: 30-07-2010
PCM$: 200.00
|
What does the "Add the ID of your race" mean in "Race: choose your race in the dropdown menu/add the ID of your race".
How/where can you add the ID? |
|
|
|
lluuiiggii |
Posted on 11-05-2013 20:45
|
Grand Tour Champion
Posts: 8542
Joined: 30-07-2010
PCM$: 200.00
|
If you're using the Fast Editor/Lachis Editor, and you have the options to "use lists" activated, you'll see a dropdown menu with the name of all races, then you just choose yours. However, if you're using an editor without that feature, where you have to write everything, such as the Excel Editor or the Full Editor, then you'll have to write the ID of your race in that column
|
|
|
|
MrUfo87 |
Posted on 29-08-2013 00:02
|
Classics Specialist
Posts: 2803
Joined: 06-01-2012
PCM$: 700.00
|
I have created a stage. Now I want to add it as an U-23 race (1 day). I followed the steps. I've tested the race in the race-mode, and everything worked fine. Now I want to continue in my carreer and the game crashes when it wants to simulate it. What's going wrong?
EDIT: Some more information: I exported the stage and called it young_1. I've put it in my saved game already in March/April, while the race is in May. The race is at the same day as the last stage of the Giro, 27 May. I've used the gene_i_computed_date from that Giro stage. I'm using the Fast Editor.
Edited by MrUfo87 on 29-08-2013 00:06
|
|
|
|
lluuiiggii |
Posted on 29-08-2013 00:08
|
Grand Tour Champion
Posts: 8542
Joined: 30-07-2010
PCM$: 200.00
|
When you click on the race, can you see the profile or it crashes before that? If the latter, then PCM can't find the stage file, in which case it might be wrongly named/placed in the wrong folder.
|
|
|
|
MrUfo87 |
Posted on 29-08-2013 00:34
|
Classics Specialist
Posts: 2803
Joined: 06-01-2012
PCM$: 700.00
|
It's on the U-23 calender and none of those races can be seen before it is ridden. I've placed the file in Program Files/Cyanide/Pro Cyling Manager - Season 2011/CM_Stages. I'm not participating at the race.
|
|
|
|
lluuiiggii |
Posted on 29-08-2013 01:12
|
Grand Tour Champion
Posts: 8542
Joined: 30-07-2010
PCM$: 200.00
|
Try changing it to a normal race category and check that
|
|
|
|
MrUfo87 |
Posted on 29-08-2013 14:34
|
Classics Specialist
Posts: 2803
Joined: 06-01-2012
PCM$: 700.00
|
I've used the weekly save of the same game and I've changed the fkIDnew_UCI_class from U23_1NCup to Cont11 and the game just simulated it without any problems.
|
|
|
|
MrUfo87 |
Posted on 29-08-2013 14:42
|
Classics Specialist
Posts: 2803
Joined: 06-01-2012
PCM$: 700.00
|
Now I've done the same, but opposing. I've edited the same weekly save and changed it back to U23_1NCup. Now the game crashed again. Is there a maximum of U23 races or something. It seems that there's the bug. And when I look in the database I see at every national team that they're racing in the race.
|
|
|
|
The Rider |
Posted on 29-08-2013 16:39
|
Grand Tour Specialist
Posts: 4543
Joined: 29-02-2012
PCM$: 200.00
|
MrUfo87 wrote:
Now I've done the same, but opposing. I've edited the same weekly save and changed it back to U23_1NCup. Now the game crashed again. Is there a maximum of U23 races or something. It seems that there's the bug. And when I look in the database I see at every national team that they're racing in the race.
From personal experience the game crashes when you put in a race during the season.
I will advice you to add the race between 25th October and 31st December during the season, then it should work, but I don't know about U-23. |
|
|
|
MrUfo87 |
Posted on 29-08-2013 21:34
|
Classics Specialist
Posts: 2803
Joined: 06-01-2012
PCM$: 700.00
|
@The Rider: Well, it works when it's not an U-23 race.
|
|
|
|
MrUfo87 |
Posted on 30-08-2013 16:46
|
Classics Specialist
Posts: 2803
Joined: 06-01-2012
PCM$: 700.00
|
I've tried to add a race (not the same one) from the U-23 calendar in another saved game and that worked. It's really strange.
EDIT: It was the 2011 realname database.
Edited by MrUfo87 on 30-08-2013 16:47
|
|
|
|
lluuiiggii |
Posted on 30-08-2013 17:30
|
Grand Tour Champion
Posts: 8542
Joined: 30-07-2010
PCM$: 200.00
|
The U23 races used to be quite unstable. Not sure if it's like that in PCM11. But if it doesn't work in your save, it might be easier to just do as The Rider said and wait until the end of the year to add the race for next season.
|
|
|