ineedbots / t4_bot_warfare

The Bot Warfare mod for WaW
https://www.moddb.com/mods/bot-warfare
29 stars 0 forks source link

Script errors after a few minutes #14

Closed GeorgieeeDev closed 4 months ago

GeorgieeeDev commented 4 months ago

Hello, after a few minutes of play time, a few script errors appear in the console that continuously get spammed and I start getting connection interrupted, it stops for a few seconds and then happens again. ( I am using version v2.1.0 as v2.2.0 doesnt work on a dedicated server )

These are the errors:


`******* script runtime error *******
undefined is not a field object: (file 'maps/mp/_entityheadicons.gsc', line 136)
 headicon.archived = true;
 *
Error: called from:
(file 'maps/mp/_entityheadicons.gsc', line 75)
   level.playersViewingHeadIcons[i] updateEntityHeadIcon(self);
                                    *
Error: called from:
(file 'maps/mp/gametypes/_weapons.gsc', line 930)
   betty maps\mp\_entityheadicons::setEntityHeadIcon(self.pers["team"], (0,0,20));
         *
Error: started from:
(file 'maps/mp/gametypes/_weapons.gsc', line 922)
  self waittill( "grenade_fire", betty, weapname );
       *

******* script runtime error *******
undefined is not a field object: (file 'maps/mp/_entityheadicons.gsc', line 137)
 headicon.x = entity.origin[0] + entity.entityHeadIconOffset[0];
 *
Error: called from:
(file 'maps/mp/_entityheadicons.gsc', line 75)
   level.playersViewingHeadIcons[i] updateEntityHeadIcon(self);
                                    *
Error: called from:
(file 'maps/mp/gametypes/_weapons.gsc', line 930)
   betty maps\mp\_entityheadicons::setEntityHeadIcon(self.pers["team"], (0,0,20));
         *

undefined is not an entity: (file 'maps/mp/_entityheadicons.gsc', line 142)
 headicon setwaypoint(false); // false = uniform size in 3D instead of uniform size in 2D
 *
Error: called from:
(file 'maps/mp/_entityheadicons.gsc', line 75)
   level.playersViewingHeadIcons[i] updateEntityHeadIcon(self);
                                    *
Error: called from:
(file 'maps/mp/gametypes/_weapons.gsc', line 930)
   betty maps\mp\_entityheadicons::setEntityHeadIcon(self.pers["team"], (0,0,20));
         *
Error: started from:
(file 'maps/mp/gametypes/_weapons.gsc', line 922)
  self waittill( "grenade_fire", betty, weapname );
       *
       ``

I am using a dedicated server (hosted on my computer, non-pluto version with T4M ) to run the mod. 

I'd also like to say that when I used the mod previously a few months ago ( using a dedicated server ) this issue never occurred only up until now.
ineedbots commented 4 months ago

If you are not on the latest version, then it's likely its fixed already. Please report bugs from the latest version only