Author Topic: Understanding 2da info to mod it help pls...  (Read 344 times)

Legacy_datamaster

  • Jr. Member
  • **
  • Posts: 94
  • Karma: +0/-0
Understanding 2da info to mod it help pls...
« on: June 24, 2011, 05:50:09 pm »


               I am wanting to modify the hak provided with the Overland Travel System on the vault here: http://nwvault.ign.c....Detail&id=4226

Getting the map(even changing what the actual map is) is no problem(using mostly what the hak creator already had in there), but I am wanting to put two different maps into a hak for a prefab mod.

I have TlkEditor, so I can take a look at the .2da file in it, but I am not 100% sure of what I am looking at to know, even remotely, how I might best modify it to have two maps.

I have no idea what the .mdl file in the hak is for.

Can anyone provide any hints/ideas where I need to start to learn more about what to do in this instance?

-----------------
"Knowledge knows no bounds! But hindsight might wish there had been some."
               
               

               
            

Legacy_Alex Warren

  • Sr. Member
  • ****
  • Posts: 326
  • Karma: +0/-0
Understanding 2da info to mod it help pls...
« Reply #1 on: June 24, 2011, 06:15:48 pm »


               For every map in that system you need one model file, one texture (map image) and entry in placeables.2da.

So to add new map you need a new map image in tga format (it would be best if it had the same size as the original map 512x512).
Than you need to extract memap.mdl from the hak (using tlkeditor or nwhak.exe) rename it and open it in notepad.
Find line that says
bitmap BFMESmall
and replace bfmesmall with your map image name (ie. bitmap IslansMap if your map is IslansMap.tga).
You should also replace all occurrences of memap with your new file name.
Save the file.

Now extract placeables.2da and open it.
Go to line 203 you should see:
203        "Middle Earth Map"      ****     MEMap               ****         ****           ****           ****           23             1            0         ****      ****
copy that line and overwrite line 204 than put your map name instead of 'Middle Earth Map' and your new mdl file name instead of MEMap.
Save the file

Put all files back in the hak (it will have 5 files now - 2 map images, 2 mdl files and 1 2da)

To use the new map simply add your new placeable to area in the toolset.
               
               

               


                     Modifié par Alex Warren, 24 juin 2011 - 05:18 .
                     
                  


            

Legacy_datamaster

  • Jr. Member
  • **
  • Posts: 94
  • Karma: +0/-0
Understanding 2da info to mod it help pls...
« Reply #2 on: June 25, 2011, 03:43:44 am »


               Perfect.  I haven't done all that yet, but I have loaded up the files and checked those lines, so I KNOW I can do that.  Thanks a lot Alex Warren.

--------------------------
"Knowledge knows no bounds!  But hindsight might wish there had been some."