PCX in data causes crash!

Mods and development for mods. Including WoG & Equilibris (RU) subforums.

Moderator: Moderators

User avatar
Artas1984
Assassin
Assassin
Posts: 282
Joined: 06 Jan 2007
Location: Vilnius
Contact:

PCX in data causes crash!

Postby Artas1984 » Sep 8 2007, 22:24

After editing some PCX files as BMP extansion files and placing them as PCX files in data folder, after loading Heroes III, my game crashes on the point where the PCX is beying used on the screen.

For example TXT files in data do not cause crash if there ar no BS scripts in the text...

Anybody can say anything why PCX in data causes crash? Even if i paint in that PCX just a slight margin, it causes crash whenever i should see the image on active window...

User avatar
Pol
Admin
Admin
Posts: 9176
Joined: 29 Nov 2005
Location: IN SOMNIS VERITAS
Contact:

Postby Pol » Sep 8 2007, 22:36

I guess that I can... but would be easier to mention which pcx did you changed.

You mast take care over bitmap color depth - less than 256 colors, in same case also about dpi, which's rare but game would not like 300dpi :-p and, of course, dimensions.
"We made it!"
The Archives | Collection of H3&WoG files | Older albeit still useful | CH Downloads
PC Specs: A10-7850K, FM2A88X+K, 16GB-1600, SSD-MLC-G3, 1TB-HDD-G3, MAYA44, SP10 500W Be Quiet

User avatar
Artas1984
Assassin
Assassin
Posts: 282
Joined: 06 Jan 2007
Location: Vilnius
Contact:

Postby Artas1984 » Sep 8 2007, 22:42

You'r right, i forgot about the restrictions of the image...

So 256 colors is max?

What max bit depth in that case? 16? 24 too much?

What max vertical and horisontal dpi?

And what about the color represantation? Does this matter?

User avatar
Pol
Admin
Admin
Posts: 9176
Joined: 29 Nov 2005
Location: IN SOMNIS VERITAS
Contact:

Postby Pol » Sep 8 2007, 22:57

All matters. Sure 256 is the max, personally I'm using 242 color or similar, alas that mean nothing like 16bit or 24bits or more willd be possible. 256 is 8bit - indexed. I think that game is comfortable with anything from 20dpi to 100. From 72 to 94 it's a typical range for normal monitor. And to the 'Color Representation' I have a good news for you, it doesn't. You can omit that.
"We made it!"
The Archives | Collection of H3&WoG files | Older albeit still useful | CH Downloads
PC Specs: A10-7850K, FM2A88X+K, 16GB-1600, SSD-MLC-G3, 1TB-HDD-G3, MAYA44, SP10 500W Be Quiet

User avatar
Artas1984
Assassin
Assassin
Posts: 282
Joined: 06 Jan 2007
Location: Vilnius
Contact:

Postby Artas1984 » Oct 13 2007, 14:32

EDIT - works.


Btw, are there any hard-coded pcx files or i can edit any pcx file from bitmap.lod?

User avatar
Pol
Admin
Admin
Posts: 9176
Joined: 29 Nov 2005
Location: IN SOMNIS VERITAS
Contact:

Postby Pol » Oct 13 2007, 16:42

You can edit anyone what you like ;)

And in case of color artifacts check if color values in the problematic region aren't higher than 240(in any RGB value), if not decrease to 239 for fix.
"We made it!"
The Archives | Collection of H3&WoG files | Older albeit still useful | CH Downloads
PC Specs: A10-7850K, FM2A88X+K, 16GB-1600, SSD-MLC-G3, 1TB-HDD-G3, MAYA44, SP10 500W Be Quiet


Return to “Modcrafting Guild”

Who is online

Users browsing this forum: No registered users and 2 guests