Author Topic: Bizarre error with png files (got it fixed!)  (Read 1643 times)

0 Members and 1 Guest are viewing this topic.

Offline {depth}shaman

  • Soldier
  • **
  • Posts: 138
  • I'm Warning lvl 1! So i suggest you lay low
Bizarre error with png files (got it fixed!)
« on: March 02, 2007, 05:43:26 am »
I used a scenery called wb-water.png. My map compiled correctly and I could playtest my map. Abruptly i started getting this error message several hours into my mapmaking session today:
"Error loading texture: C:/soldat/SCENERY-GFX/WB-water.PNG"
whenever I start a game with my level.

After several restarts of polyworks and my computer the error persisted.
I knew other PNG files worked. Fade is a much used one that never gives any problems. So I removed WB-water from my map, and replaced it with a less graphics intensive "water.PNG." I simply saved WB-water as something else after downgrading graphics in paint. I still have the problem. Now it just says:

"Error loading texture: C:/soldat/SCENERY-GFX/water.PNG"

I don't want to save it as bitmap cuz then the graphics are really bad on it.

The only solution I have found, is deleting all the water, compiling it but not saving it, and then restarting the computer in which case I can start the game, but without the files.

SO FRUSTRATING! please help, it will speed up the release of my congo server.
« Last Edit: March 05, 2007, 09:07:06 pm by {depth}shaman »
Life's like a shit sandwich. The more bread you have, the less shit goes down with each bite.

Offline Frenchie

  • Camper
  • ***
  • Posts: 358
  • SoldatHQ
Re: Bizarre error with png files (help me anna!)
« Reply #1 on: March 02, 2007, 06:03:21 am »
Try opening it (the png file) in paint and saving it again.
Soldat Lobby Avec Players -New Release! - Updated AGAIN!


Offline {depth}shaman

  • Soldier
  • **
  • Posts: 138
  • I'm Warning lvl 1! So i suggest you lay low
Re: Bizarre error with png files (help me anna!)
« Reply #2 on: March 02, 2007, 06:09:42 am »
lol. I did. I saved it as "water.png" like i said above. Then i completely romeved wb-water.PNG from the soldat folders. no luck...
Life's like a shit sandwich. The more bread you have, the less shit goes down with each bite.

Offline VirtualTT

  • Veteran
  • *****
  • Posts: 1026
Re: Bizarre error with png files (help me anna!)
« Reply #3 on: March 02, 2007, 06:19:31 am »
What is your system configuration? Probably your graphic card doesn't support large textures. (wb_water.png was about 1600px width)

Paint can handle properly only bmp files. Use other applications to save/modify png, jpg and all other image file types...

And by the way problem with wb_water.png was brought up many times before...  :-X
« Last Edit: March 02, 2007, 06:32:12 am by VirtualTT »

Offline zyxstand

  • Veteran
  • *****
  • Posts: 1106
  • Mother of all Bombs
Re: Bizarre error with png files (help me anna!)
« Reply #4 on: March 02, 2007, 03:39:27 pm »
how is bmp bad gfx?  it's just a bit bigger of a file which is usually not a problem...
Can't think of anything original to put here...

Offline VirtualTT

  • Veteran
  • *****
  • Posts: 1026
Re: Bizarre error with png files (help me anna!)
« Reply #5 on: March 02, 2007, 03:49:18 pm »
a bit bigger?  ;D
wb_water.png ~0,18 mb
wb_water.bmp ~2,67 mb (+1400%)

and bmp also can't handle semi-transparency

Offline zyxstand

  • Veteran
  • *****
  • Posts: 1106
  • Mother of all Bombs
Re: Bizarre error with png files (help me anna!)
« Reply #6 on: March 03, 2007, 12:18:35 am »
and bmp also can't handle semi-transparency

oohh - i was wondering how you do that...  well, how exactly DO you get semi-transparency?!
Can't think of anything original to put here...

Offline VirtualTT

  • Veteran
  • *****
  • Posts: 1026
Re: Bizarre error with png files (help me anna!)
« Reply #7 on: March 03, 2007, 07:15:31 am »
http://forums.soldat.pl/index.php?topic=3705.msg43308#msg43308

And also when saving images as png uncheck Save background colour and Save colour values from transparent pixels.

Offline {depth}shaman

  • Soldier
  • **
  • Posts: 138
  • I'm Warning lvl 1! So i suggest you lay low
Re: Bizarre error with png files (help me anna!)
« Reply #8 on: March 05, 2007, 09:06:46 pm »
Alright! got it fixed. I think ill just use your water from coldmorning. I hope thats cool cuz im already using all your other scenery! I can hardly wait to unveil my congo campaign server! Haha, i think my whinyness took a bite outta my karma.
Life's like a shit sandwich. The more bread you have, the less shit goes down with each bite.