Author
|
Topic: Pallete problems :/
|
54x Moderator
   
Posts: 3080 From: Wellington, New Zealand Registered: Apr 2001 |
posted 16 March 2002 00:29
Does anyone know what pallete I'd need to use to get a non-distorted loading screen? The inventory pallete is definately wrong...------------------ 54x. "My computer has wheels on giant stilts that allow me to drive it over all the other, slower computers." "For great bandwidth!" http://www.planetdiablo.com/newdawn/ New Dawn Forum

|
Paul Siramy WarLord
  
Posts: 186 From: Gannat, France Registered: Mar 2002 |
posted 16 March 2002 01:05
d2data.mpq\data\global\palette\sky\pal.dat

|
54x Moderator
   
Posts: 3080 From: Wellington, New Zealand Registered: Apr 2001 |
posted 16 March 2002 19:45
The problem with this pallete would be that nothing but Diablo II seems to be able to read it :/------------------ 54x. "My computer has wheels on giant stilts that allow me to drive it over all the other, slower computers." "For great bandwidth!" http://www.planetdiablo.com/newdawn/ New Dawn Forum [This message has been edited by 54x (edited 16 March 2002).]

|
Paul Siramy WarLord
  
Posts: 186 From: Gannat, France Registered: Mar 2002 |
posted 17 March 2002 10:18
Yeah, it's true. But it still * is * a palette. Nevermind. Here's the same palette, in paint shop pro 5 format : http://paul.siramy.free.fr/_divers/d2-sky.palInternet explorer do funny things with this link as I have tested it. If you get a "d2-sky.pal.txt" file, rename it to be a ".pal" and not a ".txt" file of course. [This message has been edited by Paul Siramy (edited 17 March 2002).]

|
Baz Honorary Warlord
   
Posts: 687 From: The Netherlands Registered: Nov 2001 |
posted 17 March 2002 12:24
I've converted the lizard from planescape torment, but the palette is screwed up what is the best palette to convert self-made .gif files?------------------ Give me fuel, give me fire, give me all that I desire the Harry Potter mod site

|
Alkalund Honorary Warlord
   
Posts: 964 From: Florianópolis, Santa Catarina, Brazil Registered: Apr 2001 |
posted 17 March 2002 12:43
quote: Originally posted by Baz: I've converted the lizard from planescape torment, but the palette is screwed up what is the best palette to convert self-made .gif files?
There isn't a specific palette that will work in all cases . And unfortunately some planescape torment monsters won't cooperate with us in terms of palette after we convert them. ------------------ "Get me a balrog attack-1 hand-to-hand animation, and I want it yesterday, the paladin is almost here!" ---> DMA1HTH @ offset 0006A480h. - Myhrginoc

|
Paul Siramy WarLord
  
Posts: 186 From: Gannat, France Registered: Mar 2002 |
posted 17 March 2002 13:19
Damn, I'm just thinking of something. You say "loading screen". Were you talking about the animation when you create a game, the one with the wanderer in front of the door ? If so, then my excuse, the palette i gave was for the title-screen : when you can choose between "monoplayer", "b.net", "video" and such. I'll check again.I think you can use the animation you want, as long you provide the good palette (in .dat format) in replacement for the original one.

|
Paul Siramy WarLord
  
Posts: 186 From: Gannat, France Registered: Mar 2002 |
posted 17 March 2002 14:04
Ok, here is how it works. In d2data.mpq\data\global\palette\ there are some directories. In each of them we find pal.dat and pal.pl2 : the same palette in 2 different format. The .dat is easy to understand : raw palette, 768 bytes. Unfortunatly, this is NOT the file the game use. It use the other one, the .pl2 file, which is a LOT bigger (around 400 kB) and I don't know what is its format.Someone who want to change the animation during the loading have 2 choice. First, use the original palette, and therefore the whole new animation need to be reworked. There is no blue and no green in this palette. So the animation is very limited in its choice of colors. Second choice, change the palette the game will use, accordingly to the one the animation use. The problem is that the game use the .pl2 file, I don't know the format, and therefore I can't help. (after some thinking...) In fact there is a solution. There is other palettes the game use : act1.dat for example. Which contain a more representative choice of colors. My suggestion is : check all the possible palette the game use, and then take the one that is the closest of the one the new animation use. Then re-work each frame of the new animation to use this palette, and finaly, put this animation AND the palettes in the mod. If you have problems for parts of this work, I can help. The easiest way for you is to provide me the animation, in gif format, and give me some time  EDIT >>> there may be a big problem. I have made a test mod, trying to replace the loading animation by another. First of all, when I extracted it, I didn't recognized it : it has "loading" at the bottom, while in the game it's not there. Then I just put some big numbers in each frames, and converted it back to dc6 format. Then trying it... the animation stay the same (the original one, with no "loading" on it). Is this animation hard-coded somewhere ? Or is it at another place than data\global\ui\loading\loadingscreen.dc6 ? I can't manage it to work. [This message has been edited by Paul Siramy (edited 17 March 2002).]

|
54x Moderator
   
Posts: 3080 From: Wellington, New Zealand Registered: Apr 2001 |
posted 17 March 2002 22:16
There are ten frame in loadingscreen.dc6. Each of them is one frame of the animation... How did you convert the .dat into a pallete? :/ I tried renaming it but it wasn't recognised.
------------------ 54x. "My computer has wheels on giant stilts that allow me to drive it over all the other, slower computers." "For great bandwidth!" http://www.planetdiablo.com/newdawn/ New Dawn Forum

|
Paul Siramy WarLord
  
Posts: 186 From: Gannat, France Registered: Mar 2002 |
posted 17 March 2002 22:25
I know there are 10 frames. I extracted them. The problem is not here. Even if make a new dc6 with 10 frames, like the original model, it won't work. The game won't use my dc6.As for the dat --> pal, i just make a program for that in C, so easy But you have at least 2 other methods : either use this link , it is all the d2 palettes in paint shop pro 5 format in a zip, or you can simply use dc6con : ask it to make a pcx from a dc6 with the palette you want ("dc6con <file.dc6> -pal <palette.dat>") and you'll have a pcx, and ... even if the image is screwed up, the palette *is* here. [This message has been edited by Paul Siramy (edited 17 March 2002).]

|
54x Moderator
   
Posts: 3080 From: Wellington, New Zealand Registered: Apr 2001 |
posted 17 March 2002 22:42
The game uses my DC6, but the pallete is wrong. Thanks for pointing me to the palletes  ------------------ 54x. "My computer has wheels on giant stilts that allow me to drive it over all the other, slower computers." "For great bandwidth!" http://www.planetdiablo.com/newdawn/ New Dawn Forum

|
Paul Siramy WarLord
  
Posts: 186 From: Gannat, France Registered: Mar 2002 |
posted 19 March 2002 20:45
I have just inderstood why my loading screen didn't work : I took (and replaced) the data\global\ui\loadingscreen.dc6 instead of the one in the "local" directory. Now it works.

|