question on recycling

1 view
Skip to first unread message

johnny

unread,
Dec 18, 2009, 12:07:39 AM12/18/09
to moo-...@googlegroups.com
Hi i was wondering i can not seem to figrue out how to recycle a object and for some reason i try to and it shows it recycled but yet its still there if that makes sense. It shows it as recycled but its still shows up as recyclable. Is there a way to eval something that your having trouble getting rid of? Thanks
Come join us on argon
107thezone.com
port 9350
Play a game with lots of fun.

Stephen Gigante

unread,
Dec 18, 2009, 1:34:10 AM12/18/09
to moo-talk
In LamdbaCore , when you recycle something, it changes it to a lightweight "recyclable object", and saves it for the next time an object is created. 
Given the amount of creation and deletion in a MOO, recycling numbers is more logical than blasting them out of existance, and creating higher and higher numbers (and db size).

Your recyclable will be shunted back into the MOO when $recycler is next asked for an object.

Hope this explains the differences between the manual's definition of 'recycle()', and $recycler:recycle()

Stephen

--

You received this message because you are subscribed to the Google Groups "MOO Talk" group.
To post to this group, send email to MOO-...@googlegroups.com.
To unsubscribe from this group, send email to MOO-talk+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/MOO-talk?hl=en.

Tyler Littlefield

unread,
Dec 18, 2009, 12:30:54 AM12/18/09
to moo-...@googlegroups.com
if it goes through the recycler, the parent is just changed and it's cut down. doesn't help your object count, but then again it lets you re-use objects, as well, which is nice. See $recycler:_recycle for more info. I also generally change @recycle where it uses player:_recycle to $recycler:_recycle and move off some of the perm work to that verb. This may also depend on what sort of systems you have in place to manage the quota-if any, as well as object count and etc. If you have a generator for dynamic objects for example, it may be nice to rework the recycler so that the objects can easily be regenerated or at least set up with a cache of extra objects for you to use. I set something like this up when I was working with generating mobs quickly through the room, basically the recycler always made sure that there was a certain amount of objects of type NPC in creation after a npc died or something was recycled of that type, and just recycled the rest. Then all I had to do was retrieve the object from the recycler and fill in the properties or let the area fill them in.

Hopefully that made some sense, it sounds a lot more complex now that I write it out, but it did end up speeding up the world.

johnny

unread,
Dec 18, 2009, 4:39:47 PM12/18/09
to moo-...@googlegroups.com
thanks much.
Come join us on argon
107thezone.com
port 9350
Play a game with lots of fun.



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.427 / Virus Database: 270.14.113/2573 - Release Date: 12/18/09 07:35:00

Reply all
Reply to author
Forward
0 new messages