Altering original script doesn't create change in prog behaviour??

Two examples of how my game's behaviour isn't changing when I alter the original script:

In Window_ActorCommand the original script is:

#--------------------------------------------------------------------------

  # * Get Window Width

  #--------------------------------------------------------------------------

  def window_width

    return 128

  end

 

but when I try changing 128 to any other number, the text box width remains the same.

 

Another example, in Window_BattleLog the original script is:

#--------------------------------------------------------------------------

  # * Get Message Speed

  #--------------------------------------------------------------------------

  def message_speed

    return 20

  end

 

but when I try make the text speed slower (by increasing 20 to 300 for instance!) the text speed remains the same.

 

 

Why is this happening?  Is there something overriding my changes?  I am also running Yanfly's BattleCommand script, and Yanfly's Menu Cursor script.  I remember that prior to inserting these custom scripts I was trying to alter the original script and the game's behaviour still wasn't changing.  I am definitely pressing the Apply button XD  

 

Thanks for any light you can shine on my problem!
Yes, most probably you have made your changes to the parent versions of those functions and they were later overwritten by a child class function or later scripts.

It's always the latest version of a function that gets executed, that's why script order is important.
Did you try if your changes work without the said scripts?
Also, when you modified the scripts you have to save your project explicitely before the changes become operative in the test battle mode.
Omg I want to scream.  Such a simple solution.

What fixed everything was explicitly saving the game prior to battle testing.  It's like a "My printer isn't working!"  "Uh.. does it have paper in it?" kind of thing lol  I guess I'm so used to the game saving automatically so often (when test moding) that it didn't even cross my mind that I wasn't saving the script before testing.

Hopefully this helps someone else out there one day though!

Thanks for your help everyone 🙂

Editted to add:  I thought clicking Apply would be enough to 'save' the changes!! Aw man... I feel so dumb haha

Original thread: https://forums.rpgmakerweb.com/threads/altering-original-script-doesnt-create-change-in-prog-behaviour.41545/