PCM.daily banner
24-11-2024 03:32
PCM.daily
Users Online
· Guests Online: 85

· Members Online: 0

· Total Members: 161,797
· Newest Member: PogPatrol23
View Thread
PCM.daily » Pro Cycling Manager 2006-2020 » Pro Cycling Manager 2010
 Print Thread
A problem with XML
Deda
Ok, so, last night I've spent approx. 2 hours adding races and stages to my save game database, using Lachi's editor, which is great btw.
Everything went fine, I added 6 stage races and 10 or so 1 day races, edited every possible column of STA_Race and STA_Stage, I even calculated the game calculated date, just to be sure it will all work.

Time for the export. I clicked all the buttons and voila. EXPORTER HAS PERFORMED AN ILLEGAL OPERATION AND WILL BE SHUT DOWN. So now I have a following situation:
The database wasn't successfully exported, so I've lost the data in the database itself. All I have is an .xml file with the changes, although it was made half-way through. So now I open the Advanced editor, xmlize my save game, edit the .xml files by adding information that I want. I save them, try to export them into a new database, and of course, it crashes when it reaches the STA_Race table. It says that "Input string is not in the correct format."
I've cross-referenced the entire .xml structure of the STA_Race and STA_Stage with the files that were made when I was editing the database, there are no differences. Well, there was one, actually, gene_b_isactive was marked by 1 instead of true, but that was changed. I tried again, and it won't work either.

I'm kind of reluctant to undergo the entire process from scratch, but at the same time I wan't to be sure if I did it right the first time.
So, what should I do now?
When adding new races to my save game, is there anything else, other than STA_Race and STA_Stage, needed for it to actually work next season?

Thank you for your patience and help Smile
Edited by Deda on 03-04-2011 11:10
If offense is the best defence, does it mean that defence is the worst defence?

If I should die before I wake, I pray the Lord will delete my browser history.
 
Deda
An update: I've fixed the .xml files, but now Adv. editor's XML exporter crashes every time it is just about to finish with the export.
If offense is the best defence, does it mean that defence is the worst defence?

If I should die before I wake, I pray the Lord will delete my browser history.
 
CrueTrue
I'm not sure I understand what you've done, but what I do know is that the exporter only crashes if there's a column that's been filled 'wrongly', e.g. a number where there should be a ()

Did you try making a copy of STA_race and then replace it with the STA_race from the original DB? Just to check that it works?
 
http://www.pcmdaily.com
Deda
I opened my database again with Adv. editor, and just filled all the information again from the .xml file that had the changes. The exporter then worked like a charm and I have my new races.

Somewhere along the line I've probably screwed something up.
The main problem is probably the fact that I lost my updated database in Lachi's editor when it started exporting the first time. Which is not too good, cause if you have an error, and it fails, there is no way to change it because the editor automatically closes the database (or I'm doing something terribly wrong?)
If offense is the best defence, does it mean that defence is the worst defence?

If I should die before I wake, I pray the Lord will delete my browser history.
 
Lachi
Deda wrote:
Somewhere along the line I've probably screwed something up.
The main problem is probably the fact that I lost my updated database in Lachi's editor when it started exporting the first time. Which is not too good, cause if you have an error, and it fails, there is no way to change it because the editor automatically closes the database (or I'm doing something terribly wrong?)
My editor asks if it should save the changes before creating a new DB. It is also possible to save after an error occured. Therefore I say it is not possible to lose data.
You should be able to start the editor and open the database to come back to your recent changes. (Don't "extract the cdb", just open the database, either by selecting it or using the "open database" function.)

Anyway, how was it possible that there was a "1" instead of "true" in the XML file? If you plan to edit the XML-files using a text editor or Excel NEVER use my editor. That is just not the purpose of my editor.

BTW: Are you sure that you are using the latest version of my editor?
 
Deda
absolutely true, no data was lost, it's just that it offered me to save before exporting, and then the export failed. I was left with an .xml file. then tried to do something with it, and failed.
1 instead of true, no idea.
anyways, the purpose of this topic was not in any way to say bad things about your editor, just to ask what to do next.


If offense is the best defence, does it mean that defence is the worst defence?

If I should die before I wake, I pray the Lord will delete my browser history.
 
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
puncture
puncture
PCM 08: General PCM-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.28 seconds