Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: mjn.mixael on May 22, 2011, 01:44:37 am
-
<MjnMixael> FFFFFFFFFFFUUUUUUUUUUUUUUUU
<MjnMixael> I can NOT get these shield ANIs to work right
<MjnMixael> F THIS DAMNED GAME
It's 2 AM, I've searched the forums, the wiki and anything else I could think of. I've tried copying palettes from working ANIs and all kinds of other trickery and I can NOT get these things to work. They either don't show up, or the quadrants to respond to getting hit.
Please.... Help....
I'm going to sleep now......
[attachment deleted by ninja]
-
You had the right palette, but for some reason, it got reversed. I don't know what's causing the palette to get reversed, but what software are you using to export the paletted bitmaps?
-
shouldn't they work as 24bbp images now, or is that just the rest of the HUD?
shield ANIs (and briefing ANIs... and weapon ANIs... etc) have always been wonky, I remember making a few myself and it was insane
-
"generate icon"
screw ANIs.
-
generate icon? Wut?
I tried... moar info plz.
-
Comment out "$Shield Icon:" line and add "Generate icon" flag.
Voila! No need to mess with anis.
-
meh... the shields on the "generate icon" thingy don't look all that great
-
"generate icon" as a flag in ships.tbl makes the game render the model from a top-down view as a shield icon.
You get full-color too!
But the shield bars aren't that great, yeah, they form a box.
-
Meh.. I'd rather get these working. Also, I used Photoshop.
I guess it's worth asking.. anyone willing to try and fix them for me? I've had about as much frustration with these as I can take for now...
-
Use MS Paint. I'm serious. Open an existing ANI in Paint, paste in your frame, and save as BMP. It will preserve the palette of the existing image.
-
Photoshop does it too.
-
Photoshop does it too.
Apparently not correctly.
Use MS Paint. I'm serious. Open an existing ANI in Paint, paste in your frame, and save as BMP. It will preserve the palette of the existing image.
then do you use Bright to make the .pcx files?
-
I does it correctly when I do it.
Otherwise HeadANIs wouldn't work either.
-
Here's how I make them, and I got them to work:
Step 1: Go into your Freespace directory and look in the sparky.vp in the hud folder. Look for a retail .ani with a shield border that will fit your ship. Open one of the retail made shield .anis and extract it into a clean folder. Open the .ani using Aniview and export the .ani as separate frames.
Step 2: Open fred and get rid of gridlines, stars and labels. Take a screenshot from the top of the fighter you want to make a shield .ani for.
Step3: Open the first frame in your extracted retail .ani using a program that can import .pcx (I like gimp for this) and paste your freded image on top of it. Your pasted image should turn grey because your paint program converted the screenshot to greyscale for you. Make sure you line it up well so it will fit inside the shield. You might need to scale it.
Edit: also might want to darken the background to ensure it's pure black. This will make the background transparent.
Step 4: Go into .ani builder and build the images as a 'command briefing or animation' type. You should now see your new fighter as part of the shield ani. Give it a new name to be used as a table reference.
Step 5: Double check table references in the ships.tbl, make sure you got the newly made .ani in <mod>/data/hud and it should be good to go.
That's all I do and it works. Not exactly sure why these won't work. You might be using the wrong .ani type or you might have the incorrect .pcx format. Should be greyscale with the appropriate dimensions.
-
Ok, I did exactly that. The one for the Shrike works, but the others still don't seem to change intensity when fired upon in-game. Could it be something in the tables?
EDIT: I'm 90% sure it's a table issue. I swapped the icon the Shrike uses to the one I made for the Mustang Alpha. The icon worked properly in-game. What the crap kind of table settings can cause the icon's shield quadrants to seem like they aren't registering hits?
EDIT2: I've attached the table I'm using.. the ships in question are at the top, Shrike, Mustang Alpha, Mustang Beta, Kestrel.
EDIT3: Nope, I'm a frakking tard... POFs need shield meshes to register shield hits. It just dawned on me. So now.. what's the most successful way of creating shield meshes?
[attachment deleted by ninja]
-
Load (using load button while shield is selected in pcs2) them from other models and scale/move them into place using pcs2.
-
Load (using load button while shield is selected in pcs2) them from other models and scale/move them into place using pcs2.
Brilliance, thank you.
-
then do you use Bright to make the .pcx files?
Bright might try to repallettize them. Just convert with IrfanView.
-
Just as an answer to the OP... Photoshop handles palettes strangely, me and Backslash ran into this
exact issue years ago and had to make a custom palette that would work with Photoshop specifically.
PSP seems to work fine for whatever reason.
I've attached it for ya.
[attachment deleted by ninja]
-
oh hey, that's pretty sweet, thanks!
-
Bright might try to repallettize them. Just convert with IrfanView.
Actually you can tell Bright to use a palette from an existing PCX file. Mainly convenient for head ANIs (IMO), which have more than five frames. For shield icons, I just use GIMP - before saving as PCX, set the image mode to "Indexed" and select the FS HUD palette (attached), uncheck "Remove unused colours".
The palette I obtained from a HUD ANI a while ago; drop into C:\Documents and Settings\<username>\.gimp-2.<#>\palettes, start up GIMP and it should work.
[attachment deleted by ninja]
-
Anyone who uses "show-ship" or that godawful target looking thing (you know, with the gradiated ball in the middle) for their ships shield icon deserves corporal punishment. They're both ugly as sin, and, despite mjn.mixaels issues, shield anis really are easy to make.
-
but i want my full color
i refuse to believe that huds are incapable of rendering color 300 years in the future it kills suspension of disbelief and breaks immersion
i also want my png headanis.
i spent hours making them when they said it worked but it still doesn't TT
-
Anyone who uses "show-ship" or that godawful target looking thing (you know, with the gradiated ball in the middle) for their ships shield icon deserves corporal punishment. They're both ugly as sin, and, despite mjn.mixaels issues, shield anis really are easy to make.
Yeah my issues were unknowingly self-inflicted... my first iteration of ANIs worked like a charm in that they all showed up in-game... they just didn't seem to work when hit.
At one point I went to watch TV and take a break. I sat down on the couch and it dawned on me instantly that the POFs didn't have shield meshes. So I promptly got up and checked.. sure enough, that was the problem. :banghead:
The moral of the story is "do not mod on only 2 hours of sleep" (Zacam excluded).
-
but i want my full color
i refuse to believe that huds are incapable of rendering color 300 years in the future it kills suspension of disbelief and breaks immersion
i also want my png headanis.
i spent hours making them when they said it worked but it still doesn't TT
Eh, at scales that small, the colour is distracting IMO. The greyscale looks good, and is nice and simple. Plus you have full colour in the target box. The system is a good one.