Welcome to Close Combat Series
  Login or Register Home  ·  Downloads  ·  Forums  ·  Combat Camera  ·  Help  

  Survey
Do incapacitations count as a soldier's kills?

Yes
No



Results
Polls

Votes 1212
Comments: 1

  Shout Box!!

Only registered users can shout. Please login or create an account.

  Main Menu
Articles & News  
    Help
    Player`s News
    Site News
    Multiplayer
    Terrain Challenge
    Boot Camp
Community  
    Forums
    Downloads
    Combat Camera
    MOOXE @ Youtube
    Statistics
Members  
    Private Messages
    Your Account
    Logout

  Donations
Anonymous - $25.00
08/15/2022

Anonymous - $25.00
08/15/2022

Anonymous - $25.00
12/18/2021

Anonymous - $100.00
11/08/2021

Anonymous - $15.00
04/09/2021

Anonymous - $100.00
04/05/2021

Anonymous - $20.00
02/20/2021

Anonymous - $10.00
12/29/2020

Anonymous - $1.00
11/06/2020

ZAPPI4 - $20.00
10/10/2020

Find our site useful? Make a small donation to show your support.



Search for at
Close Combat Series Advanced Search


 Author
Message
 
AT_Stalky

Rep: 27.4
votes: 10


PostPosted: Sun Feb 16, 2014 12:51 pm Post subject: How to fix elevation LOS problems Reply with quote

How to correct elevation LOS errors in WaR and other Matrix CC games.

Part 1.

This type of errors comes from to large differences in the elevations on a map. IE: the highest points and the lower arias of a map.  


Okay, I dont have WaR installed and I don’t use Mafis fancy tools. I use 3C Cartographer but I guess Mafis tools make the same thing even more easy.

If we look at the map it looks like this:

And if we translate that into a grapix image that depicts the elevation it look like this:
The higher the ground is the brighter (more white) the image is, the darker the lower the ground is, a mountain is whyite, a pit is black.. etc..



elevation explain (kopia)2.jpg
 Description:
 Filesize:  142.16 KB
 Viewed:  426 Time(s)

elevation explain (kopia)2.jpg



_raids.jpg
 Description:
 Filesize:  54.82 KB
 Viewed:  434 Time(s)

_raids.jpg



___Elevation_0001.jpg
 Description:
 Filesize:  59.3 KB
 Viewed:  429 Time(s)

___Elevation_0001.jpg




Last edited by AT_Stalky on Sun Feb 16, 2014 3:29 pm; edited 3 times in total
Back to top
View user's profile Send private message Visit poster's website
 
AT_Stalky

Rep: 27.4
votes: 10


PostPosted: Sun Feb 16, 2014 1:20 pm Post subject: Re: How to fix elevation LOS problems Reply with quote

Part 2:

First backup all the map data files before making anything…

Start up the map coding tool, in this case its 3C, Cartographer.
1. Load the right element.ini file, etc. (Don’t know if it really matter what .ini when its just elevations that is to be adjusted)
2. File -> “Open image”, load the image, “abc.bgm” .
3. File -> “Open txt”, load the txt file, in this case “abc.txt”
4.  Now we are to generate a small image of the heights of this map. Import/Export -> Export --> Elevation bitmap (small)..  name the image “abc.tga”
Now you have the elevation as an image.
5. Now we are to load the abc.tga image, Import/Export -> Import -- > Elevation bitmap (Small).. Load the abc.tga you just made.
Now you get an option, the first slide-bar is set minimum height, and the second set maximum height. Its straightforward, set small hight difference to start with. In this case minimum at 1, and maximum at a value, for example "6"…
6. Click “OK
7. We now need to create 2 new files.
8. File -> Save txt… Name the new txt file to abc.txt
9. Import/Export -> Export --> Lose-file…. Name the file abc.los This is a slow process, takes many minutes to generate this file.
10. after several minuts, its done..

11. Take the 2 new files, abc.txt  and abc.los and replace the old files in the War map folder.

Test it.
Make just one map at the time, test it and right click on the map to see the actual heights, and move units there and actually see that the selected heights will give the LOS that are inline with the hight differances.. It’s a long time since I used this tool, and I believe that its small differences in heights that will give the best results for most maps. That’s it…


See if that does it.

After geting into this, I belive you can fix all the 64 maps in a couple of houres.



___Elevation_0003.jpg
 Description:
 Filesize:  45.46 KB
 Viewed:  421 Time(s)

___Elevation_0003.jpg


Back to top
View user's profile Send private message Visit poster's website
 
platoon_michael

Rep: 56.2
votes: 25


PostPosted: Sun Feb 16, 2014 8:18 pm Post subject: Re: How to fix elevation LOS problems Reply with quote

Why is it that in CCIV maps when using Mafis 5CC I can view different LOS when I change from soldier viewing soldier,tank viewing soldier etc etc.

But nothing changes when doing the same with WAR maps.

I like the way CCIV maps depicts los.
Back to top
View user's profile Send private message GameRanger Account
 
AT_Stalky

Rep: 27.4
votes: 10


PostPosted: Sun Feb 16, 2014 8:27 pm Post subject: Re: How to fix elevation LOS problems Reply with quote

Try a WaR map that you have problem with, do as I suggested above..  Takes like a couple of min.

I never used Mafi Tools, tried em but...
So I have no idea about mafis.
Back to top
View user's profile Send private message Visit poster's website
 
Pete

Rep: 118.1
votes: 12


PostPosted: Mon Feb 17, 2014 4:41 pm Post subject: Re: How to fix elevation LOS problems Reply with quote

Thanks for the tutorial Stalky. Bear in mind that when coding floors or other flat surfaces you need to code the heights of those elements separately. For instance the LOS from single storey homes may be blocked by the height of the adjacent elements.


Dulce Bellum Inexpertis
(War is delightful to those who have no experience of it.)
Our facebook page: https://www.facebook.com/buckandpete/
Our website: https://themodsection.net/
Back to top
View user's profile Send private message
 
AT_Stalky

Rep: 27.4
votes: 10


PostPosted: Mon Feb 17, 2014 5:18 pm Post subject: Re: How to fix elevation LOS problems Reply with quote

Yes, thats correct, the floors shold be made flat manually if one code a map from scratch..

Though this should not be a problem in this case. As its a totorial how to adjust the hight differances on already excisting maps, thus, the floors shold already be flat (given that the original coder made the floors flat that is), and there for they will remain flat just at another hight..
Back to top
View user's profile Send private message Visit poster's website
 
platoon_michael

Rep: 56.2
votes: 25


PostPosted: Wed Feb 26, 2014 1:25 pm Post subject: Re: How to fix elevation LOS problems Reply with quote

How does one create a text file or get 3C to recognize map elements for WaR?
Back to top
View user's profile Send private message GameRanger Account
 
AT_Stalky

Rep: 27.4
votes: 10


PostPosted: Wed Feb 26, 2014 5:01 pm Post subject: Re: How to fix elevation LOS problems Reply with quote

1) The txt file is the file in your map folder, it has the same name as the map, same name as .bgm.. Or you mean, how you crate a new txt after u has made the elevation adjustments?
2) I may be wrong here, but Im not even sure you need a new element file for adjusting only elevations. As its only the elevation value of the ground that is to be remade, and that value is in the maps .txt file. Try without… I used the CC5 .ini.. However, im sure there’s someone here who has made a War/Tld .ini file. Maybe, make a request for it in the mod forum?

Or, does mafis tool have a similar function (export elevation image / import elevation image, and set lowest, and highest points) as described in the guide above?
Back to top
View user's profile Send private message Visit poster's website
 
 
Post new topicReply to topic printer-friendly view Close Combat Series Forum Index -> Close Combat Wacht am Rhein


 
   
 


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum




Forums ©





In August of 2004, Zappi, Homba, Bambam887, RedScorpion and MOOXE all pitched
in to create this Close Combat site. I would to thank all the people who have visited and
found this site to thier liking. I hope you had time to check out some of the great Close Combat
mods and our forums. I'd also like to thank all the members of our volunteer staff that have
helped over the years, and all our users that contributed to this site!