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

Experimental Graphical features

Discussion in 'C2C mod mods' started by Toffer90, Oct 8, 2015.

  1. Thunderbrd

    Thunderbrd C2C War Dog

    Joined:
    Jan 2, 2010
    Messages:
    26,087
    Gender:
    Male
    Location:
    Las Vegas
    They shouldn't require a new dll. Nothing has been done in the dll to address any adjustments there so far. There WILL be some projects to work on in the dll with those... more in mapscripting though which is python and has to do with setting maps up so if you're only map BUILDING then it shouldn't be a problem there at all either.

    However, there is a large volume of work to do in the xml to address them... not sure how much of it has been done yet.
     
  2. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    6,082
    Location:
    Norway
    Cool, some proper feedback. Sure, I'll spruce up rocky with some colors, and see what I can do about making barren a bit more varied. Thanks.
    You will need to match the <Type> names from CIV4ArtDefines_Terrain.xml in the terrain pack to the <ArtDefineTag> names in CIV4TerrainInfos.xml in v36.
    Also you need to copy the entire block for TERRAIN_SEA twice, and rename them TERRAIN_POLAR_SEA and TERRAIN_TROPICAL_SEA which are missing terrains in v36.

    For movement rules you will have to "win grep" v36 CIV4UnitInfos.xml with the same file in the SVN and fetch everything that looks like this:
    Spoiler :
    Code:
                <TerrainImpassableTypes>
                    <TerrainType>TERRAIN_TROPICAL_SEA</TerrainType>
                    <TerrainType>TERRAIN_POLAR_SEA</TerrainType>
                    <TerrainType>TERRAIN_SEA</TerrainType>
                    <TerrainType>TERRAIN_DEEP_SEA</TerrainType>
                    <TerrainType>TERRAIN_OCEAN</TerrainType>
                    <TerrainType>TERRAIN_POLAR_OCEAN</TerrainType>
                    <TerrainType>TERRAIN_TROPICAL_OCEAN</TerrainType>
                    <TerrainType>TERRAIN_TRENCH</TerrainType>
                </TerrainImpassableTypes>
                <TerrainPassableTechs>
                    <TerrainPassableTech>
                        <TerrainType>TERRAIN_TROPICAL_SEA</TerrainType>
                        <PassableTech>TECH_SEAFARING</PassableTech>
                    </TerrainPassableTech>
                    <TerrainPassableTech>
                        <TerrainType>TERRAIN_POLAR_SEA</TerrainType>
                        <PassableTech>TECH_SEAFARING</PassableTech>
                    </TerrainPassableTech>
                    <TerrainPassableTech>
                        <TerrainType>TERRAIN_SEA</TerrainType>
                        <PassableTech>TECH_SEAFARING</PassableTech>
                    </TerrainPassableTech>
                    <TerrainPassableTech>
                        <TerrainType>TERRAIN_DEEP_SEA</TerrainType>
                        <PassableTech>TECH_SEAFARING</PassableTech>
                    </TerrainPassableTech>
                </TerrainPassableTechs>
    

    The above should be done for Animals_CIV4UnitInfos.xml and CulturalUnits_CIV4UnitInfos.xml as well.

    To get sea terrain placed in random maps you would need to get the CvMapGeneratorUtil.py file from the SVN.

    This is just the things I remember, there might be more...

    Edit: Updated terrain pack
    -Tweaked grass again
    -Added some colors to rocky, probably not enough though. Will have to work more on that later.
    -Made dunes more yellow/reddish instead of white.
     
    Last edited: May 17, 2017
  3. Dancing Hoskuld

    Dancing Hoskuld Warlord

    Joined:
    Jul 5, 2004
    Messages:
    23,286
    Gender:
    Male
    Location:
    Canberra, Australia
    The animals should not get terrain passable by tech entries. The normal boats and rafts also need updating. Although rafts and canoes should never be able to enter Sea terrains (unless they are within cultural boarders) outriggers should.
     
  4. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    6,082
    Location:
    Norway
    I only told him to copy over those lines if he found them in the SVN for any units. Of course he won't find the tech related movement rules when looking in our animalinfo.xml. ^^

    I've already added movement rules for normal boats (and cultural boats) regarding the new water terrains; I might have missed something though.
     
  5. Harrier

    Harrier Chieftain

    Joined:
    Feb 19, 2002
    Messages:
    2,386
    Location:
    UK
    Just to be clear. I am not interested in any game play changes - regarding movement, attacks, or any thing else that may have been added or removed from the mod.

    I just want to be able to use (place) the new graphics on older pre-made maps, using a version of the .dll dating back to May 2015.

    As I believe these new graphic changes are not .dll dependent, what files do I need to change or copy to an older version of C2C.

    When I have made the changes I want too, I will then load the map with the latest SVN to see how it plays.

    To summarize - It is only the graphic changes - not the effect on gameplay.

    Thanks.
     
  6. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    6,082
    Location:
    Norway
    And here was my answer:
     
  7. Harrier

    Harrier Chieftain

    Joined:
    Feb 19, 2002
    Messages:
    2,386
    Location:
    UK
    Yes, thanks, I gathered that. I just did not want to start a dialog about other possible changes. :)

    Just have to get my hands even dirtier with XML again. :crazyeye:
     
  8. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    6,082
    Location:
    Norway
    After updating my ATI graphics driver I finally got the white grid in water problem. It helped me figure out what texture that causes the problem. :)

    Updated terrain pack with a tested fix for the white grid lines in the water plane, that can be seen with certain graphic drivers.
    Reducing the resolution of CoastLandBlends.dds texture from 512x1024 &#8594; 128x256 made the issue barely noticeable when completely zoomed out with a field of view at 100.
    The quality reduction is also barely noticeable while it improves performance somewhat.
     
  9. JosEPh_II

    JosEPh_II TBS WarLord

    Joined:
    Jun 20, 2007
    Messages:
    15,673
    Gender:
    Male
    Location:
    Western IL. cornfields
    So in game now the grid-lines will go back to being White instead of Black?

    JosEPh
     
  10. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    6,082
    Location:
    Norway
    No. not that grid, the other one that was always visible as a graphical glitch in the entire water plane.

    If it bothers you I guess I could make the grid you're thinking of white, but it won't be getting thin again without me increasing terrain textures by about 20MB
     
  11. JosEPh_II

    JosEPh_II TBS WarLord

    Joined:
    Jun 20, 2007
    Messages:
    15,673
    Gender:
    Male
    Location:
    Western IL. cornfields
    No just curious is all. The Black grid lines are definitely more distinct on the land tiles. Just a matter of eye adjustment, getting used to it after 10+ years of white grid lines. ;)

    :old: can still adapt to changes.......well most of time anyway. :blush::D

    JosEPh
     
  12. colonelflag

    colonelflag Chieftain

    Joined:
    Dec 2, 2009
    Messages:
    90
    Hey guys,

    I'm finding Bamboo terrain type very hard to distinguish from plains terrain type. Is anyone else having this issue ?

    Cheers
    ColonelFlag
     
  13. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    6,082
    Location:
    Norway
    Yeah, the bamboo feature will be reworked later for better visibility on both plains and grassland. :)
     
  14. Harrier

    Harrier Chieftain

    Joined:
    Feb 19, 2002
    Messages:
    2,386
    Location:
    UK
    Ok, I downloaded latest SVN, checked it's CIV4TerrainInfos.xml against your CIV4ArtDefines_Terrain.xml. So that <Type> and <ArtDefineTag> matched as you said. I also compared against my old version. (some strange differences there - i.e. rocky - rugged for one.)

    But the SVN and your tags matched, (noticed you removed a lot of default value tags i.e. >0<). So copied both SVN CIV4TerrainInfos.xml and your terrain graphics changes to my old version of C2C (May) with the old .dll.

    The map does load and I can access the new terrain graphics in WB. Also more importantly I can Shift-click on a tile that displays a box with all the features of that tile, so I can change it through drop down boxes etc.much more easierly, than clicking on a graphic and then on the map - mistake prone.

    Thanks for that.

    But some of the tiles in both main map and WB, just now display as Pink squares, overlapping other squares.

    They tend to be less used terrains -such as Saltflats, Rocky, Scrub, Lush, Barren etc.

    This of course can be a bit confusing. But if I have to, I can live with that.

    Any clues what I need to do, to resolve this?

    As this is specific to my use of WorldBuilder, using an older .dll (last May) - do not waste time on this, if you have not got a ready made answer.

    Hope my post is not to confusing.

    Thanks.
     
  15. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    6,082
    Location:
    Norway
    That means there are missing textures, or that the texture paths for the pink terrains are wrong in the CIV4ArtDefines_Terrain.xml. This is probably because some of the terrains in this terrain pack got merged into SVN recently (and is thus missing from this terrain pack).
    The easiest way to fix this would be to copy the whole folder "Beyond the Sword\Mods\Caveman2Cosmos\Assets\art\Terrain\Textures" from the SVN into your old C2C installation and then overwrite that again with the same folder included in this terrain pack.
     
  16. Harrier

    Harrier Chieftain

    Joined:
    Feb 19, 2002
    Messages:
    2,386
    Location:
    UK
    Also copied Terrain\Features (bamboo and floodplains) as well as \Textures and it worked fine. Did not need to overwrite the terrain package again.

    The only thing showing pink now is a Natural Wonder, but that is not a problem as it is already placed on the map and I will not be playing the map on this old SVN version, just editing it.

    Thanks a lot.
     
  17. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    6,082
    Location:
    Norway
    No problem,
    perhaps you should post the assets needed for making maps with the old C2C version.

    Edit: Updated terrain pack.
    • Made textures for polar and tropical variations of the shallow Sea terrain.
    • Tweaked land-coast transition texture.
     
    Last edited: Mar 24, 2017
  18. colonelflag

    colonelflag Chieftain

    Joined:
    Dec 2, 2009
    Messages:
    90
    Hi Toffer90,

    Is the folder structure in your zipped Terrainpack correct ?

    It has 2 "Water" folders- one under the Terrain folder and one under the Textures folder.

    Cheers
    ColnelFlag
     
  19. Toffer90

    Toffer90 C2C Modder

    Joined:
    Oct 16, 2011
    Messages:
    6,082
    Location:
    Norway
    It is correct.
    The one under terrain folder could be renamed to waterplane for clarity, but eh, why bother.

    Edit: updated terrain pack
    It now has a better water land transition, especially for tropical coasts. Less bright green edges towards land.

    EditEdit: (Apr. 27.)
    The map script I'll soon add to the SVN places deep sea and trenches on the map, this will probably trigger me to start improving the ocean terrain color scheme. there is some pretty ugly clashes between e.g. "Deep Tropical Sea" and the (Shallow Sea, Tropical Coast and Tropical Ocean). Deep sea is currently too dark and have the same texture for all climates.
     
    Last edited: May 17, 2017
  20. Dancing Hoskuld

    Dancing Hoskuld Warlord

    Joined:
    Jul 5, 2004
    Messages:
    23,286
    Gender:
    Male
    Location:
    Canberra, Australia
    Thinking on it, while we need the three different temperatures for the water maps, they don't really need to look different. The main use of the different climates it to control where animals can move and spawn.
     

Share This Page