TYPE ERROR: when loading file through script call

OktoberLove

Villager
Member
Joined
Feb 11, 2019
Messages
15
Reaction score
1
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
1,483
Reaction score
984
First Language
English
Primarily Uses
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

Villager
Member
Joined
Feb 11, 2019
Messages
15
Reaction score
1
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

Villager
Member
Joined
Feb 11, 2019
Messages
15
Reaction score
1
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
536
Reaction score
249
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

Villager
Member
Joined
Feb 11, 2019
Messages
15
Reaction score
1
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

Villager
Member
Joined
Feb 11, 2019
Messages
15
Reaction score
1
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

I like being a butt to people.
Dirtnap wrote on Tyler Warren's profile.
Hi Tyler,

My name is Sean, I am the owner of an indie studio, and I am looking to get some paid art work done. I am working with MV, but our programmer will be heavily modifying it.

If you are interested, or would like to hear more, I can provide my personal e-mail address.

S.G.
The stream will be live shortly with some more Witcher 3! Feel free to drop by~
Its Chinese new year today! Happy year of the rat~
just got back from the doctor about my back - 3 -)~ will know in a week or so's time how bad the problem is. Overall doing better though! not hurting so badly.

Forum statistics

Threads
93,596
Messages
913,813
Members
123,145
Latest member
Esogard
Top