#CW-Crafting weapon not showing.

1 messages · Page 1 of 1 (latest)

crimson raft
#

Hi

I have setup a weapon table and 2 weapons to be crafted. When I use blueprint the weapons will not show.

["weapon_appistol"] = {
        label = "AP Pistol",
        toItems = {
            WEAPON_APPISTOL = 1,
        },
        materials = {
            ["metalscrap"] = 360,
        },
        category = 'Weapons',
        tables = {'gunss'},
        blueprint = 'Ap',
        metadata = {registered= false} -- If set, will write info/metadata on item
    },
#

and as you can see I have the blueprint in my inventory. Am I missing somehting here?

#

Not seeing any error but the debug tels me I have do not have access.

#

If I comment out blueprint it will show up.

dawn gyro
#

You need to use the blueprint

#

Or go to one of the teachers

#

If you did not change that

crimson raft
#

ok, thanks.

exports['cw-crafting']:giveRandomBlueprint(src, 5, 800)

Not sure when it comes to these numbers as readme and config says 2 difrent things.

#
`failChance` is a number between 1-1000 with the chance to fail. For example, if you set this to 900 it's a 90% chance you do NOT get the blueprint
#

this is from readme

#

-- rarity is 1-5, chance is 0.0-1.0 with lower numbers lowering chance of getting the item

#

this from config

dawn gyro
#

Chance got changed. Readme is correct

crimson raft
#

ok, thanks

dawn gyro
#

And to make it more complicated, rarity can be { min = x, max = y } also, if you like it to be in a span rather than just max thumbup

crimson raft
#
exports['cw-crafting']:giveRandomBlueprint(src, 5, 800)
#

so this would make it rare

dawn gyro
#

That would mean you got a 20% chance to get a tier 1 to 5 blueprint

crimson raft
#

ok, gotcha 🙂

crimson raft
#

any idea why I can not use the blueprint?

dawn gyro
crimson raft
#

Sorry for not explaining myselfe properly, using without blueprint is not the problem. But I would like to use them to make the additional step so making guns is not so easy.

["weapon_appistol"] = {
        label = "AP Pistol",
        toItems = {
            WEAPON_APPISTOL = 1,
        },
        materials = {
            ["metalscrap"] = 360,
        },
        category = 'Weapons',
        tables = {'gunss'},
        blueprint = 'Ap',
        metadata = {registered= false} -- If set, will write info/metadata on item
    },
dawn gyro
#

I don't understand what you are trying to do here.
The blueprints teach you recipes when used via a trainer, or if you disable trainers, can be used directly to learn the recipe.

crimson raft
#

I am at the trainer location but not beeing able to do the training

#

nothing happens when using target on him

dawn gyro
#

Did you try the other trainer?

crimson raft
#

yes

#

This stopped working after I updated to latest version

#

using version 1.69 on my live server and its working fine. Just wanted to update as the new UI looks awesome

dawn gyro
#

You sure you didn't mess upp the config then?

crimson raft
#

not getting any errors so do not thinks so

#

even if I remove the duds I can not craft weapon with blueprint.

dawn gyro
#

So if you remove the dudes, then use the blueprint from your inventory, you still can't craft the weapon at the "gunss" table?

crimson raft
#

corect

#

It says crafting when using them but the wepon does not show up on the table

dawn gyro
#

Can you verify if you have learnt the recipe?

#

you'll have to check your database

crimson raft
#

["Ap"]

#

says that in DB under crafting_blueprints

dawn gyro
#

Guessing, from that error you got there, that the script isn't showing it cause it cant find a label for that item

#

If you read the code it seems to be for the gun

#

If you restart the script, do you get any warnings on items?

crimson raft
dawn gyro
#

There you go

#

that's probably why it's not working thumbup

crimson raft
#
weapon_appistol = {
    unique = true,
    ammotype = 'AMMO_PISTOL',
    description = 'A small firearm designed to be held in one hand that is automatic',
    image = 'weapon_appistol.png',
    useable = false,
    weight = 1000,
    name = 'weapon_appistol',
    type = 'weapon',
    label = 'AP Pistol',
  },
#

this is from my items.lua

dawn gyro
#

yeah, exactly

crimson raft
#

ok, you see something I dont

dawn gyro
#

WEAPON_APPISTOL ≠ weapon_appistol

crimson raft
#

fuck me 😅

#

got blind looking at this

#

Sorry for disturbing you with this stupid thing

dawn gyro
#

Most people disturb me with stupid things PepeLaugh you're not the first