Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llGiveInventoryList problems

Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
08-29-2007 05:09
I'm trying to use llGiveInventoryList to have an object give an AV a folder of items via an other object, a server. In other words, the AV touches object A which sends an email to object B to send the AV the folder. The items are all copyable and reside in object B. It seems to work fine as long as the two objects are in the same sim. I can't seem to make it work if the two objects are in different sims.

Has anyone else encountered this? More importantly, has anyone found a work around besides having to revert back to llGiveInventory?
Zammy Voom
Registered User
Join date: 7 May 2007
Posts: 33
08-29-2007 05:59
when you say server, do you mean a RL server? or is one item acting as an ingame server? if its the latter, i think you've hit a brick wall. the functions i've come across so far have all got the same limitation of having to reside within the same sim for them to work. however i think you could work around the problem if you have a dedicated server irl but i don't know how that sort of stuff works as i'm still only a noob myself.

*subrscibes to thred*
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
Asked and answered many times
08-29-2007 07:14
Please be sure to check the Wiki before posting.

From: The Wiki
llGiveInventoryList does not consistently deliver the objects to an agent in another sim. From test results, it appears it will deliver only if the agent is a child agent to the sim with the giver or if the agent has been recently in the sim that the giver is. Do not rely on this functionality!


The answer: box everything and use llGiveInventory like everyone else in SL has to. :)
Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
08-29-2007 07:21
You'll also want to be careful and make sure every object to be given by your llGiveInventoryList() statement is copiable. No-copy items will fail to be given in the list-folder.
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
Monica Balut
Beam-Me
Join date: 18 Feb 2007
Posts: 311
08-29-2007 18:02
Talarus: I do check the WIKI and this forum before posting. I ran a search of llGiveInventoryList in this forum and came up empty handed, so I don't see where it's been asked and answered so many times. Moreover, there is no mention of the problem in the http://wiki.secondlife.com/wiki/LlGiveInventoryList page, only in the http://rpgstats.com/wiki/index.php?title=LlGiveInventoryList wiki. I read that and did not understand what "only if the agent is a child agent to the sim with the giver" meant.

Zammy, the server is just another object in another sim that holds the notecards I want to give out in a central location. The idea is that an AV would click on a vendor type object nearby which would tell the server to deliver the notecards.

So obviously it doesn't work as I had thought and there is no obvious work around. The only solutions I can think of is to package the notecards into an object and deliver it using llGiveInventory. But that adds another level of complexity to the owner of the server that I was trying to avoid and requires the receiver to unpack them all. The second solution is to try to name the notecards with the same prefix so they will be all next to each other in the notecard section of the inventory, and again use llGiveInventory to deliver them. That's probably what I'll end up doing unless someone can suggest a better (in-world) idea.
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
08-29-2007 21:17
From: Monica Balut
Talarus: I do check the WIKI and this forum before posting. I ran a search of llGiveInventoryList in this forum and came up empty handed, so I don't see where it's been asked and answered so many times.


The forum search is a bit wonky and doesn't like long words for some reason, so you have to break it up a bit, like "Give Inventory List", and specify only this forum, for example.

Even still, my point in saying that it has been asked and answered many times was that I have done so, not just in the forums, but also in the various scripter groups; it was simply an indication that it is a common question; one that is answered in both "official" wikis.

From: someone
Moreover, there is no mention of the problem in the http://wiki.secondlife.com/wiki/LlGiveInventoryList page, only in the http://rpgstats.com/wiki/index.php?title=LlGiveInventoryList wiki. I read that and did not understand what "only if the agent is a child agent to the sim with the giver" meant.


Actually, the official wiki says "Prim must be in the same region". Unfortunately, it isn't as clear as the one from the older wiki that I quoted to you. The key phrases there are "llGiveInventoryList does not consistently deliver the objects to an agent in another sim." and "Do not rely on this functionality!". The child agent stuff is just a postulated reason why.

Anyway, don't take what I said as anything harsher than a gentle prodding towards the online resources. It's for your own sake and sanity, as you'll find the answers a lot faster, and get your projects done a lot quicker with less frustration. Promise! :D