This small patch gets rid of the terrible amount of "Python Upgrade errors" in the console.
--- src/Assets-Production/modules/ship_upgrades.py.orig 2020-07-04 22:34:01.061655193 +0200
+++ src/Assets-Production/modules/ship_upgrades.py 2020-07-04 22:34:35.442058026 +0200
@@ -168,10 +168,10 @@
list=VS.getRandCargo(1,cat)#try to get a cargo from said category
if (list.GetQuantity()<=0):#if no such cargo exists in this cateogry
if (parentcat!=None):
debug.warn("Python Upgrade Error: finding %s using %s instead", cat, parentcat)
+# debug.warn("Python Upgrade Error: finding %s using %s instead", cat, parentcat)
list=VS.getRandCargo(1,parentcat)#get it from the parent category
if (list.GetQuantity()<=0):#otherwise get cargo from upgrades category
debug.warn("Python Upgrade Error: category %s -- getting random instead", cat)
+# debug.warn("Python Upgrade Error: category %s -- getting random instead", cat)
list=VS.getRandCargo(1,"upgrades")#this always succeeds
return list
This small patch gets rid of the terrible amount of "Python Upgrade errors" in the console.
--- src/Assets-Production/modules/ship_upgrades.py.orig 2020-07-04 22:34:01.061655193 +0200 +++ src/Assets-Production/modules/ship_upgrades.py 2020-07-04 22:34:35.442058026 +0200 @@ -168,10 +168,10 @@ list=VS.getRandCargo(1,cat)#try to get a cargo from said category if (list.GetQuantity()<=0):#if no such cargo exists in this cateogry if (parentcat!=None):