Help request @ CATE BMP tiling
Moderators: Lone Wolf, Snake Man
-
- Recruit
- Posts: 37
- Joined: 2002-08-10 22:01:01
- Location: Germany
Help request @ CATE BMP tiling
Hello. I'm just starting to learn to work with Cate. In order to see if i understand the rules I have Cate perform some simple jobs on my theater.
1 pass. Tile ocean with one texture and land with a second one (MinAlt MaxAlt parameter). Works fine.
2 pass. Tile a section of the theater with a third texture according to a colored area of a bitmap. The bitmap matches the dimensions of the theater (2048x2048 for a 128 theater) and is saved uncompressed with a 256 color palette. However, when checking the terrain after this pass i have to see that only a part of the colored area was actually re-tiled with the third texture. Most of it remains untouched.
Any idea what i did wrong?
(below are the .conf files from the 1. and 2. pass)
-1----
# Ocean tiles
UpdateOceanTiles=OK
[Rules: Ocean, Farm]
Color=-1,-1,-1
TileRule=0 0 (1-23) (0) * * * *
TileRule=1 99999 (*) (48) * * * *
[EndRules]
-2----
BMPFileName=C:\Dokumente und Einstellungen\Shadow\Desktop\Pakistan\CATE_bmp.bmp
[Rules: Oman after BMP]
Color=255,255,0
TileRule=0 99999 (*) (548) * * * *
[EndRules]
1 pass. Tile ocean with one texture and land with a second one (MinAlt MaxAlt parameter). Works fine.
2 pass. Tile a section of the theater with a third texture according to a colored area of a bitmap. The bitmap matches the dimensions of the theater (2048x2048 for a 128 theater) and is saved uncompressed with a 256 color palette. However, when checking the terrain after this pass i have to see that only a part of the colored area was actually re-tiled with the third texture. Most of it remains untouched.
Any idea what i did wrong?
(below are the .conf files from the 1. and 2. pass)
-1----
# Ocean tiles
UpdateOceanTiles=OK
[Rules: Ocean, Farm]
Color=-1,-1,-1
TileRule=0 0 (1-23) (0) * * * *
TileRule=1 99999 (*) (48) * * * *
[EndRules]
-2----
BMPFileName=C:\Dokumente und Einstellungen\Shadow\Desktop\Pakistan\CATE_bmp.bmp
[Rules: Oman after BMP]
Color=255,255,0
TileRule=0 99999 (*) (548) * * * *
[EndRules]
-
- Commander-In-Chief
- Posts: 9840
- Joined: 2000-07-31 22:01:01
- Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
- Editing Interests: All, I (try) to edit everything.
- Location: PMC
Re: Help request @ CATE BMP tiling
quote:Originally posted by BenBen:
1 pass. Tile ocean with one texture and land with a second one
Doesn't Dem2terrain already do this for you?
quote:2 pass. Tile a section of the theater with a third texture according to a colored area of a bitmap.
You could do all these with the 1st pass.
Well the config files are OK from what I can tell, maybe the bitmap is colored wrong, are you sure about the palette etc?quote:only a part of the colored area was actually re-tiled with the third texture.
Btw did you check out the QuickSilver's CATE conf files for examples?
PMC TACTICAL FORUM AND OTHER WEBSITES GO DOWN OCTOBER 13TH 2025 IF WEB HOSTING YEARLY FEES ARE NOT PAID.
IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.
Support PMC
Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".
IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.
Support PMC
Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".
-
- Recruit
- Posts: 37
- Joined: 2002-08-10 22:01:01
- Location: Germany
Re: Help request @ CATE BMP tiling
Well, if i merge the two files i get an error message from Cate saying "incorrect format of configuration file (BMP file defined, but one or several colors rules have negative colors or no colors defined)."quote:You could do all these with the 1st pass.
The configuration file looks like:
code:Code: Select all
UpdateOceanTiles=OK [Rules: Ocean, Farm] Color=-1,-1,-1 TileRule=0 0 (1-23) (0) * * * * TileRule=1 99999 (*) (48) * * * * [EndRules] BMPFileName=C:\Dokumente und Einstellungen\Shadow\Desktop\Pakistan\CATE_bmp.bmp [Rules: Oman after BMP] Color=255,0,0 TileRule=0 99999 (*) (548) * * * * [EndRules]

The palette was not correct. I was confused about the many palette options that Photoshop offers when converting a picture to "indexed colors".
Now i "forced" the System (Windows) palette on the picture and recolored my "test area", now everything works fine.

Yups, checked them out, but for my theater i have to use the BMP method because i have several areas with different vegetation.quote:Btw did you check out the QuickSilver's CATE conf files for examples?
-
- Commander-In-Chief
- Posts: 9840
- Joined: 2000-07-31 22:01:01
- Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
- Editing Interests: All, I (try) to edit everything.
- Location: PMC
Re: Help request @ CATE BMP tiling
quote:if i merge the two files i get an error message
Remove the -1,-1,-1 palette from the "ocean, farm" part and add some real RGB value there.
PMC TACTICAL FORUM AND OTHER WEBSITES GO DOWN OCTOBER 13TH 2025 IF WEB HOSTING YEARLY FEES ARE NOT PAID.
IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.
Support PMC
Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".
IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.
Support PMC
Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".