Read the rest of this update entry...Removed datastore, Now using a dictionary.
No more NoneType errors?
Read the rest of this update entry...Whoops, Fixed
Error in plugin GatherPlus:
Traceback (most recent call last):
File "<string>", line 263, in On_PlayerGathering
KeyError: Wood
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.I'm getting
AndCode:Error in plugin GatherPlus: Traceback (most recent call last): File "<string>", line 263, in On_PlayerGathering KeyError: Wood
Code:GatherPlus: Error setting Total Resources, Amount is possibly returning NoneType (Config error).
Read the rest of this update entry...
On_ResourceSpawn not ResourceSpawnJakkee updated GatherPlus with a new update entry:
V 4.2.3 - Fix for starting total's. Should no longer get any errors
Read the rest of this update entry...
Correct way to do it:Jakkee updated GatherPlus with a new update entry:
V 4.2.3 - Fix for starting total's. Should no longer get any errors
Read the rest of this update entry...
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()