Galv's Simple Crops + Galv's Tools = Farming

Please check the tool plugin documentation. The script call is:
Galv.TOOLS.needRefresh = true;
Ah, thanks. Don't know how I missed that
Can I make a condition before update that the crop will only grow if it is watered? And then remove the growing bonus for the water system?
Please check the tool plugin documentation. The script call is:
Galv.TOOLS.needRefresh = true;
Where can I change the growth rate? I want it to take more time to grow.
Very nice job.
Maybe I'm doing something wrong here, but I've tried Galv.TOOLS.equipTool(id); with both the item ID and the event that gets called. In both cases the tool is not equipped; I need to press one of the shoulder buttons to "cycle" to the one tool available before I can use it.

EDIT: I've gotten around it by using this instead
$gameSystem._tools.selected = 451;
Where 451 is the item ID of my tool.
* Galv.TOOLS.equipTool(id); // manually equip tool item to player.
* // this won't do anything if the player
* // does not actually have the tool item

Using your workaround you have equipped a tool that the player does not have in their inventory.
They do have it in their inventory, though. Hitting the shoulder buttons to cycle tools selects and equips it.
It's just not equipped until you try to cycle and using the built-in method doesn't seem to equip it.

It has been set as a "key item". But I can't imagine that'd affect it. It's still in the same array of items.
Hmm, sounds like a bug! I'll have to add to my list to investigate.
Can you tell me how you add the tool item? Using the normal event command? It appears it hasn't refreshed the tool list for you.
It does not work. I replicated yours 150%!!! It doesn't function! I'm using tons of Yanfly plugins, I've tried everything with porting your system to my NEW game, it doesn't work.

Variables replaced and all, doesn't budge.
I have the latest version of MV and I tried the demo of this. While the crops function works, the tools do not seem to. When I open the chest and obtain the tools, they're not added to the corner image. And nothing happens when I press the switch or tool keys.
I don't know why I have such a problem when I use this plug-in to test a new project. I don't know where the problem is. There's no problem with previous projects, and there's no problem with your demonstration
QQ图片20210724173658.png
It was stupid of me to forget to add < crop > in the event comment, which led to the test error 😔
any advise for making using these but adding seasons
This is amazing. I'll have to definitely fool around with it
Every lighting plugin I tried to use with this plugin caused it to crash when using Galv.CROPS.update(); but I found a workaround that you would put in place of that script any time it's used.

for (var e of $gameMap.events()) { if (e.event().meta['crop'] === true) { e.updateCrop(); } }
It should function exactly the same but avoid the crash caused by lighting plugins. Javascript isn't my programming language so if anyone has a way to refine that to be more efficient please tell.
Anybody figure out how to stop the player from watering an unplanted crop?
hi , i have a problem that when i harvest i want my plot to return to the picture unwatered ,when i harvest the plot still water i don't want that ,can you help me ?
By default, when calling Galv.CROPS.update(); this script only updates Crops on the map the player is currently on.

If your farm is restricted to a single map, you can add in the following code so you can have a Common Event that updates the Crops on that map, regardless of were the player is when that event triggers.
JavaScript:
Galv.CROPS.updateCropsOnMap = function(mapId) {
        Galv.CROPS.update(mapId);
};

Instead of calling
Code:
Galv.CROPS.update();
call
Code:
Galv.CROPS.updateCropsOnMap(ID);
to update your crops on your farm map.

In the screenshot attached, I'm using the DK_GameTime plugin to control Switches; when the Morning switch is thrown on, the Common Event updates the Grow variable, then runs the modified Crop Update, and finally has the event wait for 6 game hours (again using DK_GameTime) before it tries to run again (by which time the Morning switch is Off)
If your farm is restricted to a single map, you can add in the following code so you can have a Common Event that updates the Crops on that map, regardless of were the player is when that event triggers.
I don't see how the code you provided would do what you describe.

Galv.CROP.update() references $gameMap.events() (that is, the events on the current map) regardless of whether you add a second layer to call that function or not.

The code you added does absolutely nothing different than directly calling Galv.CROP.update(mapID), which, in turn, does nothing different than just calling Galv.CROP.update() without the ID.

Original thread: https://forums.rpgmakerweb.com/threads/galvs-simple-crops-galvs-tools-farming.72280/