text error for CCM mod

Ikanowa

Chieftain
Joined
Sep 23, 2015
Messages
4
#Start buildings
#ICON_BLDG_Palace
CULTURE
0
art\civilopedia\icons\buildings\palaceamerlarge.pcx
art\civilopedia\icons\buildings\palaceeurlarge.pcx
art\civilopedia\icons\buildings\palaceromlarge.pcx
art\civilopedia\icons\buildings\palacemealarge.pcx
art\civilopedia\icons\buildings\palacefealarge.pcx
art\civilopedia\icons\buildings\palaceamersmall.pcx
art\civilopedia\icons\buildings\palaceeursmall.pcx
art\civilopedia\icons\buildings\palaceromsmall.pcx
art\civilopedia\icons\buildings\palacemeasmall.pcx
art\civilopedia\icons\buildings\palacefeasmall.pcx
#ICON_BLDG_Barracks
ERA
1
art\civilopedia\icons\buildings\barracksanclarge.pcx
art\civilopedia\icons\buildings\barracksrenlarge.pcx
art\civilopedia\icons\buildings\barracksindmodlarge.pcx
art\civilopedia\icons\buildings\barracksindmodlarge.pcx
art\civilopedia\icons\buildings\barracksancsmall.pcx
art\civilopedia\icons\buildings\barracksrensmall.pcx
art\civilopedia\icons\buildings\barracksindmodsmall.pcx
art\civilopedia\icons\buildings\barracksindmodsmall.pcx
#ICON_BLDG_Granary
ERA
2
art\civilopedia\icons\buildings\granaryancrenindlarge.pcx
art\civilopedia\icons\buildings\granaryancrenindlarge.pcx
art\civilopedia\icons\buildings\granaryancrenindlarge.pcx
art\civilopedia\icons\buildings\granarymodlarge.pcx
art\civilopedia\icons\buildings\granaryancrenindsmall.pcx
art\civilopedia\icons\buildings\granaryancrenindsmall.pcx
art\civilopedia\icons\buildings\granaryancrenindsmall.pcx
art\civilopedia\icons\buildings\granarymodsmall.pcx
#ICON_BLDG_Temple
CULTURE
3
art\civilopedia\icons\buildings\templeamerlarge.pcx
art\civilopedia\icons\buildings\templeromlarge.pcx
art\civilopedia\icons\buildings\templeromlarge.pcx
art\civilopedia\icons\buildings\templemealarge.pcx
art\civilopedia\icons\buildings\templefealarge.pcx
art\civilopedia\icons\buildings\templeamersmall.pcx
art\civilopedia\icons\buildings\templeromsmall.pcx
art\civilopedia\icons\buildings\templeromsmall.pcx
art\civilopedia\icons\buildings\templemeasmall.pcx
art\civilopedia\icons\buildings\templefeasmall.pcx
#ICON_BLDG_Marketplace
ERA
4
art\civilopedia\icons\buildings\MarketplaceAnclarge.pcx
art\civilopedia\icons\buildings\MarketplaceAnclarge.pcx
art\civilopedia\icons\buildings\supermarketlarge.pcx
art\civilopedia\icons\buildings\Shopping_large.pcx
art\civilopedia\icons\buildings\MarketplaceAncsmall.pcx
art\civilopedia\icons\buildings\MarketplaceAncsmall.pcx
art\civilopedia\icons\buildings\supermarketsmall.pcx
art\civilopedia\icons\buildings\Shopping_small.pcx
#ICON_BLDG_Library
ERA
5

each file is behind one and theres about 300 and it would take me all day to fix, anyone know a quick way to solve this issues
 
#Start buildings
#ICON_BLDG_Palace
CULTURE
0
art\civilopedia\icons\buildings\palaceamerlarge.pcx
art\civilopedia\icons\buildings\palaceeurlarge.pcx
art\civilopedia\icons\buildings\palaceromlarge.pcx
art\civilopedia\icons\buildings\palacemealarge.pcx
art\civilopedia\icons\buildings\palacefealarge.pcx
art\civilopedia\icons\buildings\palaceamersmall.pcx
art\civilopedia\icons\buildings\palaceeursmall.pcx
art\civilopedia\icons\buildings\palaceromsmall.pcx
art\civilopedia\icons\buildings\palacemeasmall.pcx
art\civilopedia\icons\buildings\palacefeasmall.pcx
#ICON_BLDG_Barracks

*snip*

each file is behind one and theres about 300 and it would take me all day to fix, anyone know a quick way to solve this issues
That's a textfile, right?

The simplest way I can think of to fix that kind of typo would be to open the textfile in e.g M$Word, and do one or more 'Find/Change' operations. Whichever method you pick, make a backup of this textfile before you start!:

Method 1 (takes longer, but you're less likely to accidentally delete something you want to keep):
  1. Manually select a text section(s) containing spurious spaces, excluding any lines where spaces are needed
  2. Do 'Find all' for a single-space, within the 'Current selection'. This should highllight all the spaces you don't want
  3. Hit Delete to wipe them out
  4. Repeat steps 1-3 for the next section
  5. If you realise you've made a mistake(s), Ctrl-Z will undo the last (couple of) operation(s)
Method 2 (more complex, more risky, but quicker):
  1. If I've counted right, the spurious space appears to have been inserted at the 19th character in every case, so (at least in M$Word) you could use the following search string:
    buildings\^?^?^?^?^?^?^?^?^?^?^?^?^?^?^?^?^?^? ^?
    ('^?' = 'any character' wildcard, so 18 of these, followed by a space, followed by another '^?')​
  2. Choose 'Find all' in 'Whole document'. This should highlight every text-section with a spurious space in it.
  3. Then, do 'Find all' again, for a single-space, but this time only in the 'Current selection'. This should highlight only those spurious spaces -- all of them at once.
  4. Hit Delete to wipe them all out in one go.
When you're done, 'Save as' a .txt file again.
 
Back
Top Bottom