Civ Gold 5.0 Mod on Mac BTS

Pnarkiew

Chieftain
Joined
Apr 6, 2010
Messages
2
Hello,
I need some help here with the Civ 5.0 Mod running on my mac! So I used the program Crossover to install the Civ 5.0 Gold mod .exe onto my hardrive and into BTS. The mod does work, just with about 50+ xml errors. I am not concerned with somebody helping me fix all of these, but I feel all these errors are very similar and if someone could show me how to fix one i could fix the rest on my own. I'll make it clear that the mod works, but for many of the custom units and leaders and Civs, the in game text comes up as the TEXT_KEY_UNIT thing....the all caps thing. If someone might be able to help me and let me know what information they would need to help me, it would be greatly appreciated. I cant live without this mod!!!
 
Hi, welcome :wavey:

The usual problem is that non-Latin text is not handled correctly. Open each XML file that throws an error using BBEdit (paid) or TextWrangler (free). Select the Text->Zap Gremlins menu item and tell it to replace or delete "gremlins". Replace them with a bullet (Alt 8) if you want to find them all and replace them with a valid character, or just delete them if you don't care. Save the file. Repeat for the next file. When all are done, try loading the mod again.

Note that the errors usually come up in pairs. The second error message is a consequence of the first and doesn't require any action.
 
AlanH,
Thanks for your help in solving this problem! I really appreciate your time. I zapped a lot of Gremlins and the mod works almost flawlessly. The only name that isnt making it through to the game form the XML files is one of the leaders of Scotland, but the chances of me playing that character or against are so slim that im forgetting about it. Again, thanks for your time and quick response to my question.:goodjob:

Anyone looking to play CivGold 5.0 mac, It works! :)
 
thanks for mentioning that crossover thing. Ill see if the whole thing works!
 
how exactly do you get crossover to convert the .exe file? I donwloaded the free trial of crossover on my mac went to the CIV GOLD.exe and did open with...and I selected crossover. The application opened, asked me if I wanted to buy or use the free trial. I said free trial and clicked ask me later pertaining to the following question. Then nothing happened. What should I do?
 
how exactly do you get crossover to convert the .exe file? I donwloaded the free trial of crossover on my mac went to the CIV GOLD.exe and did open with...and I selected crossover. The application opened, asked me if I wanted to buy or use the free trial. I said free trial and clicked ask me later pertaining to the following question. Then nothing happened. What should I do?

You should be able to get CivGold going without Crossover, Civ4 has generally not worked very at well at all under Crossover, at least from what I've read. If it comes in an .exe then that is a Windows installer package. You need to extract the actual mod from that first, use a program like the Unarchiver to do this. The actual folder you want to install will have a subfolder called 'Assets' in it (among others), all the levels before that need to be deleted.

Once you've got it showing up in the mods list in Civ you'll very probably get xml errors when you try to run it. You need to use the 'Zap Gremlin' feature of TextWrangler to fix these errors.

I'm surmising here as CivGold is just too huge and out of date for me to bother downloading, but this method works for most other mods so long as they don't contain a .dll.
 
Select the Text->Zap Gremlins menu item and tell it to replace or delete "gremlins".

Alan (or anyone else), do you know to what characters/control characters this applies to (carriage return maybe?)?
I ask, because i want to make my mod playable on Mac, and a user has came up with the same problems.
Without a Mac i can't use the mentioned program, and a google search for "gremlins windows mac" doesn't really give any meaningful results, so i would need some help to understand what exactly the problem is :sad:.
I guess all the german umlauts could be a problem, but the error was even thrown for a file with only english text, so this can't be the problem.

Any ideas or advice :please:?
 
Anything with encoded bytes less than 32 or greater than 127 will fail unless you specify in the XML header that it is encoded to Unicode standards. Even then, I'm not convinced it will work. I would strongly recommend sticking to 7 bit ASCII characters.

I'm not sure you should put carriage returns and line feeds into the XML text fields?

Accented characters are typically encoded using ASCII codes above 128 using Windows code pages. If you use a word processor to create English text that includes any fancy characters like 'smart quotes', long dashes or special non-breaking spaces then they will also have illegal codes. A safe way to include such characters in your text is to use HTML escaping. Here is a list of HTML codes for characters up to 255.

I'll be happy to look at a file and give you feedback on which characters are problematic. Just upload it here as a zip file.
 
In my experience of converting mod components to work on Mac the most common offenders outside of accented characters are hyphens, apostrophes and quotes. Some text editors use "smart" quotes and hyphens, automatically changing the symbol used depending on their use in a sentence (e.g opening vs closing quotes, dash vs minus vs hyphen) and these cause non-standard ASCII symbols to be used.

The safe versions to use are ASCII code 45 for hyphens/dashes, ASCII code 39 for apostrophes and ASCII code 34 for quotes. If you want to enter an ASCII code directly into an XML file it looks like & # 34 ; (but without the spaces).
 
Already thanks for the advice :).
I've already thought about some of the characters, but in the one file i mentioned (which is in fact an artifact from my bad organization skill, but is really small) i can't really see by eye which could be the problem, besides the " at the top of the file maybe.
Spoiler :

HTML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by XMLSPY 2004 Professional Ed. Release 2, Installed Multi + SMP for 3 users (Firaxis Games) -->
<!-- Sid Meier's Civilization 4 -->
<!-- Copyright Firaxis Games 2005 -->
<!-- -->
<!-- Game Text - New -->
<Civ4GameText xmlns="http://www.firaxis.com">
	<TEXT>
		<Tag>TXT_KEY_TRAIT_AGR</Tag>
		<English>Agricultural</English>
		<French>Agricultural</French>
		<German>Agricultural</German>
		<Italian>Agricultural</Italian>
		<Spanish>Agricultural</Spanish>
	</TEXT>
	<TEXT>
		<Tag>TXT_KEY_TRAIT_AGR_SHORT</Tag>
		<English>Agr</English>
		<French>Agr</French>
		<German>Agr</German>
		<Italian>Agr</Italian>
		<Spanish>Agr</Spanish>
	</TEXT>
	<TEXT>
		<Tag>TXT_KEY_AGR_TRAIT_HELP</Tag>
		<English>[NEWLINE][SPACE][SPACE][ICON_BULLET]New Cities Start with 2 Population[NEWLINE][SPACE][SPACE][ICON_BULLET]Extra [ICON_FOOD] on City Growth</English>
		<French>[NEWLINE][SPACE][SPACE][ICON_BULLET]New Cities Start with 2 Population[NEWLINE][SPACE][SPACE][ICON_BULLET]Extra [ICON_FOOD] on City Growth</French>
		<German>[NEWLINE][SPACE][SPACE][ICON_BULLET]New Cities Start with 2 Population[NEWLINE][SPACE][SPACE][ICON_BULLET]Extra [ICON_FOOD] on City Growth</German>
		<Italian>[NEWLINE][SPACE][SPACE][ICON_BULLET]New Cities Start with 2 Population[NEWLINE][SPACE][SPACE][ICON_BULLET]Extra [ICON_FOOD] on City Growth</Italian>
		<Spanish>[NEWLINE][SPACE][SPACE][ICON_BULLET]New Cities Start with 2 Population[NEWLINE][SPACE][SPACE][ICON_BULLET]Extra [ICON_FOOD] on City Growth</Spanish>
	</TEXT>
</Civ4GameText>

a bit suprising, imho, there's nothing really special, which i could see.


Would be nice if you could take a short look at the 2 attached files.
One is the mentioned file, because i would like to know what the problem there is, the second one is one of the files which is used, it has some ü in it, which are probably problematic (okay, they have to be), but it has also the same structure like the other file, so there should be minimum one more error, i guess.


Thanks for your help :).
 

Attachments

I can't see anything wrong in Agricultural_Trait_CIV4GameText.xml. I have not tried loading it in a Civ4 mod, but the BBEdit Zap Gremlins command doesn't find anything, and I have checked its syntax as a valid XML document. What evidence do you have that it causes problems?

In Industrialespionage_GameText.xml you have several ü characters:

Line 20: Plündert
Lines 28, 36 and 44: geplündert

I think you can probably fix this file by changing these to &# 252; or & uuml; without the space.

PS I've used HTML-Kit as a free Windows text editor with similar capabilities to BBEdit. I think that has quite extensive facilities for converting "special characters" into HTML entities.
 
I can't see anything wrong in Agricultural_Trait_CIV4GameText.xml. I have not tried loading it in a Civ4 mod, but the BBEdit Zap Gremlins command doesn't find anything, and I have checked its syntax as a valid XML document. What evidence do you have that it causes problems?

I have a screenshot from the user where the file is mentioned, but it seems i've missinterpreted the error.
"LoadXML call failed for XML\Text\civ4gameTextInfos_objects.xml. Current XML file is: XML\Text\Agricultural_Trait_CIV4GameText.xml."
I guess this means only the first file is affected, right?


PS I've used HTML-Kit as a free Windows text editor with similar capabilities to BBEdit. I think that has quite extensive facilities for converting "special characters" into HTML entities.

Downloaded, will later see how it is.




Thanks for the check :). I hope i'll get my mod to work with your help (which i hope is now not more needed :)).
 
I have a screenshot from the user where the file is mentioned, but it seems i've missinterpreted the error.
"LoadXML call failed for XML\Text\civ4gameTextInfos_objects.xml. Current XML file is: XML\Text\Agricultural_Trait_CIV4GameText.xml."
I guess this means only the first file is affected, right?

Yes. "Current XML file" means the last one loaded and working fine. It's only the first file mentioned in such errors that you need to fix.
 
Back
Top Bottom