Error 245 .\Tmap.cpp

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

Moderators: Lone Wolf, Snake Man

Post Reply
bulletkid
Recruit
Posts: 33
Joined: 2006-12-14 19:29:23
Location: Singapore

Error 245 .\Tmap.cpp

Post by bulletkid » 2006-12-20 18:16:03

I received an error when trying to test hows my theater going, I nearly completed the tutorial though finished almost the whole thing altogather and so this error is kinda what I don't quite I understand, I'll try and give how much detail it is...hope it helps:

1)st error:
-------------------------------------------------
Error 245 .\Tmap.cpp Nov 16 2006 |
------------------------------------------------ |
(X) The operation completed sucessfully |
: Bad terrain header (color table) |
Press OK to Quit |
-------------------------------------------------
Well I know it had something to do with the color thingy, is it?

2)nd error
[img_max]http://i54.photobucket.com/albums/g109/ ... /error.jpg[/img_max]

I know the pic is quite large but I have to do it to make sure I give as much detail as possible I can, sorry.

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:

Post by Snake Man » 2006-12-20 18:54:55

I edited the topic here. Do not start topics with subject ot "pls help 4 me!!1" they are just lame. If you know what is your problem like in here the "Error 245 .\Tmap.cpp" for example, post that or the utility you had the error with, into the topic subject line so it has some more meaning.

Also good tip is to use the search feature of the forum many times before posting, I know there was no match for this problem in the database so thats ok, but just in case in the future, use search before posting a new topic and remember to put meaningful subject line.
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."

T_Rex
FreeFalcon
Posts: 848
Joined: 2001-03-04 23:01:01
Location: here

Post by T_Rex » 2006-12-20 19:08:11

Not to make it even more confusing, but a reference to which exe/mod might be helpful, too. :)
Sic Semper tyrannosauro.

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Post by Sherlock » 2006-12-20 20:10:05

@Bulletkid,
it is obvious from your picture that your theater definitions are not correct. Take a look at the linkage between your theater.lst file and your new theater definitions file, <your_theater_name>.tdf. Insert whatever you named your theater into the <your_theater_name> space in the file above. That's your error #2 I think. Better yet, post the contents of both your theater.lst and the theater definitions file and I wil redo them for you (may be easier). I will need to know the paths/directories to your campaign, objects, art, etc., files for your new theater.

Your error #1 is harder to diagnose. Did you rebuild your terrain from your L2/O2 files so now in your \Lead Pursuit\Battlefiled Operations\terrdata\<your_theater_name>\terrain folder you should have 14 files like this (not necessarily in this order):

theater.o5
theater.l5
theater.o4
theater.l4
theater.l3
theater.o3
theater.o0
theater.l0
theater.o1
theater.l1
theater.l2
theater.o2
theater.map
theater.mea

If you didn't you need to use SPTInstall.exe to build the terrain. It will create the other levels of L and O files that you need since DEM2Terrain only creates the L2/O2 pair (SPTInstall.exe will create the L0-L1&L3-L5 and the O0-O1&O3-O5 files based on the L2/O2 pair that DEM2Terrain originally created from the DEM data you downloaded.

Hope this helps. Report back here and let me know.

Sherlock
Sherlock
Victurous te Saluto

bulletkid
Recruit
Posts: 33
Joined: 2006-12-14 19:29:23
Location: Singapore

Post by bulletkid » 2006-12-21 04:09:02

is the Theater.l3 and so created the same way or do I Must Run the Sptinstall.exe? :?

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Post by Sherlock » 2006-12-21 04:13:21

bulletkid wrote:is the Theater.l3 and so created the same way or do I Must Run the Sptinstall.exe? :?
How many files are in your \Lead Pursuit\Battlefiled Operations\terrdata\<your_theater_name>\terrain folder ?

If it is only the following 4, then yes you must run SPTInstall.exe:
theater.l2
theater.o2
theater.map
theater.mea

If you have all fourteen (14) files that I listed in my previous post then there is another problem.
Sherlock
Victurous te Saluto

bulletkid
Recruit
Posts: 33
Joined: 2006-12-14 19:29:23
Location: Singapore

Post by bulletkid » 2006-12-21 04:34:08

alright, I got the 14 files done but I still have the same problem like last time...

anyway, heres the contents of the theater.Ist and the Asia.tdf

theater.Ist
terrdata\theaterdefinition\Asia.tdf
terrdata\theaterdefinition\Korea.tdf
terrdata\theaterdefinition\Korea2005.tdf
terrdata\theaterdefinition\Korea2010.tdf
terrdata\theaterdefinition\Balkans.tdf
terrdata\theaterdefinition\Balkans2005.tdf
terrdata\theaterdefinition\Balkans2010.tdf

Asia.tdf
# Asia TDF file
# shown in the pick list
name South East Asia

# Title shown on theater page
desc South East Asia

# bitmap to display on theater page
bitmap terrdata\theaterdefinition\Asia.tga

# in general, you can miss out most of these, and it
# will use the default, unless another theater changes it
# so probably best to put in explicitly.

# Where the campaign directory is
campaigndir campaign\Asia

# where the terrain data is
terraindir terrdata\Asia

# where art is loaded from
artdir art/artAsia

# movies
moviedir

# uisounds
#uisounddir soundsBalkans

# default objects
objectdir terrdata\objects

# misc textures
#misctexdir terrdata\misctex

# 3d object files
3ddatadir terrdata\objects

# minimum tacan channel
#mintacan 70

# sounds dir
sounddir sounds\

# acmibin dir
acmidir acmibin\

Hope thats helps...

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Post by Sherlock » 2006-12-21 17:12:33

Ok,
I've reviewed the files you posted and I don't see any errors there.

The problem is probably a file (or files) that were not copied over to the needed directory.

At this point I don't think I can help you other than to say wait for one of the converted SP theaters to come out for AF that my group is working on, then you can emulate what we have done as far as files and paths and which files go into what location. You can get more information on these theaters we are working on in this thread over at Frugals World:

http://forums.frugalsworld.com/vbb/show ... p?t=103234

Sorry I can't be of more help at this time.
Sherlock
Victurous te Saluto

bulletkid
Recruit
Posts: 33
Joined: 2006-12-14 19:29:23
Location: Singapore

Post by bulletkid » 2006-12-21 17:16:40

well, thx anyway, you help me alot. :D

BaldEagle
FreeFalcon
Posts: 20
Joined: 2000-12-28 23:01:01
Location: Las Cruces, NM USA
Contact:

Post by BaldEagle » 2006-12-22 21:05:51

The TMAP.cpp functions read in the Theater.map file found in the terrain folder. Try looking at it using PathMaker.

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Post by Sherlock » 2006-12-22 21:15:34

BaldEagle wrote:The TMAP.cpp functions read in the Theater.map file found in the terrain folder. Try looking at it using PathMaker.
Hmm...interesting...

Bulletkid, did you convert your L2 file to 4 byte with LODFixer?

Did you change the flag on your THEATER.MAP file to "3" (assuming you are making a 128x128 segment theater)?

Thanks BaldEagle!
Sherlock
Victurous te Saluto

bulletkid
Recruit
Posts: 33
Joined: 2006-12-14 19:29:23
Location: Singapore

Post by bulletkid » 2006-12-25 07:37:39

no I did not convert it to 4-byte (thought it was only for Falcon 4.0) and I'm doing a 64x64 map...so is it necessary to do it.

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Post by Sherlock » 2006-12-25 17:24:19

bulletkid wrote:no I did not convert it to 4-byte (thought it was only for Falcon 4.0) and I'm doing a 64x64 map...so is it necessary to do it.
You still need to convert it to 4 byte. That is all that Allied Force will use.

Then you need to change your L2 flag in Pathmaker to a "1" (unless it is already a 1) after you convert.

Sherlock
Sherlock
Victurous te Saluto

bulletkid
Recruit
Posts: 33
Joined: 2006-12-14 19:29:23
Location: Singapore

Post by bulletkid » 2006-12-26 13:39:32

alright after creating 4-byte and using the flags 1. The Main Lobby became black with only buttons that can be seen. Thought the Instant Action run quite smoothly but as usual the TE won't load..

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Post by Sherlock » 2006-12-26 17:29:01

Go to frugals world and download the new ODS for AF installer that was just hosted yesterday.

Go through that installation and examine how the files are installed and what files are installed. This will teach you exactly what you need to copy over.

Also, did you create a new te_new.tac file from a SP4.2 te_new.tac?
Sherlock
Victurous te Saluto

bulletkid
Recruit
Posts: 33
Joined: 2006-12-14 19:29:23
Location: Singapore

Post by bulletkid » 2006-12-26 18:39:10

yup, its SP4.2 I've got a friend's F4 and installed it, update it and so from there I try creating the theater thus came out like I said it b4... :)

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests