Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization

Notices

Reply
 
Thread Tools
Old Jun 02, 2010, 06:32 AM   #1
Davidsk0229
Chieftain
 
Join Date: Jun 2010
Location: Australia
Posts: 3
Non-latin-alphabet auto city naming

I've been trying to edit the Civilization Info XML doc to contain Cyrillic characters for the Russian cities. They seem to go in fine, but when I load it up, the game craps itself, regurgitates an error message about there being an error in line 1,1, and will only let me choose a "random civilization".

Anyone know how to do this?

I realise that I can change the name to one in another alphabet in-game... but I think it would be cool if the AI civilizations retained their culturally-specific alphabets eg. "Владивосток" instead of "Vladivostok", and "Αθήνα" instead of "Athens".

I knew nothing about scripts, XML, unicode or anything until about 48 hours ago, which is coincidentally around about the time when I decided to sprout this stupid idea.

I trawled over the site, read up on XML coding, and now know how to do some pretty cool stuff... but not exactly what I set out to do in the first place.

My IT savvy workmates hate me now.
Davidsk0229 is offline   Reply With Quote
Old Jun 02, 2010, 08:43 AM   #2
The_J
Say No 2 Net Validations

 
The_J's Avatar
 
Join Date: Oct 2008
Location: Germany / Netherlands
Posts: 24,837
Images: 51
You can't put the characters directly in, because, like you've already seen, civ will have problems reading them.
Instead you have to use the html encoding to display them properly.
Look at this table here, you hаve to put the &#1 stuff in the files.
__________________
Civ4-BtS-Mod "Mars, Now!"


Steam eats the souls of little gamers!!!
The_J is offline   Reply With Quote
Old Jun 03, 2010, 05:26 AM   #3
Davidsk0229
Chieftain
 
Join Date: Jun 2010
Location: Australia
Posts: 3
Thanks for the assistance The_J.

I managed to get that far, and learnt about html coding.
I've tried this on a few occasions, and now everything is running fine with the game, except the characters are coming up as question marks, instead of the character they are to represent.
Currently I'm sitting with:

<city>Москва</city>

Where 'Москва' is entered in unicode with the whole &#blah strangeness. It's coming up fine here, but Civ is interpreting the city name as:

??????

I don't know what I'm doing wrong.

This is for CivIV Beyond the Sword, if that helps...

I'll keep researching.
Davidsk0229 is offline   Reply With Quote
Old Jun 03, 2010, 10:08 AM   #4
Fuyu
Emperor
 
Fuyu's Avatar
 
Join Date: Nov 2009
Location: Austria
Posts: 1,147
I bet this will never work because Civ4 can't handle unicode.
Even with HTMLEncode, what you can get is still limited to the 8bit ANSI set. And even if that wasn't so, I doubt the font used by civ would be unicode-complete, so all you'd see then would be strange boxes.
Fuyu is offline   Reply With Quote
Old Jun 03, 2010, 02:58 PM   #5
The_J
Say No 2 Net Validations

 
The_J's Avatar
 
Join Date: Oct 2008
Location: Germany / Netherlands
Posts: 24,837
Images: 51
Can't really be, because there's a russion civ version out there.

i have really no idea at the moment.
__________________
Civ4-BtS-Mod "Mars, Now!"


Steam eats the souls of little gamers!!!
The_J is offline   Reply With Quote
Old Jun 04, 2010, 04:17 AM   #6
Davidsk0229
Chieftain
 
Join Date: Jun 2010
Location: Australia
Posts: 3
I considered what Fuyu said before, and was thinking that perhaps there's a way to discover the font that Civ uses, and perhaps alter it?
Maybe there's also a way to make Civ read unicode extended?

I've been looking this up for a week, and still have nothing. It's starting to tire me.

I think maybe the Russian Civ still uses Latin characters? It's still possible to read Russian in this fashion, but it takes a bit of getting used to. If not, I'd like to know how they did it...
Davidsk0229 is offline   Reply With Quote
Old Jun 04, 2010, 10:15 AM   #7
The_J
Say No 2 Net Validations

 
The_J's Avatar
 
Join Date: Oct 2008
Location: Germany / Netherlands
Posts: 24,837
Images: 51
No, russian civ uses kyrillic letters,
Spoiler:



Fonts: That's a good idea.
In BtS\Resource\Fonts should the fonts be stored.
If the files don't include russian letters it will probably fail, i guess.
__________________
Civ4-BtS-Mod "Mars, Now!"


Steam eats the souls of little gamers!!!
The_J is offline   Reply With Quote
Old Jun 04, 2010, 11:53 AM   #8
Fuyu
Emperor
 
Fuyu's Avatar
 
Join Date: Nov 2009
Location: Austria
Posts: 1,147
Russian Language mod
It seems to be possible, but the mod dl link doesn't work and I don't speak russian, so I don't know how they did it.
Fuyu is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Non-latin-alphabet auto city naming

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
City Placement, City Naming and the Evolution of Languages Lokolus Civ4 - Rhye's and Fall of Civilization 8 Apr 17, 2008 09:35 AM
Naming City #1 dutchfire Civ4 - Demo Game II: Polls 6 Jul 12, 2007 06:51 AM
original city names in non-latin alphabet ? MaisseArsouye Civ3 - Creation & Customization 11 Oct 07, 2004 06:07 AM
City Graphics: Latin American Cities Emperor Xerxes Civ3 - Graphics Modpacks 34 Jun 06, 2004 05:09 PM
City Naming Rights: Determining Naming Order Donovan Zoi Civ3 - Demo Game III: Citizens 9 Jun 10, 2003 05:08 PM


Advertisement

All times are GMT -6. The time now is 10:50 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR