martinbwg / Pixel-Tanks

1 stars 3 forks source link

ai die #687

Open CelestialKnight7 opened 3 months ago

CelestialKnight7 commented 3 months ago

Error: TypeError: Cannot read properties of undefined (reading 'replace') Origin: uncaughtException

happens when ai of the same team dies after an ai from that team previously died

i think

cs6413110 commented 3 months ago

Definitely a team error. That sounds probable. Test?

CelestialKnight7 commented 3 months ago

whatcha do its /ai 1 1 3 20 1 1, kill that guy, then do /ai 1 1 3 20 1 and that guy will crash

cs6413110 commented 3 months ago

Didn't crash

cs6413110 commented 3 months ago

Second call to /ai needs to spawn multiple I think. Perhaps Bradley messing with turret made it so the same team AI destroy multiple AI or mutilate the team property?

cs6413110 commented 3 months ago

TypeError: Cannot read properties of undefined (reading 'replace') at Function.parseTeamExtras (/home/ubuntu/Pixel-Tanks/engine.js:281:35) at Function.getUsername (/home/ubuntu/Pixel-Tanks/engine.js:282:36) at FFA.ondeath (/home/ubuntu/Pixel-Tanks/engine.js:203:60) at AI.damageCalc (/home/ubuntu/Pixel-Tanks/engine.js:1026:59) at AI.update (/home/ubuntu/Pixel-Tanks/engine.js:847:68) at FFA.tick (/home/ubuntu/Pixel-Tanks/engine.js:171:60) at Timeout._onTimeout (/home/ubuntu/Pixel-Tanks/engine.js:21:40) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7)

cs6413110 commented 3 months ago

Adding try-catch for better context

LostKing73 commented 3 months ago

i made everything dum

cs6413110 commented 3 months ago

Bro is so devoted to the scam that he literally changed his username for it.

Screenshot 2024-08-21 9 05 04 AM

cs6413110 commented 2 months ago

No clue why this is happening other than somehow an AI without a team is either dying or being ticked.

Possibly #641 ?