Transparent picture becomes black after compressing game

Hey there!

I have a huge problem.

I wanted to have some nice light effects in my game and because i dont really wanted to search for a script and understand how to use it i found my own way. I made some transparent pictures to put them "over the map" and to have light effects. that works perfectly until i compress the game data. 

As the title says, the transparent pictures werent longer transparent and became all black so that i cant see a thing. Is there any possibility to make them stay transparent even after compressing? I really need help ;(

Anna 
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Please give a link to the scripts you're using. There are several that use light effects and I'm aware of a problem with one of them that will cause this (in fact ifyou'd searched for it you may have found someone else had the same problem and has already been given a solution). But there's no point in me telling you what to do until you confirm what the script is.


In fact, just in case it IS the same script, here is the other thread, with the solution. If you're not using that script, don't try and apply that solution.
As i said i dont use ANY for script for the light effect! i only use transparent pictures. and im searching a way to let them stay transparent after compressing the game data! i dont use any light effects scripts!

EDIT: I only used this: 

 

class Sprite_Picture < Sprite

 

  def update

update_bitmap

update_origin

if @picture.name.include?("[FIXED]")

 self.x = 0 - $game_map.display_x * 32

 self.y = 0 - $game_map.display_y * 32

else

 update_position

end

update_zoom

update_other

  end

end

 

 

 

to fix the picture. otherwise it moves when the player moves.
You said "put them over the map" and "light effects" which usually implies a script.


Transparent pictures just don't go "black" because you've compressed the game. There's got to be something else causing it. I'll move this back to Ace Support in case anyone else has any ideas.


You didn't "try" any scripts and forget to remove them, did you?
How did you display the picture? please post a screenshot of the event you're using if you don't use scripts


Are you encrypting the game when compressing? There are two script methods to access files from the engine, and one of them doesn't work with encrypted archives. However for that bug to happen, you'll have to manually select the wrong the script command, so that can only happen with script use.


Please test your method of picture display with other pictures to make sure that the problem is not part of the file - and to make sure that it's really the picture turning black and not some other cause (like a forgotten fadeout or a wrong coordinate resulting the picture to be displayed outside the screen or something like that.


Also check if you still can control the game when the problem happens - it might be that the game simply crashes before the picture can be displayed, but in most regular display errors you should still be able to open the menu.


We need more info on what you've done, because regularly pictures stay transparent after compressing, so it has to be an error in something you've done with your game, not a general error that we can compare in our own projects.
Example1.PNG

This is what the light effect looks like before compressing it when i play it or test it.

I only use a script to fix the picture. (i postet the script before) When i delet the script the problem is still there.

Example2.PNG

And that is how it looks after compressing. I really dont get why that happens. all the other pictures are still visisble, only the transparent ones are black. ;_;

the game still works, i can open the menu, does it has something to do with the rtp? i also deleted all my scripts once and compressed it but the transparent picture still becomes black.

Event runs picture.PNG

This is the event that runs the picture. i did it this way because i have a lighteffect-picture in all interior rooms. so if i change the room the old picture dissapears and the new apperas.

All transparent are black after compressing

The problem is still there same, with or without encrypting

i hope this helps to answer my question
link us to all the scripts you have in your project - one of them has to be responsible for this, even if it doesn't seem so at first glance.


Also please check all the unnamed slots in the script editor if they are really empty or if there is some script that hasn't been named and then forgotten in them.
Shaz Script to save an events position : http://www.rpgmakervxace.net/topic/1518-remember-event-position/

Modern Algebra´s script to change windowskin: http://rmrk.net/index.php?topic=48076.0

Jets Mouse system: http://jetruby.blogspot.de/2011/06/mouse-system.html

Emotion manipulation magic: http://divisionheaven.wordpress.com/tutorials/emotion-manipulation-magic/

And the script i posted before to fix pictures.

thats all
Hey Anna,

What file type are you using for the transparent images?
Can you go to your script editor and do a global search (control+shift+f) for File? Check the Match Case box.


Let us know if anything comes up that says Filetest or File.exist or anything like that.
I solved the problem and it was mortifying simple 😀 I had an event that made the screen pitch black and if the actor teleported to the map it normally became normal. but during some workings it seems like i accidently deleted it... Sorry ^^" After hours of searching i found out that it was just my "stupidness"

So lets say i solved the problem 😀
always check all other events with their switches etc. first if something unexpected happens...


This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/transparent-picture-becomes-black-after-compressing-game.22938/