Notorioushalfling / Venice-Unleashed-Ribbons-Mod

0 stars 0 forks source link

couple of error strings related to bots being interpreted as players #5

Closed Notorioushalfling closed 1 week ago

Notorioushalfling commented 1 week ago

Most likely caused my interference by Funbots where the init doesn't recognize bots as player characters, have written new code to add a check to ensure that the killer variable is a valid player object before accessing its properties. This helps prevent the error that occurs when killer is mistakenly treated as a number.

implemented not yet tested

Notorioushalfling commented 1 week ago

Bot Handling: The code now ensures that when a bot is killed, the killer still receives XP and stats. Clear Logging: The print statements provide clear feedback in the log for debugging and monitoring. WebUI Initialization: Confirm that the path for the WebUI is correct to ensure ribbons are displayed as expected.

Notorioushalfling commented 1 week ago

Validation Checks: Added additional checks to ensure killer, player, supplier, and repairer are valid objects before calling their methods. Bot Handling: Bots are now excluded from ribbon tracking to prevent errors. Error Messages: Added specific error messages to help identify where issues might occur.