Venka's Crafting Script Issues

I am trying to use Venka's crafting script but I can't seem to get it to work. Does anyone know exactly what I need to change in the database in order to get it working?
I have all the scripts and add ons plugged in but I don't know where to go from there. Some recipes I make will work fine when i call the specific craft scene but others will give a: 


script 'crafting script v3.8 line 544:nomethoderror occurred 


undefined method name for nil:nilclass


I've searched everywhere but can't figure out exactly what to alter in order to make it work for a new project.


Sorry about that. I thought someone might have some quick insight. The instructions claim it's tied into the demo database but doesn't mention how to change it for a new project. (At least nothing that I've seen.)


Source:




The only changes I made after I plugged in the scripts from the demo were to erase all the crafts and recipes and insert my own.


Image1: this is how i set up the calls in a common event for an item.


Images 2&3: this recipe represents the second choice in my event and is called with craft(1). This one works perfectly.


Images 4&5:These represent the third choice and are called with craft(2). As soon as I add that second recipe everything stops working and I get the above mentioned error.


I should also mention that when both recipes are combined under one craft it works fine as well.

Untitled.jpg

Untitled2.jpg

Untitled3.jpg

Untitled4.jpg

Untitled5.jpg
please link to the website where you got the script - we can't help you otherwise.


That said, it sounds as if you made a mistake configuring some recipes, and we'll need screenshots showing your configuration to find out why they don't work.


I've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
Your recipes use items from the database which are NOT set up by default.


These are items 17, 18, 19, 29, 30 and 31.


If your database got no such items set up (the current maximum limit is set to something lower - the default is 16 items), you will get that error.


Increase your database maximums, and it should fix your issue.


Also, do read the description on how to set up craft types and craft recipes. It might seem complicated at first, but once you get one right, the rest is mostly simply copy/paste job.
Your recipes use items from the database which are NOT set up by default.


These are items 17, 18, 19, 29, 30 and 31.


If your database got no such items set up (the current maximum limit is set to something lower - the default is 16 items), you will get that error.


Increase your database maximums, and it should fix your issue.


Also, do read the description on how to set up craft types and craft recipes. It might seem complicated at first, but once you get one right, the rest is mostly simply copy/paste job.





 

Thanks for the reply Sixth. Unfortunately, all the items in the recipes above are set up in my items database and my max limit is currently 60.


I've gone over the instructions for setting up craft types and recipes but I just can't pin down what is causing the error.
The error you get happens because it can't find an item from the database, and because there is no item, it can't have a name. 


This is the error you get (but it's on line 546 in an unedited script, at least in the demo).


Also, note that after you add any recipe/craft type, you must start a new game (so can't load a saved game), or else the game will crash.


Well, this is quite common with scripts, so you should always test them with a new game instead of loading a saved game.
The error you get happens because it can't find an item from the database, and because there is no item, it can't have a name. 


This is the error you get (but it's on line 546 in an unedited script, at least in the demo).


Also, note that after you add any recipe/craft type, you must start a new game (so can't load a saved game), or else the game will crash.


Well, this is quite common with scripts, so you should always test them with a new game instead of loading a saved game.





 

I started a new project and plugged in the scripts before i started working on my game and creating new craft types and recipes. Or do you mean that I have to input all the recipes I want first before doing anything and I can't create them as I continue working?
I imagine you have to input all the recipes before you start the game. Most crafting scripts save the recipe list at game start, and that cannot be changed on the fly without breaking save games.


Best way to handle this is put in the few recipes you know right now that you want, write the others down, and then when you decide to restart a playthrough (and trust me, you'll do that many times), add the next few recipes then.
I also have some issues with Venka's crafting script... It seems to ignore Levels..


If the required level is higher than our current level, the level color does change but the item can still be crafted... Which means the level system is completely useless..
Not really, it means you will need to read the description of that addon thoroughly (forgot how it's called, maybe "Difficulty Addon", or something similar).


It is not a strict level requirement, it just modifies the success chance of items crafted based on the difference between the required and current level.


If you want a direct level requirement setup which won't let the player craft any item which requires a higher level than the current one, you will need to change the sample settings to match that in the addon, or better yet, remove that addon, because the only purpose of that addon is to enable the crafting of higher leveled items with a penalty.
Yeah.. I just had to comment out the difficulty addon script. Thanks

Original thread: https://forums.rpgmakerweb.com/threads/venkas-crafting-script-issues.67020/