Game not remembering event positions after load! Please Help!

After an interaction with a female warrior, she moves to a different place on the map and then I turn a self switch on.

After I defeated her, I saved my game and created the enemies for the next region ID.

However, when I loaded the game back up, the warrior was back at her original position and is still blocking the bridge across the lava. This puts the game into a soft lock as now the player is unable to progress!

How do I make the events remember where they moved to even after saving and loading?

Before anybody tells me to just create a new event, stop. I am doing that one map challenge thing so I need to conserve events as the rules specify that I can only have 10 events.

I am not sure why VX Ace does not remember event positions through saving and loading as it is a very soft lock prone way of doing things. And second, the PS1 version remembered event positions after load.

Is there a way to make it remember event positions when you load game?
An easy solution is, giving the event a new page, with the self-switch in the conditions. Give this event page a move route to the new location, which does NOT repeat. (New page, same event)

Now each time you load the map, she is indeed in the same spot, but immediately walks to her new location.

(Edit: just fixing typos)
Hey,

This usually happens if the game was modified since the savestate was created. When a version conflict is detected, the game will normally reload the current map to make sure it is using the latest version (this resets parallel processes and event positions as if the player had left and re-entered the map).

This likely won't be an issue in your finished game outside of when you are publishing a new version.

If you are concerned with this there are definitely scripts out there that allow you to automatically remember event positions between map changes (I can't point to one out of my head but one should not be hard to find). If you want to do this manually you can have a parallel process on your map that teleports your events in place and then erases itself until the player enters the map again.

Alternatively you could maybe also use a different "Version Switch" that you'd turn ON at the beginning of your game. If a map needs updating between versions, you could then use the old versions "Version Switch" as a page condition in a parallel process event to update the map.
This script by Shaz should immediately solve this thread.


That script has save disabling built in! It is useless! Every time I try to load my game, all I hear is a buzzer sound and the game will not load. Removing the script fixes it.

It is obviously troll script 🙁
Is it a troll script, or are you not certain how to use the script? Do you really think multiple people on this website just release junk code to screw with people?

‘Cause, it sounds more productive to inquire about troubleshooting the script than calling Shaz (of all people) a troll.
I believe it invalidates any old saves due to how it works in remembering event locations, but fresh saves from a new game should work. You'd need to start a new game to test moving forward from there. (Which is generally a good practice when adding new things to a project be it script or database entries etc. to ensure nothing breaks)
Yes, Most of the time scripts *require* you to start a new game. This is due to them adding variables that your old saves do not have and had no way to know. Even if it did load the saves, variables will be in the wrong spots.

Computers do not magically know how to add in variables that didn't exist when it was saved as it had no way to know you were going to add this script.

In the future, please *always* start new game to test a script. Thank you.
That script has save disabling built in! It is useless! Every time I try to load my game, all I hear is a buzzer sound and the game will not load. Removing the script fixes it.

It is obviously troll script 🙁

I've never seen someone be this malicious AND misguided at the same time.

Assuming people make "troll scripts" while not even bothering to troubleshoot kills any goodwill I would have responding to you.
That script has save disabling built in! It is useless! Every time I try to load my game, all I hear is a buzzer sound and the game will not load. Removing the script fixes it.

It is obviously troll script 🙁
Still to this day you don't understand how to use scripts and are rude to people that help, also rarely say thank you when a solution is given to you.
I would like to know what expertise you have to judge that a script made (years ago) by a reputable member is a troll script? Shaz is a prominent member of this forum.
The script suggested to you will work and was made about 10 years ago.
You have to stop going to bad websites like reddit and such, they are giving you a bad impression of people in general and you are transferring that to the people here in the forums.
In the history of this forum there were only a few people that were not legally making scripts (claiming the code as their own), otherwise basically everybody that made code here is a good person and the code works. I honestly have never seen any code that did not work (when properly configured and set up)
kills any goodwill I would have responding to you.
First time responding to one of his threads, huh? Well, we all gotta learn eventually.
First time responding to one of his threads, huh? Well, we all gotta learn eventually.

I dunno, morbid curiosity got the better of me. I'm always shocked when the disdain is so naked you could confuse it with a bad parody skit.

It's like watching a train crashing in real time - it's horrible, but you can't look away.
You'll always catch me reading his posts, but never see me making a response.
I've never seen someone be this malicious AND misguided at the same time.
@TheAM-Dol said it first, but...the OP has been posting since April 🤣
That script has save disabling built in! It is useless! Every time I try to load my game, all I hear is a buzzer sound and the game will not load. Removing the script fixes it.

It is obviously troll script 🙁

Ruby:
class Game_Map
  alias shaz_mem_positions_gm_init initialize

  def initialize
    shaz_mem_positions_gm_init
    $game_system.event_positions = {} if !$game_system.event_positions
# There's a better way to do that, but it still allows you to create the hash
# at any moment, even after loading a very old saved game.
  end
end

class Game_CharacterBase
  attr_accessor # Bug found: missing symbol.
end

Well, there are some weird coding practices, not bugs per se, there and a bug Shaz made by not defining any symbol linked to a method name. Nothing that any scripter should get crazy about for it can be easily fixed anyway.

Shaz's script simply stores the X and Y coordinates and the last event's direction in a hash. There are a couple of script calls allowing you to define or redefine or call them at any given time. It doesn't promise the user anything beyond that.

If your events still show up at the wrong locations, either the setup was incorrect or missing OR some other piece of code is interfering with those event placements.
I want to formally apologize for calling it a "troll script".

I was already TNT when the script thing happened. I was dealing with things at home yesterday and the issue with the script was just what lit the fuse.

It is not any of your faults. If the issue with the script happened any other day, I would not have said that.

Since this is for the one map challenge, you kinda have to build up levels a bit to take on the first and second boss and I spent all this time getting to level 15 to take on second boss. I was not too keen on doing that again.

I was so frustrated with the kids that were over yesterday who decided it was a good idea to play with and break one of my glass dragons before I angrily took the other ones away from them. It made me fail to realize that I could have temporarily set the starting level to 15 for both characters, add back in the items and money, and go from there.

Another thing that set me off was the fact that the script would have been temporary if what @Another Fen said was true and having to do stuff again over a temporary script, I wasn't to happy that this happened on a temporary script.

I was so upset that I had to leave the forums for the night to cool off otherwise more could have been said.
a soft solution would be to have 2 such events, one invisible.
talk to the event, win the fight, move the event to it's duplicate's position, show the duplicate, and hide the old event.
both events should be tied to the variable that marks the completion of the battle.

that's to circumvent the problem of self-switches, dialogues and movements of events happening around battles and save points.
the problem here is that the map, when it loads, only has one event to deal with, and IT has one default position: the one it spawns at, in the editor.
put another one with another default position, and merge the two at run time.
problem solved.
How do I merge events? I did not know that you could.

Also, the challenge is limited to 10 events, 10 switches, 10 variables. As a result, self switches and variables are what is 'under the hood' of the four events already in play.

Due to the limit, I cannot create needless events since I can only have 10.

Also, thank you for using "circumvent", I have been trying to find that word for years and I only had a malformed version of the word in my head and it was so bad that Google could not correct me.
plan B, then: have the move-over action tied to a conditional before the battle.
if not met, battle... if met, THEN move over.
that way you don't need a self switch, only the global switch or variable.

offset from that: if the battle is lost, exit event.
have the move over route be always there, as the event will always move over, except when losing... so, when losing, exit the routine.

so:
-dialogue
-previous win?
--TRUE?: pass.
--FALSE?: battle.
------- WON?: pass.
------- LOSE?: exit event.
-unconditional move.

Original thread: https://forums.rpgmakerweb.com/threads/game-not-remembering-event-positions-after-load-please-help.161330/