Jump to content


Photo

MA2/Y64 extractor


  • Please log in to reply
27 replies to this topic

#1 dialog

dialog
  • Members
  • 117 posts
  • Location:Russia

Posted 03 May 2013 - 12:39 PM

Hi! I am working on C2 in C1. And use Chinese program XmlConverter to extract all map graphics from *.MA2.
But this program is not very good. :sad:
As example: tree from 1st tutorial, extracted with it:
1_0.png

And result - in left is original, in right - this map in C1.
commandos.jpg

It is possible to extract resources without loss of quality?



#2 r_ex

r_ex
  • Members
  • 10 posts

Posted 03 May 2013 - 03:40 PM

The tool does not loss quality in the extraction. The artifacts are caused by half-transparent contour.

Comm3 MA2 encodes three level of transparency: non-transparent, half-transparent, full-transparent.

 

 

I think you can get better quality by removing the half-transparent parts.

 

 

I have uploaded this program to do so.

You can just copy the files in the Bin directory to the directory that contains pngs and run HalfTransparentRemover.exe to remove the half-transparent parts from them.

 

http://pan.baidu.com...1&uk=1912962762

 



#3 herbert3000

herbert3000

    Guilty Until Proven Innocent

  • Division Admins
  • 593 posts
  • Location:Austria
  • Division:Commandos HQ
  • Job:Division Admin

Posted 03 May 2013 - 04:59 PM

The half-transparent areas shouldn't cause any artifacts because the sprites in C1 also have the three levels of transparency.

 

Actually the sprite of the tree from above hasn't been extracted correctly!

To me it looks like the y-position on the Y64 is wrong (maybe it's set to 0 if it's "outside" the Y64).

tree.png

Left image: This is the area which should be extracted, right image: that's the area which gets extracted (using svn47).

 



#4 r_ex

r_ex
  • Members
  • 10 posts

Posted 04 May 2013 - 07:15 AM

@herbert3000

I think you are right.

There must be an error in the offsets.

I'm checking it currently.



#5 r_ex

r_ex
  • Members
  • 10 posts

Posted 04 May 2013 - 09:17 AM

I have fixed the offset problem as of svn51.

https://sourceforge....51.rar/download



#6 dialog

dialog
  • Members
  • 117 posts
  • Location:Russia

Posted 04 May 2013 - 01:55 PM

Thank you! This version works good. :) 



#7 dialog

dialog
  • Members
  • 117 posts
  • Location:Russia

Posted 19 July 2013 - 04:23 PM

First result:
C2BCD01.jpg

Tutorial 1 from C2 in C1BCD.

 

http://dialogdima.na...mis/C2BCD01.ZIP
 



#8 Salvadorc17

Salvadorc17

    title available

  • Members
  • 507 posts
  • Location:Colombia
  • Projects:Destination Norway

Posted 19 July 2013 - 07:26 PM

Youre working in c2 to c1 mod? These work good, keep it up!

 

Pd. Can you say me how to extract the resources from c2 individually, because i no have idea about it.


Edited by Salvadorc17, 19 July 2013 - 07:31 PM.


#9 dialog

dialog
  • Members
  • 117 posts
  • Location:Russia

Posted 21 July 2013 - 07:49 AM

You need to use the XmlConverter and ImageConverter by r_ex

I have fixed the offset problem as of svn51.
https://sourceforge....51.rar/download



#10 Salvadorc17

Salvadorc17

    title available

  • Members
  • 507 posts
  • Location:Colombia
  • Projects:Destination Norway

Posted 21 July 2013 - 08:30 PM

Do you mean use that to extract files and then create c1 wad with these files, without modifying anything else...



#11 dialog

dialog
  • Members
  • 117 posts
  • Location:Russia

Posted 22 July 2013 - 07:49 AM

Yes. ImageConverter - to convert Y64 file to background images. XmlConverter - to provide all objects (POLY in future VOL file) from MA2.

All images need be transformed in BMP 8 bit format (for this better use scenarios in Photoshop).

And then can get WAD and VOL files.



#12 Salvadorc17

Salvadorc17

    title available

  • Members
  • 507 posts
  • Location:Colombia
  • Projects:Destination Norway

Posted 22 July 2013 - 07:37 PM

You have learn to modify the commandos elemtents like weapons, and other stuff???, will be good be able to add them to a c1 mod version.



#13 dialog

dialog
  • Members
  • 117 posts
  • Location:Russia

Posted 23 July 2013 - 12:47 PM

Create new weapon types and abilities - is impossible. :sad: And more of possibilities in C2 can not be projected to C1. :sad: 

Self-acting allies will not work, but controlled allies are possible. But all they must be alive for victory. And also i dn't can:

  • Control them by keyboard.
  • Display their faces.

Interiors - probably only in SINP style, and it requires good painter...


Edited by dialog, 23 July 2013 - 12:49 PM.


#14 Salvadorc17

Salvadorc17

    title available

  • Members
  • 507 posts
  • Location:Colombia
  • Projects:Destination Norway

Posted 23 July 2013 - 07:25 PM

Is not imposible, but i think you know more about this, to modify the abilites and adding new commandos you need to edit the binary files, but that programming knowledge is out of my possibilities, check my mod, Commandos Wars im trying to add some new allies.



#15 herbert3000

herbert3000

    Guilty Until Proven Innocent

  • Division Admins
  • 593 posts
  • Location:Austria
  • Division:Commandos HQ
  • Job:Division Admin

Posted 24 July 2013 - 12:49 AM

Hey dialog,

if you are planning to port more maps from C2 to C1, you could use this java program to convert the SEC files:

Attached File  sec2to1.zip   4.79KB   67 downloads

 

And I think the polygons in the VOL file are not correct, I guess you'll have to invert some values (not sure which ones).

bel_vol.png

 

Anyway, great work so far! :)



#16 dialog

dialog
  • Members
  • 117 posts
  • Location:Russia

Posted 24 July 2013 - 10:45 AM

check my mod, Commandos Wars im trying to add some new allies.

Where to download it?
 

if you are planning to port more maps from C2 to C1, you could use this java program to convert the SEC files

Thank you! It is nice tool! :thumbsuphappy:   :thumbsupcool:



#17 dialog

dialog
  • Members
  • 117 posts
  • Location:Russia

Posted 24 July 2013 - 12:41 PM

VOL file are fixed.

http://dialogdima.na...mis/C2BCD01.ZIP



#18 Salvadorc17

Salvadorc17

    title available

  • Members
  • 507 posts
  • Location:Colombia
  • Projects:Destination Norway

Posted 24 July 2013 - 07:46 PM

@dialog check my mod in this forum, there is no download but you can see my progress in some images.

 

@herbet any idea how to add another elements like anims and macros from c2 to c1?



#19 dialog

dialog
  • Members
  • 117 posts
  • Location:Russia

Posted 26 July 2013 - 11:48 AM

Bonus mission №3

http://dialogdima.na...mis/C2BCD08.ZIP

 

However, big missions can not be compiled. WadCreator can't to pack archive, if it contain large volume of data. From Mission 2 submarine base requires more than 2000 images 40 MB. :sad: 



#20 Salvadorc17

Salvadorc17

    title available

  • Members
  • 507 posts
  • Location:Colombia
  • Projects:Destination Norway

Posted 26 July 2013 - 09:52 PM

Good mission, i suggest you to make a forum thread about your converted c2 missions. Also i want to give you some suggestion about map:

 

-I think the objects on the map are much larger than the people, which makes it lose realism, this is because the size scale of things is less in commandos 1. You can change the size of elements or use a higher background image zoom away.

 

-The shadows can be also scaled to get the polys more realistic.

 

And i had to ask how do you get to add those new anims and macros, you converted it by yourself?

 

 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users