Language…
12 users online:  AmperSam, dotCoockie, Golden Yoshi, Hayashi Neru, jirok1, Mario's GameBase,  MarioFanGamer, PMH, Rykon-V73, Sparkz314, timothy726, toady - Guests: 249 - Bots: 285
Users: 64,795 (2,377 active)
Latest user: mathew

.pal Generator (01/24/18: medium-sized update!)

  • Pages:
  • 1
  • 2
The downloads posted below are outdated! There's an "official" version out now, which you can get from the Tools section, and a beta of the next release.



This is a minor tool I showed off last C3 but didn't officially release. (probably because it was still buggy? I forget.)
I've since recoded it from scratch - in Go instead of C++ this time, which is a lot more pleasant to work with - and I'd like you people to test it before I officially submit it.

To those who weren't there the first time: this tool converts screenshots of Lunar Magic's palette editor into .pal files. I've found this to be pretty useful for palette editing: instead of changing each color manually, change the entire palette at once by modifying the screenshot in an image editor, then generate a .pal file.

Download (beta)


Give this a try if you'd like! Just take a screenshot of the palette in LM, run it through my tool, and you should get a .pal file back.

If the output is faulty, or there's some other way the tool doesn't work, plase let me know, and provide the image you're using!

If all goes well I'll probably release this next C3 or something. In any case, have fun!


 
I kind of wanted to give this a go, since it seemed interesting, but...



tl;dr you apparently need a 64 bit machine to make this work? Mine is a 32 bit one, so... welp?
Thanks a lot for reporting that! I didn't know the 64-bit version of Go compiled 64-bit-only executables.

I *think* I got it working now. Could you do me a favor and try it out again? #tb{:)} I don't have a 32-bit machine to test it on.

Download again
(same link as before)


Thanks again!


 
Seems like a neat and pretty useful tool, but when I tried to open it, Avast Antivirus popped up and said that the file may be dangerous and needs some investigating. In the meantime, clicking it gives me this error:
Originally posted by Error Message
Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item.

I have a DeviantArt, if you do want to see my art on there. I don't really visit it much now, though.
Oh god this tool is beautiful! I did a few tries, it's indeed comfy to apply filters over a palette pic.

Got a first issue too, apparently this pic isn't recognized. It says the .png looks nothing like a palette file.
The issue isn't the way I took the pic btw: tried same pic but with a blue and with a green filter, and both worked. This white filter doesn't, instead.
I gave it a quick test and the only thing it didn't translate well was the back area color:




Everything else seems close enough though.
Thanks so much for the feedback! #tb{:)}

Originally posted by cheeyev
Seems like a neat and pretty useful tool, but when I tried to open it, Avast Antivirus popped up and said that the file may be dangerous and needs some investigating. In the meantime, clicking it gives me this error:

Looks like your antivirus overreacting (can't blame it though, since the tool is an executable it's never seen). I don't really know what to make of that error message, but for now I'll have to assume the problem's on your end. (Perhaps it's just Avast preventing you from opening it?)

Originally posted by Wakana
Oh god this tool is beautiful! I did a few tries, it's indeed comfy to apply filters over a palette pic.

Got a first issue too, apparently this pic isn't recognized. It says the .png looks nothing like a palette file.
The issue isn't the way I took the pic btw: tried same pic but with a blue and with a green filter, and both worked. This white filter doesn't, instead.

Glad to hear it's working now! #tb{:D}
The issue with your picture is apparently that not every color tile is of a single color: in color 22, for example, there's some very slight variation in the pixels within the square. (Did that make sense?) Anyway, if the pixels in a color tile aren't all the same color, the tool won't recognize it as a palette file. I can add a bit of error tolerance, but I'm not sure if that would lead to false positives. :/
Do you happen to know what could have caused the color inconsitencies? What program are you using?

Originally posted by Masterlink
I gave it a quick test and the only thing it didn't translate well was the back area color:

That's true; it doesn't currently try to look for the back area color tile in the image. I *think* I can assume it's always in the same position relative to the palette, so I'll try and add that in. Thanks for the suggestion!


 
Originally posted by WhiteYoshiEgg
Thanks so much for the feedback! #tb{:)}

Originally posted by cheeyev
Seems like a neat and pretty useful tool, but when I tried to open it, Avast Antivirus popped up and said that the file may be dangerous and needs some investigating. In the meantime, clicking it gives me this error:

Looks like your antivirus overreacting (can't blame it though, since the tool is an executable it's never seen). I don't really know what to make of that error message, but for now I'll have to assume the problem's on your end. (Perhaps it's just Avast preventing you from opening it?)


No problem, and I assume that as well since I tried it on my main computer and it opened up with no issues. On my other laptop, accepting that it's a safe file still won't open it, so I'm not sure.
I have a DeviantArt, if you do want to see my art on there. I don't really visit it much now, though.
Quote
Do you happen to know what could have caused the color inconsitencies? What program are you using?

Uhh... apparently you're supposed to take the whole window rather than just the left part of it? I didn't knew it; I applied a similar white filter to another full pic of the window and it worked well.
Btw I use paint.net.

Will let you know if I get any other issues. So far it does its job greatly.
Originally posted by Wakana
Uhh... apparently you're supposed to take the whole window rather than just the left part of it? I didn't knew it; I applied a similar white filter to another full pic of the window and it worked well.

Actually, you're not - you can use any image that contains a palette, and my tool will try and locate it. The reason it failed on your last example was that there was very subtle noise on the image, though I'm stumped as to where that came from. #tb{:(}


 
Originally posted by Masterlink
I gave it a quick test and the only thing it didn't translate well was the back area color:

Alright, I made the tool look for the back area color as well! #tb{:)}

Download again
(same link as before)


This assumes the back area color is always at the same position relative to the palette in the image, no matter what OS and window design you've got. It's worked fine for me so far, but I'm sure there are edge cases I haven't foreseen.

So yeah, if any of you still feel like testing, that'd be neat. #tb{:)}


 
Bug report: It doesn't seem to like screenshots if DPI is set higher than 100% in windows(7) settings, in my case on my laptop its set to 125% and the tool doesn't recognize the screenshot, while on my desktop its set to 100% and it works just fine.
Originally posted by KDeee
Bug report: It doesn't seem to like screenshots if DPI is set higher than 100% in windows(7) settings, in my case on my laptop its set to 125% and the tool doesn't recognize the screenshot, while on my desktop its set to 100% and it works just fine.

Could you provide the image you're trying it with? (Though if the problem is what I think it is, I'm not sure I can work around that.)

And just to be safe, you're using the version I submitted to the Tools section, right? The ones I posted here are outdated. I should probably do something about that.


 
Originally posted by WhiteYoshiEgg
Originally posted by KDeee
Bug report: It doesn't seem to like screenshots if DPI is set higher than 100% in windows(7) settings, in my case on my laptop its set to 125% and the tool doesn't recognize the screenshot, while on my desktop its set to 100% and it works just fine.

Could you provide the image you're trying it with? (Though if the problem is what I think it is, I'm not sure I can work around that.)

And just to be safe, you're using the version I submitted to the Tools section, right? The ones I posted here are outdated. I should probably do something about that.

https://www.dropbox.com/s/hifqcc1ag2r15l8/Screenshot%202017-02-08%2010.54.04.png?dl=0
Heres an example. And yes Im using latest version.
Originally posted by KDeee
Heres an example. And yes Im using latest version.

Hm, alright - it looks like the color tiles are 18x19 on the 125% setting, while the tool expects them to be 16x16. I guess it's within my abilities to add a command line option to specify which DPI setting a screenshot is made with, but I'd have to change the palette locating code or rely on the users to always align the palette in the top left corner of the image or something... unfortunately, I can't promise I can get around to doing that.

In any case, thanks a lot for using the tool, and for the bug report. #tb{:)}


 
stupid question:
will it e able to consecutively copy the same color for every pallete?
what i mean is something like this:

Hi, I'm a signature!
Hack Thread
Hack Testing Status: Available.
Layout by Koopster.
I'm afraid I'm not sure what you're asking?

I can say, though, that that is a perfectly valid palette and will get converted just fine.


 
Oops stupid me. Wasnt clear on what i meant cause i was half asleep :P

So for that palette, how does your program copy the same gradient? Does it see one row, then detect that the next rows are using the same gradient and copy-pastes the first gradient? Or is it detecting what colors are used for every individual square and just converts those?
Hi, I'm a signature!
Hack Thread
Hack Testing Status: Available.
Layout by Koopster.
Originally posted by M A R I O W O R L D
Does it see one row, then detect that the next rows are using the same gradient and copy-pastes the first gradient? Or is it detecting what colors are used for every individual square and just converts those?

...uh, what's the difference? As far as I know, the gradients aren't stored anywhere, they're just a sequence of colors.
<blm> zsnes users are the flatearthers of emulation
Too complicated. :(
  • Pages:
  • 1
  • 2