Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

vending system question

Sucha Jewell
Registered User
Join date: 30 Mar 2007
Posts: 37
04-20-2008 06:54
Anyone know why I am such an idiot and don't know how to set up the vending system I have? I have several and I rez them, follow instructions, then get a scripting error.

So.. beat with me: they ask to change the notecard - which I do: [some request the UUID which I copy and paste]. Item name, texture UUID, then price. Great. I do that. Blank line. Great. I do that too. Next item. Same. Then I reset scripts and click and it gives me an error. :(

So... question: do I need to put the object itself and the texture in the content tab? In their example, it is working without the objects in the content tab!

What am I doing wrong?

Here are examples I have used [see, I am trying to put up textures really.. rather than objects.. but it fails even with objects]




Example 1: here is their instructions card:
How to use your Vendor: Rez it. Fill out the Notecard.
The items on it follow this format:
<item name>:<price>
For example..
Video Game:100

For textures, rename them the object + PIC. For example,
Video GamePIC
SwordPIC
SimPIC

That's it. So.. here is what I wrote in the notecard because they gave a sample example as well:

marble01PIC:1
marblegoldPIC:1

Now it says nothing about putting the texture itself in the content tab. Since I don't think it is supposed to guess, I put the texture in the content tab. Nothing. So I remove the textures. Nothing still.

What am I doing wrong?



Example 2:

Here is the example in the instructions:

410751b0-03d3-39c0-858a-741d9f260098
Object 1, 1a551b00-99af-04bf-10ba-56fb9fccba4c, 5
Object B, ad23e378-ef26-9478-3ed0-17ce613d33f6, 10
Prim C, 3ed65238-37fb-3f34-5b4d-d74957d7a31e, 15


So it is Object 1, then the UUID, then price. This is apparently only objects not textures and he does have the objects in the content folder but not the textures that have the UUID.

So... what exactly is the texture here and why isn't it in the content tab?



K... phew!! any ideas anyone? I am sooo stuck.
Yosef Okelly
Mostly Harmless
Join date: 26 Aug 2007
Posts: 2,692
04-20-2008 08:03
Can you tell us who's scripts you are trying to use?
Yosef Okelly
Mostly Harmless
Join date: 26 Aug 2007
Posts: 2,692
04-20-2008 08:26
And here's a guess (and a bump).

I have no idea why it would want too handle selling textures differently but, it apears to want to sell the texture that is on the object th script is in. It is probably assuming you have a box with the texture on it's sides and it wants too "strip" the texture off the side and give the buyer just that. Silly way of doing things, especially if you have a watermarked texture displayed to prevent screenshot thieft.

Try renaming the textures the way you want them and treat them just like any other object.
From: notecard
marble01:1
marblegold:1


Or ... try one of the comercial vendors like apez, HippoVend, Javen or something similar. They will have a larger suport and customer base to help you get set up. I know both Apz and HippoVend have "free" versions where you give them 5% commission (1L$ minimum) if you want to check them out.
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
04-20-2008 08:29
From: Sucha Jewell
So... question: do I need to put the object itself and the texture in the content tab?

Based on your description, here's what is most likely. You don't need to put the texture in the contents, since you're using the UUID, although it wouldn't hurt anything if you did. The object for sale, though, does need to go in the vendor's contents, since all you're doing in the notecard is referencing its name. There are thousands upon thousands of objects in SL with identical names. Only UUID's are unique. So if you're not going to use a UUID for any item referenced by a script, you need to put that item in the contents of the same object the script is going into.

That said, I'm wondering why you didn't just try it. Clearly, the idea occurred to you to put the stuff in contents, or you wouldn't have asked so specifically about it, right? Not that I'd want to discourage anyone from asking questions ever, but really, wouldn't it have been more practical to just take two seconds to test your theory to find out first hand if it's right or wrong than to ask about it and then have to wait for an answer?
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
04-20-2008 08:32
From: Yosef Okelly
And here's a guess (and a bump).

I have no idea why it would want too handle selling textures differently but, it apears to want to sell the texture that is on the object th script is in. It is probably assuming you have a box with the texture on it's sides and it wants too "strip" the texture off the side and give the buyer just that. Silly way of doing things, especially if you have a watermarked texture displayed to prevent screenshot thieft.

I think it's unlikely that that's what it's doing, Yosef. More likely, the vendor has a display screen on it. The texture UUID it's asking for is whatever display poster the user will want showing for each item. For example, if you're selling a shirt, you'll want a picture of the shirt to appear on the screen, so the customer can see what it looks like.'

There's no conceivable reason I can think of for "stripping" a texture in the manner you described, and giving it to the buyer.
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Viktoria Dovgal
Join date: 29 Jul 2007
Posts: 3,593
04-20-2008 08:40
From: Sucha Jewell
So... question: do I need to put the object itself and the texture in the content tab? In their example, it is working without the objects in the content tab!


Oh, you mean do the items have to be dragged into the vendor's inventory? Yes, that's exactly what most vendors need. Depending on how that particular vendor works you may have to reset it after you get everything loaded (or changed).

One part that I'm not clear about: are the items you are selling textures themselves? Many vendors (most, I guess) can only sell prim-type objects, so you would need to drag in two items for these: first, a box containing the texture for sale, and second, a texture for display purposes, the sign board describing it. If textures are what you're selling, then you probably want a special-purpose vendor made for selling those.
_____________________
Kahiro Watanabe
Registered User
Join date: 28 Sep 2007
Posts: 572
04-20-2008 09:33
From: Sucha Jewell


So... question: do I need to put the object itself and the texture in the content tab? In their example, it is working without the objects in the content tab!

What am I doing wrong?

K... phew!! any ideas anyone? I am sooo stuck.


Yes you must put objects inside, if it is not a networked vendor. Object's keys change everytime they're rezzed so you can't use llGiveInventory with a UUID, so...put objects inside.