Jump to content

[41.65] Distribution/ProcDistribution missmatch for plankstash


lorgalis

Recommended Posts

Version 41.65

 Working with Distribution.lua / ProcedualDistribution for Hydrocraft update

Base Configuration

 

media/lua/server/items/Distributions.lua l.560 - 566 refers to PlankStashWeapon

        plankstash = {
            procedural = true,
            procList = {
                {name="PlankStashMoney", min=0, max=99, weightChance=100},
                {name="PlankStashWeapon", min=0, max=99, weightChance=100},
            }
        },

while  media/lua/server/items/ProceduralDistributions.lua does not contain this procedure (PlankStashWeapon ).

ProceduralDistributions.lua contains "PlankStashGun" which is not used in Distributions.lua

 

I couldn't observe this ingame, and are not sure what will be the outcome, but my update functions stumbled on it.

 

Kind regards

   lorgalis

Link to comment
Share on other sites

Acually it turned out that there are more missmatches that I had to exclude:  See best guess in lua comment

   if
-- BakeryDoughnuts
      v3["name"] ~= "BakeryDonuts"               and
-- ??????
      v3["name"] ~= "BookstoreTailoring"         and
-- CafeteriaFruit
      v3["name"] ~= "CaferteriaFruit"            and
-- CrateCompactDiscs
      v3["name"] ~= "CrateCompactDisks"          and
-- CratePaperNapkins
      v3["name"] ~= "CrateNapkins"               and
-- CrateSandBags
      v3["name"] ~= "CrateSandbags"              and
-- ElectronicStoreComputers
      v3["name"] ~= "ElectronicStoreComputer"    and
-- ElectronicStoreComputers
      v3["name"] ~= "ElectronicsStoreMisc"       and
-- ElectronicStoreComputers
      v3["name"] ~= "ElectronicsStoreMusic"      and
-- FryFactoryPotatoes
      v3["name"] ~= "FryShippingPotatoes"        and
-- FryFactoryPotatoes
      v3["name"] ~= "FryShippingPotatoes"        and
-- ??????
      v3["name"] ~= "GunStoreGuns"               and
-- FreezerIceCream ?
      v3["name"] ~= "IceCreamKitchenFreezer"     and
-- MusicStoreGuitar ?
      v3["name"] ~= "MusicStoreAcoustic"         and
-- FridgeOffice ?
      v3["name"] ~= "OfficeFridge"               and
-- PlankStashGun
      v3["name"] ~= "PlankStashWeapon"           and
-- ProduceStoragePear
      v3["name"] ~= "ProduceStoragePears"        and
-- missing?
      v3["name"] ~= "ProduceStorageGrapes"       and
-- ServingTrayBurgers
      v3["name"] ~= "ServingTrayBurger"          and
-- ServingTraySpringRolls
      v3["name"] ~= "ServingTrayMeatSpringRolls" and
-- ServingTrayTofuFried
      v3["name"] ~= "ServingTrayMeatTofuFried"   and
-- ServingTrayTaco
      v3["name"] ~= "ServingTrayTacos"           and
-- SportStoreSneakers
      v3["name"] ~= "SportsStoreSneakers"        and
-- SushiKitchenFreezer & SushiKitchenFridge
      v3["name"] ~= "SushiKitchenButcher"        then

 

Edited by lorgalis
FridgeOffice -> OfficeFridge
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...