New Problem

Started by Aarikku, January 31, 2009, 08:56:41 PM

Previous topic - Next topic

Aarikku

Read that wrong. Ah well.

I downloaded Pal2Act, Pcxclean and Pcxpal... all of which were made for DOS and don't work. Are there Windows versions anywhere? (Good ol' Murphey's Law. No wonder I never get anything done.)

Byakko

#21
PCXClean works, you just have to know it once ; here's how.

Put PCXClean in one given work folder. In that same folder, put your clean palette. In that same folder, put another folder that contains all of your sprites (you probably want to make a backup of them in case anything goes wrong).
Make your command line in a text file.
On the command line : I use
pcxclean -c -y -t folderwithallsprites\*.pcx yourcleanpalette.actThis will apply yourcleanpalette.act onto all the pcx files contained in the folderwithallsprites folder, replace the files without confirmation, and crop them. It's the most straightforward as long as you did make a backup of your sprites beforehand.

Save that text file with just that line in it. Rename the text file into pcxclean.bat, removing the .txt extension. So far, pcxclean, the .bat file, the palette and the folder with the sprites must all be together.
Now, you can double-click the .bat file and PCXClean will execute the command. Then you can check your sprites to see if any of them have weird stuff in it (holes, turned blank...) if you're sure the new palette is actually clean, it means those sprites had problems. Take the original back, and tweak the colors to fix it - do that on each sprite that went wrong one by one. Then, apply pcxclean again to make sure.

If you have pcxpal, it can be used (in the same fashion as above, with the command line in a .bat file) to extract the palette from a pcx as a .pal file. That's when you can edit it with a text editor to modify it by hand. pal2act is only when you have a .pal file, to turn it back into a .act file (also used with a .bat file). After all that, comes pcxclean.

By the way, I often edit my posts, so when I just posted a reply, you probably want to wait a little to make sure I'm not right in the middle of adding a wall of text of additional information :P
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

Aarikku

Well, I now have a few yellow boxes. ...Quite a number of yellow boxes, actually. And the colour white is gone, but I'm gonna assume the yellow boxes were unimportant sprites and carry on as if everything's fine.

...I thought I was good with computers until I started this. Good God, how are there so many MUGEN downloads?

Byakko

#23
Not to worry, it's something you learn once and then you can do it with anything :P it's just copy-paste between all of your work - you have one command line for each tool, but the same for all of your work.

... If you don't actually have any yellow in your sprites, you probably want to clean it, it'll save you some trouble for later. That's where you can use pcxpal to get the .pal file, edit it with notepad, find the yellow colors (it's a list of RGB values, just try these RGB values in any image editor and find the ones that are yellow) and replace them with "0 0 0" (black).

'K, should be good.
||
V
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

Aarikku

The yellow boxes, as it turns out, were there originally somehow. Apparently those weren't the good sprites.

*Tries pcxclean with old sprites*

They don't look any different. I think I might have something, though I'll probably have to reimport all the sprites, thus losing the placement of the axis on each one. Still, it'll be something.

Aarikku

He is now entirely invisible. The sprites all look healthy in Factory, but all of them use the colour white, which isn't in the new palette, which makes me fear I did something wrong.

Byakko

:S post one of your new pcx file ? A corrupted one. I'll have a look under paint shop pro.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

Aarikku

I'm gonna try one thing first - I think instead of importing the pcx-cleaned sprites, I imported the originals. So if the ones that were actually cleaned still mess something up (as they inevitably will), I'll post a pcx.

EDIT: From what I can tell, it worked! Now I can begin the animations. Thanks for all your help. Couldn't have done it without you.

Byakko

By the way... I checked your original sprites, the one you posted earlier here
Quote from: Aarikku on January 31, 2009, 10:32:34 PM
They should've been the same pink, considering I used the same pink for all the backgrounds. Okay... sprites.

http://www.4shared.com/file/83458816/db59a318/pcxes.html

There's only about 64 now - I wanted to make sure this was gonna work before I started making every last one of 'em.

........ They don't have any palette. They're full 24 bit 16 million colors, not 8 bit - 256 colors with a palette. Of course, that will never give you anything good in Mugen :P I tried "decrease color depth" to 256 colors on one sprite and it gave me a palette with barely 24 colors.
If your attempt doesn't give anything, I'll probably just go ahead and make a clean palette with these original sprites.
It worked ? Congratulations :P consider the above to be just for the information, to let you know exactly why all this started. Good luck with the rest.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

Aarikku

Hey, Fighter Factory said it can use Bitmaps. ...So I gave it Bitmaps. As I said, though, this latest attempt has yielded actual results. A few more days of agonizing confusion and I could have a real character.  ;D

EDIT: Will do. Mental note: USE PCXes.

Byakko

Yeah, that's another weird thing from FF : Mugen shouldn't use bitmaps and just won't work with non 8 bit paletted sprites, I have no idea why FF's makers considered it a good idea to allow BMPs without making sure they were 8 bit. I'm not even sure any sort of BMP works at all in Mugen...
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

Cyanide

FF does an autoconvert on them. I've been telling people off for doing, and suggesting to do that. Far too easy to stuff up.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

Aarikku

You can recommend "ALSee Photo Editor" instead. Worked great for me.

Bastard Mami

Irfanview does a good job at batch converting withouth screwing the palette.