Moved to: RGSSx Script Support
EDIT
Can we have a screenshot of that event, all pages, not cropped. I think it is at least possible that something is happening there, as I've used Effectus for a completed game and my current project, also using it, has about 6 hours of game play already, and I've never had that crash.
Are you using a script which modifies the Save function or menu? In particular, are you using any sort of Autosave script?
Have I? I don't recall making compatibility updates for it - I generally try to avoid it.
Getting a buzzer when you try to save is typical of an event being linked to a sprite in an out-of-the-ordinary way. I think one of the most common causes is having a parallel process event that repeatedly shows a balloon icon over itself or another event. See if you've got any of those.
Those few lines of script are meaningless. It indicates that the @ms_effectus_etile_pos element does not exist. But you haven't given enough information to know what class that belongs to or what is trying to call it. Provide a link to the script so we can see the whole thing (an actual link to the web page or forum post is best - definitely don't copy and paste the script itself here).
actually that looks like an override to the Game_Map method. And that's only called by the passability check - unless Effectus uses it for something else.
What I do in these cases to determine exactly what the problem is, is remove the error handling around the save function. It will then (IIRC) give you a different error. I also start outputting stuff to the console to see exactly what it is that's getting saved - if there's a sprite in there, that'll be it.
It's just a weird error, and a strange line for it to happen on, as that line has nothing to do with save data. I'm thinking you've either got two issues here and they just happen to occur around the same time, or something is happening when trying to save data that sets things up for the next error.
I have a small compatability patch for Yanfly written by Source. Do you have it?
I have version 1.2.9a of Effectus. In the file folder, there are several compatibility patches - including 2 titled "Shaz Bigger Event Collisions" and "Shaz Clone Events." I don't see one for Yanfly however.
Oh, and the Yanfly Ace Save Engine uses sprites to save. However, this has never been an issue before. This issue happened the same time another issue occurred in a different thread I had posted where the events are now above any Show Picture I have. Since the sprites are all overlapping the picture, is this causing the error?
The issue with sprites is when the $game... data has sprites attached. Using sprites in the menus isn't an issue, because none of the menu data is saved. The issue happens when someone writes a script that modifies the Game_Event class (or any of the other Game_* classes) and gives it a new property/attribute that is a sprite. There is one Ace script in particular that I'm thinking of, but I just can't remember what it is. It might have something to do with a hud or with an ABS or something. THAT is what causes the issue, because sprites can't be converted to an appropriate data type to get saved with the $game... structures.
I'm actually not sure the saving issue has anything to do with Effectus, which is why I'm confused that Effectus is the script that throws up an error afterwards.
Can you disable Effectus and see if you still have the same issue saving? IIRC it's pretty difficult to turn it off, so the answer might be no.
The only thing I can think of is that one of those scripts is using a variable that I may have altered, but I haven't found it if that is the issue - but I could have easily overlooked something. Any picture I use in with Show Picture is now underneath ALL events and some tile graphics.
I can upload the event, but it's a big one. Is there a way, and I'm 99% sure there isn't, that I can get the whole event in one screen rather than snipping piece by piece into photoshop? Because that's what I'm about to start doing.
A variable will not cause the game to crash or the save to fail. And I am not talking about the Show Picture command. I am talking about scripts that attach sprites to events. I don't really want to see your event, because there's nothing to indicate that that is the event that's caused the problem. At this stage, you would be wasting your time.
What other scripts do you have? Please list all of them.
How 'bout we stick with one issue per thread? You haven't mentioned anything until now about a Show Picture "Overlapping" event, and what does that even mean?
Are you saying the save crash started happening when you started using the Show Picture in a parallel process event?
What is .each_cons? What gets put into variable 145 after that event runs?
I suggest you disable Hime's script for now.
If you go into a debug window immediately before you attempt to save, check what's in ALL of the variables. If any of them have something that isn't pure data (like a sprite type object), that will be the problem.
As I said earlier, maybe it's time to start debugging line by line - in the DataManager script, disable the try/catch to stop it deleting your save file on failure, and right before it tries to write, print each of the $game_... items to the console - one by one and test after each - to make sure of what's in each one. I think $game_system might be a good one to look at, as well as $game_map, to see what's in the events.
Guessing isn't going to solve it. It's time to start looking at things methodically. Slowly, and thoroughly.
".each_cons(n)" separates an array into every possible consecutive sections of (n). In my case, consecutive sections of 5. I've built a casino in my game. This particular array is checking if the player's hand has a Straight.
I mentioned the show picture issue, because you said the sprites are the issue for my Save error. And when the save error started happening, all sprites are now overlapping any Show Picture. It just seemed to be connected.
Check all variables, DataManager; $game_system; and $game_map. I'll get working on those. Thanks Shaz!
It's going to be a slow process. Good luck 🙂
You didn't answer my question about whether the error started happening after you created the parallel process event or after you disabled it.
None of the issues started happening until after I turned it the event into an Action Button event. It was only a Parallel Process so I could test it out the moment I loaded it in. And I had never bothered trying to save since I was only testing it. However, the overlapping sprite/event issues weren't happening during the Parallel Process testing.
Hope that answers your question.
I just went through the variables in playtest mode, and there were a couple of variables that still were retaining a lot of information. Two of them specifically. When I saw them, a red flag went up, so I when exiting the event, I made all the variables revert to 0. Now saving doesn't seem to be an issue any longer.
The 2 variables were retaining an array of 52 characters. I wouldn't think that would be an issue. The first one was all numbers, but the second one was 13 each of ♥, ♦, ♣, and ♠. The array was doing something really funny. I'm wondering if they were causing a problem.