1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Graphics problem

Discussion in 'Civ3 - Creation & Customization' started by RalofTyr, Mar 26, 2015.

  1. RalofTyr

    RalofTyr King

    Joined:
    Mar 18, 2008
    Messages:
    926
    Location:
    Nailed to the Tree of Woe
    Trying to make native American goody-huts and this; what I am doing wrong?



    Moderator Action: Moved to main C&C forum.
     
  2. Laurana Kanan

    Laurana Kanan Don’t underestimate who I am. Moderator

    Joined:
    Apr 10, 2014
    Messages:
    3,376
    Gender:
    Female
    Location:
    Near the Greatest Snow on Earth
    Your goodyhuts.pcx is not indexed correctly. The Magenta and Green colors need to be in index positions 254 & 255 in the color table.
     
  3. RalofTyr

    RalofTyr King

    Joined:
    Mar 18, 2008
    Messages:
    926
    Location:
    Nailed to the Tree of Woe
    Thanks, but I just checked the color; they are the same as the original goodyhuts :(
     
  4. Laurana Kanan

    Laurana Kanan Don’t underestimate who I am. Moderator

    Joined:
    Apr 10, 2014
    Messages:
    3,376
    Gender:
    Female
    Location:
    Near the Greatest Snow on Earth
    It definitely doesn't look like it's indexed correctly. Can you attach the goodyhuts.pcx you're using and we can look at it?
     
  5. RalofTyr

    RalofTyr King

    Joined:
    Mar 18, 2008
    Messages:
    926
    Location:
    Nailed to the Tree of Woe
    Thanks; here it is.
     

    Attached Files:

  6. Laurana Kanan

    Laurana Kanan Don’t underestimate who I am. Moderator

    Joined:
    Apr 10, 2014
    Messages:
    3,376
    Gender:
    Female
    Location:
    Near the Greatest Snow on Earth
    The file wasn't even indexed - it was still an RGB (true color/16 million color) image. I've attached the corrected file indexed to 256 colors.

    If you're going to mod any more files look here - How to make a working palette for pcx using the Gimp - for help converting an image to one that can be utilized by C3C.
     

    Attached Files:

  7. Blue Monkey

    Blue Monkey Archon Without Portfolio

    Joined:
    Jul 31, 2005
    Messages:
    11,241
    Location:
    Timeless Isle
    Number one problem (we've all learned the hard way). Thanks for posting the link.
     
  8. RalofTyr

    RalofTyr King

    Joined:
    Mar 18, 2008
    Messages:
    926
    Location:
    Nailed to the Tree of Woe
    Ok, so each .PCX image is 265 colors and magenta and green need to be placed on the 254 and 255 color index respectively?
     
  9. Laurana Kanan

    Laurana Kanan Don’t underestimate who I am. Moderator

    Joined:
    Apr 10, 2014
    Messages:
    3,376
    Gender:
    Female
    Location:
    Near the Greatest Snow on Earth
    256 Colors and yes those two colors (Magenta - FF00FF & Green - 00FF00) should be in the last two index spots 254 & 255 (color table index starts at 0). The reason being those two spots are read as transparent colors by C3C so they won't show in the game.
     
  10. Vuldacon

    Vuldacon Dedicated to Excellence Supporter

    Joined:
    Nov 14, 2001
    Messages:
    6,750
    Gender:
    Male
    Location:
    USA
    ...and just to make it clear, it is not the colors but the palette indexes (where they are located in the Slots) that matter.
    You can use any color as the transparent background but it must also be in the correct palette slot.

    One could also use colors that are in the image as the transparent colors if all is understood but for ease of use it is generally best to use colors Not found in the image... thus the Magenta and Green colors are generally used.

    ...simply look at the palettes used in the game to SEE what was placed for the transparent colors and where they are on the palette... otherwise, remember it is the palette slots we have to be aware of because they are programed for particular things.

    There are different palettes used in the game for different graphics but all use two Transparent Colors on the 256 color palette.

    There are palette tutorials available here in the tutorials section.
     
  11. RalofTyr

    RalofTyr King

    Joined:
    Mar 18, 2008
    Messages:
    926
    Location:
    Nailed to the Tree of Woe
    Thanks; I figured it out; -> 256 colors; fill slots then use flood tool to make background. The basic problem was that I used a .bmp program to create the huts which slotted the mag and green because they were the most numerous up front.
     

Share This Page