PCM.daily banner
23-11-2024 04:19
PCM.daily
Users Online
· Guests Online: 72

· Members Online: 0

· Total Members: 161,790
· Newest Member: Thomasloord
View Thread
PCM.daily » Pro Cycling Manager 2006-2020 » Pro Cycling Manager 2011
 Print Thread
Adding stages - confused
Wiley
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
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 Smile

Btw, don't forget to place the stage files in CM_stages. Good luck!
Edited by lluuiiggii on 01-10-2012 23:19
 
Wiley
Thanks lluuiiggii, thats perfect
Ferrari-BA > Psuedo Man Game
 
Atlantius
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?

pcmdaily.com/images/awards/2013/teamstory.png

Svensk Proffscykling - Your gateway to news about Swedish Cycling
Twitter | Facebook | Instagram | Web
 
lluuiiggii
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
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 Sad
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) Angry

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...
Atlantius attached the following file:
karriere_9-2013-s-end.cdb [1.25MB / 232 Downloads]

Edited by Atlantius on 06-02-2013 14:37
 
lluuiiggii
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
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 Grin

pcmdaily.com/images/awards/2013/teamstory.png

Svensk Proffscykling - Your gateway to news about Swedish Cycling
Twitter | Facebook | Instagram | Web
 
stefaan1309
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?
 
Ad Bot
Posted on 23-11-2024 04:19
Bot Agent

Posts: Countless
Joined: 23.11.09

IP: None  
lluuiiggii
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 Wink
 
MrUfo87
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
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
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
Try changing it to a normal race category and check that Wink
 
MrUfo87
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
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
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. Wink
 
MrUfo87
@The Rider: Well, it works when it's not an U-23 race.
 
MrUfo87
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. Frown

EDIT: It was the 2011 realname database.
Edited by MrUfo87 on 30-08-2013 16:47
 
lluuiiggii
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.
 
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
A bit too early...
A bit too early...
PCM10: Funny 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.32 seconds