aliens

Author Topic: Bad color remap [submodding problemo]  (Read 3344 times)

Offline mikKoi

  • Sergeant
  • **
  • Posts: 46
  • That's raider country!
    • View Profile
Bad color remap [submodding problemo]
« on: August 03, 2022, 09:44:03 pm »
Hey, I tried to add my first extra sprite and ended up with verry weird color swappings, which seems like was done by horrible remapping of some image editing programs.

Attachment shows the result from the original-should-be. Other sprites on the screen work nice and smooth. I have managed to add own sprites to own mods, so I don't know what is this mess with my submod.
« Last Edit: August 04, 2022, 02:46:30 pm by mikkoi »

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
Re: Bad color remap [submodding problemo]
« Reply #1 on: August 03, 2022, 10:33:07 pm »
Its possible that you use different palette do raw your graphic and game use different.
As far I know XPZ use custom palette that have a bit shifted colors.

Offline mikKoi

  • Sergeant
  • **
  • Posts: 46
  • That's raider country!
    • View Profile
Re: Bad color remap [submodding problemo]
« Reply #2 on: August 03, 2022, 11:22:43 pm »
Yeah, that was what I first thought as well! But I have drawn my previous paperdoll sprites and such with the same vanilla palette. Actually I have also worked with one, more contrasted or/and saturated, palette that XPZ might use. You can see the minor difference it makes from the new attachment. This is something different, but thanks for the reply anyway.👍

Is this a file or import issue? File should be fine, I think.

(It’s not a script issue (why in hell did I even add it?) - I’ll remove the code from the first post)
« Last Edit: August 04, 2022, 02:48:54 pm by mikkoi »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11722
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Bad color remap [submodding problemo]
« Reply #3 on: August 04, 2022, 04:09:37 pm »
I don't know what you did exactly, but the graphic file attached above surely isn't OXC.

Try this palette - should work, as long as you keep it.

Offline mikKoi

  • Sergeant
  • **
  • Posts: 46
  • That's raider country!
    • View Profile
Re: Bad color remap [submodding problemo]
« Reply #4 on: August 04, 2022, 04:32:31 pm »
Yes yes, yes, :) the above I indexed from one RGB image to get colors from two separate palettes, just for a preview purpose. You used the SAFE one in yours and I usually use the one with the last color intact which works for tiles/MCDs as well (the REAL battlescape palette). Piratez supports it also for bigobs and paperdollys. Tho it's darkened version in mod/game.

Have you, Solarius, managed to add custom images to piratez ‘database’ via scripts? That would be good to know. Thanks!

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11722
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Bad color remap [submodding problemo]
« Reply #5 on: August 04, 2022, 05:42:21 pm »
Have you, Solarius, managed to add custom images to piratez ‘database’ via scripts? That would be good to know. Thanks!

Not sure what exactly you mean by scripts - you mean actual scripts, like the ones in Yankes_Scripts.rul? In this case no.

If you mean something else, then please elaborate.

Offline mikKoi

  • Sergeant
  • **
  • Posts: 46
  • That's raider country!
    • View Profile
Re: Bad color remap [submodding problemo]
« Reply #6 on: August 04, 2022, 06:09:23 pm »
I meant extraScripts, but I think you have done it, like submodded your own piratez mod at least once with custom-made sprite items, so I’m quite sure that the problem is all mine. I’m just unable to find it, maybe I never will. It's so damn weird.

Offline Yankes

  • Global Moderator
  • Commander
  • *****
  • Posts: 3350
    • View Profile
Re: Bad color remap [submodding problemo]
« Reply #7 on: August 04, 2022, 06:33:55 pm »
there no `extraScripts` in OXCE, did you mean `extraSprites`?

Offline mikKoi

  • Sergeant
  • **
  • Posts: 46
  • That's raider country!
    • View Profile
Re: Bad color remap [submodding problemo]
« Reply #8 on: August 04, 2022, 06:57:39 pm »
Yes, sorry, misspelled it completely :D

Ok, things took a better direction. I tried to extraSprite some other files and they all went in like they should. Wow!

So, the problem is now this one file and I really don’t know what the fuck is wrong with it (sorry again). BUT this is good thing, now I just have to draw another Guard Dog and wish it to work. Oh, man.

If someone has some extraTime, use this attachment as a piratez sprite and post a screenshot for me.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11722
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Bad color remap [submodding problemo]
« Reply #9 on: August 04, 2022, 07:58:38 pm »
No problem, see attachment.

Offline mikKoi

  • Sergeant
  • **
  • Posts: 46
  • That's raider country!
    • View Profile
Re: Bad color remap [submodding problemo]
« Reply #10 on: August 04, 2022, 08:19:50 pm »
HAHA it’s fuuuu*ked!

What are the odds, this was supposed to be my first piratez sprite item ever. It should've been a great day, but now it’s just some unbelievable silly joke-moment of my life.

But maybe there are some higher forces doing their things, and they try to tell me something..

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11722
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Bad color remap [submodding problemo]
« Reply #11 on: August 04, 2022, 08:26:33 pm »
Eh? It looks just fine to me... :)

Offline mikKoi

  • Sergeant
  • **
  • Posts: 46
  • That's raider country!
    • View Profile
Re: Bad color remap [submodding problemo]
« Reply #12 on: August 04, 2022, 09:12:29 pm »
But it’s not what it was made to be. :P and I have to rework it.. :-\

Yankes was right all along and I just couldn’t believe it, because I haven’t encountered such drastic changes before. Thought I could use the vanilla palette safely, but it’s not for piratez and this proves it.

To continue I need to find an all around piratez-safe palette. It must be one of the 22 resource .pal files. If someone knows a trustful one, please post it here.

Thanks guys, this is quite a solved case. And sorry, nothing was wrong (and at the same time everything was), I walked on the thin ice and it broke.

Offline mikKoi

  • Sergeant
  • **
  • Posts: 46
  • That's raider country!
    • View Profile
Re: Bad color remap [submodding problemo]
« Reply #13 on: August 04, 2022, 11:00:38 pm »
Okay, here it comes! It’s not official, but I think I found one good candidate for an all-around piratez-SAFE palette, the one ‘which rules them all’, by doing some research with my peasants’ submod files. All files there use the attached palette file, but NOT all XPZ/resources/ image files use it, there is actually a lot of stuff that uses vanilla palette.

I remapped my Guard Dog with it and now I can also live with it, oh yes.