- Joined
- Aug 15, 2012
- Messages
- 1,535
- Reaction score
- 1,180
- First Language
- English
- Primarily Uses
- N/A
So wpuld this enable a support system like Fire Emblem?
hi! I've an small problem, I'm trying to do something like Dragon age, I mean, when you have X level of friendship with a partner an event starts....but when you talk with that partner.
I created a map where all actors (except the main actor) separates from the group and stay in X place form the map where you can talk with them.
I want to do, as I said, something like Dragon age, if you have X level with that partner and you talk with him the event starts, but it is starting automatically in the place where that actor rise the level. How can I do that? to start the event when I want?
Hay @Moogle_X, I've found the problem mentioned above. I'm not sure why this is only happening in 1.3.1 (and maybe 1.3.0) and not earlier versions of MV ... if you open up the task manager and watch performance, when you open the friendship window, memory and disk go through the roof almost immediately (this is with just one actor, no friendships set up), and eventually the game crashes or freezes.
This can be resolved by changing this:
Window_ActorsFriendship.prototype.setLeader = function(leader) {
this._leader = leader;
this.refresh();
};
to this:
Window_ActorsFriendship.prototype.setLeader = function(leader) {
if (this._leader !== leader) {
this._leader = leader;
this.refresh();
}
};
This way, you're not refreshing (building the list, recreating the window, redrawing everything) on every frame, but only when the selected leader is changed.
Hey @Moogle_X, I've found the problem mentioned above. I'm not sure why this is only happening in 1.3.1 (and maybe 1.3.0) and not earlier versions of MV ... if you open up the task manager and watch performance, when you open the friendship window, memory and disk go through the roof almost immediately (this is with just one actor, no friendships set up), and eventually the game crashes or freezes.
This can be resolved by changing this:
Window_ActorsFriendship.prototype.setLeader = function(leader) {
this._leader = leader;
this.refresh();
};
to this:
Window_ActorsFriendship.prototype.setLeader = function(leader) {
if (this._leader !== leader) {
this._leader = leader;
this.refresh();
}
};
This way, you're not refreshing (building the list, recreating the window, redrawing everything) on every frame, but only when the selected leader is changed.
Hey @Moogle_X, I've found the problem mentioned above. I'm not sure why this is only happening in 1.3.1 (and maybe 1.3.0) and not earlier versions of MV ... if you open up the task manager and watch performance, when you open the friendship window, memory and disk go through the roof almost immediately (this is with just one actor, no friendships set up), and eventually the game crashes or freezes.
This can be resolved by changing this:
Window_ActorsFriendship.prototype.setLeader = function(leader) {
this._leader = leader;
this.refresh();
};
to this:
Window_ActorsFriendship.prototype.setLeader = function(leader) {
if (this._leader !== leader) {
this._leader = leader;
this.refresh();
}
};
This way, you're not refreshing (building the list, recreating the window, redrawing everything) on every frame, but only when the selected leader is changed.
The plugin is updated to version 2.08.
I added the code snippet from Shaz to fix the memory leak issue.