I like your method. It's certainly faster than mine. Good work!
I like your method. It's certainly faster than mine. Good work!
"Do not fight for glory. Do not fight for love of your lord. Do not fight for hatred, honor or faith. Fight only for victory and you will succeed." - Uji sensei.
Very good.
I usually copied/pasted to opened .BMP files extracted from the game replacing old animations.
About the mounts - Stazi could you check if mounts added to those larger files cause problems with new factions? Some files tended to cause CTDs when used by added factions and I'd like to be sure.
If there are no problems some files used by horses/camels can be spared and at least to could be assigned to Landsknechte units which have to be available to new factions.
@zweihander
If mounts give us free graphic entries to use it is safe to give the Landsknechts two animation directories occupied by mounts Stazi will clear.
If you really need more tell us, but two is rather generous.
CiV3 animations give a number of interesting options. Personally I am interested in armoured handgunners in a Russian pack.
It will be useful for a number of units in E Europe esp. Russia and Georgia, perhaps even Persia.
If you don't know which pack it is from I'll try to locate it.
Overall if we can clear some directories they can be used. Perhaps even one for more than one type of animation. Seems to be easier with handgunner/musketeer units and we really need some diversity - something for the Balcans (Albania, Greece) and Turkey, something for Scotland and something more for muslim states. If we could use larger frames they all probably could fit into one or two directories.
Last edited by cegorach; 02-21-2016 at 15:25.
-----Adding New Faction in VI guide, By starkhornNow, the problem was that game crashes occured as the newly defined faction left the campaign
map for the battle map--oddly this crash would only occur with certain units (e.g., peasants,
highland clansmen, kerns, etc.). I discovered that only those units which were culled from texture
folders associated with face-shields caused the crash. Units drawn from texture folders which are
Adding New Faction Guide for Viking Invasion
21
not associated with face-shields (e.g., archers--which use the texture folder "Pestunic")do not
cause a battle crash. Therefore newly defined factions, such as FN_FREE21 //WELSH, cannot
utilize units which are drawn from the following bif texture folders, as they are associated with
face-shields:
"Peasant"
"ChainHlm"
"HlPlArSH"
"LArmWCav"
"MKnight"
"MSHelm"
"PlateS"
As I know, only these 7 folder will cause CTD.
Currently, I simply place the new landskencht anim into LtOpHelm, which is the currently folder for Doppelsoldner unit, the other units in PMTW also using this folder are Gallowglass and Opolcheniye. I move Gallowglass and Opolcheniye to use the 'Peasant' anim. No idea you would like this idea or not...
Here is a unit I want to convert(and I have already converted it to FTG! which will reduce my work to convert it to MTW), the Estalian Swordsman, it would be useful for those Sword&Shield units in PMTW.
But unfortunately, converting the landsknecht cost me a whole day, as school days begin, I would not have time to convert Civ3 uits anymore, at least recently.
Actually, converting civ3 units is not very difficult but need time and great patience. If any one want to learn how to convert, I can tell you the key progress.(but only to those who already have some experience of dealing with unit animations BIF files of MTW, I have no time to write a complete tutorial for beginners, sorry)
Last edited by zweihander; 02-21-2016 at 16:46.
I know, but with so many discoveries we might also meet new problems and I want to be true with the horses/camels before we clear those directions for our needs.
Yes, it is fine. Opolcheniye will be altered somehow anyway, right now it appears way too often. Gallowglass might need new animations if we find time and space - could be useful for some Georgian and Circassian units, perhaps even for something in the Balcans and elsewhere.Currently, I simply place the new landskencht anim into LtOpHelm, which is the currently folder for Doppelsoldner unit, the other units in PMTW also using this folder are Gallowglass and Opolcheniye. I move Gallowglass and Opolcheniye to use the 'Peasant' anim. No idea you would like this idea or not...
Oh, yes - the end of the New Year break. I've forgotten about it.Actually, converting civ3 units is not very difficult but need time and great patience. If any one want to learn how to convert, I can tell you the key progress.(but only to those who already have some experience of dealing with unit animations BIF files of MTW, I have no time to write a complete tutorial for beginners, sorry)
We have time for the animations. If the Dopplen. animations are done we can have them in 1.6. - the rest can wait so no hurry.
I'll stick the thread because it deserves to be close to the top.
This is a guide of CIv3 unit conversion.
1,Basic infomation about Civ3 unit graphic:
First, you can find civ3 units here:
http://forums.civfanatics.com/downlo...p?do=cat&id=23
http://forums.civfanatics.com/forumdisplay.php?f=60
the unit graphic of Civ3 are in FLC format, now, download the FLICster. And open the FLC file with FLICster, you can view the animations in this program:
Now export them into PCX format, click Export, click Export Type, and use this setting:
Then set the Output Directory and click 'Export', you get 8 PCX file now.
2, See the PCX file
The PCX file looks like this:
Now, we have 3 problem that hinder us to turn the PCX into MTW bif format:
1, the background colour is not 0,128,0
2, the shadow colour is not black
3, this is most important, the Civ3 engine allow the edge of the unit surround by many semi-transparent magenta pixels, which represent shadows in Civ3 engine. But the MTW engine doesn't allow this, the edge of the unit must be 'sharp' in MTW engine.
3, Get rid of the problems
Now let's get rid of these 3 issues.
Open the PCX with GIMP
Change the picture to RGB mode (it is in IMAGE > MODE)
Set the Foreground color to 0,128,0 , and set the Background color to black.
Choose the 'select by color tool' on the Toolbox.
Further down on the Toolbox, uncheck the Edge Smoothing and reduce 'Threshold' from the default value of 15 down to zero. This will allow you to choose a single colour on the image instead of several similar ones.
Use the 'select by color tool', and click the center part of the shadow of a unit frame. Now you select the main part of the shadow, but still some shadow pixels around in lighter colour are not under your selection.
press Shift, and select the lighter colour shadow pixels around to add them in your selection, continue doing this until all shadow pixels of this PCX are under your selection.
now, press 'ctrl' and '.' at the same time, now all pxiels under your selection are fill with the Background color(black).
Use the 'select by color tool' again, this time we frist click the pink background. Now you select the main part of the background, but still some shadow pixels around the unit in lighter pink are not under your selection.
press Shift, and select the lighter pink pixels around the unit to add them in your selection, continue doing this until all pink pixels of this PCX are under your selection.
now, press 'ctrl' and ',' at the same time, now all pxiels under your selection are fill with the Foreground color(0,128,0).
Until now we're get rid of all the 3 issues we have mention above, save the PCX in a format you prefer.
4, Next step?
I want to say nothing more about the next step, chop up the image you have already deal with, create a new BMP file, and put the units into the correct place of the 12 frame of BMPs...
Please ask me if you meet any problem.
Last edited by zweihander; 02-22-2016 at 08:23.
"Do not fight for glory. Do not fight for love of your lord. Do not fight for hatred, honor or faith. Fight only for victory and you will succeed." - Uji sensei.
For tests I chose Mousquetaires Du Roi because the unit uses "critical" MSHelm folder. For horses I chose the most popular LiHorse forder.
First, I gave them to ALL_FACTIONS and started a few custom battles. Unfortunately, this unit cause CTD with new factions like Khazan, Livonia, etc. The new 1024p textures, obviously, cause CTD too.
Second, I changed the texture in LiHorse and MSHelm folders (leaving Mousquetaires Du Roi to FN_FRENCH as intended). This time all worked smoothly. No crashes.
Both steps were tested with several different units and faction setups.
Conclusions:
1. Technically, 1024p textures works the same as 512p. CTDs are caused by "critical" folders and new factions, not textures.
2. Resizing mount textures to 1024p have to be followed by resizing all riders' folders (they have to be proportional because mounts don't have their own SCALE parameter). It involves changing/tuning all animations rectangles. Weapons and shields too. The whole procedure makes cavalry smaller so all infantry has to be scaled down accordingly or changed to 1024p too. Smaller models need also changes in UNIT_PROD (parameters like: RADIUS, FORMATION_WIDTH_SPACING, FORMATION_LENGTH_SPACING). Without it all units looks like in loose formation all the time. It looks the same like reducing a unit SCALE - leaves too much space between soldiers.
The whole process is quite easy but very time consuming. It can be done for 2.0 but probably not for 1.6.
All this testing thing gave me some new ideas. I let you know if I find something interesting.
"Do not fight for glory. Do not fight for love of your lord. Do not fight for hatred, honor or faith. Fight only for victory and you will succeed." - Uji sensei.
Ok, so we cannot use this approach unless ALL graphic files for units are changed as well? Is that right?
Have you encountered any problems with the palette e.g. some animations are impossible to import to the same, larger file with other animations? I think it could be a problem in some cases.
There are units in the game which are using Shogun TW and Middle Earth mod graphics - almost only for Tartar cavalry.
I wonder if LiHorse horses and those animations where the WHOLE horse & rider is placed can be thrown into the same file (similar colours should help) and used as a testing subjects.
I wonder if in the case of combined horse & rider supported by imported LiHorse graphics animations manipulating the scale will be easier and give us something which can be fielded side by side with the older graphics.
Original LiHorse would stay where it is right now, but this new file could include Tartars and horse animations from LiHorse (besides it is necessary for Tartar units with two steeds) - this way it could work better and won't require too many changes + could serve us well in the future saving space and in the end clear original LiHorse directory for something else.
BTW I realise how time consuming the process is, but perhaps in thise unique case results will be easier to implement without the need to change all animations in the game.
Also, does Middle Earth or Napoleonic TW have other mount animations? I mean white or black horses. If in the end we will find ourselves with so much space in graphic files and all cavalrymen animations will have to be changed anyway we could add some variety also in this department.
Just to be clear I have permission to use NTW animations, but not LOTR graphics except the single one PMTW uses already.
Anyway that is for the much, much later stage.
I am looking forward to the new ideas if there are any. New graphics can wait, but if we learn more about those files it will save us some trouble in the future.
If for example we get rid off the 'troublesome', CTD causing directories because we won't need them anymore that would be a nice bonus, even though the units which use them are meant to be rare and unlikely to be received by bribery.
Last edited by cegorach; 02-22-2016 at 16:28.
Generally, yes.
I haven't encountered any problems till now. What do you have in mind exactly?
Yes, I saw them. Not all of them are used right now (in 1.5). IIRC textures from folders: MONGHCAV, PLATECAV and PLATES are not used at all in any of the 3 campaigns.
Do you mean like that mongol heavy cavalry from MONGHCAV folder combined with LiHorse texture? I think it'll work. You already use KHorse and EHorse folders for something totally different than horses. btw We have to remember that some horse folder names are linked to special features like ArmHorse and EHorse being armored and thus more resistant to enemy fire (I'm not sure about camel because there is a special column in UNIT_PROD file that specifies HORSE/CAMEL/NONE). But I think it only works that way when those folders are used for mounts.
Hmm.. nice idea. You mean like placing rider over a horse in one texture, in the same frame, right? This can work but rider combined with horse will make much bigger frames and thus less space for other units in texture.
If I understand it right, horses combined with riders won't save us that much space. As I said above, such animations will have much bigger frames, especially that you'll need to resize htem up at least 50% to have some space for SCALE manipulation. When you put 512p textures into 1024p texture, soldiers are always too small comparing to old ones (even with maxed SCALE). Hmm.. I'll make one unit in 1024p and you'll see how it looks.
BTW I realise how time consuming the process is, but perhaps in thise unique case results will be easier to implement without the need to change all animations in the game.
LOTR has one black horse. It's just recolored LiHorse.
A few years ago I sent PMs to all creators form Middle-Eaath team I found. The one that answered said me something like "do whatever you want. No one really cares now".
"Do not fight for glory. Do not fight for love of your lord. Do not fight for hatred, honor or faith. Fight only for victory and you will succeed." - Uji sensei.
Some files in PMTW include animations which were set to very specific colours, I do believe that if four different animations will be used in a single file it can cause some problems.
I'd suggest to try it in some cases - a single pose from a file each should be enough to see if the animations can 'co-exist' in the same file.
They are in 2.0 and will be used in 1.6.Yes, I saw them. Not all of them are used right now (in 1.5). IIRC textures from folders: MONGHCAV, PLATECAV and PLATES are not used at all in any of the 3 campaigns.
Something like that, but also in general files which right now feature a whole rider on a horse, and combined with a separate horse animation (LiHorse) on this 4 times bigger picture.Do you mean like that mongol heavy cavalry from MONGHCAV folder combined with LiHorse texture? I think it'll work. You already use KHorse and EHorse folders for something totally different than horses. btw We have to remember that some horse folder names are linked to special features like ArmHorse and EHorse being armored and thus more resistant to enemy fire (I'm not sure about camel because there is a special column in UNIT_PROD file that specifies HORSE/CAMEL/NONE). But I think it only works that way when those folders are used for mounts.
Actually I thought about using the same file for four animations - including one of a horse and another with a rider on a horse (Tartar animations from STW) - placing them in the same 1024x1024 file could serve as a nice field for testing - to see how rider on a horse looks like compared to cavalry using old, 512x512 files.Hmm.. nice idea. You mean like placing rider over a horse in one texture, in the same frame, right? This can work but rider combined with horse will make much bigger frames and thus less space for other units in texture.
Because this cavalry animation sometimes has to use two mounts (one unit) as I wanted it would be a nice place to keep LiHorse animation intended for future cavalry.
Right now it could be used to check if the problem with the scale can be solved by placing horse animation in the same place as rider animation and only by manipulating with numbers in unit_prod file.
Think of it as a temporary solution and a way to test something.
I had to cut stuff from Shogun TW animations because STW graphics use two files for cavalry instead of one, so Tartars do not use all of moves available in STW, but about half of them (it was very had to choose).If I understand it right, horses combined with riders won't save us that much space. As I said above, such animations will have much bigger frames, especially that you'll need to resize htem up at least 50% to have some space for SCALE manipulation. When you put 512p textures into 1024p texture, soldiers are always too small comparing to old ones (even with maxed SCALE). Hmm.. I'll make one unit in 1024p and you'll see how it looks.
On bigger 1024p files ALL STW graphics could be used and would take just a half of 1024p file. But it is perfectly enough if only current Tartar riding horse animation is imported and tested to see how a rider on a horse looks like and how much different can it be with different scale compared to the current cavalry.
This means that black horses are available. White/grey ones can be used from NTW.LOTR has one black horse. It's just recolored LiHorse.
A few years ago I sent PMs to all creators form Middle-Eaath team I found. The one that answered said me something like "do whatever you want. No one really cares now".
If one 1024p file will be used eventually for four mounts one LiHorse directory will give us a dazzling variety of unarmoured horses and will help in making some units visually different from others which use the very same rider animation.
In such a case:
one of those two directories could be given to better protected mounts or for units which had more than one mount kept in a reserve - something which doesn't have to be visable.btw We have to remember that some horse folder names are linked to special features like ArmHorse and EHorse being armored and thus more resistant to enemy fire
"Do not fight for glory. Do not fight for love of your lord. Do not fight for hatred, honor or faith. Fight only for victory and you will succeed." - Uji sensei.
P.S. When it comes to PMTW animations we were trying to squeeze as much as possible in a single file.
This means that sometimes various units use various parts of a file. Could be a nightmare to convert to 1024p.
I'll better post images of the new map how I see it and upload the files.
It should be ready to Friday. I'll have to compare it to the event list before it is done.
It is better to use as many useful & meaningful event features as possible.
I've done some tests and it appears that the problem persists no matter what tricks I try. The problem is not directly connected with new factions. First, 20 factions declared in startpos work flawlessly. This includes Scots (19th) and Moldavian (20th) which are new factions. All the next factions (21-30) have about 90% of causing CTD. Sometimes they work, especially when one of those 20 factions used the problematic unit folder before. So, it looks like some hardcoded limit form MTW 1.0 that devs forget to change in later, more mod friendly versions.
IMHO factions 21-30 should be the smallest and poorest of all to minimize the chance of bribery and CTD.
"Do not fight for glory. Do not fight for love of your lord. Do not fight for hatred, honor or faith. Fight only for victory and you will succeed." - Uji sensei.
I think it would be more efficient to convert Civ3 units if we can cooperate together.
I already export the Estalian Swordsman(made by T-mun) into BMP format(files in the 'Custom6.rar' attachment) and already get rid of the background/shadow/semi-transparent pixels obstacles. The files are look like this:
The only remained step is to cut and paste these pieces into 12 BMP frames and import them into a BIF. Anyone like to help?
Hope someone can help with this, it would reduce my workload.If no one want to do this, I would find some time to finish the frames later.
Last edited by zweihander; 02-23-2016 at 16:10.
I'll be glad to help but I have limited time too. I'm still working on those 1024p textures. I have some problems with weapons and shields placement as they are not as easy to define as animation frames. When I have more free time I'll let you know.
"Do not fight for glory. Do not fight for love of your lord. Do not fight for hatred, honor or faith. Fight only for victory and you will succeed." - Uji sensei.
More tests and more results. First the file I've prepared:
LOTR black horse on the bottom right. Not as black as original mongol horse but I think black enough.
I declared Atli Tatarlar as "LIHORSE, YES, YES, LiHorse" and here are results:
A you can see spaces between soldiers have to be reduced.
How they look comparing to the size of Tatars from old 512p texture (below). You can see that old/big Tatars already use additinal small LiHorse (they use the same LiHorse folder for their mount). This is how they look without touching the SCALE.
An advantage is that smaller soldier sprites don't get anti-aliased and blurred that much as old, bigger units. They look sharp despite their low resolution.
So, i think we can use any combination we want. Using the same folder for horse and horse+rider is not a problem.
Last edited by Stazi; 02-23-2016 at 22:17.
"Do not fight for glory. Do not fight for love of your lord. Do not fight for hatred, honor or faith. Fight only for victory and you will succeed." - Uji sensei.
Bookmarks