TYPE ERROR: when loading file through script call

OktoberLove

Veteran
Veteran
Joined
Feb 11, 2019
Messages
42
Reaction score
11
First Language
English
Primarily Uses
RMMV
Sorry if this is in the wrong section.

I'm using Alpha ABS and whenever I load a game file using script call I get Type Error: Cannot Read Property of "length" undefined.
Regular loading is fine however I don't plan to use the default loading menu in my game. I will rely solely on script calls. If someone can help I will really appreciate it and add you to my support section of my credits. Thanks in advanced!

Here's a screenshot of the Error
 

Attachments

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,604
Reaction score
1,948
First Language
English
Primarily Uses
RMMV
That would suggest to me that there's something happening between the ABS plugin and YEP core engine that's overwriting something the other is trying to manipulate.
 

OktoberLove

Veteran
Veteran
Joined
Feb 11, 2019
Messages
42
Reaction score
11
First Language
English
Primarily Uses
RMMV
It's weird because i started a new project with only ABS and i get an Error Cannot Read "meta" of undefined. But when I put YEP Core under it. It works.
 

OktoberLove

Veteran
Veteran
Joined
Feb 11, 2019
Messages
42
Reaction score
11
First Language
English
Primarily Uses
RMMV
I don't think Alpha ABS requires YEP Core so yeah I'm confused.
 

Another Fen

Veteran
Veteran
Joined
Jan 23, 2013
Messages
563
Reaction score
274
First Language
German
Primarily Uses
I'm not sure what exactly you're trying, but if "load a game file using script call" looks something like this
DataManager.loadGame(X)
you'd have the issue that you are loading a savefile in the middle of an update cycle, meaning that the first half of the cycle will utilize the data from the old savestate, while part of the latter half will utilize the new one, which could lead to anomalies in your game.

If you want to make sure loading a savegame won't cause problems, I'd recommend just setting a switch in your script call and use a plugin to load the savestate once the scenes update call is completed.
(Sorry for the lack of detail right now, and this might not even be the issue here of course)
 

OktoberLove

Veteran
Veteran
Joined
Feb 11, 2019
Messages
42
Reaction score
11
First Language
English
Primarily Uses
RMMV
This is the script call I'm using:

DataManager.loadGame(2);

StorageManager.cleanBackup(2);

$gamePlayer.reserveTransfer($gameMap.mapId(), $gamePlayer.x, $gamePlayer.y);

$gamePlayer.requestMapReload();

I think you may be onto something though considering the normal load works fine.
 

OktoberLove

Veteran
Veteran
Joined
Feb 11, 2019
Messages
42
Reaction score
11
First Language
English
Primarily Uses
RMMV
So I tried using a plugin like you said and it seems to get further but now I get a different error
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts


Finally! I've been puzzling over why it wasn't working for two days now. Turns out all of my calculations were correct, I just forgot to give some events hitboxes. :kaoswt: Now my randomly generated maps check for collision errors, and move stuff around in real time if they finds any. :LZSexcite:
Ami
--- OP Candy ---

Kids: Trick Or Treat!
Hero: Alright,here's the Candies (Give A Bunch Of Candy).
Kids: Thank you,Mister! (Running)
Hero: How cute they are…
F.Archer: Did you give them a OP Candy,accidently?
Hero: Huh?
Halloween, a day where kids are encouraged to take candy from strangers.
Stream will be live shortly with a session of the Interactive Text Adventure! Feel free to drop by!
Took a break from spriting dinosaurs to carve a dinosaur pumpkin.

Forum statistics

Threads
104,679
Messages
1,008,034
Members
136,163
Latest member
rakshitkaneki
Top