Problems with new Unit

Piernik

Prince
Joined
Mar 1, 2002
Messages
396
Location
Poland
Hello everyone...
I'm from Poland and I'm trying to create our unique unit - Hussar...
I've got every animation which is working with game.
Here is attack animation:)

Every thing would be OK but I've got two problems:(
Hussar is very high. He has about 95 px of height and frame is 155 px height (Has to be so big to be in the centre of the circle on the map)
But in the city window unit looks not well... here's a screenshot.

And in the main window...


Does anyone know how to get rid of these??? I and Poles would be very pleased;)
 
Nice to have feedback:)
Well as soon as we will get rid of this bug we'll send mod here
But meybe "pre-release" version will be there on Monday:p
 
I'm not graphics expert, but you can't move him down on the frame at all? If the other mounted units normally look that hieght then maybe you should compare the hussar's location on the frame to, say, the cavalry's.

Just a guess, though.
 
Well it won't work...
Cavalery unit is only 69 px high... If I make frame smaller Hussar wont be in the centre of circle no the map.

I was wondering if there is a way to force the program to use another file to view these two pictures... That will help:) Meybe someone knows what for is STOP_AT_LAST_FRAME in unit's .ini file??? (Meybe that's it what I'm looking for:))
 
Doesn't the icon come from units_32.pcx? Then just move it down so the last pixels other than background are at the bottom, you may also need to shrink the pic in units_32.pcx
 
The image in the building box is the first frame of your SE default image. Only the image in the build list (the one on top of the build box) come from units_32.pcx. Don't ask me why, ask Firaxis programmer. ;)

As to changing the height, as long a your unit does not exceed 240 x 240 it should be ok. However, you need to make sure that the unit graphic created for the animation stays in the center. To do this, you need to make some manual changes to the ini file created by flicters. If you open up the ini file, the first few lines look like this :

file=TruckDefault.flc
xs_orig= 240
ys_orig= 240
x_offset= 69
y_offset= 77
anim_time= 333

As can be seen from above, xs & ys is the maximum allowed dimension, 240. x_offset & y_offset is depended on your frame size. Say your animation frame size is 100 x 100. Then to get that 100 x 100 to stay in the center, the x_offset will be (240-100)/2 = 70 as the offset is calculated from the top left corner. Of course, the last one is the animation time and if the original file is extracted from a 5 frames/10 msec animation and yours is a 20 frames/10 msec then just multiply it by 4. Hope this help those of you who want to create more unique animations and not restricted by what is originally available. :D
 
Dark Sheer thanks for Your help, but there's one problem... I'm using FLICster v1.0.1b.18 and that version exports .flc file and creates 4 files: .pal; alpha.pal; .pcx; .fxm
I think that these informations are included in fxm file but I cannot edit them.... Do I have to install previous version of FLICster??? If Yes - could You send it to me (I think I won't find it:))
Once more. Thank for Your advice:p (You gave me hope;) )
 
Originally posted by Piernik
Dark Sheer thanks for Your help, but there's one problem... I'm using FLICster v1.0.1b.18 and that version exports .flc file and creates 4 files: .pal; alpha.pal; .pcx; .fxm
I think that these informations are included in fxm file but I cannot edit them.... Do I have to install previous version of FLICster??? If Yes - could You send it to me (I think I won't find it:))
Once more. Thank for Your advice:p (You gave me hope;) )

To get the ini file you need to export the animation into Animation Shop 8 direction flc (the last choice in Flicster just before the filename). So if you have already completed the unit and make them into an flc file, just use Flicster to break them down again to the 8 direction flc files. Then you can change the ini file and use flicster to open the ini file and it will remerge the 8 files back into a single flc.

Moeniir's original idea is to do away with Animation Shop support for the future version of Flicster until I manage to talk him out of it. :D
 
Thanks. Now i could make it run:D

By the way if Moeniir reads that... You could make such option in FLICster to easy centering unit on the map:cool:
 
I don't want to start new thread so I'll ask here...

1. I wanted to add Leader's face animation, but it doesn't work...
I silmpy gave transition from one picture to another (Jasc Animation Shop). I gave display time 10 and saved it... When I started the game, during picking up a civilization face didn't want to move, and when I clicked on diferent civ and returned to mine, it started to move but not as I've seen earlier on preview...why???

2. How to change leader's face in foreign advisor window???
I know that these files are in art/advisors folder. I've added mine file... I've changed entry in PediaIcons.txt to mine and nothing:(
Where is entry respolnsible to that pictures???

Thanks for help:)
 
The problem is the game seems to be hard-coded in regards to the leader files, meaning you're going to have to rename your file to fit one of the already existing leader filenames (ie your leader.pcx to BS_all.pcx if you were using the germans)

Of course, if you're adding a new civilization, I've no clue how to direct you, as I think the files the program calls up seem to be hard-coded. They could be related to those Reverse and Forward files you input for your civilization. I think those are for the leader head movies showing his expressions in .flc format.

But as far as the F4 foreign advisor goes, you'll have to use one of the previously established leader and supplant him.

Anyways, at least that's how I think it's done, as far as I know, no one has provided a solution for the F4 advisor crash when adding a new civ.
 
Originally posted by Piernik
I'm from Poland

Well theres your problem right there? :D Just kidding, the unit looks great, your extremely talented.
 
Originally posted by Piernik

1. I wanted to add Leader's face animation, but it doesn't work...
I silmpy gave transition from one picture to another (Jasc Animation Shop). I gave display time 10 and saved it... When I started the game, during picking up a civilization face didn't want to move, and when I clicked on diferent civ and returned to mine, it started to move but not as I've seen earlier on preview...why???

What about that question??? HELP:)
 
Top Bottom