MoronYard

General => Help & Support => Topic started by: Fabio on August 06, 2015, 02:40:47 AM

Title: Crafting and uncrating is broken and some of my items moved around.
Post by: Fabio on August 06, 2015, 02:40:47 AM
I think some of my items just moved around.
I used a 100% lockpick booster and failed a lockpick.
(http://i.imgur.com/OAv8CTL.jpg)
I get a LUA error when opening the crafting menu.

Code: [Select]
[ERROR] addons/nondb-beta/lua/nondb/sh_store.lua:976: bad argument #1 to 'JSONToTable' (string expected, got nil)
  1. JSONToTable - [C]:-1
   2. IsTradable - addons/nondb-beta/lua/nondb/sh_store.lua:976
    3. ReloadCraftTable - addons/nondb-beta/lua/nondb/vgui/custom/menu_plugins/menu_crafting.lua:163
     4. ReloadItems - addons/nondb-beta/lua/nondb/vgui/custom/menu_plugins/menu_crafting.lua:107
      5. RefreshContent - addons/nondb-beta/lua/nondb/vgui/custom/menu_plugins/menu_crafting.lua:511
       6. OnMouseDown - addons/nondb-beta/lua/nondb/vgui/custom/menu.lua:401
        7. unknown - addons/nondb-beta/lua/nondb/vgui/custom/button.lua:204

Title: Re: Crafting and uncrating is broken and some of my items moved around.
Post by: Slycoops on August 06, 2015, 02:47:24 AM
When using a lockpick booster, you need to kill yourself and respawn, otherwise it won't take effect. The same applies to other booster packs.
Title: Re: Crafting and uncrating is broken and some of my items moved around.
Post by: Incindus on August 06, 2015, 10:16:51 PM
Plus, when using a booster that increases a stat by 100%, it basically means the chance for that stat to work is doubled, it doesn't mean that its guaranteed to work. Someone could have 100% rare find chance, but that doesn't mean there guaranteed rares from opening crates/chests.
Title: Re: Crafting and uncrating is broken and some of my items moved around.
Post by: Fabio on August 06, 2015, 10:25:09 PM
Plus, when using a booster that increases a stat by 100%, it basically means the chance for that stat to work is doubled, it doesn't mean that its guaranteed to work. Someone could have 100% rare find chance, but that doesn't mean there guaranteed rares from opening crates/chests.

50 + (50 * 100%) = 100%...
Title: Re: Crafting and uncrating is broken and some of my items moved around.
Post by: Stebbzor on August 06, 2015, 11:04:05 PM
It's not that simple...

Someone correct me if I'm wrong, but say an item has 2% chance to be found, with the booster pack it would be 4%
Title: Re: Crafting and uncrating is broken and some of my items moved around.
Post by: Fabio on August 06, 2015, 11:08:01 PM
Yeah, and I had a 50% chance of picking the lock.
Title: Re: Crafting and uncrating is broken and some of my items moved around.
Post by: nonSENSE on August 06, 2015, 11:15:57 PM
To reiterate what has been said a thousand times... Formula:

Code: [Select]
chance = baseChance / ((100 + attribute)/100)

Example:

Code: [Select]
Base chance to find a relic (example): 20% --> 5
Better chance to find a relic: 50% --> 50
Chance = 5 / ((100 + 50)/100) = 5 / 1,5 = 3,33 --> 30%