GatekeeperV2
GatekeeperV2 copied to clipboard
Unable to add instance if instance has "null" image source
Information [REQUIRED]
Which Server Type?
Satisfactory
Which Platform?
AMP
Describe the bug
"DisplayImageSource" was set to NULL (im assuming caused by an error when server this particular instance was set up Manually setting the image allowed the instance to be added to this script "DisplayImageSource": "steam:526870",
Additional Information [NOT REQUIRED]
To Reproduce
Steps to reproduce the behavior:
- Set image for an instance to NULL for an instance when initially setting up this script (in instances.json)
Expected behavior or Desired behavior
use placeholder image if image is missing
Additional context
Im assuming there was an error when I created the satisfactory instance months ago. This resulted in no image for that instance
Exception in thread AMP Handler:
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2544.0_x64__qbz5n2kfra8p0\Lib\threading.py", line 1075, in _bootstrap_inner
self.run()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2544.0_x64__qbz5n2kfra8p0\Lib\threading.py", line 1012, in run
self._target(*self._args, **self._kwargs)
File "E:\AMPDataStore\Instances\GatekeeperV2Bot01\gatekeeperv2\GatekeeperV2-main\AMP_Handler.py", line 44, in AMP_init
handler.setup_AMPInstances()
File "E:\AMPDataStore\Instances\GatekeeperV2Bot01\gatekeeperv2\GatekeeperV2-main\AMP_Handler.py", line 92, in setup_AMPInstances
self._instanceValidation(AMP=self.AMP, startup=True)
File "E:\AMPDataStore\Instances\GatekeeperV2Bot01\gatekeeperv2\GatekeeperV2-main\AMP_Handler.py", line 215, in _instanceValidation
flag_reg = re.search("(gatekeeper)", amp_instance['DisplayImageSource'].lower())