Hello everyone! I have a complex issue that has something to do with Steam and an RMMZ plugin, I tried to ask ChatGPT for help, but it still cannot be solved up to now😔
EDIT: The problem is solved after finally making the console summonable again!:elwink: See also the replies if you have a similar question about how to manage the PH_Warehouse.js plugin.
Recently I've updated my game with a second language option on Steam. I made the different language versions in 2 different depots so the players can change the language option in Manage > Properties... and the game can be changed to another language with the same save files (which is a cool function for the players :3).
However, I just recalled that I've used PH_Warehouse.js, a plugin for storing items in warehouses, which was simply used with its basic functions as:
When I need to create the warehouse, I run the plugin command
When I need to open the warehouse later, I run the plugin command
This worked well when the game only got one language, but I found that if someone's loading a save file with
So whenever I tried loading an old save file with WarehouseVersionA in the game in LanguageVersionB, it pops out an error message as I attempt to open the warehouse. But rather than that, I cannot see more messages like the ones that should be seen in the console log. That's why I've tried many methods that ChatGPT suggested, but neither solves the problem nor knows where I should improve.👋
If someone would help me with it, I'd REALLY appreciate!
About the plugin PH_Warehouse.js, I'm using the PH Warehouse MZ version that was ported to MZ by @Arthran. More explanations and script calls can be seen in the original author's blog post.
Also, here's my latest edit of this plugin (trying to rename the warehouses when loading them from save files), which still does not work. It's in the section noted as "LOADING PROCESS" in the .js file. I'm pasting it here in case someone could see where the problem is:
Thanks~
EDIT: The problem is solved after finally making the console summonable again!:elwink: See also the replies if you have a similar question about how to manage the PH_Warehouse.js plugin.
Recently I've updated my game with a second language option on Steam. I made the different language versions in 2 different depots so the players can change the language option in Manage > Properties... and the game can be changed to another language with the same save files (which is a cool function for the players :3).
However, I just recalled that I've used PH_Warehouse.js, a plugin for storing items in warehouses, which was simply used with its basic functions as:
When I need to create the warehouse, I run the plugin command
PHWarehouse create <Warehouse Name>When I need to open the warehouse later, I run the plugin command
PHWarehouse show <Warehouse Name>This worked well when the game only got one language, but I found that if someone's loading a save file with
Warehouse Namethat was set in the old language, the game running in the new language cannot open the renamed version of the same warehouse. It seems like the plugin can only open the warehouses that were set in the same language version. (E.g., WarehouseVersionA can be opened in the game in LanguageVersionA, and WarehouseVersionB can be opened in the game in LanguageVersionB, but WarehouseVersionA cannot be opened in the game in LanguageVersionB.)So whenever I tried loading an old save file with WarehouseVersionA in the game in LanguageVersionB, it pops out an error message as I attempt to open the warehouse. But rather than that, I cannot see more messages like the ones that should be seen in the console log. That's why I've tried many methods that ChatGPT suggested, but neither solves the problem nor knows where I should improve.👋
If someone would help me with it, I'd REALLY appreciate!
About the plugin PH_Warehouse.js, I'm using the PH Warehouse MZ version that was ported to MZ by @Arthran. More explanations and script calls can be seen in the original author's blog post.
Also, here's my latest edit of this plugin (trying to rename the warehouses when loading them from save files), which still does not work. It's in the section noted as "LOADING PROCESS" in the .js file. I'm pasting it here in case someone could see where the problem is:
JavaScript:
/* Retrieve the warehouses from the save content */
var _DataManager_extractSaveContents_ = DataManager.extractSaveContents;
DataManager.extractSaveContents = function(contents) {
_DataManager_extractSaveContents_.call(this, contents);
PHPlugins.PHWarehouse = new PHWarehouseManager();
PHPlugins.PHWarehouse._warehouses = contents.phwarehouse;
// Rename process starts here
const renameTable = {
"WarehouseName1": "NewWarehouseName1",
"WarehouseName2": "NewWarehouseName2"
};
const newWarehouses = {};
for (const key in PHPlugins.PHWarehouse._warehouses) {
const warehouse = PHPlugins.PHWarehouse._warehouses[key];
const oldName = warehouse.name;
const newName = renameTable[oldName] || oldName;
warehouse.name = newName;
newWarehouses[key] = warehouse;
}
// Rename process ends here
PHPlugins.PHWarehouse._warehouses = newWarehouses;
PHPlugins.PHWarehouse.loadRules();
};
Thanks~