GatherPlus

Approved GatherPlus 4.2.3

No permission to download

Sturt

Plugin Developer
Plugin Developer
Jan 4, 2015
71
38
8
46
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

tarynkelley

Retired Staff
Retired Staff
Trusted Member
Nov 14, 2015
575
178
28
Parts Unknown
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:

Sturt

Plugin Developer
Plugin Developer
Jan 4, 2015
71
38
8
46
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.
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
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()