Results 1 to 5 of 5

Thread: What links strat map and battle map?

  1. #1

    Default What links strat map and battle map?

    I notoced, when I was messing about with my new campaign map, that the link between the terrain you see in the strat map where the battle starts does not seem to link directly with the battle map you get.

    For example...

    The map still had the bulk of the detail bits from DJ's map template. That means all-over temperate grassland, with absolutely no height details. Should produce a completely flat world. But no.

    I kicked off a battle, and I found myself fighting a battle in rolling woodlands.

    Didn't give it much thought then...but now I need to know! I want to make some new textures for the battlemap and stratmap to reflect the slightly 'alien' world, but need to have the battlemap reflect accurately the changes I make.

    Anyone know how this works?
    Careless Orc Costs Lives!

  2. #2
    Back in style Member Lentonius's Avatar
    Join Date
    Nov 2005
    Location
    U.K
    Posts
    445

    Default Re: What links strat map and battle map?

    It might, if youre doing provincal campaign, might take the x and y co-ordinates from the imperial campaign.

    not certain, but i think thats what it does on the battle editor
    Hey, Im back

  3. #3
    Shaidar Haran Senior Member SAM Site Champion Myrddraal's Avatar
    Join Date
    Feb 2004
    Location
    UK
    Posts
    5,752

    Default Re: What links strat map and battle map?

    um no I shouldn't think so. Thats very very odd I must say (I mean the woodland). Was it forest style or just clumps of trees?

  4. #4

    Default Re: What links strat map and battle map?

    Even with a level 1 map_heights and a completely zero map_roughness it still generates a rolling terrain. I somewhat confused at this one myself.

    I thought that there might be a text file that would determine the relevant heights, but the landscape on a particular tile is always constant - which suggests that it's referencing a graphic.

    Another question is where does the game get the information for the background on the battlefield from? The battlemap tile itself comes from the textures in the data\terrain\battlefield\, I tried changing the textures used on the aerial map with no success. The shape at least must be referenced from the battlemap somehow because we get offmap models and geographic features.
    Epistolary Richard's modding Rules of Cool
    Cool modders make their mods with the :mod command line switch
    If they don't, then Cool mod-users use the Mod Enabler (JSGME)
    Cool modders use show_err
    Cool modders use the tutorials database Cool modders check out the Welcome to the Modding Forums! thread Cool modders keep backups Cool modders help each other out

  5. #5
    Senior Member Senior Member Duke John's Avatar
    Join Date
    May 2003
    Location
    Netherlands
    Posts
    2,917

    Default Re: What links strat map and battle map?

    Even with a level 1 map_heights and a completely zero map_roughness it still generates a rolling terrain.
    Which isn't very surprising. The map_heights.tga cannot give enough information to make an interesting battlefield. So on top of the rough height differences a second layer is generated. I guess that certain climates produce less hills than others.

    I thought that there might be a text file that would determine the relevant heights, but the landscape on a particular tile is always constant - which suggests that it's referencing a graphic.
    A noise effect in PS is done by a formula and only by adding some random factor it changes each time. I think CA removed that random factor uses a formula that always produces the same results based on what the campaignmap looks like. The text files does hint at what variables are being used. There are several text files that deal with how the map are being generated. In the past I did some testing, but I never could find anything working.
    There is a text file which does give you some influence; descr_terrain.txt in the base world/maps/folder:
    Code:
    heights
    {
    	min_sea_height  -3122.256
    	max_land_height  7511.272
    }
    roughness
    {
    	min  50.000
    	max  200.000
    }
    fractal
    {
    	multiplier  0.500
    }
    If you chance the height section then you can influence the range of height differences on the stratmap and as a consequence also on the battlemap. Reducing max_land_height to 1000 gives a much flatter landscape with the same map_heights.tga. I guess that roughness and fractal deal with the second layer of height differences on the battlemap.


    Another question is where does the game get the information for the background on the battlefield from? The battlemap tile itself comes from the textures in the data\terrain\battlefield\, I tried changing the textures used on the aerial map with no success.
    If you mean the very low resolution groundtextures bordering the battlefield then forget it. I have tested every texture and looked through any relevant txt file but I couldn't find anything. I suspect that the engine generates a few colours from the ground textures and stores them in descr_geography.db
    I had hoped that the database could be generated just like with descr_vegetation.db but it doesn't, or at least I don't know which files need to be removed to trigger it.

    Cheers,
    Duke John

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO