Jump to content


Photo

MCD List for MAP files


  • Please log in to reply
7 replies to this topic

#1 danielgatley

danielgatley

    Squaddie

  • Forum Members
  • PipPip
  • 2 posts

Posted 31 December 2010 - 06:44 AM

I'm playing around with UFO MAP files and wondering how the game knows which MCD files it needs to load for a given Map. It's simple enough to see for AVENGER.MAP as there is only one MCD files but when considering UFO_110.MAP as an example it needs U_EXT02.MCD, U_WALL02.MCD and U_BITS.MCD. How does the game know to load these files (as it certainly not in the MAP file) and in what order does it load them (in my current understanding this would have an impact on the offset)?

Mapview seems to use it's own file to link the maps to mcd's, so i'm guessing the link in the game is coded in the exe. If anyone knows different please let me know.

#2 j'ordos

j'ordos

    Alien Concept Task Force

  • Xenocide Artwork Department
  • 5,059 posts

Posted 01 January 2011 - 04:50 AM

Mapview allows you to change the MCD's for each terrain so it almost certainly isn't in the exe but in one of the map files. I don't know any more than that unfortunately.

Edited by j'ordos, 01 January 2011 - 04:51 AM.

"You can't trust your eyes if your imagination's out of focus" - Mark Twain
"The mind is like an umbrella, it functions best when open" - Walter Gropius
Posted Image
SNEKK BLOG U-LAR MEKHH! GAHGHH! RK!
GRRGH RGGHH SNORRTT GHACKHGG

Now presented in DoubleVision™ (where drunk)

#3 BladeFireLight

BladeFireLight

    Captain

  • Moderators
  • PipPipPipPip
  • 809 posts

Posted 01 January 2011 - 11:45 AM

It's hard coded in the EXE's. (Tactical.exe for the dos ver.)

You can find them with a hex editor doing an ASCII search for the file names. XcomUtil's map generator changed the entries for the final level in each game for it's custom sets.

Edited by BladeFireLight, 01 January 2011 - 11:46 AM.

-------------------------------------------------------------------
Combat is very simple, there is a first place and second place, second place is laying face down in the mud, sometimes, so is first place.

#4 danielgatley

danielgatley

    Squaddie

  • Forum Members
  • PipPip
  • 2 posts

Posted 04 January 2011 - 10:19 AM

Thanks for the info, was hoping there would be a nice easy system or file but oh well guess i'll make my own.

#5 Hobbes

Hobbes

    UFO2000 Staff

  • Moderators
  • PipPipPipPip
  • 719 posts

Posted 06 January 2011 - 06:58 AM

Thanks for the info, was hoping there would be a nice easy system or file but oh well guess i'll make my own.


If you use XComUtil and its feature to manually choose terrain then you can change the xcomutil.cfg file to make it load your own maps or your own list of MCDs.

#6 danielgatley

danielgatley

    Squaddie

  • Forum Members
  • PipPip
  • 2 posts

Posted 06 January 2011 - 09:41 AM

Thanks for the tip but that would rely on me using windows executable files, something my android device wouldn't like :)

#7 BladeFireLight

BladeFireLight

    Captain

  • Moderators
  • PipPipPipPip
  • 809 posts

Posted 06 January 2011 - 11:18 AM

Thanks for the tip but that would rely on me using windows executable files, something my android device wouldn't like :)


What are you doing with the maps on a android?
-------------------------------------------------------------------
Combat is very simple, there is a first place and second place, second place is laying face down in the mud, sometimes, so is first place.

#8 danielgatley

danielgatley

    Squaddie

  • Forum Members
  • PipPip
  • 2 posts

Posted 07 January 2011 - 04:37 AM

Nothing of any real interest, just displaying them on screen at current. I wanted to learn some android graphics/game programming and thought it would be a good project to keep my interest. It's never going to go anywhere of merit but I’m enjoying the challenge of at least trying. Before anyone says I know the colours in some of the tiles are a little off but I was concentrating on making the maps work more.


Posted Image