Announcement

Collapse
No announcement yet.

Yet Another Civ3 FLC conversion thread

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Yet Another Civ3 FLC conversion thread

    Maq and BigMC threw the thought around about convert FLCs again. According BigMC its possible to get PSP8 scripted to convert FLCs faster.

    I'll open this with a list (I'll attach later) of Civ3 FLCs that can replace Ctp2 unit graphics (atleast through the modern era. I'm hoping BigMC and Maq can put some tips with PSP8 (although I still have 7) up here.

    other threads
    FLCster for Ctp2
    Civ 3 Unit FLCs to be converted
    Civ 3 Unit FLCs to be converted 2
    Civ 3 mod for CtP 2?
    Civ3 Mod
    Civ3 mod possible?
    Civ3:PTW WW2 Unit FLC's

    From I-Wombat (I may make adjustments as I play with pallettes etc)

    Flics -> Sprites in more easy stages than I care to count.

    Part one - the FLIC

    Start with a Civ3 Unit FLIC, or rather, collection of FLICs. Since all the animation has been done for you, there's no excuses for not using movement, attack and defeat flics. If you like, idle and victory ones, but these are seldom used or observed in CtP2, and aren't worth the effort IMO.

    The FLICs you have will almost certainly not be the correct size (which technically is anything with the ratio 4:3, but in reality is almost always 96*72 pixels) - so you have to crop them. For these purposes, the flics are animations just the same as animated GIFs are - FLICster becomes useless, you need an art program. I used Animation Shop (AS), simply because you can get a "free trial" version from the JASC website.

    Load Animation Shop, and open a FLIC file. These instructions assume it is a movement FLIC.

    Using Animation Shop (and no doubt similar programs work similar ways), the cropping tool is dragged across a single frame, and forms a box. Press the "crop" button, and everything outside the box is deleted, and similarly for all the other frames in the animation, the same area is taken automatically.

    NOTE: When doing this, if it is at all possible, count the number of pixels from a horizontal border, and a vertical border your cropping is. This is very useful later on.

    The downside of AS is that you cannot find out what size each frame is, without resorting to a little workaround. If you have Paint Shop Pro (which AS is often packaged with) then you can export a frame (right-click on the frame, and select "export frame to Paint Shop Pro"), and go to Image -> Canvas Size.

    Otherwise,assuming you have the file saved, go to View -> HTML code - and that will give you the height and width of the image.

    Either way, keep cropping and undoing until you have a set of frames 96 by 72 pixels in size, with the unit somewhere towards the middle horizontally, and towards the bottom, vertically. Hopefully you have kept a count of the pixels, because then you can attempt to replicate the exact same x and y position of the unit in the other FLIC files (attack & death, and maybe others).

    Now separate out the facings. You only need five. Facing due north, north-east, east, south-east, and south. The sprite maker mirrors the rest for you, and to save space.
    To collect all the frames of one facing together, select the first one, hold down shift, and select the last one, then cut then (ctrl-x) and paste them as a new animation (ctrl-v).

    Once you have a set of facing frames, select all the frames in the FLIC (click the first, hold down SHIFT, select the last) and go to File -> Save Frames As.

    From here on, I will assume you are using the northery facing (facing 1) frames of the movement animation.

    Choose your options so you save them as *.tiff files, with long file names and with the Save frame number in file name box ticked. Then set up your standard name to be (assuming you are using the movement animation) - "GUxxMA1.".tif The extra . is important, because now when you save it, the frame number will be saved after it, and create the file name as the sprite creator reads it - GUxxMA1. y.tif

    As explained in the sprite creator readme, the naming is important.




    G is a prefix, it is always there.

    U stands for units.

    xx is the sprite number you choose to use in the creation. You can change it later, but must stay consistant for now.

    M denoted that you are using the movement animation. "I" would be for the Idle animation, "A" for attack, "V" for victory (where victory can also equal "death" - it marks the end of a battle)

    A - its the animation itself. An S here would be for the associated shadow tiff.

    1 - the facing number. 1 is north, 2 north-east etc etc, 5 is south.

    .y - the point is always there, y is the frame number, starting from either 0 (geeks) or 1 (non-geeks). This method uses 1 as the first frame, because of the quick save thingy in Animation Shop.



    Choose a place to save to. If you already have the sprite creator installed (which is advised) - then something like CTPSpriteTool/Units/xx is the place for them. If not, any temporary folder will do, so long as you move them out afterwards.

    Open the folder where you saved all the tiffs to, and delete the blank spaces between all the "."s and all the frame numbers. This takes little time once you've practise, and believe me, 500 frames is a lot of practise.

    Part Two - the Images

    Open all of the tiffs into a Paint Program (I use PSP, again, because you can get the free trial to download, and because Harlan already wrote instructions for using it. Which aren't too accurate, but got me started)

    The tiffs as they are are not much good. The shadow is in the same file, and the background is the wrong colour. The first thing to do is to set your foreground colour (left button) to white, and the background colour (right-button) to black. If you are lucky, you may never need to change these colours throughout the rest of the process.

    For each frame you do, you must follow this procedure. It is very time consuming, and boring, but once you get the hang of it, you can switch your mind off and day-dream while you go.

    Using the magic wand tool, set to a tolerance of about 20-30 (as set under the tool options floating menu), select all the shadow around the base of the unit, and all the pink background along with it. Hold shift while you click to add bits to the selection, hold ctrl to subtract bits.

    Copy it (ctrl-c) and paste it as a new image. This should also be 96*72 pixels, unless you have a decidedly odd unit, so this will become the base for the shadow file. Select all the pink, and then using a large brush, paint it all white. Don't worry about going over the shadow - it's outside the selection, so unaffected.

    Next, invert the selection (Selection -> Invert, or Ctrl-Shift-I), and paint over all the shadow in pure black.

    Once you have done so, keeping just the black selected, go to Selection -> Save to Alpha Channel and click OK. When prompted, click OK again, a name is not necessary.

    Then deselect the shadow (Selection -> Select none, or ctrl-D) and save the file. It should be saved using the same format as above, but with an "s" in place of the "a" - "GUxxMS1.0.tif". As you are saving it manually this time, you will need to increase the frame number by one each time, and of course, change the facing number when you move on to different facings.

    Back to the main image, with the unit on it, you should have all the background selected still. Using the background colour (right mouse button) colour over all the pink and all the shadow to make it pure black.

    Then invert the selection, and check to make sure there are no black pixels in the unit image. If there are, the easiest way to get rid of them without changing your paintbrush colour is to use the Clone Tool to take areas of colour from nearby, and copy them into the black. Right-click in the colour you want, and left click in the black. Do each pixel individually if you are unsure of this technique.

    When you are sure there are no black pixels in the unit image, or non-black pixels in the background, again go to Selection -> Save to alpha channel and save the non-black selection into the alpha channel. Resave this file, it should still have the same name as before "GUxxMA1.0.tif"

    When you have done a frame, ensure you have saved it, and its shadow, with the correct file names, then close both images within PSP. Load up the next one, and repeat the process. It might be better to keep the finished frames separate from the unfinished ones, lest you get confused, or break half-way through. You can copy them all back into the correct folder afterwards.

    Once you have finished a facing, go back to Animation Shop, cut out the next facing, and repeat.

    Once you have done all 5 facings, close that FLIC, and move on to the next one.

    Its a long process, with each frame made up of 3 animations, made up of five facings, made up of usually a dozen or so frames, each becoming two pictures... but the finished sprite looks top quality.

    NB: If you are a real perfectionist, you may wish to resize each FLIC by about 150% before beginning the process, to ensure CtP unit-sizes, but then you may have to sharpen the image, and cutting the black and non-black out may be harder later on. Your choice.
    Last edited by Ekmek; May 14, 2004, 15:26.
    Formerly known as "E" on Apolyton

    See me at Civfanatics.com

  • #2
    I'll open this with a list (I'll attach later) of Civ3 FLCs that can replace Ctp2 unit graphics (atleast through the modern era.
    Why do we want to replace any of the CtP2 sprites? I think theyre better than civ3 flcs generally, more colours certainly. Id be more interested in seeing new unit sprites, like the Jaguar Warrior (my beta war walker )

    I'm hoping BigMC and Maq can put some tips with PSP8 (although I still have 7) up here.
    Im still writing a guide to using PSP8 script to change the colour of an existing CtP2 sprite, its just taking me longer than i thought. It could easily be extended into a whole FLC conversion guide though eventually. Its not the only way either, i remember Caranorn (sp?) using Photoshop macros to convert FLC's more easily too.

    Ill try to keep this thread relatively spam and hijack free (a unique achievement for me) and we'll see if we can get some flcs converted.
    Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
    CtP2 AE Wiki & Modding Reference
    One way to compile the CtP2 Source Code.

    Comment


    • #3
      I am getting interested in converting the dinosaurs again I noticed that a civfanatics member made flying dinosaurs. But I am concerned we must seek permission from fan made art to convert it to ctp.
      "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
      The BIG MC making ctp2 a much unsafer place.
      Visit the big mc’s website

      Comment


      • #4
        Originally posted by Maquiladora


        Why do we want to replace any of the CtP2 sprites? I think theyre better than civ3 flcs generally, more colours certainly. Id be more interested in seeing new unit sprites, like the Jaguar Warrior (my beta war walker )
        Maq, I just felt like making a list to try to keep unit graphics some what consistent. Ctp2 and Civ3 do have different styles. But thats a matter of my preference.


        Big MC (and Maq)

        I know the animation shop with PSP7 (not sure about PSP8) is able to read Civ3 FLCs but it just cant make them. Of course we are concerned about sprites but I was wondering your script would include opening the animation shop, dividing the frames by 8 and taking the ones needed, size them right, turn all Black 0,0,1 and make the pink background black 0,0,0
        to allow for easy sprite input?

        Or is it even possible to just get animation shop to make sprites, I guess maybe Martin the Dane could answer that though.
        Formerly known as "E" on Apolyton

        See me at Civfanatics.com

        Comment


        • #5
          Originally posted by E
          Maq, I just felt like making a list to try to keep unit graphics some what consistent. Ctp2 and Civ3 do have different styles. But thats a matter of my preference.
          Consistent with what? Not that im disagreeing with you, im just not sure what you mean.

          I know the animation shop with PSP7 (not sure about PSP8) is able to read Civ3 FLCs but it just cant make them. Of course we are concerned about sprites but I was wondering your script would include opening the animation shop, dividing the frames by 8 and taking the ones needed, size them right, turn all Black 0,0,1 and make the pink background black 0,0,0
          to allow for easy sprite input?

          Or is it even possible to just get animation shop to make sprites, I guess maybe Martin the Dane could answer that though.
          Well i think its gonna be very unlikely therell be one script suitable for every unit conversion. If theres instructions, its gonna be things like how to setup and record the script and the order of the process needed, like creating alpha channel etc, which i still dont understand fully, i just know the process

          Im not sure if you can make animation shop open a FLC and do all the work with a script, but its not much work to seperate the frames from the FLC manually anyway.
          Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
          CtP2 AE Wiki & Modding Reference
          One way to compile the CtP2 Source Code.

          Comment


          • #6
            Two points here

            It will be impossible to convert any flc file by script alone You will have to resize the civ3 graphic to make it fit into the ctp scheme of things but converting a flc into a bunch of pre alpha images is pretty easy same with the shadow really.

            But the psp work can be completely script up to a point. Like I said the problem is resizing a civ3 flc file into the size of a ctp2 tile.

            The second point it is impossible as far as I know for animation shop to make a spr file.
            "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
            The BIG MC making ctp2 a much unsafer place.
            Visit the big mc’s website

            Comment


            • #7
              Originally posted by The Big Mc
              Two points here

              It will be impossible to convert any flc file by script alone You will have to resize the civ3 graphic to make it fit into the ctp scheme of things but converting a flc into a bunch of pre alpha images is pretty easy same with the shadow really.

              But the psp work can be completely script up to a point. Like I said the problem is resizing a civ3 flc file into the size of a ctp2 tile.
              By resizing do you mean a specific pixel size of the image or just having the sizes match the CtP2 unit?

              Flicster allows for pixel resizing of the image, but not the unit. the background and dhadow to 0,0,0 black is easy to do. Shadows might be left out to save time.
              Formerly known as "E" on Apolyton

              See me at Civfanatics.com

              Comment


              • #8
                For size take the T Rex Flc from civ 3 It it to big to fit on a ctp tile so we must resize it to allow it to blend in better with the other spr files.

                Shadows should also be relatively easy to do.
                "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
                The BIG MC making ctp2 a much unsafer place.
                Visit the big mc’s website

                Comment


                • #9
                  You can't make a script that resizes? That seems a bit remiss.
                  Concrete, Abstract, or Squoingy?
                  "I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis

                  Comment


                  • #10
                    Probably not the right thread but this is the unit I am currently working on.(sneek pic)
                    "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
                    The BIG MC making ctp2 a much unsafer place.
                    Visit the big mc’s website

                    Comment


                    • #11
                      I'm not a SciFi player but it looks pretty good...bytheway have you seen this unit FLC (example is a few posts down)
                      I did not have Civ3 on the computer I made this on so it may be a little big, I tested it and it works. I may make a smaller one later. I can't upload so I attached. Get all five parts Part 1



                      I'll look through the other threads about the process for conversion, but I'm wondering if it'll be easier to divide certain tasks. Like I could change the pallete and do some resizing but I know nothing about alpha channel and using makesprite.
                      Formerly known as "E" on Apolyton

                      See me at Civfanatics.com

                      Comment


                      • #12
                        Looking good Big Mc

                        and that Crawler unit looks trully evil

                        I'll look through the other threads about the process for conversion, but I'm wondering if it'll be easier to divide certain tasks. Like I could change the pallete and do some resizing but I know nothing about alpha channel and using makesprite.
                        Perhaps we could, i hate using makespr, i dont mind doing the alpha channel part. It could get confusing doing things this way though, but it might be less tedious.
                        Call to Power 2: Apolyton Edition - download the latest version (12th June 2011)
                        CtP2 AE Wiki & Modding Reference
                        One way to compile the CtP2 Source Code.

                        Comment


                        • #13
                          It’s not perfect yet you should see it when it is armed I just got to fix the hazing problem at the moment.

                          Also I don’t fined makespr that challenging and seen as my copy of psp 8 is quickly approaching it’s use by date I would be happy to help in the conversion conveyer belt.

                          Also some ones got ask if we can use that crawler
                          "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
                          The BIG MC making ctp2 a much unsafer place.
                          Visit the big mc’s website

                          Comment


                          • #14
                            I looked an Immortal Wombat's post on the conversion proces (page 2 of the FLCs to be convert part 2 thread), I tried resize just the image pixel size and its easy to do with FLCster (of course there is the question matching it to CTP2) and changing the pallete to be all 0,0,0 black instead of individually highlight and fill was very fast too.

                            For convention sake I've heard that we should increase sizes by 120% If we agree thats the size we can increase FLC image borders to be 120% extract with flicster and also extract another one and resize the who unit. Change the pallete color than paste it back into the FLC. As a new FLC you can then extract it as separte FLC frames and just need to do the Alpha channel. This seems pretty standard is it possible to script that with FLCster and PSP images working back and forth?
                            Formerly known as "E" on Apolyton

                            See me at Civfanatics.com

                            Comment


                            • #15
                              I have got to go of line for an hour or two but when I am back online I was planning to Wright a letter we can use to send to civ 3 unit artist who we want to use a flc file of there’s.

                              as to resizing that's something I will have to look into.
                              "Every time I learn something new it pushes some old stuff out of my brain" Homer Jay Simpson
                              The BIG MC making ctp2 a much unsafer place.
                              Visit the big mc’s website

                              Comment

                              Working...
                              X