CATE problem with TDF file ending " 0" string

F4Browse, CATE, Tacedit, Terrainview & TheaterMaker etc utility related

Moderators: Lone Wolf, Snake Man

Post Reply
Snake Man
Commander-In-Chief
Posts: 9338
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
Contact:

CATE problem with TDF file ending " 0" string

Post by Snake Man » 2009-05-11 15:34:35

I could swear there is already topic like this made by me. But I could not find it with any search words I used, so here we go.

When you use older Dem2terrain to create your terrain files, it creates the TDF's like this:

Code: Select all

CITY 5 1173,1521 1174,1522 1173,1523 1173,1522 1173,1521
CITY 6 1165,1519 1167,1521 1167,1521 1165,1521 1165,1520 1165,1519
CITY 11 1184,1511 1185,1512 1185,1513 1183,1514 1183,1514 1182,1513
CITY 7 899,1502 899,1502 900,1503 900,1504 898,1504 898,1502 899,1502
CITY 6 1109,1490 1109,1490 1109,1490 1109,1490 1108,1490 1109,1490
This can be read fine with CATE versions PRE to 4.17. But if you try to use CATE v4.17 with that tdf file, you'll get that nasty "overflow" effect (dunno how to describe it).

But latest Dem2terrain v1.9 writes the TDF files like this:

Code: Select all

CITY 5 1173,1521 1174,1522 1173,1523 1173,1522 1173,1521 0
CITY 6 1165,1519 1167,1521 1167,1521 1165,1521 1165,1520 1165,1519 0
CITY 11 1184,1511 1185,1512 1185,1513 1183,1514 1183,1514 1182,1513 0
CITY 7 899,1502 899,1502 900,1503 900,1504 898,1504 898,1502 899,1502 0
CITY 6 1109,1490 1109,1490 1109,1490 1109,1490 1108,1490 1109,1490 0
As you can see the trailing " 0" string there, that what I believe is some marker that yep our values ended here.

You get no problems if you use Dem2terrain v1.9 AND CATE v4.17.

If you don't want to re create your Dem2terrain files, then simply use EditPadPro to edit the old TDF files. Open the search and replace box, tick regular expression and for the search box put:

Code: Select all

\n
And for the replace box put:

Code: Select all

 0\n
That is actually " 0\n" with one space, but obviously the damn forum code tag removes it.
PMC Tactical Forum New User Registration please read new info here.

PMC since 1984

Editing knowledge, visit PMC Editing Wiki
The leading, most detailed and comprehensive modification made for the Vietnam War - Vietnam: The Experience homepage
View our videos in PMC Youtube channel

PMC Tactical forum Advanced Search is power.

"ALPHA BLACK TO PAPA BEAR. ALL RUSSIANS ARE TOAST. OVER."

Post Reply

Who is online

Users browsing this forum: Yandex [Bot] and 19 guests