Jump to content


Photo

2 Problems With Mcd And Tiles


  • Please log in to reply
3 replies to this topic

#1 DMC

DMC

    Rookie

  • Forum Members
  • Pip
  • 0 posts

Posted 02 September 2005 - 02:02 PM

hi there,

redaing the forum a while ago, now this is my first post here.
i have a problem, redesign my skyranger :)

first i tried to add simply the U_WALL02 to the mapfile.

in daishivas map editor this works fine, but in game the skyranger walls wich should ufo walls are TREEs ! :)
the gravlift donīt works to and shows crap :(

So, ok i thought so it will not be so easy.

i tried then to add the graphics i need (the 2 gravlift floor squares, the westwall from ufo and the slide door 8 pictures) to add these in the PLANE.PCK

I open 2x WINPCK for this, load PLANE.PCK in the one, and U_WALL02 in the Other program, then copy & paste the Pictures i needed with simply CTRL-C / CTRL-V from the one program to the other, this works fine to.

saved the new PLANE.PCK then and open again daishivas map editor.... hmmm...
so the new added pictures are not visible / accesible in the map editor WTF.

loaded the PLANE.MCD, the new pics are listet, but not have an MCD entry, i havenīt figured out how to assign an MCD entry to them without replacing an existing one, i would to make new one.

hmm this not works i think

ok then i tried to edit the MCD file from PLANE manually with an hex editor.

i just copy the last mcd entry 62 bytes from the ramp tile one and insertet it 3 times at the end of file, offsets where correct.

But MCDedit still donīt show up these "new" MCD entrys.

so i get sucked and replaced the pictures from the last 3 mcd entrys (the downramp)
with the added pictures westwall, westdoor and gravlift, Edit the mcd entrys and save, fine.

But now when i open the PLANE in mapeditor the damn background from the new tiles is wrong, urgs, i need help please how can i correct this?

see my screenshot, it explains what i mean
PLANE.gif

#2 DMC

DMC

    Rookie

  • Forum Members
  • Pip
  • 0 posts

Posted 02 September 2005 - 03:20 PM

ok i solved one problem,

i have 2 ufo directories and the hexedited MCD file was in the other, but with MCDedit i load the one file i not editet LOL.
so when you add more 62 bytes at end of file you will got the new mcd entry.

the problem with the wrong background color i have still, but i will test now with the unknown mcd values, maybe one of them is the information wich color is background, i hope so.

Edit: in my screenshot is better to see, whats up in mapeditor with the annoying black background of the new added tiles, they also seen in the mapview to, never tried in game but think the still there

Attached Thumbnails

  • tiles.gif

Edited by DMC, 02 September 2005 - 03:43 PM.


#3 Hobbes

Hobbes

    UFO2000 Staff

  • Moderators
  • PipPipPipPip
  • 719 posts

Posted 03 September 2005 - 08:37 PM

hi there,
first i tried to add simply the U_WALL02 to the mapfile.

in daishivas map editor this works fine, but in game the skyranger walls wich should ufo walls are TREEs ! :)
the gravlift donīt works to and shows crap :(

So, ok i thought so it will not be so easy.


Map files can only have a maximum of 253 mcd entries assigned. If you assign more than that number you get the results described above.

ok then i tried to edit the MCD file from PLANE manually with an hex editor.

i just copy the last mcd entry 62 bytes from the ramp tile one and insertet it 3 times at the end of file, offsets where correct.

so when you add more 62 bytes at end of file you will got the new mcd entry.


It is good to know that is possible to add more entries to the mcd files but that can backfire on you. The maps on the original game can only have 255 mcd entries, 2 of which must be reserved for the Blanks tileset. Some terrains require nearly all of those 253 entries: City requires Urban, Urbits, Frniture and Roads, plus one of the Skyranger/Avenger/Lightning tilesets, depending on your ride. With the Skyranger this a total of 251 entries, which only leaves you the possibility to add 2 extra entries or the game will crash, if you try to run it.

i tried then to add the graphics i need (the 2 gravlift floor squares, the westwall from ufo and the slide door 8 pictures) to add these in the PLANE.PCK

I open 2x WINPCK for this, load PLANE.PCK in the one, and U_WALL02 in the Other program, then copy & paste the Pictures i needed with simply CTRL-C / CTRL-V from the one program to the other, this works fine to.

saved the new PLANE.PCK then and open again daishivas map editor.... hmmm...
so the new added pictures are not visible / accesible in the map editor WTF.

loaded the PLANE.MCD, the new pics are listet, but not have an MCD entry, i havenīt figured out how to assign an MCD entry to them without replacing an existing one, i would to make new one.

hmm this not works i think

so i get sucked and replaced the pictures from the last 3 mcd entrys (the downramp)
with the added pictures westwall, westdoor and gravlift, Edit the mcd entrys and save, fine.

But now when i open the PLANE in mapeditor the damn background from the new tiles is wrong, urgs, i need help please how can i correct this?

see my screenshot, it explains what i mean
PLANE.gif

<{POST_SNAPBACK}>


I don't know how WinPCK works but it seems that it's giving the images a different background as you copy/paste. PCK View works better for me, although you need the 1.2 version since the latest versions wrongly change the .pck files. You can get that version here

And this might interest you as well. It is a guide to make maps for UFO2000 and although the programming section does not apply to your case it contains some information, plus a list of the mcd files and their size.

Edited by Hobbes, 03 September 2005 - 08:40 PM.


#4 DMC

DMC

    Rookie

  • Forum Members
  • Pip
  • 0 posts

Posted 04 September 2005 - 05:43 AM

Ah thank you much for the pckview1.2.

i testet it with the 1.4.1 release to, but then the pckfiles screwed up.
Will try it with the 1.2 than, hehe you giving me new hope to realize my dreams :)

Will now check the mcd so i see how much mcd i can add without screwing up the game.