Sektor

Villager
Member
Joined
Dec 29, 2018
Messages
19
Reaction score
1
First Language
French
Primarily Uses
RMMV
Hi again,

Sorry for beeing such a noob in JS...

Recently I have random crashes when I start fights.
It seems to be the 'push' property who is undefined, I take the JS to find the lines were 'push' is defined but I don't find what cause the crashes...

Sometimes it doesn't crash at all and sometimes that happens directly in the first fight, it's so random that i can't find the cause...
Nether the same ennemy, nether the same map. I would really appreciate some support thanks.

Sans titre.png
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,124
Reaction score
1,576
First Language
Dutch
Primarily Uses
RMMV
are the YEP plugins in order? are the notetags correctly (no typo's)?
are the condition placed correctly?

if it's all correct, did you take a look at the sample project that comes with octobattle?
and see how its setup there? does the same thing happen?
 

Sektor

Villager
Member
Joined
Dec 29, 2018
Messages
19
Reaction score
1
First Language
French
Primarily Uses
RMMV
Hi thanks for your answer.

I litteraly take the octobattle sample project and create my game in this project. So it cannot be different.
I'll check that more in detail it's a first track
 

Sektor

Villager
Member
Joined
Dec 29, 2018
Messages
19
Reaction score
1
First Language
French
Primarily Uses
RMMV
well, I put the octobattle plug in, way in the botton and it's happenned once again.
 

Attachments

  • pluginlist.png
    pluginlist.png
    182.2 KB · Views: 15
Joined
Feb 17, 2018
Messages
147
Reaction score
579
First Language
English
Primarily Uses
RMMV
I think I see the problem. You have the separate plugins together with the all-in-one plugin (bottom). The redundancies are clashing.

Open up the help window on the bottom plugin and you'll see the plugins you need to take out from above.
 

Sektor

Villager
Member
Joined
Dec 29, 2018
Messages
19
Reaction score
1
First Language
French
Primarily Uses
RMMV
Hi, I'm back.

There's an issue to my problem.

Shadowdragon was totally right.

I have the all-in-one plugin but the function createNewSprites wasn't called on begin of battle.
So when my hero (who's fast and can have a chance to act twice per turn) attack twice, it create a new sprite in the otb who make this crash.

So to fix it I had to call in begin of battle the function createNewSprites();

Scene_Battle.prototype.createOTBDisplayWindow = function() {
this._otbDisplayWindow = new Window_OTBDisplay(this._helpWindow);
this.addWindow(this._otbDisplayWindow);
// fix
this._otbDisplayWindow.createNewSprites();

};

Now it's works very well.
thanks to you two.
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,933
Reaction score
4,845
First Language
EN, FR
Primarily Uses
RMMZ

I've moved this thread to Javascript/Plugin Support. Thank you.


@Sektor , please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.

 

phiny

Warper
Member
Joined
Feb 21, 2020
Messages
3
Reaction score
0
First Language
Korean
Primarily Uses
RMMV
Hi, I'm back.

There's an issue to my problem.

Shadowdragon was totally right.

I have the all-in-one plugin but the function createNewSprites wasn't called on begin of battle.
So when my hero (who's fast and can have a chance to act twice per turn) attack twice, it create a new sprite in the otb who make this crash.

So to fix it I had to call in begin of battle the function createNewSprites();

Scene_Battle.prototype.createOTBDisplayWindow = function() {
this._otbDisplayWindow = new Window_OTBDisplay(this._helpWindow);
this.addWindow(this._otbDisplayWindow);
// fix
this._otbDisplayWindow.createNewSprites();

};

Now it's works very well.
thanks to you two.


Sorry to ask you, but where do you put those script in?
I have the same problem and I want to solve it..
 

Sektor

Villager
Member
Joined
Dec 29, 2018
Messages
19
Reaction score
1
First Language
French
Primarily Uses
RMMV
Hi phiny,

i'm glad if i can help.

you need to find : Scene_Battle.prototype.createOTBDisplayWindow = function()

in the Olivia_OctoBattle.js, and replace ce function by my fix.

But it's not a fully fonctionnal solution, if you fix it like this in the first turn of your battle the littles sprites won't appear on the ATB, in current turn.

Now i know that the crash is caused by the chance of playing twice in a turn. My characters has 5% of playing another time, so when it trigger the ATB can't update the new sprite on the ATB and it crash.

I hope you can fix this bug, with my fix or with a better one. =)
 

phiny

Warper
Member
Joined
Feb 21, 2020
Messages
3
Reaction score
0
First Language
Korean
Primarily Uses
RMMV
Hi phiny,

i'm glad if i can help.

you need to find : Scene_Battle.prototype.createOTBDisplayWindow = function()

in the Olivia_OctoBattle.js, and replace ce function by my fix.

But it's not a fully fonctionnal solution, if you fix it like this in the first turn of your battle the littles sprites won't appear on the ATB, in current turn.

Now i know that the crash is caused by the chance of playing twice in a turn. My characters has 5% of playing another time, so when it trigger the ATB can't update the new sprite on the ATB and it crash.

I hope you can fix this bug, with my fix or with a better one. =)

uhm.. i guess the Olivia_OctoBattle.js is not Olivia_BattleSysOTB.js, which is what I have..

maybe I should get sampler project later.

anyway thank you so much for answering! :)
 

HumanNinjaToo

The Cheerful Pessimist
Veteran
Joined
Apr 18, 2013
Messages
1,226
Reaction score
607
First Language
English
Primarily Uses
RMMV
The OctoBattle is the complete set of plugins, whereas BattleSysOTB would be just one of the eight (I think) plugins that are included in the entirety of the OctoBattle.

I'm not 100% sure, but I think the quick fix that @Sektor is talking about should still be doable in the BattleSysOTB plugin as long as you find the right section @phiny
 

phiny

Warper
Member
Joined
Feb 21, 2020
Messages
3
Reaction score
0
First Language
Korean
Primarily Uses
RMMV
The OctoBattle is the complete set of plugins, whereas BattleSysOTB would be just one of the eight (I think) plugins that are included in the entirety of the OctoBattle.

I'm not 100% sure, but I think the quick fix that @Sektor is talking about should still be doable in the BattleSysOTB plugin as long as you find the right section @phiny

thanks for your answering!
I think I solved one, but then another came up like this,

Uncaught TypeError: Cannot read property 'setBattler' of null
at Scene_Battle.otbPostPartySwitch (Olivia_OctoBattle.js:8856)
at Scene_Battle.postPartySwitch (Olivia_OctoBattle.js:8850)
at Scene_Battle.processPartySwitching (YEP_X_ActorPartySwitch.js:598)


it occurs when I change my party member during battle :(
 

Latest Threads

Latest Posts

Latest Profile Posts

Friendly reminder: Make a back up of your project! ;3 I just did one and recognized I would have lost a week worth of work.
Why is there undo but not a redo like every other software in existence? :blink:
Chili: Evolved to taste spicy so no animal would eat them.

Humans: "Jokes on you ..."
I guess it becomes purely academic in less than four days but before then can anyone explain to me why the %^&*( animations in the MZ database don't have a 'Hue' slider??
Who here knows of the hidden laws of this multiverse? Such as the law of attraction

Forum statistics

Threads
113,711
Messages
1,076,834
Members
147,732
Latest member
JackyBoemu
Top