ReferenceError: Game_Action is not defined

Hi, I have a big problem, I tried to edit for first time the code to change some things (max tp and tp gain at start of battle) and now if I try to open the game this error shows up. Here is the what the console tells me:

EDIT: I failed trying to upload the file and now I don't know how to delet the failed attempts lol


v7wlr8.png

9


es.tinypic.com

9
some images are broken, its best to upload directly on the post.
Are your plugin even in order? as showend here from top to bottom?
did you edit the plugins? if so, errors can occure, you can best allias the plugin command
and put it below the one you edit to avoid errors.
I think I have them in order because before i edited the code the game ran without errors. Although I added SkillCore when i edited the code and i added it at the bottom of the list, maybe that caused the error? But I eliminated it to see if it could solve it but it didn't, the game continued crashing.

This is how it looks like right now:
I would strongly recommend that you do not edit the base code or existing plugins, even if you are very confident in doing so. Instead, consider defining overrides in a separate file: save the file with .js extension (Save As > File Type: All Files, Filename: whatever.js) and import it like a plugin. E.g. in this case (max TP & TP at battle start):
Code:
Game_BattlerBase.prototype.maxTp = function() {
    return 100;
};

Game_Battler.prototype.initTp = function() {
    this.setTp(Math.randomInt(25));
};
Just edit the values then save and import as mentioned. This will redefine just these two methods, and keep all your overrides in one place for easy reference and debugging. 😮‍💨

Hopefully you've made a backup of the original rpg_objects.js file; if not, you can make a temporary new project and copy the default version from there. 🙂

If you want us to help debug your code, you'll need to show your code.
Thank you a lot, that helps so much! I will do this from now.
The thread can be closed now I suppose.
@Kryss no, your plugins are NOT in the correct order. Even if you have not yet encountered errors caused by the wrong order I strongly suggest you fix that before continuing.
yanfly's plugins have to be exacly in the order as given in the list on yanfly.moe
@Kryss you also miss the YEP_EngineCore which is mostly required for most of his plugin to run correctly.
The problem was said in the first line of the console.
unexpected token ) inside rpg_objects.js. Which means the script won't get compiled and every object inside it hence doesn't get defined.
Either way it means you've made a typo in your code edits, probably in brackets.
Oh so it seems I'm not doing it right with puglins, I will install the engine core and put them in order so. Thank you a lot for the help ^^

Original thread: https://forums.rpgmakerweb.com/threads/referenceerror-game_action-is-not-defined.110338/