CGMZ Crafting

casper667

Casper Gaming
Veteran
Joined
Mar 15, 2012
Messages
224
Reaction score
309
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
224
Reaction score
309
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
224
Reaction score
309
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
224
Reaction score
309
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
224
Reaction score
309
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.
 

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

Latest Threads

Latest Profile Posts

Tomorrow is Thanksgiving, and I'm so excited! I've been exploring MZ a little, and I just downloaded Effekseer to make new animations. I have experience in 3D animation software, so I'll be pretty good at the whole "particle" thing. My first game on MZ will be Fantasy Force--starring a griffin, a dragon, and a pegasus fighting against the Dragon of Darkness.
currently listening to Driftwood Gaming streaming some MZ dev time and it's delightful! had no idea they were this entertaining, love it
In quarantine, will be tested soon. This year is really something... special.
I was at another orientation yesterday and I realized I'll be working with an old friend! We met at the local water park a few years back and it was so nice to see her again! We had a chat, and next week when I officially start, I'll see if maybe we can trade our Zoom IDs so we can talk!
I made some sideview closets for MV!
You can find them in my MV resource thread.

Forum statistics

Threads
105,514
Messages
1,014,343
Members
137,198
Latest member
mmc1980
Top