Modmodding Q&A Thread

Is the alpha channel of that flag black? If it's black, in CIV4ArtDefines_Civilization under your civilization you should write 1 between <bWhiteFlag> and </bWhiteFlag>
 
If i'm not wrong, you should go to the "Adjustments" menu and click on "Alpha Transform".
You have to make it completely black with the bucket tool.
Anyway, first do a backup of the flag, i'm not sure this is right.
 
I don't know, I usually use DXTBmp and Paint Shop pro. I downloaded Paint.net just for help you, and I found that function under the Adjustment menu.
 
Hmm.. strange. Let me find out the problem. It seems like not a technical problem, but simply my misunderstanding of flag dds files.



Civ4_Screen_Shot1064.jpg


The most embarrassing one. Why it becomes originally wanted color when I zoomed in on it?
 
Can you upload the flag DDS file? Maybe I can edit it.
 
I use GIMP to edit the dds files. Free and easy to use.

It's IIRC also the most common dds editor among the modders. Most tutorials are written for GIMP users.
 
You saved it as DDS DXT5. It must be saved as DDS DXT3. Probably, that's the problem.
 
I don't know how to help you now. Sorry.
 
What are the rules that determine if a tile is a core tile/ historical tile/ contest tile? I have some tiles that should be contest tile, but are historical. And I also have a tile that is core, which should be contest as well. (And I'm sure I excluded this this in the consts.py)
 
Core: the rectangle defined in Consts.py minus the exceptions. Mind though that the core is determined at game start and then becomes immutable for speed reasons, so it won't work if you try to change it at runtime.

Historical: settler map value >= 90.

Contested: historical and core of another civilization that has already spawned (more precisely, that is past its spawn date. The cores of conditional civilizations will still be displayed even if they don't spawn).

A core will always be displayed as core even if it is also another civilization's core.
 
If you are using 1.11v files, historical zone is the tile that have city placement AI value higher than 90, and core area is identical with flip zone.

Contest Area is just historical area that is also other civs' core.
 
Did you start a new game after the change? Are you sure you have changed the exception in the right "row" (there are duplicate entries for not-reborn and reborn civs).
 
This is my consts.py.

Spoiler :
Code:
#core areas (for RiseAndFall and Victory)

tCoreAreasTL = (
((66, 30), #Egypt
(99, 43), #China 
(75, 38), #Babylonia
(65, 39), #Greece
(87, 36), #India
(71, 39), #Carthage
(79, 37), #Persia
(59, 41), #Rome
(90, 28), #Tamils
(69, 27), #Ethiopia
(107, 45), #Korea
(20, 35), #Maya
(64, 38), #Byzantium
(111, 41), #Japan
(58, 56), #Vikings
(67, 30), #Arabia	73,30
(92, 41), #Tibet
(100, 32), #Khmer
(98, 24), #Indonesia
(51, 37), #Moors
(49, 43), #Spain
(51, 46), #France
(50, 53), #England
(58, 48), #Holy Rome
(67, 50), #Russia
(49, 26), #Mali
(63, 50), #Poland
(44, 42), #Portugal
(26, 20), #Inca
(58, 45), #Italy
(87, 46), #Mongolia
(15, 36), #Aztecs
(86, 38), #Mughals
(69, 41), #Turkey
(100, 32), #Thailand
(61, 19), #Congo
(61, 56), #Sweden
(56, 52), #Holland
(58, 49), #Germany
(25, 43), #America
(31, 3), #Buenos Aires
(36, 14), #Brazil
),
((66, 30), #Egypt
(99, 43), #China 
(75, 38), #Babylonia
(65, 39), #Greece
(87, 33), #India
(54, 37), #Carthage
(79, 37), #Persia
(58, 45), #Rome	
(90, 28), #Tamils
(69, 27), #Ethiopia
(107, 45), #Korea
(25, 27), #Colombia
(64, 41), #Byzantium
(111, 41), #Japan
(58, 56), #Vikings
(73, 30), #Arabia
(92, 41), #Tibet
(97, 35), #Khmer (Vietnam)
(98, 24), #Indonesia
(51, 37), #Moors
(49, 40), #Spain
(51, 46), #France
(50, 53), #England
(61, 46), #Holy Rome
(67, 50), #Russia
(49, 26), #Mali
(63, 50), #Poland
(44, 42), #Portugal
(26, 20), #Inca
(58, 40), #Italy
(87, 46), #Mongolia
(12, 33), #Mexico
(86, 37), #Mughals
(68, 41), #Turkey
(100, 32), #Thailand
(61, 19), #Congo
(61, 56), #Sweden
(56, 52), #Holland
(58, 49), #Germany
(25, 43), #America
(31, 3), #Buenos Aires
(36, 14), #Brazil
)) 

tCoreAreasBR = (
((70, 36), #Egypt
(107, 47), #China
(77, 42), #Babylonia
(70, 45), #Greece
(96, 40), #India
(74, 41), #Carthage
(85, 44), #Persia
(63, 47), #Rome
(93, 34), #Tamils
(73, 30), #Ethiopia
(110, 49), #Korea
(23, 37), #Maya
(74, 45), #Byzantium
(116, 49), #Japan
(64, 62), #Vikings
(80, 40), #Arabia	81,39
(98, 45), #Tibet
(103, 36), #Khmer
(107, 31), #Indonesia
(58, 43), #Moors
(53, 46), #Spain
(57, 52), #France
(54, 60), #England   57 without Scotland
(64, 54), #Holy Rome
(74, 58), #Russia
(57, 31), #Mali
(67, 55), #Poland
(50, 44), #Portugal
(29, 24), #Inca
(63, 47), #Italy
(105, 58), #Mongolia
(20, 41), #Aztecs
(91, 43), #Mughals
(77, 48), #Turkey
(103, 36), #Thailand
(65, 22), #Congo
(65, 62), #Sweden
(58, 54), #Holland
(66, 55), #Germany
(32, 50), #America
(36, 13), #Argentina
(43, 27), #Brazil
),
((70, 36), #Egypt
(107, 47), #China
(77, 42), #Babylonia
(70, 45), #Greece
(94, 40), #India
(60, 39), #Carthage
(85, 44), #Persia
(63, 47), #Rome
(93, 34), #Tamils
(73, 30), #Ethiopia
(110, 49), #Korea
(29, 32), #Colombia
(74, 45), #Byzantium
(116, 49), #Japan
(64, 62), #Vikings
(81, 39), #Arabia
(98, 45), #Tibet
(102, 38), #Khmer
(107, 31), #Indonesia
(58, 43), #Moors
(55, 46), #Spain
(57, 52), #France
(54, 60), #England   57 without Scotland
(66, 51), #Holy Rome
(74, 58), #Russia
(57, 31), #Mali
(67, 55), #Poland
(50, 44), #Portugal
(29, 24), #Inca
(63, 47), #Italy
(106, 58), #Mongolia
(23, 43), #Mexico
(94, 43), #Mughals
(77, 48), #Turkey
(103, 36), #Thailand
(65, 22), #Congo
(65, 62), #Sweden
(58, 54), #Holland
(66, 55), #Germany
(32, 50), #America
(36, 13), #Argentina
(43, 27), #Brazil
))


tExceptions = (  #for RiseAndFall
((), #Egypt
(), #China
((78, 41), (78, 42)), #Babylonia
((64, 45), (65, 45), (66, 45)), #Greece
(), #India
(),#(73, 40), (73, 41)), #Carthage
((72, 39), (72, 40), (72, 41), (73, 41), (74, 41), (75, 41), (76, 41), (77, 41), (78, 41), (73, 40), (74, 40), (75, 40), (76, 40), (77, 40), (78, 40), (73, 39), (74, 39), (75, 39), (76, 39), (77, 39), (78, 39), (73, 38), (74, 38), (75, 38), (76, 38), (77, 38), (72, 37), (73, 37), (74, 37), (75, 37), (76, 37), (77, 37), (78, 37)), #Persia
(), #Rome
((90, 33), (90, 34), (91, 34)), #Tamils
(), #Ethiopia
(), #Korea
(), #Maya
(), #Byzantium
(), #Japan
(), #Vikings
((82, 34), (73, 40), (75, 40), (71, 36), (72, 37), (67, 30), (68, 30), (69, 30), (70, 30), (71, 30), (72, 30), (72, 31), (72, 32), (71, 32)),  #Arabia
((98, 42),), #Tibet
(), #Khmer
((100, 31), (100, 30), (101, 29)), #Indonesia
((58, 43), (58, 42)), #Moors
((49, 41), (49, 42), (49, 43), (49, 44), (50, 43), (50, 44), (50, 42)), #Spain
((55, 46), (57, 46), (56, 45), (57, 45), (58, 48), (58, 49), (58, 50), (53, 46), (52, 46), (51, 46), (57, 46), (56, 52), (57, 52)), #France
(), #England
((64, 51), (64, 52), (64, 53), (64, 54)),  #Holy Rome
((68, 58), (69, 58), (70, 58), (65, 55), (66, 55), (66, 56)), #Russia
(), #Mali
((63, 50), (64, 50)), #Poland
(), #Portugal
(), #Inca
((63,47), (63,46)), #Italy
((99, 47), (100, 47), (101, 47), (102, 47), (103, 47), (99, 46), (100, 46), (101, 46), (102, 46), (103, 46), (104, 46), (99, 45), (100, 45), (101, 45), (102, 45), (103, 45), (104, 45), (105, 45), (106, 45)), #Mongolia
(), #Aztecs
((92, 43), (93, 42), (93, 43), (94, 42), (94, 43)), #Mughals
((68, 48), (68, 49), (73, 40), (73, 41), (73, 42), (71, 42), (70, 42), (74, 42), (75, 42), (80, 47), (80, 48), (80, 49), (67, 42), (67, 41)), #Turkey
(), #Thailand
(), #Congo
((65, 56)),	#Sweden
((57, 51), (58, 51)), #Holland
((62, 49), (62, 50), (63, 49), (63, 50), (64, 49), (64, 50), (64, 51), (65, 49), (65, 50), (65, 51), (66, 49), (66, 50), (66, 51), (58, 52), (58, 53), (62, 51), (63, 51), (64, 53), (61, 49), (61, 50), (64, 52), (58, 54)),  #Germany
((25, 48), (25, 49), (26, 48), (27, 49), (27, 50), (28, 50), (29, 50), (30, 50)), #America
((35, 12), (35, 13), (36, 12), (36, 13)), #Argentina
(), #Brazil
),
((), #Egypt
(), #China
((78, 41), (78, 42)), #Babylonia
((64, 45), (65, 45), (66, 46)), #Greece
(), #India
(),#(73, 40), (73, 41)), #Carthage
(), #Persia
((63,47), (63,46)), #Rome		# ITALY
((90, 33), (90, 34), (91, 34)), #Tamils
(), #Ethiopia
(), #Korea
(), #Maya
(), #Byzantium
(), #Japan
(), #Vikings
((82, 34), (73, 40), (75, 40), (71, 36), (72, 37), (67, 30), (68, 30), (69, 30), (70, 30), (71, 30), (72, 30), (72, 31), (72, 32), (71, 32)),  #Arabia
((98, 42),), #Tibet
(), #Khmer
((100, 31), (100, 30), (101, 29)), #Indonesia
((58, 43), (58, 42)), #Moors
((49, 41), (49, 42), (49, 43), (49, 44), (50, 43), (50, 44), (50, 42), (55, 46)), #Spain
((55, 46), (57, 46), (56, 45), (57, 45), (58, 48), (58, 49), (58, 50), (53, 46), (52, 46), (51, 46), (57, 46)), #France
(), #England
((61, 51), (64, 51), (65, 51), (66, 51)),  #HolyRome
((68, 58), (69, 58), (70, 58), (65, 55), (66, 55), (66, 56)), #Russia
(), #Mali
((63, 50), (64, 50)), #Poland
(), #Portugal
(), #Inca
((63,47), (63,46)), #Italy
((90, 47), (91, 47), (92, 47), (93, 47), (94, 47), (95, 47), (96, 47), (97, 47), (98, 47), (99, 47), (100, 47), (101, 47), (102, 47), (103, 47), (99, 46), (100, 46), (101, 46), (102, 46), (103, 46), (104, 46), (99, 45), (100, 45), (101, 45), (102, 45), (103, 45), (104, 45), (105, 45), (106, 45)), #Mongolia
((19, 40), (19, 41), (20, 41), (19, 42), (20, 42), (21, 42), (23, 42), (18, 43), (19, 43), (20, 43), (21, 43), (22, 43), (23, 43), (21, 33), (22, 33), (23, 33), (22, 34), (23, 34), (22, 35)), #Mexico
((92, 43)), #Mughals
((68, 48), (68, 49), (73, 40), (73, 41), (73, 42), (71, 42), (70, 42), (74, 42), (75, 42), (80, 47), (80, 48), (80, 49)), #Turkey
(), #Thailand
(), #Congo
((65, 56)),	#Sweden
((57, 51), (58, 51)), #Holland
((62, 49), (62, 50), (63, 49), (63, 50), (64, 49), (64, 50), (64, 51), (65, 49), (65, 50), (65, 51), (66, 49), (66, 50), (66, 51), (62, 51), (63, 51), (66, 52), (65, 53), (66, 53), (65, 52)),  #Germany
((25, 48), (25, 49), (26, 48), (27, 49), (27, 50), (28, 50), (29, 50), (30, 50)), #America
((35, 12), (35, 13), (36, 12), (36, 13)), #Argentina
(), #Brazil
))
 
Should work ... have you double checked that you didn't delete a row from the exceptions list so that the ids don't match up?
 
Back
Top Bottom