Show Picture Command Issue

Hello everybody, I was wondering and replacing things for way too long and I absolutely have no idea what that RM wants from me... Unless he wants to be punched in the face.

So, the problem is kinda stupid, but apparently I don't know about something or RM decided to make jokes of me.

When I'll 'show' a picture with numbers 1, 2, 3, 4 and 5, then erase them and transfer the player - 'show' picture with these numbers don't work anymore for some mysterious reason.

I have two maps, on the first there are two events:

1)

Spoiler
GDmYICi.png


NvKD2Jk.png


pvznMJO.png


KR1yjcJ.png


2)

c9xFMFU.png


sfLOI6Y.png
So, on the first map, there are pictures shown for a few seconds and then player is transfered to another map, where there is that event:

Spoiler
aVasZva.png
AND WHY it doesn't show that freaking picture? It will show that when I'll set the number to >5. I just can't reuse 1, 2, 3, 4 and 5 for some reason.

Am I missing something?

lol

Thanks in advance.
If we can do this step by step.

I am unclear why you have that first event on so many different pages.

Page one has show pictures 1 - 5.  Why do you need a self switch at that point?  Why don't you continue with show pictures 3-5 on the same page?  And incidentally, why do you have wait 12 frames twice instead of wait 24 frames?

That second page is set to parallel process, with nothing to end it e.g. erase event, so it will keep on looping away 60 times a second.  If that is all you want to happen at this point, then put in your A switch here.

Combine the first two pages with the self switch at the end.  Try that and see if it does anything for your problem.
It's a bit confusing to pin-point the problem but my guess is that you mess up with parallel processing. Parallel process + showing pic can be problematic.
t will show that when I'll set the number to >5. I just can't reuse 1, 2, 3, 4 and 5 for some reason.

Am I missing something?
I can't find it right now, but i think I read somewhere that each picture you use has to have it's own number.  I think that's why it works with a number higher than 5, and you can't reuse 1-5.
Good point SomaelCK

@Rikifive

Try doing what I suggested with those first two pages, but have it as an autorun.  Your A switch will then turn it off, as your new page 2 will be simple action button.

Then on your new page 3, conditioned by switch 12, have that as an autorun as well.  It will be ended by your B switch.

For your event ID #2, have that on an autorun, conditioned by whatever should activate it.  At the moment there is no condition and so nothing to stop it running constantly from the moment you arrive on that map, because it too is a parallel process.

EDIT

@Bribolox

I don't think it's quite that, because I re-use picture 1 all the time.  You have to have erased the previous instance of that picture ID before you can use it again, and I think here, the problem is with ensuring that it has been properly removed.
On your Pictures, you turned the self Switch B on after the Teleport command,that means the self switch B is never activated,

but while loading the new map this event from this map because its on paralell will start one last time and execute some of the code again,

and that code is the erase picture commands, thats why your ids are not shown. turn the self switch on before the teleport command,

than this will not happen.

i just took a look at the pictures and thats what came in my mind.
I also think it's a timing problem due to your use of parallel processes and autoruns - as far as I have seen there is a time directly after an erase picture that the use of the same number can become problematical, and we can't be sure that the internal data has had enough time to be reinitialized due to your use of the parallel processes.


I suggest you follow the bughunting-link in my signature, that will give you some background information on parallel processes (among other tips on how to bughunt)
Nah its mathematics, there is mostly no spooky hidden stuff with paralell processes, just some unexpected behaviors we can stumble into.

And manipulating Pictures and Mapchange while doing so let us finding those behaviors we didnt searched for 🙂 .

But we can easily avoid em after we identified em.

Iam sure its like i explained.
You should be able to use any ID number for the picture, it'll simply replace the previous picture. So it not showing up is rather odd.


Did you create a new event with the same command "show picture 5" etc. and did it do the same thing? Not show up?
@ksjp I have these pictures on different pages, because picture #1 and #2 are just shown and set to rotate, while I need to make pictures #3, #4 and #5 to show/erase/repeat.

That's why I separated them. You're right - I can use loop for this.

@Celianna That's absolutely right - and that's why I have no idea why is this happening.

As you can see on the last screenshot - I have that show picture #5 as a "Action Button" and it's on totally different and empty map and that's what confuses me - I'm clicking on that event like an angry badger and literally nothing happens. There's no any autoruns and parallel events around. So, when the map is empty, then no matter what I had on previous map it should show/replace that picture, but it doesn't... And that's what confuses me here really *and kinda annoys*.

@everyone thanks for suggestions, I'll try breaking these events into pieces to find where it's broken.

WtvmtpT.png


Issue is caused by the second page of the "ID 001" Event.

Trying to figure out why exactly is that happening...

(But still, it's really weird isn't it? How is this possible to make event from another map affect current one? *not including commands put in purpose*)

WtvmtpT.png


It is caused only because of the 5th picture. When I put show/erase (as in screenshot) #3 and #4 it'll work fine, but if I only just add the 5th one or even just put it alone then it breaks everything...

lol can somebody explain me what's wrong with the show #5 picture command? It looks like any other... My.. brain... hurts....

WtvmtpT.png


I merged EVERYTHING into convenient only one page and everything works as it should - except it's still broken by that picture #5. What the
Flower.png
flowers!
Flower.png
is wrong with that?
Okay, can we now see screen shots of your new event so that we can check exactly what's there?
Okay, here's the merged event.

Spoiler
aOZUu71.png
The second one remains the same and it's on totally different map:

Spoiler
aVasZva.png
The picture doesn't want to show up. (Just removing the show/erase picture #5 in the first event fixes the problem, but why?)

Also I have a question - do the pictures erase after transfer event?

I noticed all the pictures are erased when transferring (I removed* the 'erase' commands as seen on the picture above and they're disposed.)

* - also tested that normally with erase commands, so that's not the problem here.
Silly question, but is picture 5 blank? I don't see any reason why it shouldn't appear.


No, pictures don't erase when you go to another map. You have to erase them when you're done with them. If they erase automatically on transfer, you must have made a script mod to do it. I've written such a script and posted it here for use.


If you return to this map, that autorun event will run again. Erase event only removes them from the map temporarily - when you leave and return they will be loaded again and will run again. If you don't want it to run, ever, and you're going to be back on that map at some point, you need to use a self switch and a second page conditioned by that self switch to disable the event.


Do you have any OTHER events, either on that map or in common events, that do something with picture 5?
Nope, it's not blank - when I'll remove the whole stuff with picture #5, then everything works normal - picture shows on the other map.

So that's interesting, since my pictures are gone when transferring to another map... Not saying you're wrong, because I was also sure they shouldn't disappear, but that's suspicious - I'm not using any scripts for that (not using many scripts at all).

I know, I know, but that's not the problem here - this map is used only once - The problem is the not showing picture.

Nope, it's an empty map (I'm not that stupid to overlook these things. =P)

I'm totally confused now. I'll try to removing the scripts, perhaps there's something wrong...? Let's see.

WtvmtpT.png


Yup, that was because of one of the scripts: MOG - Picture Effects (v1.0)

But... why is that? lol I spent so much time on trying to figure it out by replacing things in these events and that was caused by one script.

Well.. but why? I need that for parallax maps and why is the picture #5 broken? (;一_一)

WtvmtpT.png


Well... So basically the solution was to just replace #5 with #6 (skip 5th slot). It works now - perhaps the #5 is used for something in that script...

I know I could do that from the beginning, but it was too weird to leave it be, so I wanted to find the source of the problem.

So, thank you Shaz, you pointed me the way by saying, that it can be done via scripts and I knew which one it will be...

And thanks ksjp for suggesting merging these events, IDK why I didn't do that at the beginning, since it was so simple.

So... It's still kinda mysterious, but the problem is solved I guess.
I'm at work at the moment, so can't download that demo. But yeah, there must be something in there that does something with picture 5. If that's the case, it SHOULD be mentioned in the opening comments of the script.


Maybe you have an effect on picture 5 that you used earlier and haven't removed afterwards?


I'm not implying that you're stupid, but you also didn't say until that last post that it's an empty map, and you also didn't respond to the common event possibility. We only say to check these things because they HAVE been known to be the cause of issues in the past. When everything you've looked at fails to identify the problem, then you have to look at other things. And because you haven't said you already looked at them, we have to ask the question. And you would be surprised how many people swear on their lives that they've checked something and it's not the problem, when it turns out to be EXACTLY the problem. So we still ask 🙂
There's nothing said about that, so that's why I got confused.

It's a totally first *staring* map, didn't used any effects before that at all to make sure that there's something wrong in that event, not anywhere else.

I didn't mean that, sorry if that sounded like this. =P I know the solutions can be really stupid sometimes, just a silly mistake from developer [most common problem: Q: Why my character can't move? A: Because your character stands on the sea.; True story (= ]. I know you're trying to eliminate all the possibilities, so I understand that.

I really didn't wanted it to sound like this, sorry. =P And you're right, I should stated that in OP to make it easier - TIL. (=
meh ... we can't know everybody's skill level, and even the most experienced developer sometimes makes the most basic mistakes. I've been there more times than I care to admit 😉
On your Pictures, you turned the self Switch B on after the Teleport command,that means the self switch B is never activated,

but while loading the new map this event from this map because its on paralell will start one last time and execute some of the code again,

and that code is the erase picture commands, thats why your ids are not shown. turn the self switch on before the teleport command,

than this will not happen.

i just took a look at the pictures and thats what came in my mind.
Your Pictures disapear sometimes for atleast this explained reason.

Dont do Eventcode after Eventcommand Teleport, it will most Times not be executed.

And or Wait a few Frames before showing the new Pictures on the other Map.

Why your Action Button picture is not working iam not sure, maybe because its on Action Button and you dont

Activate it?
@Shaz That's true. =D

@Bex, don't worry about stuff after the transfer command - it is executed (it's always executed for me, I'm doing this very often); what is more it doesn't matter, the picture should be shown anyway. The event must be finished until it goes to the next one (at least autoruns), so event will go further no matter if you'll transfer player or whatever.

I waited 9999 frames, because it's an "Action Button" event, so that way I could try to show that picture multiple times.

I activated that 9999 times. [=

It's already figured out why that was happening - It's because of a script. and It's kinda solved already.

The solution was just to skip #5 and put #6, because #5 is used for some reason in script. I wonder if it's not related to gifs, since that script allows you to make these.

So... For now I'm okay, but still one thing is mysterious - Why / for what is the picture #5 used in that script and I'm not sure if there are no more 'used' ones.
ok than just insert a 60 frames wait after your last codeline after teleport command in that eventpage. will stop this side to run from new at mapchange and therefor your pictures will not get erased. even if iam not 100% correct all the times there is also mostly always a glimpse of truth in it 🙂

Edit: You told pic ids 1to 4 are not working.

Original thread: https://forums.rpgmakerweb.com/threads/show-picture-command-issue.44572/