Page 1 of 1

Custom textures completely ruined.

Posted: Fri Feb 22, 2013 12:05 am
by Xfing
Hey there guys, I wanna let you know about one problem that I know wasn't present in 1.7.78 but has been present in 1.11.64 and 1.11.67 (dunno about any versions in between, since I haven't been updating regularly.

The problem is, the new versions completely ruin any custom textures imported. Here's an example of a D1-exclusive texture loaded into a D2 map, with the alien1.pig palette (not that it matters much).

Image

This is what it looks like. Not pretty, obviously. Right now, I'm forced to switch to 1.7.78 each time I want to insert a D1 texture, which is a nuisance (and I'm lucky I kept around a copy of an earlier version too). What could cause this?

Re: Custom textures completely ruined.

Posted: Fri Feb 22, 2013 12:27 am
by Pumo
I Couldn't see the image, but I reproduced the bug and yeap, it screws up the D1 textures, and in fact any 256 color BMP image you import into it.

It seems it's a palette problem, as if it could not compute the nearest color scheme to adapt the image to the actual level palette.

There's a workaround in the meantime for this, you could load the image in some image program (photoshop, paint shop pro, gimp) to apply manually the level palette (be either GroupA, Water, Fire, etc.) to the texture, and it works fine (i've tested) if you import the image with the level palette already applied, but of course you would need first to have the level palette extracted for use with the image program, although it's no biggie.

But what it must be done, is to report the bug on the Sourceforge tracker, so Diedel/Karx could fix the bug as soon as he can. ;)

Re: Custom textures completely ruined.

Posted: Fri Feb 22, 2013 12:34 am
by Xfing
Pumo wrote:There's a workaround in the meantime for this, you could load the image in some image program (photoshop, paint shop pro, gimp) to apply manually the level palette (be either GroupA, Water, Fire, etc.) to the texture, and it works fine (i've tested) if you import the image with the level palette already applied, but of course you would need first to have the level palette extracted for use with the image program, although it's no biggie.


Oh, how do you do stuff like this? It would be plenty of fun to preset palettes for textures. But on the other hand I can't quite understand it. Any bitmap inserted into the file still has to make use of the current palette anyway. Plus, like I said before, this problem was nonexistent in versions like 1.7.78. Diedel and Karx must have screwed this up inadvertently.

But what it must be done, is to report the bug on the Sourceforge tracker, so Diedel/Karx could fix the bug as soon as he can. ;)


Could you do that for me please? Or if not, please point me towards the page where the sumbission is to be made. Thanks :)

Re: Custom textures completely ruined.

Posted: Fri Feb 22, 2013 6:40 pm
by karx11erx
Bug fixed.

Re: Custom textures completely ruined.

Posted: Fri Feb 22, 2013 7:27 pm
by Xfing
karx11erx wrote:Bug fixed.


That was fast! Hah, I shall drink a beer in your honor! :D

Re: Custom textures completely ruined.

Posted: Fri Feb 22, 2013 11:56 pm
by Hawkins
LOL, you look tired D.

Xfing, the project is listed and tracked at http://sourceforge.net/. Take a bit of time to register there and the follow the project's (D2X-XL) tickets here: http://sourceforge.net/p/d2x-xl/_list/tickets?source=navbar
You submit your bugs under "Bugs", It should be straight forward from there anyways.