PCM.daily banner
24-11-2024 13:56
PCM.daily
Users Online
· Guests Online: 68

· Members Online: 1
Caspi

· Total Members: 161,800
· Newest Member: Willemverstichel
View Thread
PCM.daily » Pro Cycling Manager 2006-2020 » Pro Cycling Manager 2010
 Print Thread
Editing from DB to DB
roturn
As I normally write all lines by hand I need some help.

What is the easiest way to copy some teams and all their riders from one DB into another.

As I want to add this teams into my career is there something I must take care about? Any other tables than DYN_Cyclist or DYN_team?

Also is it better to copy the lines from savegame to savegame instead from normal db to savegame?

Hope you understand what I mean Wink
 
Vardavagor
Use the XML Model .... but take care about the rider id ... im sure you would ^^ Lacis Editor for example saves the XML-Data everytime you open a DB

Open XML Model with normal Editor makes Copying straightforward

i can give some answer, but im not a DB expert, for the other questions.

Maybe DYN_CONTRACT?

DB -> SG or SG -> SG ...don't think theres a difference.
EDIT: Sure there is a difference ...
DB -> SG:
take care about Riders Potentials (= 0 in open SG, dont know when a 0 Potential is fullfilled with the estimated one.)
DYN_CONTRACT should be filled up i think
Edited by Vardavagor on 28-01-2011 09:20
 
Ad Bot
Posted on 24-11-2024 13:56
Bot Agent

Posts: Countless
Joined: 23.11.09

IP: None  
CrueTrue
If you want to add it to a save game, it 's probably best to start a save gave with the DB that you're adding from.

You have to be aware of several things, though:
1. Conflicting IDs. Cyclist ID, team ID or contract ID (dyn_contract_cyclist) - check that you're not "doubling" them between the DBs.

2. DYN_palmares, DYN_palmares_cyclist, DYN_palmares_team. If you change the ID of either a team or a cyclist, you may have to change it in DYN_palmares_cyclist and DYN_palmares_team. Again, check that the palmares-IDs do not conflict.
 
http://www.pcmdaily.com
roturn
Thanks for the answer.
The XML copy&paste was also my first idea, but hoped that there is an easier way with Excel for example. Then I can sort by TeamID for example and copy all riders of this team by one step. In the XML they are alphabetical I think and so I have to copy every rider one by one.

I can open it with Excel but the last line says something like Don`t delete or edit this one, so I am not sure if I can add lines in Excel.

BUT DYN_Contract_Cyclist is also a good question. Do I have to edit this one, too or is this happening automatically on 01/01?
Edited by roturn on 28-01-2011 09:23
 
roturn
CrueTrue wrote:
2. DYN_palmares, DYN_palmares_cyclist, DYN_palmares_team. If you change the ID of either a team or a cyclist, you may have to change it in DYN_palmares_cyclist and DYN_palmares_team. Again, check that the palmares-IDs do not conflict.


If all riders and teams are completely new, do I really have to edit the palmares tables then?

My steps would be like:
-edit DYN_Team
-edit DYN_cyclist

always check that no ID`s are double

-edit DYN_Contract_Cyclist if necessary
 
CrueTrue
Use the Full Editor for this. Open the Exports folder - this contains all the tables and columns in Excel files (1 per table).

DYN_contract_cyclist is necessary if you add it to an on-going save game. Otherwise, the riders won't be contracted with their teams. You wouldn't have to edit it if you were adding the teams and riders to a DB.

Concerning the palmares. I don't know what team you intend to add, but there are several things to be aware of:
1) Even though the teams and riders are new, they can still have a link in the palmares section. There are plenty of riders there who are not in the DB (due to historical results)

2) If you want their current team to show up properly in the history section, uou have to add it to DYN_palmares.

It's not essential in terms of playing the game, but if you want it the historical data to show up properly, you will have to edit DYN_palmares, DYN_palmares_cyclist and DYN_palmares_team.
 
http://www.pcmdaily.com
roturn
Then it is like I expected. Thanks a lot.
Historical things doesn`t matter. Just need some more riders as I also added some races.

The teams I add are small Conti Teams, so they won`t be in the palmares probably. But I will have a look.

I am more used into Lachi`s Editor, but the xml`s are also there, so I guess I can use them in Excel, too.
But the last line says "DUMMY - DO NOT EDIT OR DELETE THIS ROW"

So can I add more lines below this line or do I have to add this line on the last line again after adding all necessary lines?

I just realize that I can edit almost everything but I am still quite new into teams and equipment Grin
Edited by roturn on 28-01-2011 10:56
 
roturn
Just edited a team in DYN_Team.
All riders in DYN_Cyclist and in DYN_Contract_cyclists

In game I can see the team and riders but if I click a rider it crashes.
Also the country flag are pink, but this might be a local.cdb problem, will check it later.

Do I have to define the cyclists somewhere else or maybe not clicking them before 01/01?

Just checked: No double ID`s (Team, contract, cyclist)
Edited by roturn on 28-01-2011 11:48
 
CrueTrue
Well, try to wait and see if it also crashes after 1/1.
 
http://www.pcmdaily.com
roturn
Unfortunately still crashing in the new season. ;(
And it`s just the first of 8 teams.
Maybe someone can have a look on it.
It`s IdTeam11, Petrochemical Tabriz Cycling.

https://www.multiu...3KZ0QNXPU8
 
titleist82
there's no country with id 80 in sta_country table!
 
roturn
Thanks. This is the problem.
Why did I start with that team... All other new teams are European.
 
roturn
Almost finished now but got a new error.
For some reasons it worked with Tabriz... but not with the other teams now.

The XML start now with:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<NewDataSet xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">

instead of
<?xml version="1.0" standalone="yes"?>
<NewDataSet>


and they can`t be loaded in the editor. Is there a way to make this undo without doing everything again?

If someone can have a look on it?
https://www.multiu...NMPQ3DXRP9
Edited by roturn on 28-01-2011 14:56
 
Lachi
roturn wrote:
I am more used into Lachi`s Editor, but the xml`s are also there, so I guess I can use them in Excel, too.
But the last line says "DUMMY - DO NOT EDIT OR DELETE THIS ROW"
Generally, you shouldn't use my editor to do edit the xml tables in Excel because I changed data types and added lines like the mentioned one. If it still works: You are lucky / If not: You have been warned.

roturn wrote:
The XML start now with:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<NewDataSet xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">

instead of
<?xml version="1.0" standalone="yes"?>
<NewDataSet>

You can just replace the text with the correct one.
 
roturn
I tried it with replacing but didn`t worked afterwards.
Obviously I was lucky the first time and unlucky the next times.

Will do it again with the Full Editor but unfortunately it took incredibly long to load my DB and crashes often.
 
titleist82
i've managed to make the contract table work by replacing "FALSE" with "0" and TRUE with "1"

still working on the cyclists table...
 
roturn
Wait. Thanks for all.

But just did it with Full Editor V4. And seems to work.

 
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
Sprint stats
Sprint stats
PCM13: General 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