PDA

View Full Version : Banners for rebels in strat map



Monkwarrior
10-21-2007, 17:34
I've been unable to find something about this question.

I was trying to set up some new banners for rebels settlements, when the settlement is empty or out of the sight of the units/agents.
After many attempts I succeded in puting the new banners in game, but I was surprised :dizzy2: by the following result: (I've used images as they are quite self-explanatory)
https://i67.photobucket.com/albums/h292/Monkwarrior/banners_rebeldes_duda3.jpg
https://i67.photobucket.com/albums/h292/Monkwarrior/banners_rebeldes_duda4.jpg
https://i67.photobucket.com/albums/h292/Monkwarrior/banners_rebeldes_duda5.jpg
https://i67.photobucket.com/albums/h292/Monkwarrior/banners_rebeldes_duda.jpg
https://i67.photobucket.com/albums/h292/Monkwarrior/banners_rebeldes_duda2.jpg

Unless somebody can show me where this aspect is coded (any text file?) I'm now thinking that this "silly" question is hardcoded, as the game is using the original faction-to-culture assignation instead of the new one (descr_sm_faction). :furious3:

Makanyane
10-21-2007, 17:45
Try fiddling with descr_banners.txt

it has section that includes

faction thrace
standard_texture models/textures/standard_thrace.tga
rebels_texture models/textures/standard_greek_rebels.tga
routing_texture models/textures/standard_routing.tga
ally_texture models/textures/standard_thrace_ally.tga

Monkwarrior
10-21-2007, 17:51
Try fiddling with descr_banners.txt

it has section that includes
Unfortunately, it is not the solution.
Those banners are for battle map.
I've changed this file accordingly and now the rebels are carrying the correct standards in battles.

Makanyane
10-21-2007, 18:41
sorry I can never remember which bit is which :embarassed: just change everything and hope I haven't missed too much!

How about


faction thrace
culture greek
symbol models_strat/symbol_thrace.CAS
rebel_symbol models_strat/symbol_greek_rebel.CAS
type bit in descr_sm_factions itself? I think the CAS file calls the associated texture automatically so maybe if you switched those around?

Red Spot
10-21-2007, 20:04
Edit;
never mind, I now see the real issue ....


G

Makanyane
10-21-2007, 20:07
yeah but - its culture specific!

I did finally test out changing the sm_factions rebel cas line on BI and it works for me :)

Red Spot
10-21-2007, 20:15
good to know, means I dont have to come to a similair conclusion for the problem I have not yet noticed ... (having 16 roman factions ...)


G

Monkwarrior
10-21-2007, 20:42
sorry I can never remember which bit is which :embarassed: just change everything and hope I haven't missed too much!

How about

type bit in descr_sm_factions itself? I think the CAS file calls the associated texture automatically so maybe if you switched those around?
HALELUYA!

Thanks a lot Makanyane ~:cheers: . You have saved my modding day.

I'm in debt with you, as I had never thought that this (apparently) simple question would require the modification of cas files.

Thanks again.:bow:

Red Spot
10-21-2007, 21:16
Hope you dont mind me going oftopic here, but I must say I'd really like to see that map in full glory .....


G

Makanyane
10-21-2007, 21:32
seconds the above comment, please post links to full map :beam:


btw if anyone gets stuck with some of the .cas's that call default texture as the texture path isn't in text file (resources do as well), but wants to use another texture for different version and can't edit .cas, I did find a dodge that works.

If there is a file that gives path to the .cas file but not texture, change the path to the cas like:
rebel_symbol models_strat_new/symbol_greek_rebel.CAS
make models_strat_new folder and put copy of cas in that and revised version of the texture it looks for in
models_strat_new/textures/...
that way you can have same .cas used with two different textures without needing 3DSMax to edit the default texture name

Monkwarrior
10-21-2007, 21:33
Hope you dont mind me going oftopic here, but I must say I'd really like to see that map in full glory .....


G
When I finish all the banner, I'll show you the final aspect.

Unfortunately, we can have a large variety of banners for rebels, when the settlements are out of sight, but they are limited to the number of cultures when they are in the line of sight. :inquisitive:

Monkwarrior
10-21-2007, 22:58
Hi again.
I'm not sure of understanding you, Mak.
I'm using several "redesigned" symbols, using the original cas, with modified textures (keeping the same name) but in the mod folder. After seeing how it works, I really don't undertand how it works... but it does.

Here you have some images:

These are two rebel settlements corresponding to different cultures and factions. I haven't any agent or army in the nearby.
https://i67.photobucket.com/albums/h292/Monkwarrior/nuevos_banners1.jpg

Unfortunately, the aspect is different when the agents are close, and I must use generic symbols:
https://i67.photobucket.com/albums/h292/Monkwarrior/nuevos_banners2.jpg


This is an extreme case. Three settlements that belong to three different rebel factions (vaccei on the right bottom corner, asturi in the center, gallaeci on the far left top corner) of the same culture. When the agents are far enough, I can see the difference, guessing which type of unit I will find. However, this advantage is lost (nice paradox) when my agents are close to the settlements.
https://i67.photobucket.com/albums/h292/Monkwarrior/nuevos_banners3.jpg

Thanks again.

Makanyane
10-21-2007, 23:23
ah, the tip I gave about putting cas in new folder is for people who can't edit cas files, you have obviously got past that bit with the square (distant or empty garrison banners). The logo that appears on the long thin banners that show up when there is garrison and you are close to it is generated from the symbols in
data/banners/ symbols_xx.tga.dds

that bit i have not been able to work out either. The faction version as I'm sure you know is linked to in sm_factions by the
standard_index 4
line, but the rebel version does not seem to have a direct link anywhere

only thing that does exist is in descr_standards.txt:

rebels_factions
symbols banners/symbols6.tga
symbols banners/symbols7.tga
symbols banners/symbols8.tga
which should imply there are 12 possible slots to choose from (4 per tga.dds) but how on earth you align them to rebel factions has eluded me too, sorry!

Dol Guldur
10-22-2007, 00:13
Yes, I've used some more of those and they work - but though I got the rebels working they decided to change after a turn or two back to the default. Weird. Old project though; not doing it anymore...

Red Spot
10-22-2007, 01:53
just came to a rather easy to fix but similair conclusion about rebel/slave banners/icons ...

I've set the slave faction to use a diff icon, but the game insists on using the fork, so forcing me to change the actual fork itself than entry in sm_factions


G

Monkwarrior
10-22-2007, 18:55
only thing that does exist is in descr_standards.txt:

which should imply there are 12 possible slots to choose from (4 per tga.dds) but how on earth you align them to rebel factions has eluded me too, sorry!
The only place where it is coded (afaik) is in descr_cultures.txt:


culture roman
portrait_mapping roman
rebel_standard_index 0

Here the standard_index refers to the position of the files symbols6.tga.dds (indexes 0-3), symbols7.tga.dds (indexes 4-7) and symbols8.tga.dds (indexes 8-11).
It works in the same way as in descr_sm_factions.txt:

faction romans_julii
culture roman
symbol models_strat/symbol_julii.CAS
rebel_symbol models_strat/symbol_slaves.CAS
primary_colour red 140, green 20, blue 20
secondary_colour red 100, green 0, blue 0
loading_logo loading_screen/symbols/symbol128_romano.tga
standard_index 0

but in this case indexes start from symbols1.tga.dds (0-3) and subsequently.

The only explanation (for me) to the existence of symbols8.tga.dds is the initial project of including 12 default cultures, but finally they were only 5 (with one more possible).

The only way to use them all would be to be able to include more cultures. At least I think so.