Author Topic: MCD Edit by volutar  (Read 124326 times)

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: MCD Edit by volutar
« Reply #120 on: February 18, 2015, 07:43:13 pm »
Would it technically be possible to sample each tile on the fly and use its mean colour for the minimap?

I don't know but you'd also need a basic representation of its shape for the Scang entry, otherwise the minimap would simply display colored squares.

Allowing for additional entries to be added to SCANG.DAT is probably more practical.

Offline volutar

  • Colonel
  • ****
  • Posts: 351
  • Vanilla digger & Quality assistant
    • View Profile
Re: MCD Edit by volutar
« Reply #121 on: February 18, 2015, 07:58:50 pm »
Would it technically be possible to sample each tile on the fly and use its mean colour for the minimap?
Yea, technically we can use one of unused bytes for that, and use it like XXXXYYYYb (binary form), where X is which colorgroup to replace, and Y is with which. But these bytes should be either 0x00 or 0x11 or 0x22 etc for every vanilla MCD. Otherwise all of scangs gonna be modified.
And it's not really elegant way. Better to tie some additional custom file for the MCD/PCK/TAB triplet (SCN for instance), in the format of vanilla SCANg, working just for this particular MCDset.
In the same style we COULD tie modded "LFT" file for additional custom LOFTs. It's quite feasible.
(I reconsidered the way of making them totally free - there's no need for that really).

Volutar. would it be possible to load unit pck using mcedit's built in pck editor? Is much nicer than having to use photoshop + other stuff.
Yes and I already mentioned that. https://openxcom.org/forum/index.php/topic,2028.msg36982.html#msg36982
But it won't work for animation. Just for static frames, and without additionals like hand objects. It just isn't meant to work like that.
« Last Edit: February 18, 2015, 10:02:14 pm by volutar »

Offline jackstraw2323

  • Colonel
  • ****
  • Posts: 206
    • View Profile
Re: MCD Edit by volutar
« Reply #122 on: February 19, 2015, 04:10:38 am »
Hopefully small request, for add PCK or MCD it currently adds one frame. Would it be possible to add an additional command or have a dialog that asks how many frames? Sometimes you want to add 20 or 30 frames at a time.

It would be nice if there was some way to append a custom sprite sheet for scang, but I assume that's on warboy and subsuper's plate if they wanted to do it. Honestly the map resolution is pretty low so there are lots of close enough images that work.

Offline volutar

  • Colonel
  • ****
  • Posts: 351
  • Vanilla digger & Quality assistant
    • View Profile
Re: MCD Edit by volutar
« Reply #123 on: February 19, 2015, 06:36:18 am »
uploaded 1.17f

About adding custom scang/lofts - afaik it's not on SupSuper's plate. battlescape is up to Warboy.
And it's not really needed until tftd is in the past.
« Last Edit: February 19, 2015, 08:20:27 pm by volutar »

Offline volutar

  • Colonel
  • ****
  • Posts: 351
  • Vanilla digger & Quality assistant
    • View Profile
Re: MCD Edit by volutar
« Reply #124 on: February 19, 2015, 08:19:29 pm »
uploaded 1.17f

About adding custom scang/lofts - afaik it's not on SupSuper's plate. battlescape is up to Warboy.
And it's not really needed until tftd is in the past.

Offline kikimoristan

  • Commander
  • *****
  • Posts: 647
    • View Profile
Re: MCD Edit by volutar
« Reply #125 on: February 19, 2015, 09:41:18 pm »
uploaded 1.17f

About adding custom scang/lofts - afaik it's not on SupSuper's plate. battlescape is up to Warboy.
And it's not really needed until tftd is in the past.

thanks volutar. also is not something necessary more like a bonus feature .

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: MCD Edit by volutar
« Reply #126 on: February 24, 2015, 04:06:30 am »
uploaded 1.17f

I can't seem to be able to export PNG sheets using the PCK viewer. They can be imported just not exported.

Offline volutar

  • Colonel
  • ****
  • Posts: 351
  • Vanilla digger & Quality assistant
    • View Profile
Re: MCD Edit by volutar
« Reply #127 on: February 24, 2015, 06:50:48 am »
Yeah. Not only sheet but >=10 selected pcks. Error was fixed and 7z reuploaded.

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: MCD Edit by volutar
« Reply #128 on: February 24, 2015, 08:26:34 pm »
Yeah. Not only sheet but >=10 selected pcks. Error was fixed and 7z reuploaded.

Thanks.

Offline volutar

  • Colonel
  • ****
  • Posts: 351
  • Vanilla digger & Quality assistant
    • View Profile
Re: MCD Edit by volutar
« Reply #129 on: March 12, 2015, 01:23:09 pm »
Any issues?

Offline kikimoristan

  • Commander
  • *****
  • Posts: 647
    • View Profile
Re: MCD Edit by volutar
« Reply #130 on: March 12, 2015, 01:29:40 pm »
not so far i mean haven't bumped into anything

Offline kikimoristan

  • Commander
  • *****
  • Posts: 647
    • View Profile
Re: MCD Edit by volutar
« Reply #131 on: March 12, 2015, 01:32:23 pm »
can mcedit edit pck files directly ? is that gonnaa be implemented? also for png sheets is it possible to make it so it automatically adds new MCDs for each of the tiles in the png sheet that are OVER the MCDs in current .mcd file

like for ex if you import a sheet with 10 and your current text1.mcd has 5 ..it should automatically add 5 more than you can erase etc

Offline volutar

  • Colonel
  • ****
  • Posts: 351
  • Vanilla digger & Quality assistant
    • View Profile
Re: MCD Edit by volutar
« Reply #132 on: March 12, 2015, 02:08:13 pm »
can mcedit edit pck files directly ?  is that gonnaa be implemented?
Just make fake .mcd file for the PCK. It's the way how I edited units.
Quote
also for png sheets is it possible to make it so it automatically adds new MCDs for each of the tiles in the png sheet that are OVER the MCDs in current .mcd file
MCD has nothing with PCKs. PCKs can be either frames from the animation, or different MCDs can refer to same PCK multiple times. It's unguessible thing, so the answer is "no".
Quote
like for ex if you import a sheet with 10 and your current text1.mcd has 5 ..it should automatically add 5 more than you can erase etc
No, it shouldn't. You do want this, others do not (because it's animation frames). You wish computers could guess what you want, without manual work but it's simply impossible. It intentionally doesn't do any guess work, because it will fail.
« Last Edit: March 12, 2015, 02:13:44 pm by volutar »

Offline kikimoristan

  • Commander
  • *****
  • Posts: 647
    • View Profile
Re: MCD Edit by volutar
« Reply #133 on: March 12, 2015, 02:28:50 pm »
i find it easier to erase mcds than to make new ones/assign each frame is more efficient to do it that way when starting a fresh mcd.. simply tun all imaged into tiles then edit them down..rather than start from zero and edit them up twice the work

Offline Hobbes

  • Commander
  • *****
  • Posts: 2102
  • Infiltration subroutine in progress
    • View Profile
Re: MCD Edit by volutar
« Reply #134 on: March 12, 2015, 02:50:37 pm »
i find it easier to erase mcds than to make new ones/assign each frame is more efficient to do it that way when starting a fresh mcd.. simply tun all imaged into tiles then edit them down..rather than start from zero and edit them up twice the work

Assigning PCKs to MCDs is very easy on the latest versions - you only need to enter the PCK reference number on the first frame and the other 7 frames are assigned the same number automatically. This was already a major improvement made by volutar over previous versions but you still need to edit/check a ton of other settings for each MCD entry (LOF settings, DieMCD, armor, sound, light block, etc.), so what you'd gain from your suggestion is actually minimal compared to the rest.

I had considered asking volutar so that you could do with the LOF settings the same as the frames (editing the first one changes all the others to that value) but I realized that it would actually increase the work load, since a lot of tiles only require editing a few LOF entries.

MCD editing takes a lot of work because you need to edit/check all those settings. One tip I give you is precisely not to create new MCD files but copy and rename instead the existing ones. Then you can simply recheck all the settings and edit the values you need, rather than creating a new MCD file and having to introduce values for every needed setting.
« Last Edit: March 12, 2015, 02:55:44 pm by Hobbes »