Yanfly compatibility error: TP manager and skill restriction scripts

Hello everyone.

I'm using Yanfly's TP manager script (https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/tp-manager/). This has, up to this point, worked flawlessly.

I've also just installed the skill restrictions script (https://yanflychannel.wordpress.com/rmvxa/gameplay-scripts/skill-restrictions/#comment-51992) so that I can activate and deactivate skills by using switches. Again, no problems with that functionality.

However there is a compatibility issue between the two. The TP manager creates a 'TP mode' screen in the skills menu where you can select the way a character acquires TP (similar to Final Fantasy X). With both scripts installed, simply hovering over the option crashes the game and brings up the attached error message (screenshot attached). This has been confirmed by putting the two unmodified scripts into a blank project, from which the screenshots have been generated.

Judging by the line number, this is the section of the skill restrictions code that is causing the problem (attached), but if there's one thing I know it will be something to do with the way the two scripts interact. I'm afraid this is beyond the reaches of my expertise so I was wondering if any of you fine people would be able to tell me what the issue is and perhaps be able to see a solution.

I am surprised to find a fault in the otherwise unimpeachable Yanfly's work. Reading the comments in the skill restriction script page, someone else reported the same fault, only to receive a glib brush-off. That was 8 years ago. I've asked the same question there, but my hopes are feint.

I don't want to lose the functionality of either script if I can help it so any help would be gratefully and creditably received.
Yanfly scripts do have a spefic order they are supposed to go in.
detailed here https://yanflychannel.wordpress.com/rmvxa/

Put the tp manager below skill restrictions
Oh surely not!

Yup... that fixed it. I can't tell whether I'm annoyed or relieved at the simplicity of that.

Anyway. Thank you very much for your speedy help.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-compatibility-error-tp-manager-and-skill-restriction-scripts.132922/