MV help with an SRD Timed Attack Core error

I'm using the SRD plugins to make each weapon in the game have a different minegame when using them in battle,
but for some reason when I change the plugin parameters so that the minegames are linked to the weapons this error occurs

1728915539680.png

1728916235505.png

Does anyone know how to resolve this?
I'm using the following plugins, all from SRD

1728915656219.png

1728917300174.png

1728917351129.png
When you get an error, you need to press F8, go to the Console tab, and provide a screenshot of the full error trace.

We can't help just based on that generic message.

You should also show screenshots of how the weapon is set up.
When you get an error, you need to press F8, go to the Console tab, and provide a screenshot of the full error trace.

We can't help just based on that generic message.

You should also show screenshots of how the weapon is set up.


oh ok sorry, I added the prints you requested in the post
oh ok sorry, I added the prints you requested in the post
Some of the error trace is visible at the bottom, but that's not the Console tab.

1728923666288.png


The error is saying the timed attack notetag doesn't have a type (the circle part). Are you sure there's no notetag on the skill you're using?

Aside from that, I don't know. Have you started with a new playtest, not loading a save game, since the last time you made any changes?
Some of the error trace is visible at the bottom, but that's not the Console tab.

View attachment 320449

The error is saying the timed attack notetag doesn't have a type (the circle part). Are you sure there's no notetag on the skill you're using?

Aside from that, I don't know. Have you started with a new playtest, not loading a save game, since the last time you made any changes?
the error is the same as what appears at the bottom of the print

ypeError: Cannot read property 'type' of undefined
at Function.BattleManager.updateAction (SRD_TimedAttackCore.js:535)
at Function.BattleManager.update (rpg_managers.js:2253)
at Scene_Battle.updateBattleProcess (rpg_scenes.js:2265)
at Scene_Battle.update (rpg_scenes.js:2257)
at Function.SceneManager.updateScene (rpg_managers.js:2024)
at Function.SceneManager.updateMain (rpg_managers.js:1983)
at Function.SceneManager.update (rpg_managers.js:1907)

I just checked the notetags and everything is correct
Sorry, I misspoke - it's not saying the type is missing, it's saying the action doesn't have timed attack data attached to it at all.

Looks like you'd have to edit line 535 to start with
Code:
if(this._action.item().meta["SRD TAS"] && this._action.item().meta["SRD TAS"].type === "actor"

Then similarly on 544
Code:
} else if(this._action.item().meta["SRD TAS"] && this._action.item().meta["SRD TAS"].type === "class"

and line 553
Code:
} else if(this._action.item().meta["SRD TAS"] && this._action.item().meta["SRD TAS"].type === "weapon"
Sorry, I misspoke - it's not saying the type is missing, it's saying the action doesn't have timed attack data attached to it at all.

Looks like you'd have to edit line 535 to start with
Code:
if(this._action.item().meta["SRD TAS"] && this._action.item().meta["SRD TAS"].type === "actor"

Then similarly on 544
Code:
} else if(this._action.item().meta["SRD TAS"] && this._action.item().meta["SRD TAS"].type === "class"

and line 553
Code:
} else if(this._action.item().meta["SRD TAS"] && this._action.item().meta["SRD TAS"].type === "weapon"

Ah I understand, but where should I put this data? because apparently putting them in the skill notes isn't working with weapons...I tried putting it everywhere possible to type something on the blade of a sword, but that doesn't seem to work either.
I told you which lines in the plugin to edit. You need to open it up in a text editor and change the code.
I told you which lines in the plugin to edit. You need to open it up in a text editor and change the code.

Oh yes, I saw it later, sorry. But I haven't been able to test it yet because with the changes in the lines it seems that it stops recognizing the plugin or something like that.

1728926644081.png
1728926668557.png



Even though it is activated, it still asks to put it on
Looks like you did not edit the lines correctly, causing a syntax error in the code so the plugin isn't being loaded at all.

Don't change anything after what I showed. So, for example, line 535 starts with
Code:
if(this._action.item().meta["SRD TAS"].type === "actor"
and you would change that to
Code:
if(this._action.item().meta["SRD TAS"] && this._action.item().meta["SRD TAS"].type === "actor"
and not change anything else on the rest of the line.
Looks like you did not edit the lines correctly, causing a syntax error in the code so the plugin isn't being loaded at all.

Don't change anything after what I showed. So, for example, line 535 starts with
Code:
if(this._action.item().meta["SRD TAS"].type === "actor"
and you would change that to
Code:
if(this._action.item().meta["SRD TAS"] && this._action.item().meta["SRD TAS"].type === "actor"
and not change anything else on the rest of the line.

thank you! But I think I ended up doing something wrong, the same error continues, I think I didn't understand exactly what you said about the lines, what would be the correct shape of the other 2 lines?
The exact same format that I just showed you above.

The only thing that's being done is inserting this._action.item().meta["SRD TAS"] && after the open parenthesis...it shouldn't be difficult to see where the rest of it is the same.
The exact same format that I just showed you above.

The only thing that's being done is inserting this._action.item().meta["SRD TAS"] && after the open parenthesis...it shouldn't be difficult to see where the rest of it is the same.

my God! it worked! Thank you very much ATT_Turan! And sorry for taking up so much of your time with this, thank you very much

Original thread: https://forums.rpgmakerweb.com/threads/help-with-an-srd-timed-attack-core-error.172585/