View Full Version : Help! Can't start game; XML load errors


lemmiwinks
Jul 15, 2006, 06:58 PM
Hello!
So I've installed the patch and game, but when I try to start playing I get this:

XML Load Error
Failed loading XML file Assets//XML\Gameinfo/CIV4PlayerOptionInfos.xml

followed by another

XML Error
Load XML call failed for GameInfo/CIV4PlayeroptionInfos.xml.
Current XML file is:


followed by nothing.

I've seen this issue come up in the PC forums, mostly for folks running foreign versions of CIV4 on a US PC. Any mac users have this problem?

Thanks!
(just running this on a G5, nothing weird, no bootcamp, etc)

AlanH
Jul 15, 2006, 07:15 PM
Have you checked to see if that file exists in your /Civilization IV/ application folder? You should be able to find the /Assets/XML/GameInfo/ folder, and it should contain lots of files, one of which is called CIV4PlayerOptionInfos.xml

BTW I note that there are several case differences between what you have posted and the actula file and fiolder names as I have them here. If those case differences are real, are you running a case sensitive file system on your Mac?

lemmiwinks
Jul 15, 2006, 07:42 PM
The file is there where it should be; not running anything case sensitive (I'm just a lazy typist!); I compared the playerinfo file to a few others to see if anything obvious jumped out at me... they all look pretty much the same.

Any other thoughts? I've tried reinstalling 3 times now, and always end up here.

Thanks!

AlanH
Jul 15, 2006, 07:46 PM
You could post the file here and I can compare it with mine. Conceivably it's a corruption on the DVD, though difficult to believe.

lemmiwinks
Jul 15, 2006, 08:09 PM
Here it is.. thanks for your kind offer! :)
I'm going to try loading it on my old G4 to see what happens hopefully rule out corrupt disk.

Edit: Sorry about posting the whole file... see message below with zipped file attached.

In the meantime....
Tried to load on G4, and get the exact same error message!
Corrupt disk?

ainwood
Jul 15, 2006, 08:24 PM
Could you please attach it to the post as a file, rather than posting it here as text?

To do this, on the "post reply" there is a box for "Manage attachments".

Note that it doesn't allow XML files to be uploaded directly, so plese zip it first.

lemmiwinks
Jul 15, 2006, 09:08 PM
Here is the zipped file...
Thanks!

ainwood
Jul 15, 2006, 10:13 PM
Hmm. Its identical to my (PC) version.

Gatekeeper
Jul 15, 2006, 10:33 PM
Lemmiwinks:

Did you modify the file in question prior to applying the patch? I ask because I did that with a Civ II patch once and the game wouldn't work. You have to have a virgin, non-edited/non-modded, copy of Civ IV on your HD before applying the patch to it. At least that was the problem with Civ II ... I had modified a file, and when the patch was applied, it ran into the modified file and didn't know what to do with it. Er, well, something like that.

Gatekeeper

AlanH
Jul 16, 2006, 09:08 AM
Your file is identical to mine as well.

I tried editing my copy to include an invalid XML line and launching Civ4. It produced similar errors to yours, except there was more trace information than you have given. Here's my error message ...

http://www.civfanatics.net/uploads12/Civ4XMLError.jpg

I then tried changing the file name so that the file would not be found, and I got ...

http://www.civfanatics.net/uploads12/Civ4XMLMissingError.jpg

... which looks more like the error you reported. Soooo I'd guess that Civ4 is just not finding that file on your hard drive for some reason. I can't think what to suggest now, except to contact Aspyr Support and throw yourself on their mercy.

lemmiwinks
Jul 16, 2006, 09:35 AM
Thanks everyone--

Ironically, another shot at reinstalling on the G4 worked, but the G5 still gets the error message!
I'll keep trying to reinstall a few more times (no, the file wasn't edited at any point), and if it still won't work, I will definitely see if the folks at Aspyr can help out.....

Cheers.
(ps- so far, a small world in the earliest stages is working ok on the G4 with sound disabled)

Beamup
Jul 16, 2006, 10:50 AM
Try repairing your permissions. (Using Applications/Utilities/Disk Utility, if you're not familiar with it.) It could possibly be that Civ4 isn't being allowed to read the file.

Brad Oliver
Jul 17, 2006, 04:59 PM
I've seen this issue come up in the PC forums, mostly for folks running foreign versions of CIV4 on a US PC. Any mac users have this problem?

What is the full path leading up to the Civilization 4 install location? Any unusual characters, slashes or other oddities in the intermediary folders (or hard drive name)?

Ninnemand
Oct 06, 2006, 11:04 PM
Brad,

I am having the same issue as above. Tried loading the game in the Application folder and in root folder. Both times I get the same error exactly as the screen shot above. No one seems to have a solution. HELP, my kids are waiting.

Dave:cry:

ppohja
Oct 10, 2006, 10:43 AM
Hi,

I experienced the same problem with the game. It seems that you (and me) should have read the installation instructions more carefully. While usually in Mac, you install applications by dragging the application icon to the location you want to install to, this seems not to be the case with Civ IV.

You need to drag the application folder from the DVD disk to your hard drive or what ever location you're installing to. If you just drag the application icon, then it won't be able to find any of the XML files that are contained in the same folder in the DVD media.

Hope this helps,
Pietu

Ninnemand
Oct 10, 2006, 10:29 PM
Thanks for that information. Upon reading the install instructions (again), I realized my mistake by installing the "Icon" onto the hard drive. You're right about MAC installs and those "other" installs.

Dave

AlanH
Oct 11, 2006, 03:33 AM
Heh! The clue was in my first response to the original post:

Have you checked to see if that file exists in your /Civilization IV/ application folder? You should be able to find the /Assets/XML/GameInfo/ folder, and it should contain lots of files, one of which is called CIV4PlayerOptionInfos.xml

Presumably you didn't even *have* a Civilization IV/ application folder! That should have raised an alarm bell.

Nothgual
Jul 11, 2007, 10:33 PM
Sorry to bring up an ancient thread but I am getting the same error messages. The difference is that the messages come up only when I attempt to load a mod. I am running the latest version of Warlords on an Intel G5, and I'm sure I installed properly. Thanks for any help!

AlanH
Jul 12, 2007, 04:23 AM
Hello, welocome :wavey:

What mod are you trying to load, and what exactly is the error message you get?

Bazzalisk
Jul 12, 2007, 05:16 AM
I am running the latest version of Warlords on an Intel G5, and I'm sure I installed properly.

Is it an Intel or a G5? The two are mutually exclusive.

AlanH
Jul 12, 2007, 11:43 AM
Bazzalisk is correct, but XML errors are probably not related to the CPU chip you are running. They are more likely to be problems with the mod.

dutchking
Jul 12, 2007, 01:43 PM
Use this for all your XML needs. Mac or PC. (http://www.xmlmind.com/xmleditor/download.shtml)
Mac=.zip or .dmg
PC=.exe
I use it for all XML, it's a really easy XML editor.

Nothgual
Jul 12, 2007, 09:19 PM
Is it an Intel or a G5? The two are mutually exclusive.
I'm pretty computer illiterate :(

It is a G5, and I have been trying to run the Canada mod (http://forums.civfanatics.com/showthread.php?t=138477). When I try to open the mod it goes to the desktop and attempts to load and when its loading the xml this comes up:

XML Load Error
Failed Loading XML file xml\text\gametextinfor_canada.xml.
[/Projects/depot/civ4/Source Warlords/Win/Fireplace/Fireworks/
Win32/FXml.cpp:140] Error parsing XML File

File: xml\text\gametextinfos.canada.xml
Reason: (null)
Line: 0,0
Source: (null)

Then its:

XML Load Error
Load XML call failed for xml\text\gametextinfos.canada.xml.
Current XML file is: xml\Global DefinesAlt.xml

After that there are 2 similar messages detailing "units" and "barbarians" instead of "fireworks". I am really clueless with computers, so if I need to give more information, Id need to know how to give it. :blush: Again, thanks for helping!

dutchking
Jul 12, 2007, 11:51 PM
^I feel your pain...some things are just too confusing to understand. With almost all the mods designed for pc's that I try to get to run on my mac, I get those same ones. "Barbarians, Units, etc.". Some of them I can solve by messing with the XML but most of the time I just waste an hour doing nothing. That's the way it is. Sadly. Anyway, I'm sure there's some way we could get that mod to run for you. It doesn't look too complicated, it's just an add on civ, right?

AlanH
Jul 13, 2007, 04:56 AM
From the error message it seems you are trying to install into Warlords. Which version of Warlords re you using?

Are you aware of the notes in the Canada Mod link you gave, saying it is not compatible with Warlords 2.08 yet? I don't run version 2.00 of Warlords, but I'll have a look at the mod and see if I can work out the problems.

[EDIT]
OK. The first indication of problems is that when I try to open GameTextInfos_Canada.xml, BBEdit gives me an "Incorrectly formed UTF-8" message, and identifies 144 "gremlins". I'll soldier on :hmm:

[UPDATE] The good news is there's no custom DLL in this mod.

AlanH
Jul 13, 2007, 10:59 AM
Here are the three files I had to modify to persuade the Warlords version of Canada Mod to launch without errors and to start a game as Canada. I just replaced accented characters. They are in the following locations on my system:

~/Documents/Civilization IV Warlords/Mods/Canada Mod/Assets/XML/Text/GameTextInfos_Canada.xml

~/Documents/Civilization IV Warlords/Mods/Canada Mod/Assets/XML/Civilizations/CIV4CivilizationInfos.xml

~/Documents/Civilization IV Warlords/Mods/Canada Mod/Assets/XML/Units/CIV4UnitInfos.xml

I'm running version 2.08 of Warlords, so I've no idea what incompatibilities might show up as the game progresses. Please try swapping these three files and let me know how you get on.

AlanH
Jul 13, 2007, 11:25 AM
FWIW, here's the equivalent set of files for the Vanilla version of the Canada Mod. Vanilla Civ4 v1.61 loads and starts a game with these three files swapped.

Nothgual
Jul 13, 2007, 09:02 PM
Yep, it worked! I can start a game as the Canadians, but I won't be able to go through an entire game to test as I will be away from my precious CIV for the week. Stupid cottage. :p Thanks for all the help, I've been lurking these forums for some time and it was really cool to be treated so nicely with my first post. Thanks again!:goodjob:

Jorin
Sep 15, 2007, 04:51 PM
I am running the regular (not Warlords, etc) version of Civ IV for the Mac. I had the Canadian mod on my PC version before seeing the light, and would really like to run it on my Macbook Pro. Unfortunately, I get the same XML errors as everyone else. Does anyone have a fixed version of the Canada Mod for Mac that they could post, or am I stuck learning XML?

Thanks!
Jorin

AlanH
Sep 15, 2007, 04:58 PM
Umm :hmm:

The post two above yours includes a link to the three files I changed to make the Canada mod load successfully in vanilla.

Jorin
Sep 18, 2007, 09:40 AM
Umm :hmm:

The post two above yours includes a link to the three files I changed to make the Canada mod load successfully in vanilla.

Context made it look like the mod fix might only be for Warlords, hence the question. Not having run Warlords, I am unclear if normal mods work with it...

AlanH
Sep 18, 2007, 09:57 AM
Let's spell it out, then ...

There are two versions of the Canada Mod available for download. You need to pick the right one (vanilla in your case), and then pick the right set of fixed files to make it work on your Mac.

One mod version is for Warlords, and that was the first one I fixed, and I posted the fixed files in post #26.

The other mod version is the one you need. It is for the Vanilla (what you refer to as "regular") version of Civ4. My post #27 includes the three files you need to change in that one.

I hope this makes it clearer for you.

MotezumaMan
Mar 04, 2008, 09:47 PM
Here are the three files I had to modify to persuade the Warlords version of Canada Mod to launch without errors and to start a game as Canada. I just replaced accented characters. They are in the following locations on my system:

~/Documents/Civilization IV Warlords/Mods/Canada Mod/Assets/XML/Text/GameTextInfos_Canada.xml

~/Documents/Civilization IV Warlords/Mods/Canada Mod/Assets/XML/Civilizations/CIV4CivilizationInfos.xml

~/Documents/Civilization IV Warlords/Mods/Canada Mod/Assets/XML/Units/CIV4UnitInfos.xml

I'm running version 2.08 of Warlords, so I've no idea what incompatibilities might show up as the game progresses. Please try swapping these three files and let me know how you get on. okay i loaded the attatchment loaded the mod and went to single player and clicked "Play a Scenario" and it did not show up just a WB save whats wrong?

AlanH
Mar 05, 2008, 03:39 AM
Where have you installed the mod? Do you have a folder at ~/Documents/Civilization IV Warlords/Mods/Canada Mod/ containing all of the files that were in the main download? If so, it should show up in Play a Scenario.

MotezumaMan
Mar 06, 2008, 01:03 PM
Where have you installed the mod? Do you have a folder at ~/Documents/Civilization IV Warlords/Mods/Canada Mod/ containing all of the files that were in the main download? If so, it should show up in Play a Scenario. um it was in macintosh HD/civiliztion4/warlords/mods it would show up in "load a mod but not play a scenario and then i COPIED the file to the location you said and it shoed up in load a mod but not play a scenario and then i decided to pull it from my origanal location and leave it in the one you said and it didn't show up in "Load a Mod":mad:

AlanH
Mar 06, 2008, 02:34 PM
Sorry, I should have said it should show up in Load a Mod. The Play a Scenario listing shows maps that are installed in your ~/Documents/Civ4/Public Maps folder.

You *can* use either Mods folder - the one in the application software folder or the one in the ~/Documents/Civ4 branch. The intention is that user-installed mods go in the ~/.../Mods folder and Aspyr/Firaxis-supplied mods go in the application's Mods folder. Some mds work in one place and not in the other, though, so trial and error is often required.

MotezumaMan
Mar 07, 2008, 08:20 AM
Sorry, I should have said it should show up in Load a Mod. The Play a Scenario listing shows maps that are installed in your ~/Documents/Civ4/Public Maps folder.

You *can* use either Mods folder - the one in the application software folder or the one in the ~/Documents/Civ4 branch. The intention is that user-installed mods go in the ~/.../Mods folder and Aspyr/Firaxis-supplied mods go in the application's Mods folder. Some mds work in one place and not in the other, though, so trial and error is often required. so how do you play it if its not in play a scenario:confused: :(

AlanH
Mar 07, 2008, 08:39 AM
Select Load a Mod. Select Canada Mod. The game relaunches and you should see the mod name in the top right corner of the splash screen. Select Single Player and create a game in the usual way, except you should have Canadian Empire as a Civ option, with Canada Corps and RCMP as UUs, and Jean, King, MacDonald, Pearson or Trudeau as Leader options.

MotezumaMan
Mar 07, 2008, 07:22 PM
Select Load a Mod. Select Canada Mod. The game relaunches and you should see the mod name in the top right corner of the splash screen. Select Single Player and create a game in the usual way, except you should have Canadian Empire as a Civ option, with Canada Corps and RCMP as UUs, and Jean, King, MacDonald, Pearson or Trudeau as Leader options.

well i loaded the mod started the game and there is no canada civ:cry: :mad: :mad: :mad: :mad: :mad: :mad: :mad: :mad: :mad: :mad: :mad:

AlanH
Mar 07, 2008, 07:50 PM
Did the mod load OK? No errors during the load sequence? Did its name appear in the top right corner of the startup menu screen?

What did you do to start the game? I clicked Single Player, then Play Now! Selected the map options, then the list of Civs appeared. Canadian Empire appears after Random, and American, Arabian, Aztec Empires.

If you go through the Custom Game option then you have to select the leader you want to play, or to have as an opponent. Then you can choose from the names I listed above, and Canada appears as the civ name automatically.

MotezumaMan
Mar 07, 2008, 08:20 PM
Did the mod load OK? No errors during the load sequence? Did its name appear in the top right corner of the startup menu screen?

What did you do to start the game? I clicked Single Player, then Play Now! Selected the map options, then the list of Civs appeared. Canadian Empire appears after Random, and American, Arabian, Aztec Empires.

If you go through the Custom Game option then you have to select the leader you want to play, or to have as an opponent. Then you can choose from the names I listed above, and Canada appears as the civ name automatically.

no erros name appears at the top corner as CanadaMod And Weird Since it loaded FINE AND DANDY

AlanH
Mar 07, 2008, 09:03 PM
Warlords or vanilla? What Civ4 version number are you running?

MotezumaMan
Mar 07, 2008, 09:08 PM
Warlords or vanilla? What Civ4 version number are you running? Warlords 200 i think

AlanH
Mar 07, 2008, 09:16 PM
Warlords is v2.08, I hope. Are you using the Warlords version of the Canada Mod?

MotezumaMan
Mar 07, 2008, 09:38 PM
Warlords is v2.08, I hope. Are you using the Warlords version of the Canada Mod?

Yes warlords version

AlanH
Mar 07, 2008, 09:45 PM
Then there's no earthly reason that I can think of why you can't see Canada as a Civ option when you start a game!

MotezumaMan
Mar 07, 2008, 09:50 PM
Then there's no earthly reason that I can think of why you can't see Canada as a Civ option when you start a game!

ok ill try the vanilla cersion and if it doesn't work im beating on a dead horse:deadhorse:

AlanH
Mar 07, 2008, 10:13 PM
Here's a screenshot of my civ selection screen after I've chosen the map options. This is Mac vanilla v1.74 - Single Player->Play Now!

MotezumaMan
Mar 09, 2008, 09:24 PM
Here's a screenshot of my civ selection screen after I've chosen the map options. This is Mac vanilla v1.74 - Single Player->Play Now!

noooooooooo it doesnt work:cry::cry::cry::cry::cry::mad::mad::mad::mad:: mad::mad:ar15::run::vomit: