Scene won't run when called

So I finally decided to get off my ass and try writing my own plugins since I used to know my way around code back in high school programming classes. Anyway, here's an extension of PrimeHover's Warehouse plugin that I decided to write. It's pretty barebones, I just monkeyed off PH's Warehouse, it doesn't yet do what it's supposed to do, but for now my primary concern is getting the scene to run because I won't be able to test my actual codestuff if I can't even see the scene. I finally fixed all the bugs that appear in the console. But when I got rid of all of the bugs and called it again, nothing happened.

Here's what i think is the offending section:
Spoiler
Code:
  var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
    Game_Interpreter.prototype.pluginCommand = function(command, args) {
        _Game_Interpreter_pluginCommand.call(this, command, args);
        if (command === 'Maykeru') {
            switch (args[0]) {
                case 'ship':
                    Scene_ShipGoods.prototype.create;
                    SceneManager.push(Scene_ShipGoods);
                    break;
                
              
              
              
            }
        }
    };


Here's the entire code in case it helps:
Spoiler
Code:
//=============================================================================
// Maykeru_ShipGoods
// by Maykeru / jmike / Michael Marcos
// Start Date: 2 July 2017

//=============================================================================
 

/*:
 * @plugindesc Sells goods stored in a PH Warehouse   // Describe your plugin
 * @author Maykeru        // your name goes here
 *
 * @param xxxxx      //name of a parameter you want the user to edit
 * @desc yyyyy       //short description of the parameter
 * @default zzzzz    // set default value for the parameter

 */
 

(function() {
  var parameters = PluginManager.parameters('Maykeru_ShipGoods');
 
  var PHPlugins  = PHW.requirePlugins(false, 'PHWarehouse');
 
  var _shipGoods = Scene_MenuBase.prototype;
 
  var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
    Game_Interpreter.prototype.pluginCommand = function(command, args) {
        _Game_Interpreter_pluginCommand.call(this, command, args);
        if (command === 'Maykeru') {
            switch (args[0]) {
                case 'ship':
                    Scene_ShipGoods.prototype.create;
                    SceneManager.push(Scene_ShipGoods);
                    break;
                
              
              
              
            }
        }
    };
 
    /* ---------------------------------------------------------- *
     *                       WINDOW PROCESS                       *
     * ---------------------------------------------------------- */
  
    function Window_ShippingTitle() {
        this.initialize.apply(this, arguments);
    }
  
    Window_ShippingTitle.prototype = Object.create(Window_Base.prototype);
    Window_ShippingTitle.prototype.constructor = Window_ShippingTitle;

    Window_ShippingTitle.prototype.initialize = function() {
        Window_Base.prototype.initialize.call(this, 0, 0, Graphics.boxWidth, this.fittingHeight(1));
        this.refresh();
    };

    Window_ShippingTitle.prototype.refresh = function() {
        this.contents.clear();
        this.changeTextColor(this.crisisColor());
        this.drawText("Shipped Goods", 0, 0, Graphics.boxWidth, "center");
    };
 
    function Window_ShippingCategory() {
        this.initialize.apply(this, arguments);
    }
  
    Window_ShippingCategory.prototype = Object.create(Window_ItemCategory.prototype);
    Window_ShippingCategory.prototype.constructor = Window_ShippingCategory;

    Window_ShippingCategory.prototype.initialize = function() {
        Window_ItemCategory.prototype.initialize.call(this);
        this.y = this.fittingHeight(3);
        this.deselect();
        this.deactivate();
    };

    Window_ShippingCategory.prototype.changeCategory = function() {
        PHPlugins.PHWarehouse._lastCategory = this.currentSymbol() || "item";
    };

    Window_ShippingCategory.prototype.makeCommandList = function() {
        this.addCommand(TextManager.item, 'item');
    };

    Window_ShippingCategory.prototype.setItemWindow = function(itemWindow) {
        this._itemWindow = itemWindow;
        this.update();
    };

    Window_ShippingCategory.prototype.update = function() {
        Window_ItemCategory.prototype.update.call(this);
        this.changeCategory();
        this._itemWindow.refresh();
    };
  
    function Window_ShippingItemList() {
        this.initialize.apply(this, arguments);
    }
    Window_ShippingItemList.prototype = Object.create(Window_ItemList.prototype);
    Window_ShippingItemList.prototype.constructor = Window_ShippingItemList;

    Window_ShippingItemList.prototype.initialize = function() {
        Window_ItemList.prototype.initialize.call(this, 0, this.fittingHeight(5), Graphics.boxWidth, Graphics.boxHeight - this.fittingHeight(7));
    };

    Window_ShippingItemList.prototype.isCurrentItemEnabled = function() {
        if (this._data.length > 0) {
            if (PHPlugins.PHWarehouse._lastOption == 1 && PHPlugins.PHWarehouse.checkCapacity()) {
                return true;
            } else if (PHPlugins.PHWarehouse._lastOption == 0) {
                return true;
            } else {
                return false;
            }
        }
        return false;
    };

    Window_ShippingItemList.prototype.makeShippingItemList = function() {
        var data = PHPlugins.PHWarehouse.getItems();
        this._data = data.filter(function(item) {
            if (PHPlugins.Params.PHWarehouseAllTogether == true) {
                return this.includesWarehouseAll(item);
            } else {
                return this.includes(item);
            }
        }, this);
        if (this.includes(null)) {
            this._data.push(null);
        }
    };

    Window_ShippingItemList.prototype.includesWarehouseAll = function(item) {
        return ( (DataManager.isItem(item) && item.itypeId === 1) || (DataManager.isWeapon(item)) || (DataManager.isArmor(item)) || (DataManager.isItem(item) && item.itypeId === 2) );
    };

    Window_ShippingItemList.prototype.makeDepositAllItemList = function() {
        this._data = $gameParty.allItems();
    };

    Window_ShippingItemList.prototype.loadItems = function() {

            this.makeShippingItemList();
  

    };

    Window_ShippingItemList.prototype.drawItem = function(index) {
        var item = this._data[index];
        if (item) {
            var numberWidth = this.numberWidth();
            var rect = this.itemRect(index);
            rect.width -= this.textPadding();

            this.changePaintOpacity(PHPlugins.PHWarehouse.verifyItem(item));
            this.drawItemName(item, rect.x, rect.y, rect.width - numberWidth);

            if (PHPlugins.PHWarehouse._lastOption == 1) {
                this.drawItemNumber(item, rect.x, rect.y, rect.width);
            } else if (PHPlugins.PHWarehouse._lastOption == 0) {
                this.drawWarehouseItemNumber(item, rect.x, rect.y, rect.width);
            }

            this.changePaintOpacity(1);
        }
    };

    Window_ShippingItemList.prototype.drawWarehouseItemNumber = function(item, x, y, width) {
        var qtty = PHPlugins.PHWarehouse.getQuantity(item);
        if (typeof Yanfly !== "undefined") {
            this.contents.fontSize = Yanfly.Param.ItemQuantitySize;
            this.drawText('\u00d7' + qtty, x, y, width, 'right');
            this.resetFontSettings();
        } else {
            this.drawText(':', x, y, width - this.textWidth('00'), 'right');
            this.drawText(qtty, x, y, width, 'right');
        }
    };

    Window_ShippingItemList.prototype.refresh = function() {
        this.contents.clear();
        this.loadItems();
        this.drawAllItems();
    };


    Window_ShippingItemList.prototype.playOkSound = function() { };
 
    /* ---------------------------------------------------------- *
     *                        SCENE PROCESS                       *
     * ---------------------------------------------------------- */
  
    function Scene_ShipGoods() {
        this.initialize.apply(this, arguments);
    }
  
    Scene_ShipGoods.prototype = Object.create(Scene_MenuBase.prototype);
    Scene_ShipGoods.prototype.constructor = Scene_ShipGoods;
  
    Scene_ShipGoods.prototype.create = function() {
        Scene_MenuBase.prototype.create.call(this);

        this.createTitle();
        this.createCategory();
        this.createItemList();

    };
  
    Scene_ShipGoods.prototype.createTitle = function() {
        this._titleWindow = new Window_ShippingTitle();
        this.addWindow(this._titleWindow);
    };
  
    Scene_ShipGoods.prototype.createCategory = function() {
        this._categoryWindow = new Window_ShippingCategory();
        this._categoryWindow.setHandler('cancel', this.popScene.bind(this));
        this._categoryWindow.setHandler('ok', this.onCategoryOk.bind(this));
        this.addWindow(this._categoryWindow);
    };
  
    Scene_ShipGoods.prototype.createItemList = function() {
        this._itemWindow = new Window_ShippingItemList();
        this._itemWindow.setHandler('ok', this.onItemOk.bind(this));
        this._itemWindow.setHandler('cancel', this.onItemCancel.bind(this));
        this.addWindow(this._itemWindow);
        this._categoryWindow.setItemWindow(this._itemWindow);
    };
  
    Scene_ShipGoods.prototype.onCategoryOk = function() {
        this._itemWindow.activate();
        if (this._itemWindow._data.length > 0) {
            this._itemWindow.select(0);
        }
        this._categoryWindow.deactivate();
    };
  
    Scene_ShipGoods.prototype.onCategoryCancel = function() {
        this._categoryWindow.deselect();
    };

    Scene_ShipGoods.prototype.onItemCancel = function() {
        this._itemWindow.deselect();
        this._categoryWindow.activate();
    };
  
    Scene_ShipGoods.prototype.onItemOk = function() {
        this._itemWindow.activate();
    };
 
  
 
 
  })();

P.S. Don't mind yet what the code does, my concern for now is getting a window to show up
I don't think the prototype.create should be in there. I think that should be a part of the scene definition. Look at how some of the others are done and do it exactly the same.
I copy pasted how PH did it and rewrote the first case to match my function names:

Spoiler
Code:
/*
     * PLUGIN CALL
     */
  
     var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
    Game_Interpreter.prototype.pluginCommand = function(command, args) {
        _Game_Interpreter_pluginCommand.call(this, command, args);
        if (command === 'Maykeru') {
            switch (args[0]) {
                case 'ship':
                    ShipGoods.seller();
                    SceneManager.push(Scene_ShipGoods);
                    break;
                case 'show':
                    PHPlugins.PHWarehouse.openWarehouse(getAllArguments(args, 1));
                    SceneManager.push(Scene_Warehouse);
                    break;
                case 'remove':
                    PHPlugins.PHWarehouse.removeWarehouse(getAllArguments(args, 1));
                    break;
                case 'add':
                    switch (args[1]) {
                        case 'item':
                            PHPlugins.PHWarehouse.addItems(getAllArguments(args, 2), 'item');
                            break;
                        case 'weapon':
                            PHPlugins.PHWarehouse.addItems(getAllArguments(args, 2), 'weapon');
                            break;
                        case 'armor':
                            PHPlugins.PHWarehouse.addItems(getAllArguments(args, 2), 'armor');
                            break;
                        case 'keyItem':
                            PHPlugins.PHWarehouse.addItems(getAllArguments(args, 2), 'keyItem');
                            break;
                    }
                    break;
                case 'capacity':
                    switch (args[1]) {
                        case 'increase':
                            PHPlugins.PHWarehouse.increaseMaxCapacity(getAllArguments(args, 2));
                            break;
                        case 'decrease':
                            PHPlugins.PHWarehouse.decreaseMaxCapacity(getAllArguments(args, 2));
                            break;
                        case 'set':
                            PHPlugins.PHWarehouse.setMaxCapacity(getAllArguments(args, 2));
                            break;
                    }
                    break;
                case 'loot':
                    switch (args[1]) {
                        case 'item':
                            PHPlugins.PHWarehouse.addLoot(getAllArguments(args, 2), 'item');
                            break;
                        case 'weapon':
                            PHPlugins.PHWarehouse.addLoot(getAllArguments(args, 2), 'weapon');
                            break;
                        case 'armor':
                            PHPlugins.PHWarehouse.addLoot(getAllArguments(args, 2), 'armor');
                            break;
                        case 'keyItem':
                            PHPlugins.PHWarehouse.addLoot(getAllArguments(args, 2), 'keyItem');
                            break;
                    }
                    break;
            }
        }
    };

Still doesn't work.

I rewrote it from scratch, too, here's how the whole code looks like now.
Spoiler
Code:
//=============================================================================
// Maykeru_ShipGoods
// by Maykeru / jmike / Michael Marcos
// Start Date: 2 July 2017

//=============================================================================
 

/*:
 * @plugindesc Sells goods stored in a PH Warehouse
 * @author Maykeru     
 *
 * @param xxxxx      //name of a parameter you want the user to edit
 * @desc yyyyy       //short description of the parameter
 * @default zzzzz    // set default value for the parameter

 */
 

(function() {
    
  var parameters = PluginManager.parameters('Maykeru_ShipGoods');
 
  var PHWarehouseManager = PHW.requirePlugins(false, 'PHWarehouse');
 
 
//CODESTUFF

    function ShipGoods (){
      
      
      
    }
  
    ShipGoods.prototype.seller = function(){
      
        this.listAllItems();
      
    }
  
    ShipGoods.prototype.listAllItems = function(){
      
        var totalItems = this.listFarmingItems();
        totalItems = totalItems.concat(this.listFishingItems());
        totalItems = totalItems.concat(this.listForagingItems());
        totalItems = totalItems.concat(this.listLootItems());
        totalItems = totalItems.concat(this.listOtherItems());
        return totalItems;
      
    }
  
    ShipGoods.prototype.listFarmingItems = function() {
        var totalItems = [];
        for (var i = 0; i < PHWarehouseManager._warehouses["Shipping Container"].items.length; i++) {
            for (var j = 0; j < $dataItems.length; j++) {
                if ($dataItems[j] != null && PHWarehouseManager._warehouses["Shipping Container"].items.item[i] == $dataItems[j].id) {
                    if ($dataItems[j].meta.shipCat === 1){
                      
                    totalItems.push($dataItems[j]);
                  
                    }
                }
            }
        }
        return totalItems;
    };
  
    ShipGoods.prototype.listFishingItems = function() {
        var totalItems = [];
        for (var i = 0; i < PHWarehouseManager._warehouses["Shipping Container"].items.length; i++) {
            for (var j = 0; j < $dataItems.length; j++) {
                if ($dataItems[j] != null && PHWarehouseManager._warehouses["Shipping Container"].items.item[i] == $dataItems[j].id) {
                    if ($dataItems[j].meta.shipCat === 2){
                      
                    totalItems.push($dataItems[j]);
                  
                    }
                }
            }
        }
        return totalItems;
    };
  
    ShipGoods.prototype.listForagingItems = function() {
        var totalItems = [];
        for (var i = 0; i < PHWarehouseManager._warehouses["Shipping Container"].items.length; i++) {
            for (var j = 0; j < $dataItems.length; j++) {
                if ($dataItems[j] != null && PHWarehouseManager._warehouses["Shipping Container"].items.item[i] == $dataItems[j].id) {
                    if ($dataItems[j].meta.shipCat === 3){
                      
                    totalItems.push($dataItems[j]);
                  
                    }
                }
            }
        }
        return totalItems;
    };
  
    ShipGoods.prototype.listLootItems = function() {
        var totalItems = [];
      
        for (var i = 0; i < PHWarehouseManager._warehouses["Shipping Container"].items.length; i++) {
            for (var j = 0; j < $dataItems.length; j++) {
                if ($dataItems[j] != null && PHWarehouseManager._warehouses["Shipping Container"].items.item[i] == $dataItems[j].id) {
                    if ($dataItems[j].meta.shipCat === 4){
                      
                    totalItems.push($dataItems[j]);
                  
                    }
                }
            }
        }
        return totalItems;
    };
  
    ShipGoods.prototype.listOtherItems = function() {
        var totalItems = [];
      
        for (var i = 0; i < PHWarehouseManager._warehouses["Shipping Container"].items.length; i++) {
            for (var j = 0; j < $dataItems.length; j++) {
                if ($dataItems[j] != null && PHWarehouseManager._warehouses["Shipping Container"].items.item[i] == $dataItems[j].id) {
                    if ($dataItems[j].meta.shipCat === 5){
                      
                    totalItems.push($dataItems[j]);
                  
                    }
                }
            }
        }
      
        for (var i = 0; i < PHWarehouseManager._warehouses["Shipping Container"].items.length; i++) {
            for (var j = 0; j < $dataWeapons.length; j++) {
                if ($dataWeapons[j] != null && PHWarehouseManager._warehouses["Shipping Container"].items.weapon[i] == $dataWeapons[j].id) {
                    if ($dataWeapons[j].meta.shipCat === 5){
                      
                    totalItems.push($dataWeapons[j]);
                  
                    }
                }
            }
        }
      
        for (var i = 0; i < PHWarehouseManager._warehouses["Shipping Container"].items.length; i++) {
            for (var j = 0; j < $dataArmors.length; j++) {
                if ($dataArmors[j] != null && PHWarehouseManager._warehouses["Shipping Container"].items.armor[i] == $dataArmors[j].id) {
                    if ($dataArmors[j].meta.shipCat === 5){
                      
                    totalItems.push($dataArmors[j]);
                  
                    }
                }
            }
        }
      
        return totalItems;
    };
  
    /*
     * PLUGIN CALL
     */
  
     var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
    Game_Interpreter.prototype.pluginCommand = function(command, args) {
        _Game_Interpreter_pluginCommand.call(this, command, args);
        if (command === 'Maykeru') {
            switch (args[0]) {
                case 'ship':
                    ShipGoods.seller();
                    SceneManager.push(Scene_ShipGoods);
                    break;
                case 'show':
                    PHPlugins.PHWarehouse.openWarehouse(getAllArguments(args, 1));
                    SceneManager.push(Scene_Warehouse);
                    break;
                case 'remove':
                    PHPlugins.PHWarehouse.removeWarehouse(getAllArguments(args, 1));
                    break;
                case 'add':
                    switch (args[1]) {
                        case 'item':
                            PHPlugins.PHWarehouse.addItems(getAllArguments(args, 2), 'item');
                            break;
                        case 'weapon':
                            PHPlugins.PHWarehouse.addItems(getAllArguments(args, 2), 'weapon');
                            break;
                        case 'armor':
                            PHPlugins.PHWarehouse.addItems(getAllArguments(args, 2), 'armor');
                            break;
                        case 'keyItem':
                            PHPlugins.PHWarehouse.addItems(getAllArguments(args, 2), 'keyItem');
                            break;
                    }
                    break;
                case 'capacity':
                    switch (args[1]) {
                        case 'increase':
                            PHPlugins.PHWarehouse.increaseMaxCapacity(getAllArguments(args, 2));
                            break;
                        case 'decrease':
                            PHPlugins.PHWarehouse.decreaseMaxCapacity(getAllArguments(args, 2));
                            break;
                        case 'set':
                            PHPlugins.PHWarehouse.setMaxCapacity(getAllArguments(args, 2));
                            break;
                    }
                    break;
                case 'loot':
                    switch (args[1]) {
                        case 'item':
                            PHPlugins.PHWarehouse.addLoot(getAllArguments(args, 2), 'item');
                            break;
                        case 'weapon':
                            PHPlugins.PHWarehouse.addLoot(getAllArguments(args, 2), 'weapon');
                            break;
                        case 'armor':
                            PHPlugins.PHWarehouse.addLoot(getAllArguments(args, 2), 'armor');
                            break;
                        case 'keyItem':
                            PHPlugins.PHWarehouse.addLoot(getAllArguments(args, 2), 'keyItem');
                            break;
                    }
                    break;
            }
        }
    };
  
    /* ---------------------------------------------------------- *
     *                       WINDOW PROCESS                       *
     * ---------------------------------------------------------- */

    function Window_ShipGoodsTitle() {
        this.initialize.apply(this, arguments);
    }
  
    Window_ShipGoodsTitle.prototype = Object.create(Window_Base.prototype);
    Window_ShipGoodsTitle.prototype.constructor = Window_ShipGoodsTitle;

    Window_ShipGoodsTitle.prototype.initialize = function() {
        Window_Base.prototype.initialize.call(this, 0, 0, Graphics.boxWidth, this.fittingHeight(1));
        this.refresh();
    };

    Window_ShipGoodsTitle.prototype.refresh = function() {
        this.contents.clear();
        this.changeTextColor(this.crisisColor());
        this.drawText("Goods Shipped", 0, 0, Graphics.boxWidth, "center");
    };
  
  
    //////////EDIT THIS//////////////////////////////////////////////////
  
  
    function Window_ShipGoodsCategory() {
        this.initialize.apply(this, arguments);
    }
    Window_ShipGoodsCategory.prototype = Object.create(Window_ItemCategory.prototype);
    Window_ShipGoodsCategory.prototype.constructor = Window_ShipGoodsCategory;

    Window_ShipGoodsCategory.prototype.initialize = function() {
        Window_ItemCategory.prototype.initialize.call(this);
        this.y = this.fittingHeight(3);
        this.deselect();
        this.deactivate();
    };

    Window_ShipGoodsCategory.prototype.changeCategory = function() {
        PHPlugins.PHWarehouse._lastCategory = this.currentSymbol() || "item";
    };

    Window_ShipGoodsCategory.prototype.maxCols = function() {
        if (PHPlugins.Params.PHWarehouseAllTogether == true) {
            return 1;
        }
        var cols = 0;
        if (PHPlugins.PHWarehouse.isItemEnabled()) {
            cols++;
        }
        if (PHPlugins.PHWarehouse.isWeaponEnabled()) {
            cols++;
        }
        if (PHPlugins.PHWarehouse.isArmorEnabled()) {
            cols++;
        }
        if (PHPlugins.PHWarehouse.isKeyItemEnabled()) {
            cols++;
        }
        return cols;
    };

    Window_ShipGoodsCategory.prototype.makeCommandList = function() {
        /*if (PHPlugins.Params.PHWarehouseAllTogether == true) {
            this.addCommand(PHPlugins.Params.PHWarehouseAllText, 'all');
        } else {
            if (PHPlugins.PHWarehouse.isItemEnabled()) {
                this.addCommand(TextManager.item, 'item');
            }
            if (PHPlugins.PHWarehouse.isWeaponEnabled()) {
                this.addCommand(TextManager.weapon, 'weapon');
            }
            if (PHPlugins.PHWarehouse.isArmorEnabled()) {
                this.addCommand(TextManager.armor, 'armor');
            }
            if (PHPlugins.PHWarehouse.isKeyItemEnabled()) {
                this.addCommand(TextManager.keyItem, 'keyItem');
            }
        }*/
      
        this.addCommand("Farming");
        this.addCommand("Fishing");
        this.addCommand("Foraging");
        this.addCommand("Loot");
        this.addCommand("Others");
    };

    Window_ShipGoodsCategory.prototype.setItemWindow = function(itemWindow) {
        this._itemWindow = itemWindow;
        this.update();
    };

    Window_ShipGoodsCategory.prototype.update = function() {
        Window_ItemCategory.prototype.update.call(this);
        this.changeCategory();
        this._itemWindow.refresh();
    };



    function Window_ShipGoodsItemList() {
        this.initialize.apply(this, arguments);
    }
    Window_ShipGoodsItemList.prototype = Object.create(Window_ItemList.prototype);
    Window_ShipGoodsItemList.prototype.constructor = Window_ShipGoodsItemList;

    Window_ShipGoodsItemList.prototype.initialize = function() {
        Window_ItemList.prototype.initialize.call(this, 0, this.fittingHeight(5), Graphics.boxWidth, Graphics.boxHeight - this.fittingHeight(7));
    };

    Window_ShipGoodsItemList.prototype.isCurrentItemEnabled = function() {
        if (this._data.length > 0) {
            if (PHPlugins.PHWarehouse._lastOption == 1 && PHPlugins.PHWarehouse.checkCapacity()) {
                return true;
            } else if (PHPlugins.PHWarehouse._lastOption == 0) {
                return true;
            } else {
                return false;
            }
        }
        return false;
    };

    Window_ShipGoodsItemList.prototype.makeShipGoodsItemList = function() {
        var data = PHPlugins.PHWarehouse.getItems();
        this._data = data.filter(function(item) {
            if (PHPlugins.Params.PHWarehouseAllTogether == true) {
                return this.includesShipGoodsAll(item);
            } else {
                return this.includes(item);
            }
        }, this);
        if (this.includes(null)) {
            this._data.push(null);
        }
    };

    Window_ShipGoodsItemList.prototype.includesShipGoodsAll = function(item) {
        return ( (DataManager.isItem(item) && item.itypeId === 1) || (DataManager.isWeapon(item)) || (DataManager.isArmor(item)) || (DataManager.isItem(item) && item.itypeId === 2) );
    };

    Window_ShipGoodsItemList.prototype.makeDepositAllItemList = function() {
        this._data = $gameParty.allItems();
    };

    Window_ShipGoodsItemList.prototype.loadItems = function() {

        // Deposit
        if (PHPlugins.PHWarehouse._lastOption == 1) {
            if (PHPlugins.Params.PHWarehouseAllTogether == true) {
                this.makeDepositAllItemList();
            } else {
                this.makeItemList();
            }
        }

        // Withdraw
        else if (PHPlugins.PHWarehouse._lastOption == 0) {
            this.makeShipGoodsItemList();
        }

    };

    Window_ShipGoodsItemList.prototype.drawItem = function(index) {
        var item = this._data[index];
        if (item) {
            var numberWidth = this.numberWidth();
            var rect = this.itemRect(index);
            rect.width -= this.textPadding();

            this.changePaintOpacity(PHPlugins.PHWarehouse.verifyItem(item));
            this.drawItemName(item, rect.x, rect.y, rect.width - numberWidth);

            if (PHPlugins.PHWarehouse._lastOption == 1) {
                this.drawItemNumber(item, rect.x, rect.y, rect.width);
            } else if (PHPlugins.PHWarehouse._lastOption == 0) {
                this.drawShipGoodsItemNumber(item, rect.x, rect.y, rect.width);
            }

            this.changePaintOpacity(1);
        }
    };

    Window_ShipGoodsItemList.prototype.drawShipGoodsItemNumber = function(item, x, y, width) {
        var qtty = PHPlugins.PHWarehouse.getQuantity(item);
        if (typeof Yanfly !== "undefined") {
            this.contents.fontSize = Yanfly.Param.ItemQuantitySize;
            this.drawText('\u00d7' + qtty, x, y, width, 'right');
            this.resetFontSettings();
        } else {
            this.drawText(':', x, y, width - this.textWidth('00'), 'right');
            this.drawText(qtty, x, y, width, 'right');
        }
    };

    Window_ShipGoodsItemList.prototype.refresh = function() {
        this.contents.clear();
        this.loadItems();
        this.drawAllItems();
    };

    Window_ShipGoodsItemList.prototype.moveItem = function() {

        var item = this.item();

        // Deposit
        if (PHPlugins.PHWarehouse._lastOption == 1) {
            if (PHPlugins.PHWarehouse.checkCapacity() && PHPlugins.PHWarehouse.verifyItem(item)) {
                SoundManager.playEquip();
                PHPlugins.PHWarehouse.deposit(item);
                $gameParty.loseItem(item, 1);
            } else {
                SoundManager.playBuzzer();
            }
        }

        // Withdraw
        else if (PHPlugins.PHWarehouse._lastOption == 0) {
            if (PHPlugins.PHWarehouse.verifyItem(item)) {
                var numItems = $gameParty.numItems(item);
                $gameParty.gainItem(item, 1);
                if (numItems < $gameParty.numItems(item)) {
                    SoundManager.playEquip();
                    PHPlugins.PHWarehouse.withdraw(item);
                } else {
                    SoundManager.playBuzzer();
                }
            } else {
                SoundManager.playBuzzer();
            }
        }

    };

    Window_ShipGoodsItemList.prototype.playOkSound = function() { };



    function Window_ShipGoodsInfo() {
        this.initialize.apply(this, arguments);
    }
    Window_GoldInfo.prototype = Object.create(Window_Base.prototype);
    Window_GoldInfo.prototype.constructor = Window_GoldInfo;

    Window_GoldInfo.prototype.initialize = function() {
        Window_Base.prototype.initialize.call(this, 0, Graphics.boxHeight - this.fittingHeight(1), Graphics.boxWidth, this.fittingHeight(1));
        this.availableSpaceText = PHPlugins.Params.PHWarehouseAvailableSpaceText + " ";
        this.refresh();
    };

    Window_GoldInfo.prototype.refresh = function() {
        this.contents.clear();
        this.availableSpaceValue = (PHPlugins.PHWarehouse._warehouses[PHPlugins.PHWarehouse._lastActive].maxCapacity - PHPlugins.PHWarehouse.getCurrentCapacity(PHPlugins.PHWarehouse._lastActive)) + " / " + PHPlugins.PHWarehouse._warehouses[PHPlugins.PHWarehouse._lastActive].maxCapacity;
        this.changeTextColor(this.normalColor());
        this.drawText(this.availableSpaceText + this.availableSpaceValue, 0, 0, this.x);
    };
  
    ////////UNTIL THIS////////////////////////////////


    /* ---------------------------------------------------------- *
     *                        SCENE PROCESS                       *
     * ---------------------------------------------------------- */

    function Scene_ShipGoods() {
        this.initialize.apply(this, arguments);
    }
  
    Scene_ShipGoods.prototype = Object.create(Scene_MenuBase.prototype);
    Scene_ShipGoods.prototype.constructor = Scene_ShipGoods;

    Scene_ShipGoods.prototype.initialize = function() {
        Scene_MenuBase.prototype.initialize.call(this);
    };

    Scene_ShipGoods.prototype.create = function() {
        Scene_MenuBase.prototype.create.call(this);

        this.createTitle();
        this.createCategory();
        this.createItemList();
        this.createGoldInfo();

    };
  
    Scene_ShipGoods.prototype.createTitle = function() {
        this._titleWindow = new Window_ShipGoodsTitle();
        this.addWindow(this._titleWindow);
    };

    Scene_ShipGoods.prototype.createCategory = function() {
        this._categoryWindow = new Window_ShipGoodsCategory();
        this._categoryWindow.setHandler('cancel', this.popScene.bind(this));
        this._categoryWindow.setHandler('ok', this.onCategoryOk.bind(this));
        this.addWindow(this._categoryWindow);
    };

    Scene_ShipGoods.prototype.createItemList = function() {
        this._itemWindow = new Window_ShipGoodsItemList();
        this._itemWindow.setHandler('cancel', this.onItemCancel.bind(this));
        this.addWindow(this._itemWindow);
        this._categoryWindow.setItemWindow(this._itemWindow);
    };

    Scene_ShipGoods.prototype.createGoldInfo = function() {
        this._goldInfoWindow = new Window_GoldInfo();
        this.addWindow(this._goldInfoWindow);
    };

    Scene_ShipGoods.prototype.onCategoryOk = function() {
        this._itemWindow.activate();
        if (this._itemWindow._data.length > 0) {
            this._itemWindow.select(0);
        }
        this._categoryWindow.deactivate();
    };

    Scene_ShipGoods.prototype.onItemCancel = function() {
        this._itemWindow.deselect();
        this._categoryWindow.activate();
    };

 
  })();  // dont touch this.

Edit: I checked some other plugins and scenemanager.push is usually good enough to create a new scene. Is it possible it's how I'm handling a scene and not how I'm calling it is the problem?
I get an error on a bare projecting using PH_Warehouse 1.2.1 and your plugin.

ReferenceError: PHW is not defined

The PH_Warehouse plugin doesn't define PHW nor does it have a requirePlugins method. If PH_Warehouse has been modified from the original version to add these items then please post that code as well.
Oh wow I didn't think someone would go the extra mile for me. I edited the last line of PH_Warehouse to look like this:

})(PHW.requirePlugins(false, 'PHWarehouse'));

Can't post the whole code, too large to post, but that's the only edit, anyway.

It's my attempt to import(am I using the right term?) PH_Warehouse into my plugin so I can use its functions and properties. I imitated how Yanfly did it in his scripts when he writes an extension of another one. Am I doing it right?
I understand now. OK, so the programmer of PH_Warehouse doesn't have a requirePlugins feature so adding that code won't do anything.

Right now the only functions from PH_Warehouse that can be used in your plugin are listed under Script Commands in the help text for the plugin. The Script Calls section of the forum post for the plugin lists them as well.
Unrelated question to the original problem, but does that mean I can simply run .hasItem in my plugin without importing? Because now that I think of it, that just might be the only function I'm going to need. (Although how does one import properly anyway)
Yup, that's right! Simply write:

PHPlugins.PHWarehouse.hasItem("Title of the Warehouse", id)

There really isn't a proper way to import anything yet in JavaScript but that's kinda in the works. That's why programs create global objects for others to use.
Okay so I rewrote my whole code but I still can't seem to get the scene to run. Every time I run the plugin call, nothing simply happens. So I added some $gameMessage.add(""); lines to see if at which part does my code stop.

Spoiler
Code:
//=============================================================================
// Maykeru_ShipGoods
// by Maykeru / jmike / Adobo Pasta Games
// Start Date: 2 July 2017

//=============================================================================
 

/*:
 * @plugindesc Sells goods stored in a PH Warehouse
 * @author Maykeru
 *
 * @param xxxxx      //name of a parameter you want the user to edit
 * @desc yyyyy       //short description of the parameter
 * @default zzzzz    // set default value for the parameter

 */

var Maykeru = Maykeru || {};

(function() {
     
  var parameters = PluginManager.parameters('Maykeru_ShipGoods');

  function ShipGoods() {
     
      var itemListFarming = [];
      var qttyListFarming = [];
     
      var itemListForaging = [];
      var qttyListForaging = [];
     
      var itemListFishing = [];
      var qttyListFishing = [];
     
      var itemListLoot = [];
      var qttyListLoot = [];
     
      var itemListOthers = [];
      var qttyListOthers = [];
     
     
  };
 
  ShipGoods.prototype.seller(){
     
    $gameMessage.add("Test");
   
    ShipGoods.listFarming();
    ShipGoods.listForaging();
    ShipGoods.listFishing();
    ShipGoods.listLoot();
    ShipGoods.listOthers();
   
     
  };
 
  ShipGoods.prototype.listFarming(){
   
    var farmingItems = [];
   
    for (var i = 0; i <= farmingItems.length; i++){
   
    if (PHPlugins.PHWarehouse.prototype.hasItem("Shipping Container", i)){
       
        itemListFarming.push(i);
        qttyListFarming.push(PHPlugins.PHWarehouse.prototype.hasItem("Shipping Container", i));
       
    }
   
    }
   
  }
 
  ShipGoods.prototype.listForaging(){
   
    var foragingItems = [];
   
    for (var i = 0; i <= foragingItems.length; i++){
   
    if (PHPlugins.PHWarehouse.prototype.hasItem("Shipping Container", i)){
       
        itemListForaging.push(i);
        qttyListForaging.push(PHPlugins.PHWarehouse.prototype.hasItem("Shipping Container", i));
       
    }
   
    }
   
  }
 
  ShipGoods.prototype.listFishing(){
   
    var fishingItems = [];
   
    for (var i = 0; i <= fishingItems.length; i++){
   
    if (PHPlugins.PHWarehouse.prototype.hasItem("Shipping Container", i)){
       
        itemListFishing.push(i);
        qttyListFishing.push(PHPlugins.PHWarehouse.prototype.hasItem("Shipping Container", i));
       
    }
   
    }
   
  }
 
  ShipGoods.prototype.listLoot(){
   
    var lootItems = [];
   
    for (var i = 0; i <= lootItems.length; i++){
   
    if (PHPlugins.PHWarehouse.prototype.hasItem("Shipping Container", i)){
       
        itemListLoot.push(i);
        qttyListLoot.push(PHPlugins.PHWarehouse.prototype.hasItem("Shipping Container", i));
       
    }
   
    }
   
  }
 
  ShipGoods.prototype.listOthers(){
   
    var othersItems = [];
   
    for (var i = 0; i <= othersItems.length; i++){
   
    if (PHPlugins.PHWarehouse.prototype.hasItem("Shipping Container", i)){
       
        itemListOthers.push(i);
        qttyListOthers.push(PHPlugins.PHWarehouse.prototype.hasItem("Shipping Container", i));
       
    }
   
    }
   
  }
 
 //////////////////////////////////////////////////////////////////////////
 
    var _Game_Interpreter_pluginCommand = Game_Interpreter.prototype.pluginCommand;
    Game_Interpreter.prototype.pluginCommand = function(command, args) {
        _Game_Interpreter_pluginCommand.call(this, command, args);
        if (command === 'Maykeru') {
            switch (args[0]) {
                case 'ship':
                    $gameMessage.add("123");
                    Maykeru.ShipGoods.seller;
                    SceneManager.push(Scene_ShipGoods);
                    break;
                case 'show':
                    PHPlugins.PHWarehouse.openWarehouse(getAllArguments(args, 1));
                    SceneManager.push(Scene_Warehouse);
                    break;
                case 'remove':
                    PHPlugins.PHWarehouse.removeWarehouse(getAllArguments(args, 1));
                    break;
                case 'add':
                    switch (args[1]) {
                        case 'item':
                            PHPlugins.PHWarehouse.addItems(getAllArguments(args, 2), 'item');
                            break;
                        case 'weapon':
                            PHPlugins.PHWarehouse.addItems(getAllArguments(args, 2), 'weapon');
                            break;
                        case 'armor':
                            PHPlugins.PHWarehouse.addItems(getAllArguments(args, 2), 'armor');
                            break;
                        case 'keyItem':
                            PHPlugins.PHWarehouse.addItems(getAllArguments(args, 2), 'keyItem');
                            break;
                    }
                    break;
                case 'capacity':
                    switch (args[1]) {
                        case 'increase':
                            PHPlugins.PHWarehouse.increaseMaxCapacity(getAllArguments(args, 2));
                            break;
                        case 'decrease':
                            PHPlugins.PHWarehouse.decreaseMaxCapacity(getAllArguments(args, 2));
                            break;
                        case 'set':
                            PHPlugins.PHWarehouse.setMaxCapacity(getAllArguments(args, 2));
                            break;
                    }
                    break;
                case 'loot':
                    switch (args[1]) {
                        case 'item':
                            PHPlugins.PHWarehouse.addLoot(getAllArguments(args, 2), 'item');
                            break;
                        case 'weapon':
                            PHPlugins.PHWarehouse.addLoot(getAllArguments(args, 2), 'weapon');
                            break;
                        case 'armor':
                            PHPlugins.PHWarehouse.addLoot(getAllArguments(args, 2), 'armor');
                            break;
                        case 'keyItem':
                            PHPlugins.PHWarehouse.addLoot(getAllArguments(args, 2), 'keyItem');
                            break;
                    }
                    break;
            }
        }
    };
 
  /* ---------------------------------------------------------- *
     *                       WINDOW PROCESS                       *
     * ---------------------------------------------------------- */

    function Window_ShipTitle() {
        this.initialize.apply(this, arguments);
    }
    Window_ShipTitle.prototype = Object.create(Window_Base.prototype);
    Window_ShipTitle.prototype.constructor = Window_ShipTitle;

    Window_ShipTitle.prototype.initialize = function() {
        Window_Base.prototype.initialize.call(this, 0, 0, Graphics.boxWidth, this.fittingHeight(1));
        this.refresh();
    };

    Window_ShipTitle.prototype.refresh = function() {
        this.contents.clear();
        this.changeTextColor(this.crisisColor());
        this.drawText("Goods Shipped", 0, 0, Graphics.boxWidth, "center");
    };
   
    function Window_ShipCategory() {
        this.initialize.apply(this, arguments);
    }
    Window_ShipCategory.prototype = Object.create(Window_Base.prototype);
    Window_ShipCategory.prototype.constructor = Window_ShipCategory;
   
    Window_ShipCategory.prototype.initialize = function() {
        Window_Selectable.prototype.initialize.call(this, 0, 100, Graphics.boxWidth, this.fittingHeight(1));
        this.refresh();
        this.select(0);
        this.activate();
    };
   
    Window_ShipCategory.prototype.maxItems = function() {
        return 5;
    };

    Window_ShipCategory.prototype.maxCols = function() {
        return 1;
    };
   
    Window_ShipCategory.prototype.itemHeight = function() {
        return 200;
    };
   
    Window_ShipCategory.prototype.refresh = function() {
        this.contents.clear();

        this.drawText(Farming, 0, 200, Graphics.boxWidth, "left");
        this.drawText(Foraging, 0, 300, Graphics.boxWidth, "left");
        this.drawText(Fishing, 0, 400, Graphics.boxWidth, "left");
        this.drawText(Loot, 0, 500, Graphics.boxWidth, "left");
        this.drawText(Others, 0, 600, Graphics.boxWidth, "left");
   
       
    };
   
   
 
 
  /////////////////
  // SCENE PROCESSING
  ///////////////////
 
  function Scene_ShipGoods() {
        this.initialize.apply(this, arguments);
    }

    Scene_ShipGoods.prototype = Object.create(Scene_MenuBase.prototype);
    Scene_ShipGoods.prototype.constructor = Scene_ShipGoods;

    Scene_ShipGoods.prototype.initialize = function() {
        Scene_MenuBase.prototype.initialize.call(this);
    };

    Scene_ShipGoods.prototype.create = function() {
        Scene_MenuBase.prototype.create.call(this);

        this.createShipTitle();
        this.createShipCategory();
        this.createShipItemList();
        this.createGoldWindow();

    };
   
    Scene_Warehouse.prototype.createShipTitle = function() {
        this._shipTitleWindow = new Window_ShipTitle();
        this.addWindow(this._shipTitleWindow);
    };
   
    Scene_Warehouse.prototype.createShipCategory = function() {
        this._shipCategoryWindow = new Window_ShipCategory();
        this.addWindow(this._shipCategoryWindow);
    };
   
    Scene_Warehouse.prototype.createShipItemList = function() {
        this._shipItemList = new Window_ShipItemList();
        this.addWindow(this._shipItemList);
    };
   
    Scene_Warehouse.prototype.createGoldWindow = function() {
        this._goldWindow = new Window_GoldWindow();
        this.addWindow(this._goldWindow);
    };
 
 
  })();  // dont touch this.

Thing is, not a single message shows up. Not the "123" after the plugin call nor the "Test" inside the function.

upload_2017-7-8_0-23-3.png


This is how my event looks. The chest opens but nothing runs. The test messages don't show up. What did I write wrong?

EDIT: Not all the windows have been written yet, I know. But shouldn't the game at least throw an error that a window is missing? Or run but not show the missing windows?
There is an error message but it's only visible in the console. The code below is incorrect.
Code:
ShipGoods.prototype.seller(){
  
        $gameMessage.add("Test");

        ShipGoods.listFarming();
        ShipGoods.listForaging();
        ShipGoods.listFishing();
        ShipGoods.listLoot();
        ShipGoods.listOthers();


    };
Here's the fixed version.
Code:
ShipGoods.prototype.seller = function () {
    $gameMessage.add("Test");

    ShipGoods.listFarming();
    ShipGoods.listForaging();
    ShipGoods.listFishing();
    ShipGoods.listLoot();
    ShipGoods.listOthers();
};
There are multiple instances of the problem in the code.

What programming editor are you using? Something like Visual Studio Code would have flagged those issues.
I feel so silly now. Thank you! Got my scenes and windows to run at last. I'm using lowly notepad++ haha
Visual Studio Code is free, so if you want to get it I'd honestly recommend it. Makes coding a lot easier.
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/scene-wont-run-when-called.80646/