Removing passive skills from the combat menu.

No matter what, you need to get your scripts organised before you have any chance of solving the problem(s) you now have.


first, you should make sure that the naming of the slot shows not only you, but everyone helping you what you have installed there - for example shorten "Yanfly Engine Ace - Battle Engine..." to "Yanfly BE-..." or something like this.


And don't use make-up names like "no running" or so - for example you're clearly using one of the backtracer scripts from your console output, but I don't identify that script anywhere in your screenshots. And the order of scripts is also important, the backtracer should be the last script directly above main, directly below the snippet.
I don't know what a backtrack script is, but the 'no running' was just a snippet someone gave me to turn the dash ability on and off. I've shorten the names and took a pic of the no running snippet. Can someone list the order these go in?

shorten.PNG
Besides saying put it below materials and above Main the scripts really don't say anything else.



How could they say anything else?


There is no way to tell if another script will conflict with it unless that script is well-know by the author.


Usually script writers tell the users how to position their own scripts relative to other scripts written by themselves if there is a specific ordering needed.


Not many scripter will list ordering tips for scripts from other authors, mainly because they most probably don't know or don't care about those scripts.


Yanfly, particularly, tells you how to position his scripts relative to his other scripts (Andar posted the link to the correct order).


My snippet is certainly not the cause of the error you get.


You get it because col_max returns 0, but that is literally impossible with the default scripts, because that method returns a hard-coded number by default in all cases, and those are all above 0.


You certainly won't get more problems if you delete the scripts you inserted and start again. On the contrary, that should get rid of the error you get, unless you messed up the default scripts somehow.


The only thing the error report says that could trigger the error is Yanfly's Battle Engine script. So starting with that one would be a good idea.


I have a wild guess that you start a battle without any enemies (or all the enemies are dead right at the start), because that would certainly trigger the error you get when you start the battle with that script installed.
Well, I deleted all the other custom scripts.Tried each of the snippets. Now I just get a error or the battle keeps saying "Party was victorious." And can't leave the battle. and the enemies work fine in the game.
The backtracer script is what creates your console error message.


And what is the script "Window_DebugRight" in one of your first screenshots? If that is the backtracer, then most likely it's at the wrong position...


And did you start a new game after deleting or disabling the scripts? That error can be caused by loading a savefile that still contains script data.
I did save my old project under a new game after my hard drive crashed. As per  Archeia instructions.
I did save my old project under a new game after my hard drive crashed. As per  Archeia instructions.

you confused two different things here. I'm not talking about a new project, I'm talking about the button "new game" after you started the testplay.


When you start a testplay, you get to the title screen with the buttons "new game", "continue" and "shutdown".


ANY change in the scripts that adds or remove scripts and you MUST select "new game", and MUST NOT select "continue" - because continuing on an old savefile after changing the scripts has an 80% chance of creating exactly those error messages you have. There are other causes for those errors as well, and I suspect one of those other causes might be the case here - but that is exactly why you always have to test with "new game" instead of "continue", because only then you can be sure that the error you get is not caused by an incompatible savefile.
Well, I deleted all the other custom scripts.Tried each of the snippets. Now I just get a error or the battle keeps saying "Party was victorious." And can't leave the battle. and the enemies work fine in the game.



Saying "I just get an error" won't help anyone. What is the error you get now?


Guess why you get the victory message at the beginning...

I have a wild guess that you start a battle without any enemies (or all the enemies are dead right at the start) ...



Check your troops tab. Make sure to add at least 1 enemy for every troop setup.


If there is at least one of them in each troops, and you still get this issue without any custom scripts, better to start an entirely new project, because something is wrong with your default scripts (and no, this is not a guess, this is a fact at this point).

@Sixth by default, the skill types doesn't show as commands in battle, there just exists one skill comannd which shows all skills usable by the actor.



Just saw your edit.


Nop, all skill types the actor has as a feature are added as actor commands. This is the default behaviour of the engine. 

Spoiler
def add_skill_commands
@actor.added_skill_types.sort.each do |stype_id|
name = $data_system.skill_types[stype_id]
add_command(name, :skill, true, stype_id)
end
end


And what is the script "Window_DebugRight" in one of your first screenshots?



It is a default script. Nothing wrong with that, it is at the right place.
Yes. I always use new game when checking stuff. Actually I have it called Start Adventure. But it's more like Start Misadventure.


It's still the same error. Yes, there is at least one troop in each troop type. But I already put all the custom scripts back. I don't get it at the beginning. I get the 'Victorious' message at the end of battle. Over and over.
So, you get the "Divided by 0" error at the end of the battle? 


That is not possible without a badly written code from a custom script (there is no reason to refresh the enemy window when the battle ends, or my kittens forbid, constantly).


The enemy window is refreshed only when you start the selection of enemies, and that is not possible to do at the end of the battle.


About that looping victory message at the end...


That won't happen with the default scripts either, it's impossible.


It shouldn't happen even with the scripts you have now, although I don't know some of them, so I can't be sure.


Maybe it's time to share this project with us, so we could take a look at it directly.
It sounds like you either have a script that you added 2x (which would cause an error like what you mentioned), or you somehow accidentally messed up the default scripts while trying to add scripts and that is causing this problem. Either way, I have to agree with sixth there, we're going to have to see the project to have any shot at fixing this now I'm afraid.
I tried making a new game and copy/pasting all the default scripts that showed an error into my actual game.But didn't help.So don't think it's the default ones. So how do I post it here without getting "Failed to load actor data" message?
https://www.dropbox.com/s/36kgznlrr8gh1j4/RPG%20Maker%20VX%20Ace.lnk?dl=0 See if this works.
I tried making a new game and copy/pasting all the default scripts that showed an error into my actual game.But didn't help.So don't think it's the default ones. So how do I post it here without getting "Failed to load actor data" message?



"failed to load actor data" has absolutely nothing to do with your scripts or even this topic.


It means that one or more of your files have been damaged, please make a new topic to ask how to repair your project (and hope that not too much data has been destroyed or that you have a recent backup)


Tanarex, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
Never mind. I was able to fix it. I just made a new game.Copied the default 'scripts' section. Then deleted the old default script and pasted in the new one. I are smart. And I was making a joke about the 'failed to load actor data.' Now that I know what double posting is I'll try not to do it anymore.
... hmm...


It's not just possible to add remove skill with STATES effect ADD/REMOVE SKILL TYPE ?


As long it's not set in the data base at the begining, it will totaly disappear of the command


and not just become grey.


Because in my game I have MASTERY as skills, but I remove it for battles.


You create an invisible(no icone) state that you add to actor when you want to have it,


and remove it in troop's 1st page turn 0-0.


Sorry If I'm totaly missing the point

Original thread: https://forums.rpgmakerweb.com/threads/removing-passive-skills-from-the-combat-menu.72239/