Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: griffon67 on July 15, 2007, 04:57:54 am

Title: Invisible Ani
Post by: griffon67 on July 15, 2007, 04:57:54 am
Hi, I'm trying to make new ani for the hud, my frist test is for the Missile lock animation.

I read many topics about it but no one has the solution for my problem.

I made 2 bitmap in 256 colours , then switched them to pcx with photoshop, made sure they were in indexed 256 colours , then used anibuilder to have my animation. Then I put the filed at the right location but when I launched the game there were nothing as Lock animation, bu i can still lock on ennemies, just the animation is missing.
When I try to place the BTRL ani or the classic fs2 ani, it works.

all the files I used:
http://shyrka-ro.perso.cegetel.net/2_LOCK1.ani
http://shyrka-ro.perso.cegetel.net/lk0000.pcx
http://shyrka-ro.perso.cegetel.net/lk0001.pcx

Can someone explain me where I'm wrong ?
Title: Re: Invisible Ani
Post by: griffon67 on July 15, 2007, 07:01:31 am
I doscovered something , when using RED color instead of white , I see my ani but hardly (not as bright as a normal ani)
other colors are less bright than red.

I think it could be the palettes but i don't know how to see them , neither where to change them in photoshop :s
Title: Re: Invisible Ani
Post by: Tempest on July 15, 2007, 09:46:43 am
That won't work.

FS2 won't REALLY let you use a 256 color palette for the images - they have to use the same palette as the origional HUD anis. In reality, you're only working with 10 or so colors, unfortunately. Every other color is rendered transparent.

Your only option at this point is to load the palette in photoshop by extracting the original and loading its palette. I'm not sure how to do that in photoshop, but I'm sure there's someone who can help you do that part.
Title: Re: Invisible Ani
Post by: griffon67 on July 15, 2007, 01:24:03 pm
I'll need an original pcx file no ? to get the palette ?
Title: Re: Invisible Ani
Post by: Tempest on July 15, 2007, 01:29:27 pm
Yes. A HUD file, though. Non-HUD images can use their own 256 color palette.
Title: Re: Invisible Ani
Post by: griffon67 on July 16, 2007, 07:21:18 am
I've just noticed we could save as pcx with the AniView. I didn't import the palette but with copy paste I can do my ani with the white color =). And it works !  :)

thanks
Title: Re: Invisible Ani
Post by: griffon67 on July 16, 2007, 04:48:36 pm
I have another questions, now I can make my own hud.

but is it possible to move the placement of some part of the hud ? I mean In my hud the toparc2 and toparc3 aren't in the same place , since i havent changed anything , it still place me theses two ani at the old fs2 place. Is there somewhere a file which indicate where these two pat should be ? I also want to change the places of the number you have for your speed.

Is it also possible to change where the anim stop when you use your afterburner ? I mean when you use them the spee gauge stop just at a higher place than your max speed , I want it to stop higher than that.

If it isn't clear, don't hesitate to ask questions
Title: Re: Invisible Ani
Post by: Topgun on July 16, 2007, 05:36:20 pm
I think you can do that in scripting, not sure though, ask wmcoolmon or nuke, they should know.
Title: Re: Invisible Ani
Post by: griffon67 on July 18, 2007, 05:06:06 am
I managed to do something good (Though I had to be restricted by original hud design)

I sent a prototype of the mod I created to Transcend/Sync Creator (because it is these campaigns who decided me to create my own mod/campaign). If he find the mod interesting I'll post it.