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,959
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
564
Reaction score
275
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

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top