_G.__uids are not updated correctly
Posted: Wed May 04, 2011 10:48 pm
in lua console after typing
you get bunch of uids created in game but they are never deleted from there, after leaving zone each entity has given new uid and its added to _G.__uids I.E. :
- enter zone "green worm mass" has uid of 156
- type into console =_G.__uids[156] - we get data of "green worm mass"
- leave zone
- enter zone now green worm mass has uid of 1076
- type into console =_G.__uids[1076] - we get data of "green worm mass"
- type into console =_G.__uids[156] - we get data of SAME "green worm mass" !
you can go out and enter multiple times each time _G.__uids will grow and reference count will increase ( so next time "green worm mass" will be in 3 places, next in 4 etc, since its about ALL entities (particles, projectiles, items etc.) _G.__uids grow VERY fast)
Code: Select all
=_G.__uids
- enter zone "green worm mass" has uid of 156
- type into console =_G.__uids[156] - we get data of "green worm mass"
- leave zone
- enter zone now green worm mass has uid of 1076
- type into console =_G.__uids[1076] - we get data of "green worm mass"
- type into console =_G.__uids[156] - we get data of SAME "green worm mass" !
you can go out and enter multiple times each time _G.__uids will grow and reference count will increase ( so next time "green worm mass" will be in 3 places, next in 4 etc, since its about ALL entities (particles, projectiles, items etc.) _G.__uids grow VERY fast)