Printable Version of Topic

Click here to view this topic in its original format

SWR Productions Forum _ Generals/Zerohour Modding _ C&C Cameo Studio V1.0

Posted by: acidbrain 26 Feb 2017, 20:01

Hello All,

Made an application for Generals and zero Hour, you can use it to create spritesheets.
I wrote it in java and you will need a minimum of java 1.8.0_101.
Feel free to notify me if you find stuff that is not ok or if you find stuff that can be done better.
At this moment only .png files can be imported and exported but it doesnt take that much time to convert an image to .png or .tga with http://www.getpaint.net/index.html.



An overview window can be opened where all the data from the added cameos is displayed.


A tutorial is included in the application.


Generated .ini file example.


Generated texture example


The application creates new directories so it is best to create a shortcut to the .exe and put that on your desktop.
Im not a pro programmer so all feedback is welcome, i spent quite a bit of time on the application so i would appreciate it if you let me know what you think of it...

Greetz

 C_C_Cameo_Studio_V1.0.rar ( 1.86MB ) : 43
 

Posted by: The_Hunter 26 Feb 2017, 22:28

This looks pretty nice does it include a zoom function ?

Thats pretty much the only thing missing from the Generals cameo mapper found here : http://gendev.cncguild.net/page.php?file=camap_down

Posted by: acidbrain 27 Feb 2017, 4:14

Nope it doesnt have a zoom function (yet), give the app a try and compare it with cameo mapper, i tried all the cameo mapper versions but i could only get one to work.
We had a discussion about imagepacker on cnclabs a while ago and i proposed to make a new image packer in java, im still a beginner when it comes to java so it was a good practice app for me.
Here are some links from the cnclabs forum:
http://www.cnclabs.com/forums/cnc_postst16868_ImagePacker-exe.aspx
http://www.cnclabs.com/forums/cnc_postst16947_CameoStudio.aspx

About the zoom, do you want to zoom in on the cameo or something?, imho i dont think zoom is needed in my app but thats just my humble opinion, try it and see for yourself.
I can implement the zoom if i have figured out how to do it, im open for all ideas..tongue.gif

Greetz

Posted by: Stalker 27 Feb 2017, 10:04

Nice work! Let's see if it's faster than my optimised manual method xD

To use TGA files in java you can use this (I used it recently and it worked fine):

https://github.com/tmyroadctfig/com.realityinteractive.imageio.tga/tree/master/src/java/com/realityinteractive/imageio/tga


CODE
//You simply need to call this at one point

IIORegistry registry = IIORegistry.getDefaultInstance();
registry.registerServiceProvider( new com.realityinteractive.imageio.tga.TGAImageReaderSpi());

//Then read/write files with

BufferedImage image = ImageIO.read(file);



EDIT: I also used a dds plugin from here

https://github.com/GoldenGnu/java-dds/tree/master/src/main/java/net/nikr/dds

Works just the same. Register the SPI class and use ImageIO

Posted by: acidbrain 27 Feb 2017, 12:35

Have been struggling with the .tga and .dds files for a while, not experienced enough yet I think.
Thanks for the info, going to check it out.

Posted by: acidbrain 3 Mar 2017, 6:47

How do you add the plugins to your project?, i have been testing stuff for a few hours now, managed to build the ant project but am struggling to add it to my project so it is usable, never worked with ant, maven and plugins so it is new to me.

Posted by: Stalker 3 Mar 2017, 16:32

QUOTE (acidbrain @ 3 Mar 2017, 6:47) *
How do you add the plugins to your project?, i have been testing stuff for a few hours now, managed to build the ant project but am struggling to add it to my project so it is usable, never worked with ant, maven and plugins so it is new to me.


Even though it's probably not the most elegant solution I just added the packages and .java files to my project's source code.

Posted by: acidbrain 9 Sep 2017, 8:02

Hey fellaz,

Added some new stuff to the application.
You can load png, jpg, tga, dds and psd images now and save as png or tga.
Have fun with it...

Greetz

 C_C_Cameo_Studio_V1.1.rar ( 1.89MB ) : 16
 

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)