Pad Image Problem

A forum to discuss custom scenarios, campaigns and modding in general.

Moderators: Slitherine Core, Panzer Corps Design, Panzer Corps Moderators

Post Reply
bebro
Slitherine
Slitherine
Posts: 4577
Joined: Sun Nov 19, 2006 12:50 pm

Pad Image Problem

Post by bebro »

Has anybody ever encountered a prob like this and can offer help:

After adding a pad image (editor of v1.05) it is shown literally "blacked out" partly, instead of a perfectly fine looking pic I get a part of it only displayed as black, mostly the middle, top and botton of the pic show fine in the editor's background.

I tried now several times, with pics of 640*480, 800*600, 1200*900, tried PNG, GIF, JPEG, with several map sizes, with the editor in full screen and windowed mode, in all zoom levels, after rebooting and whatnot, still the prob remains. :shock:

The prob seems gone with smaller map sizes (below 50*50), but I need a bigger map as base first, even when I finally cut off parts of it.

I never had that problem earlier when working on those USMC maps, and some were bigger first as well so it is quite confusing :(
El_Condoro
Panzer Corps Moderator
Panzer Corps Moderator
Posts: 2119
Joined: Tue Jun 03, 2008 9:32 am

Post by El_Condoro »

This is before you have done any editing? IIRC if you put down some terrain on the map and then remove them the black remains - hit Spacebar and see if it goes. I doubt this is the issue but I thought we may as well get it out of the way first! :)
bebro
Slitherine
Slitherine
Posts: 4577
Joined: Sun Nov 19, 2006 12:50 pm

Post by bebro »

Unfortunately, that wasn't the cause :(

It's still happening, but very strange: actually it seems more that the pad img is not tiled correctly in the editor when scrolling around.

The upper half is there, then comes the black part, then the lower half. Both upper and lower half are completely displayed, just that there's a large "black strip" in between them, which is not on the pic when I load it into a pic viewer or gfx program.

With some scrolling around I get to see all parts of the pad img and can at least edit the map accordingly, but it's kinda tedious. Here's how it looks:

Image
Halibutt
Sergeant - 7.5 cm FK 16 nA
Sergeant - 7.5 cm FK 16 nA
Posts: 200
Joined: Sun Sep 09, 2012 3:43 am

Re: Pad Image Problem

Post by Halibutt »

I know it's been 2 years, but in case anyone stumbles upon this problem again... It seems the size of the pad file is hard-coded. At least in my case it wouldn't work for any dimension over 10000 pixels. I resized the image to 10000 pixels and it worked a charm (as long as you preserve the ratio, it will still work). Interestingly, the black screen seems not to be related to file size: it didn't work with image reduced to 13 Mb, but it now works with image over 33 Mb heavy.

Hope that helps.
Originally posted by Juu:
The Soviets won the war. We happened to be nearby.
Post Reply

Return to “Panzer Corps : Scenario Design”