Page 1 of 3

Aircraft Carrier

Posted: Sun Mar 31, 2013 11:52 pm
by xan2622
Hello.

As requested by Scott on the IRC channel, I made a Aircraft Carrier unit.

Screenshot :
Image

And the full image with all 16 frames (width: 217 px) :
Image

The model is finished but I don't know how to export this large PNG file to SHP.
Of course I have tried with OpenRA.Utility.exe but I have got many problems with palette files.

I was able to create the .PAL file of this image (and even the .ACT file for Photoshop) but I don't know how to keep good colors once converted to SHP.

When I convert it to SHP (with the RA palette), the colors are ugly. They don't respect the original image (see the screenshot above).

If someone can help creating this SHP file (with some nice colours) I would really appreciate.

Thanks
bye

Posted: Mon Apr 01, 2013 7:17 am
by Matt
I did the quirky SHP conversion for you. Here is what my terminal says

Code: Select all

mono --debug OpenRA.Utility.exe
Usage: OpenRA.Utility.exe [OPTION] [ARGS]

  --settings-value KEY     Get value of KEY from settings.yaml
  --shp PNGFILE FRAMEWIDTH     Convert a single PNG with multiple frames appended after another to a SHP
  --png SHPFILE PALETTE [--noshadow]     Convert a SHP to a PNG containing all of its frames, optionally removing the shadow
  --extract MOD[,MOD]* FILES     Extract files from mod packages
  --tmp-png MOD[,MOD]* THEATER FILES      Extract terrain tiles to PNG
  --remap SRCMOD:PAL DESTMOD:PAL SRCSHP DESTSHP     Remap SHPs to another palette
  --r8 R8FILE PALETTE START END FILENAME [--noshadow] [--infrantry] [--vehicle] [--projectile] [--building] [--wall] [--tileset]     Convert Dune 2000 DATA.R8 to PNGs choosing start- and endframe as well as type for correct offset to append multiple frames to one PNG named by filename optionally removing the shadow.
  --transpose SRCSHP DESTSHP START N M [START N M ...]     Transpose the N*M block of frames starting at START.
  --docs MOD     Generate trait documentation in MarkDown format.

mono --debug OpenRA.Utility.exe --extract ra temperat.pal
mono --debug OpenRA.Utility.exe --extract ra ss.shp
mono --debug OpenRA.Utility.exe --png ss.shp temperat.pal
I then opened up the ss.png file with GIMP and expanded the image size and copied your 862838test05.png into it and saved it as ac.png

Code: Select all

mono --debug OpenRA.Utility.exe --shp ac.png 217
mono --debug OpenRA.Utility.exe --png ac.shp temperat.pal
WTF something went wrong. Background of ca.png is violet instead of black. Fill bucket everything black.

Code: Select all

mono --debug OpenRA.Utility.exe --shp ac.png 217
Now put into the game. Copy the newly made ac.shp to mods/ra/bits. Add the following to mods/ra/sequences.yaml:

Code: Select all

ac:
	idle:
		Start: 0
		Facings: 16
Now open up mods/ra/rules/ships.yaml and add this:

Code: Select all

AC:
	Inherits: ^Ship
	Buildable:
		Queue: Ship
		BuildPaletteOrder: 50
		Prerequisites: syrd
		BuiltAt: syrd
		Owner: allies
		Hotkey: a
	Valued:
		Cost: 5000
	Tooltip:
		Icon: clock
		Name: Aircraft carrier
		Description: Seaborne landing platform for aircraft
	Health:
		HP: 2000
	Armor:
		Type: Heavy
	Mobile:
		ROT: 2
		Speed: 2
	RevealsShroud:
		Range: 10
	Selectable:
		Bounds: 32,32
	RenderUnit:
	AttackMove:
		JustMove: true
	Chronoshiftable:
	IronCurtainable:
	RepairableNear:
You are limited by the grey shade and team colors Red Alert uses. So texture you model with those only. Get the SHP from http://content.open-ra.org/?p=detail&table=units&id=289 and feel free upload a better one there.

Posted: Mon Apr 01, 2013 12:58 pm
by raminator
the model itself looks nice =)

but you need to add remap and compare the perspective to the other ships...
another thing that bothers me is the size...i know that carriers are huge but it should be only a few px bigger then the battleship.

good work =)

Posted: Mon Apr 01, 2013 2:14 pm
by xan2622
Thanks you Raminator.

I understand the size problem but how could the Aircraft Carrier park several aircrafts on it ?

Because this aircraft carrier could have some options :
- build aircrafts ?
- park aircrafts on its deck (or inside it, hiding them with an elevator) ?
..

Btw, the palettes problems are a pain to deal with.
I really hope too see a GUI for OpenRA.Utility. link

PS: Raminator, I would be happy to see you in the IRC channel.

Posted: Wed Apr 03, 2013 10:43 pm
by Nukem
Also something to add to the art, make the bottom look like it is actually in the water.. see destroyer or cruiser to see what I mean.

Posted: Thu Apr 04, 2013 3:53 pm
by JOo
Nukem wrote: Also something to add to the art, make the bottom look like it is actually in the water.. see destroyer or cruiser to see what I mean.
thats exaclty what i thought !

looks very good , but it looks currently a bit too good for openra ..

Posted: Thu Apr 04, 2013 3:56 pm
by epice
Guys, how will the soviets defend their carrier against enemy aircraft? They have nothing water-based that can shoot aircraft.

Posted: Thu Apr 04, 2013 3:58 pm
by Matt
It was made for an upcoming single-player mission.

Posted: Sat Apr 06, 2013 9:37 am
by xan2622
I don't get it.

I did what you adviced me Mailaender:
- I extracted a ship from the game (with openra.utility, same command as you posted above)
- I expanded its canvas size in Photoshop (to match my large image with all positions of my aircraft carrier)
- I pasted my artwork over this indexed png file
- I saved the png file (I got this image: http://www.hostingpics.net/viewer.php?i ... arrier.png .. which looked good to me AND with indexed colors)
- and converted it to a SHP file
- I modified the yaml files as you adviced me

But here are the results I have :
Image Image Image

My problems are :
- the yellow colors I used for the Aircraft Carrier control tower, the landing lanes, .. are not all correct
- the control tower doesn't look good, there are messing pixels (but maybe I used a bad lightning when I modeled the Aircraft Carrier)

These palette files are REALLY ANNOYING and a pain to work with.

Posted: Sat Apr 06, 2013 10:03 am
by raminator
try to edit the remap colors in the extracted ship/shp (the 16 sandy-yellow colors at the bottom left).
make them purple and rerender your carrier with purple instead of yellow...
that should fix this.

Posted: Sat Apr 06, 2013 5:39 pm
by Petrenko
Heyho,

would anyone be as kind to convert my .pngs?

Thank you in advance :3

Posted: Sat Apr 13, 2013 8:00 pm
by Nukem
Here you go

Posted: Sun Apr 14, 2013 4:44 pm
by JOo
size like this here should be okay (imho)

Image

Image

note: just a sketch

Posted: Sun Apr 14, 2013 5:57 pm
by BaronOfStuff
Agreed, that's a much more reasonable size/look.

Posted: Thu Apr 18, 2013 3:43 pm
by Matt
We could use the giant one for single-player and the small one as a real multi-player unit.