eronoobos / BABAR-The-Shardifant

Balanced Annihilation & Balanced Annilhation Reloaded configuration for Shard
2 stars 1 forks source link

migrate from ai. to self.ai. #37

Closed pandaro closed 8 years ago

pandaro commented 8 years ago

circa ultimated the migration between ai -> self.ai there are a problem shard against shard when 300 units pro shard are reached cause a little problem:(not every time) [f=0072672] Fatal: LuaUI: cannot allocate more memory! (805306431 bytes already used, 805306368 bytes maximum) is not a little problem but the good news with all this fix seems that targeting problem seems fixed... EDIT but isn't

eronoobos commented 8 years ago

the problem still could be the global ai, because as you discovered there are many places that are not within a module or a behaviour, and therefore can't refer to its own ai object.

pandaro commented 8 years ago

i see, but there are a possibility to convert this ai to somthing like self.ai? and how to?

eronoobos commented 8 years ago

It would be pretty easy to convert local functions of modules and behaviours to module/behaviour:Functions, if they use the ai object.

The main problem is taskqueues: https://github.com/eronoobos/BABAR-The-Shardifant/issues/38