GatherPlus

Approved GatherPlus 4.2.3

No permission to download
So now when it loads up I still get this "error" in my consol. It is the same as before but this time when I reload it, it continues to be spammed in the console?
Code:
[Console] GatherPlus: Error setting Total Resources, Amount is possibly returning NoneType (Config error).
 
  • Informative
Reactions: Jakkee
I'm getting

Code:
Error in plugin GatherPlus:
Traceback (most recent call last):
  File "<string>", line 263, in On_PlayerGathering
KeyError: Wood

And

Code:
GatherPlus: Error setting Total Resources, Amount is possibly returning NoneType
(Config error).
 
Last edited:
I'm getting

Code:
Error in plugin GatherPlus:
Traceback (most recent call last):
  File "<string>", line 263, in On_PlayerGathering
KeyError: Wood

And

Code:
GatherPlus: Error setting Total Resources, Amount is possibly returning NoneType
(Config error).
I get the same thing, I also get the stones, metal and others as well in the errors. Also some players will get bugged and will not be able to collect any resources.
 
Correct way to do it:

Python:
def On_ResourceSpawn(self, ResourceTarget):
    for resourceavaible in ResourceTarget.resourcesAvailable:
        resourceavaible.amountMin *= 0.5 # Multiplier count
        resourceavaible.amountMax *= 0.5
        resourceavaible.CalcAmount()
        # ResourceTarget.gatherEfficiencyMultiplier = 1 <- This reduces the efficiency, I think it shouldn't be edited
    ResourceTarget.startingTotal = ResourceTarget.GetTotalResLeft()