VORPCORE / VORP-Hunting

Selling Animals & Skins script
GNU General Public License v3.0
6 stars 21 forks source link

ERROR WHILE SELLING AN ANIMAL. #31

Closed rmrsnpdr closed 2 years ago

rmrsnpdr commented 2 years ago

image

After updating the core and putting this update this happened.

AndrewR3K commented 2 years ago
  1. Which vorp_core are you using c# or Lua?
  2. Did you modify the config at all (animals, skinable, etc)?
rmrsnpdr commented 2 years ago

lua. only the animals.

AndrewR3K commented 2 years ago

Could you post what you updated? It could potentially be a misconfigured config

rmrsnpdr commented 2 years ago

Uhm wait I think I figured it out. Do I need to put all of the Config.Animals in Config.SkinnableAnimals ?

rmrsnpdr commented 2 years ago

Because before I just leave the Config.SmallAnimals blank.

AndrewR3K commented 2 years ago

No. But do keep in mind SkinnableAnimals is slightly different format (it has 1 extra option for display givenDisplay = {})

What do you mean by leaving it blanks.

Can you send what your config looks like?

rmrsnpdr commented 2 years ago
Config.SkinnableAnimals = {
    --small animals skin them and sell them at the butcher no need to add them to  CONFIG.ANIMALS
    [989669666]   = { name = "Rat", givenItem = { "meat" }, givenAmount = { 1 }, givenDisplay = {}, money = 100, gold = 0, rolPoints = 0, xp = 1 },
    [1458540991]  = { name = "Raccoon", givenItem = { "pelt" }, givenAmount = { 2 }, givenDisplay = {}, money = 100, gold = 0, rolPoints = 0, xp = 1 },
    [-1003616053] = { name = "Duck", givenItem = { "feathers" }, givenAmount = { 0 }, givenDisplay = {}, money = 100, gold = 0, rolPoints = 0, xp = 1 },

    -- big animals when you skin them it gives you items. if you have it added TO CONFIG.ANIMALS JUST COPY PASTE HERE AND REMOVE THE GIVE MONEY ETC LIKE SHOWN BELOW.
    [1110710183]  = { name = "Deer", givenItem = { "meat" }, givenAmount = { 0 }, givenDisplay = {}, money = 0, gold = 0, rolPoints = 0, xp = 1 },
    [-1124266369] = { name = "Bear", givenItem = { "bearHeart", "bearClaws" }, givenAmount = { 1, 3 }, givenDisplay = { "Heart", "Claw"}, money = 0, gold = 0, rolPoints = 0, xp = 1 },
}

-- Animals that are traded in to the butcher
Config.Animals = {
AndrewR3K commented 2 years ago

I guess better question. Does the notifyRight work for you with the DEFAULT config from this github? If so, then something you are changing is causing this issue.