Results 1 to 14 of 14

Thread: How to Convert DF2 Terrains to C4 Format

  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    17
    Downloads
    7
    Uploads
    0

    How to Convert DF2 Terrains to C4 Format

    I was hoping to convert a custom DF2 terrain to C4 format so I could use it in the C4 editor.

    I know several DF2 terrains have been converted and uploaded here on this site, so I was hoping someone knew how.

  2. #2
    Registered User
    Join Date
    Oct 2011
    Posts
    17
    Downloads
    7
    Uploads
    0

    Re: How to Convert DF2 Terrains to C4 Format

    The .RAW files for the depth map are the ones giving me trouble. They don't open with traditional graphics programs or even photoshop. Any ideas on how these work?
    Last edited by BulletMagnet; 03-31-2012 at 04:11 PM.

  3. #3
    Admin Bluetiereign's Avatar
    Join Date
    Aug 2002
    Posts
    2,555
    Downloads
    59
    Uploads
    3

    Re: How to Convert DF2 Terrains to C4 Format

    Wow, sorry for the slow reply. It's bad when even the admin can hardly find time to drop in. If I remember correctly, you had to give the terrains a 1024 x 1024 size as you opened them.

  4. #4
    Registered User
    Join Date
    Oct 2011
    Posts
    17
    Downloads
    7
    Uploads
    0

    Re: How to Convert DF2 Terrains to C4 Format

    No problem. A late reply is better than none!

    Both color maps are 1024x1024. However, the C4 color map seems to be 4 smaller "tiled" versions of the DF2 one. Here's an example:

    C4 Color Map: DF2 Color Map:



    To resolve this, I simply shrunk the DF2 version and put 4 of them (each 512x512) into a 1024x1024 image, which seemed to work in the C4 editor. I did the same with the depth map (_D.raw file). The height map (greenish one) works fine now. The depth map (gray and black one) is a little off, but I can do without.

    But anyway, the (_c).jpg color map and (_d).raw depth map were the only 2 files I used... I used DFD1 (a stock DF2 terrain) files for the other detail maps and such.

    It was quite a tedious process, but it seems to work now. If anyone has any input, let me know. I'll report back if anything goes wrong.
    Last edited by BulletMagnet; 04-03-2012 at 11:25 PM.

  5. #5
    Registered User
    Join Date
    Oct 2011
    Posts
    17
    Downloads
    7
    Uploads
    0

    Re: How to Convert DF2 Terrains to C4 Format

    I've ran into a new problem.

    When using the C4 editor and lining up walls, they ALWAYS seem to "transform" z-values in the df2 version. They're lined up perfectly in the C4 editor, but after converting the .mis and exporting the DF2 format, they simply change z-values.

    Perhaps this is caused by the terrain? My conversion may not be 100% correct.

    EDIT: It's happening with every terrain. Does the 3d Wireframe thing simply not work correctly? :o
    Last edited by BulletMagnet; 04-04-2012 at 05:15 PM.

  6. #6
    Admin Bluetiereign's Avatar
    Join Date
    Aug 2002
    Posts
    2,555
    Downloads
    59
    Uploads
    3

    Re: How to Convert DF2 Terrains to C4 Format

    Could you upload the files and let me take a look please ? BTW, that terrain is already available -> here <-.

  7. #7
    Registered User
    Join Date
    Oct 2011
    Posts
    17
    Downloads
    7
    Uploads
    0

    Re: How to Convert DF2 Terrains to C4 Format

    I just realized I never mentioned this... I'm converting the terrains to use in the DF2 C4 MED... not actually for C4 (shouldn't make a difference in the original question, though). I believe I've solved the terrain problem, actually. It's showing up fine now in the C4 editor. My problem now is the Z-values of items messing up when converting from a C4 .mis to a DF2 .mis. I thought it might be because I converted the terrain incorrectly, but the Z-values are messing up even with stock terrains.

    BTW, here is the converted terrain I made for C4. Perhaps you guys (or you, lol) could check it out and make sure there are no errors just in case. Heck, if it works, we can add it to the Terrain database here!
    Attached Files Attached Files

  8. #8
    Admin Bluetiereign's Avatar
    Join Date
    Aug 2002
    Posts
    2,555
    Downloads
    59
    Uploads
    3

    Re: How to Convert DF2 Terrains to C4 Format

    I get a crash with it. Polytrn error. I'll try to correct it and let you know.

  9. #9
    Registered User
    Join Date
    Oct 2011
    Posts
    17
    Downloads
    7
    Uploads
    0

    Re: How to Convert DF2 Terrains to C4 Format

    Ok. Keep in mind I've only used it for the DF2 C4 editor... not the actual C4 editor or game.

  10. #10
    Admin Bluetiereign's Avatar
    Join Date
    Aug 2002
    Posts
    2,555
    Downloads
    59
    Uploads
    3

    Re: How to Convert DF2 Terrains to C4 Format

    Corrected and working. IMHO, the depth map strength needs to be increased. You can do this in the trn file, I just forgot how. I can post a pic if you don't have the game.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    Oct 2011
    Posts
    17
    Downloads
    7
    Uploads
    0

    Re: How to Convert DF2 Terrains to C4 Format

    Appreciate that m8!

    Dr.Evil~TAG did the original conversion from BHD --> DF2. I REALLY wish the hill on the beachhead was taller like the BHD version. I'm not sure how Dr. Evil converted it, but he somehow made it smaller.

    For example, here's the DF2 Converted Terrain In-Game:



    Here's what it SHOULD be:


  12. #12
    Registered User
    Join Date
    Apr 2012
    Posts
    1
    Downloads
    11
    Uploads
    0

    Re: How to Convert DF2 Terrains to C4 Format

    i think the bhd to df2 conversion of terrains had something to do with the df2 engine needing the terrains lowered in height. i remember reading a post about this issue years ago. dfarena is probably where i read the post.



  13. #13
    Admin Bluetiereign's Avatar
    Join Date
    Aug 2002
    Posts
    2,555
    Downloads
    59
    Uploads
    3

    Re: How to Convert DF2 Terrains to C4 Format

    What issue jabo ?

  14. #14
    Registered User
    Join Date
    Oct 2011
    Posts
    17
    Downloads
    7
    Uploads
    0

    Re: How to Convert DF2 Terrains to C4 Format

    That shouldn't be the issue since some of the hills in DF2 are a lot higher than that BHD one would be.

Similar Threads

  1. DF:X terrain TGA format ?
    By Shayne in forum Delta Force: Xtreme
    Replies: 2
    Last Post: 06-01-2005, 12:47 AM
  2. DF2 Terrains Available For BHD/TS
    By Chad in forum Main News / Forum Info
    Replies: 0
    Last Post: 03-01-2004, 01:56 PM
  3. DF2 Terrains for DFTTFD
    By ArcticWolf in forum Delta Force Land Warrior/ Task Force Dagger Map Editing
    Replies: 0
    Last Post: 05-12-2003, 12:20 AM
  4. DF2 terrains
    By EVIL in forum Terrain Building
    Replies: 1
    Last Post: 04-08-2003, 12:53 AM
  5. terrains
    By wildman2 in forum Terrain Building
    Replies: 5
    Last Post: 11-14-2002, 10:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •