CGMZ Crafting

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
229
Reaction score
316
First Language
English
Primarily Uses
RMMZ
@TheGameAfter Make sure it is "Cooking" with a capital C if your profession name also has a capital C. Also just to make sure, but you are going into your inventory and "using" the recipe item before you load the scene?
 

TheGameAfter

I'm here to help and to learn!
Veteran
Joined
Apr 20, 2019
Messages
125
Reaction score
64
First Language
Hebrew
Primarily Uses
RMMV
@TheGameAfter Make sure it is "Cooking" with a capital C if your profession name also has a capital C. Also just to make sure, but you are going into your inventory and "using" the recipe item before you load the scene?
Yes, I did make sure to 'use' it (by the way it could be a point in the plugin info, took me some time to figure this out).

Ok so after a few checking about spelling/letters turn out the recipe I use was off in one letter, all works now, thank you so much for your help.

Edit: one more question: are there is a way to activate the recipe without the player clicking on it on the menu? for example by turning on a switch?

similar to the above in the 'Professions' plugin you add the 'level' option, what about activating/show it only when a switch is on?
 
Last edited:

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
229
Reaction score
316
First Language
English
Primarily Uses
RMMZ
@TheGameAfter Yes, use the plugin command
CGMVRecipes Discover RecipeName true/false

to discover recipes (MV version). MZ Version has its own plugin command as well for discovering recipes.

The same plugin command exists for professions as well.
 

TheGameAfter

I'm here to help and to learn!
Veteran
Joined
Apr 20, 2019
Messages
125
Reaction score
64
First Language
Hebrew
Primarily Uses
RMMV
@TheGameAfter Yes, use the plugin command
CGMVRecipes Discover RecipeName true/false

to discover recipes (MV version). MZ Version has its own plugin command as well for discovering recipes.

The same plugin command exists for professions as well.
Thanks, that will work. And as a suggestion, I think it still will be useful to have an option to connect each item recipe' to a specific 'switch' you can show on the menu when turning on.
 

TheGameAfter

I'm here to help and to learn!
Veteran
Joined
Apr 20, 2019
Messages
125
Reaction score
64
First Language
Hebrew
Primarily Uses
RMMV
Ok, I just try to use this plugin commend but it didn't work for some reason, the same receipt from above, is under the same professions name 'cooking'. any idea why it does not show the receipt when using this plugin commend?

sorry, wrong picture, one second, trying again, maybe is the 'c' again.

Edit: change it still no working, here:
Discover Recipt.PNG
 

AeroPergold

Veteran
Veteran
Joined
Feb 3, 2014
Messages
47
Reaction score
51
First Language
English
Primarily Uses
RMMZ
Can I suggest a Quality of Life feature?

Is it possible that on the list of recipes in the plugin menu to list the name of the recipe first? I've been using the plugin for a project and I find myself getting lost and I have to write down recipes I've completed adding on paper so I could keep track of what recipes I've added.
 

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
229
Reaction score
316
First Language
English
Primarily Uses
RMMZ
@AeroPergold Thanks for suggestion, plugin has been updated with this change.
 

Ophiucus Games

Ophiucus Games
Veteran
Joined
Nov 15, 2018
Messages
88
Reaction score
54
First Language
English
Primarily Uses
RMMZ
Is there any way to change the background of the scene?
I'm trying to do two things:
i) change the opacity of the three windows in the scene to 0 - so you can see through them
ii) add an image on top of the default map print

Have tried reverse engineering this from other plugins that allow you to change the window opacity but can't seem to get it working. Any tips would be appreciated!
 

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
229
Reaction score
316
First Language
English
Primarily Uses
RMMZ
@Ophiucus Games not easily in the parameters you can't. If you're comfortable changing the javascript, you can add the following code to each window's initialize function:
JavaScript:
this.setBackgroundType(2);
Note that this should only go in the window initialize functions (putting it in other class initialize functions will likely lead to error about "setBackgroundType" not existing)

To add your own background image instead of a blurred map background, you can add this anywhere in the plugin except for inside another function:
JavaScript:
//-----------------------------------------------------------------------------
// Add background image
//-----------------------------------------------------------------------------
CGMZ_Scene_Crafting.prototype.createBackground = function() {
    this._backgroundSprite = new Sprite();
    this._backgroundSprite.bitmap = ImageManager.loadPicture("BlueSky");
    this.addChild(this._backgroundSprite);
    this.setBackgroundOpacity(192); // remove this line if you don't want it to be slightly transparent
};
and just replace "BlueSky" with whatever image you want to use (located in the "Pictures" folder).
 

Ophiucus Games

Ophiucus Games
Veteran
Joined
Nov 15, 2018
Messages
88
Reaction score
54
First Language
English
Primarily Uses
RMMZ
Thats super helpful, thank you so much!
 

Ophiucus Games

Ophiucus Games
Veteran
Joined
Nov 15, 2018
Messages
88
Reaction score
54
First Language
English
Primarily Uses
RMMZ
So this is all working except the default map print isn't showing underneath the menu image, its just black. Am I doing something wrong?
EDIT: Played around with the code and changed to this which works
Code:
//-----------------------------------------------------------------------------
// Add background image
//-----------------------------------------------------------------------------
CGMZ_Scene_Crafting.prototype.createBackground = function() {
    this._backgroundFilter = new PIXI.filters.BlurFilter();
    this._backgroundSprite = new Sprite();
    this._backgroundSprite.bitmap = SceneManager.backgroundBitmap();
    this._backgroundSprite.filters = [this._backgroundFilter];
    this.addChild(this._backgroundSprite);
    this.setBackgroundOpacity(192);
    this._backgroundImage = new Sprite();
    this._backgroundImage.bitmap = ImageManager.loadPicture("MenuBook");
    this.addChild(this._backgroundImage);
//    this.setBackgroundOpacity(192); // remove this line if you don't want it to be slightly transparent
};
I was going to just use Scene_MenuBase.prototype.createBackground.call(this); - but that was causing issues due to VisuStella Core Engine and displaying the menu backgrounds defined in there.
 
Last edited:

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
229
Reaction score
316
First Language
English
Primarily Uses
RMMZ
Hi all, first major update for this plugin today includes the following features:

Version 1.1.0:
- Added ability to use gold as ingredient, tool, fail product, or product
- Added ability to increase success chance by equipment
- Added ability to increase success chance by profession level
- Added option to close crafting scene on profession level up
- Added option to use your own background image for the scene
- Added option to make the windows transparent

Please note that some of these changes required changing the plugin parameters, so existing saves might not be compatible without first calling the reinitialize plugin command and existing recipes may need to be updated in your plugin parameters before the plugin will work.

Demo is not yet updated with these features (though most should be easy enough without a demo). @Zaven @Ophiucus Games I am pinging you since some features in this update were requested by you earlier.
 

imnoto

Villager
Member
Joined
Nov 25, 2020
Messages
6
Reaction score
1
First Language
English
Primarily Uses
RMMZ
Suggestion
Is it possible to pull the description from the item screen?
That way if I want to later change what the item says or does I won't have to remember to go back and change it here too.
Maybe you could add a pretext variable "creates a " item description.
I think this may have been posted before but a current level of whatever profession would be nice to see there too.
Thanks for the great plugin.
 

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
229
Reaction score
316
First Language
English
Primarily Uses
RMMZ
@imnoto I am not entirely sure what you mean by pulling the description from the item screen? The crafting recipes are not based on items so there wouldn't be a description to pull from.
 

imnoto

Villager
Member
Joined
Nov 25, 2020
Messages
6
Reaction score
1
First Language
English
Primarily Uses
RMMZ
Maybe I'm confused. When you craft something it gives you the item you specified.
See attached image. So couldn't it pull the description for item 7 in my case and put that as the description in the craft window?
 

Attachments

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
229
Reaction score
316
First Language
English
Primarily Uses
RMMZ
@imnoto Well it could but what if the recipe only makes gold/currency and has no item/armor/wep? Or multiple items?
 

imnoto

Villager
Member
Joined
Nov 25, 2020
Messages
6
Reaction score
1
First Language
English
Primarily Uses
RMMZ
Good point hadn't thought that far ahead I guess.
Thanks for the reply.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_3 and People3_4 added!

does there exist a word for a state of being that is between "living" and (not "dead", but ...) "not living" .... does that make sense, or do I just sound like Im high for something :[ ?
Hope you are all fine today~
Moderators, you must have so much patience to be able to deal with everything. I mod in a server of sorts and today we just got a message, which, despite it's helpful constructive criticism, basically stated that all of the mods were jerks and that was the only reason our server was unlikeable. So, thank you, for having patience. You are appreciated! :kaoluv:

Forum statistics

Threads
105,744
Messages
1,016,064
Members
137,427
Latest member
olixproductions
Top