Library: Multi-item, Multi-author vendor
|
Apotheus Silverman
I write code.
Join date: 17 Nov 2003
Posts: 416
|
11-26-2004 09:59
From: Dale Zephyr I just finished building a vendor with the scripts and was wondering if there is a way to disable/remove the timer from the script without harm. And, if so, how I would go about doing it. I know a lot of mall owners ask that the vendors we place not have certain things and timers is one of them.
If anyone can offer assistance I'd greatlly appreciate it.
Thanks. If you disable the timer, the items simply won't change by themselves, that's all. Everything else will function properly.
|
Coreina Grace
never posts
Join date: 14 Feb 2004
Posts: 63
|
12-01-2004 12:43
Does anyone have advice for changing WHERE the model rezzes? like.. in relation to the vendor object?
|
Apotheus Silverman
I write code.
Join date: 17 Nov 2003
Posts: 416
|
12-02-2004 06:02
From: Coreina Grace Does anyone have advice for changing WHERE the model rezzes? like.. in relation to the vendor object? Near the top of the vendor script are these lines: // Model rez position relative to parent object vector rezPosition = <-0.1,0,-0.1>; Just change that value to the position relative to the vendor's root prim where you want models to rez.
|
Coreina Grace
never posts
Join date: 14 Feb 2004
Posts: 63
|
12-02-2004 09:35
From: Apotheus Silverman Near the top of the vendor script are these lines:
// Model rez position relative to parent object vector rezPosition = <-0.1,0,-0.1>;
Just change that value to the position relative to the vendor's root prim where you want models to rez. thanks, I found it, sorry to bother you, I should have just read the script.
|
Chilly Charlton
Registered User
Join date: 15 Jun 2004
Posts: 483
|
Doesn't Rez Display Items When Not Logged On
12-13-2004 10:06
Any help would be appreciated ... I've used this script to create a vendor but when the owner of the vendor (and contents) is not on line then the display items do not rez.
I don't feel like de-bugging so I'm checking to see if anyone else has had the same problem with this script first.
Any ideas why?
Thanks in advance Chilly!
|
Chilly Charlton
Registered User
Join date: 15 Jun 2004
Posts: 483
|
Display Objects Not Rezzing For This Vendor When Owner Not Online
12-13-2004 13:45
Hello,
I thought I posted this question before but am not seeing it. If this is a double post then my apologies in advance. Here is my problem:
I created a vendor using these scripts and it works great EXCEPT ... when the owner of the vendor (and it's contents) is not logged into SL then the display objects are not rezzed when you click the forward and back buttons. If the owner logs off the vendor actually does seem to work for a while but eventually will stop until the owner logs on again.
So this vendor is only good when the owner of the vendor is logged on?
Has anyone else run into this problem, and what is the fix?
Thanks in advance for any help!
--chilly
|
Mortimer Millhouse
Registered User
Join date: 19 Aug 2004
Posts: 5
|
Mac User
12-17-2004 04:26
Hello does anyone know how on a Mac to get scripts to copy? I have tried different browsers, but it's very hard to select them, since it triest to select the whole page, doesn't matter if it is IE or Safari. Then once you do get it selected it has all the excess tabs in it looking like ***** all over the place and there are so many it's to hard to take them out. Hope someone can help.
|
Kurt Zidane
Just Human
Join date: 1 Apr 2004
Posts: 636
|
12-25-2004 16:06
HI Mortimer Millhouse, if your still trying to figure out how to copy php code from safari in os x into script editor in the sl client. Here is how.
Start selecting before the script box, drag down past the end of the script box till you select some text bellow. Now you have selected the hole script, copy it.
open text edit, paste in the script. Crop off the extra text above and bellow the script
then copy a space from the document. Preferable from between two words.
open the find dialog box in text edit. click on the find field. hold down command and hit a. (select all) now paste the space you have just copied from the field. Even though the find field looks empty it now contains the hidden character "#".
Bellow the fiend field there is a replace field. click on that field, select all ( command + a) now hit the space bar. Now the replace field contains the space character.
now click on the "find replace all" button. The document may look the same. But now all the # have been replaced with " ".
close the fiend dialog box
now select all one more time. and then copy
now you can paste into sl with out the # showing up.
ps I have a working copy of this script in game. With the note card modification working. Feel free to im me in game, and i'll send you a copy.
|
Nicholas Portocarrero
Registered User
Join date: 13 Jul 2004
Posts: 237
|
12-27-2004 00:55
I followed this exact list, in more than one try, I even logged in and off a few times, but I couldn't get this to work. The vendor prim doesn't take payments, the button prims don't change the rezed object, absolutely nothing works except for the rotation of the model. What can I possibly be doing wrong? From: Ulrika Zugzwang Apotheus, I want to give you a genuine thanks. A vendor with the ability to split purchases among multiple users is exactly what we needed for the Neualtenburg Projekt. It's wonderful to see someone release such high-quality code in the forums. Also, I had a little trouble getting things working at first, so I thought I'd give some instructions for those of my skill level to get the code working as quickly as possible: - Create a vendor prim and put the vendor script in.
- Create a previous-button prim and put the previous-button (back-button) script in.
- Create a next-button prim and put the next-button script in.
- Link all three prims together making the vendor prim the parent prim.
- Make a model by rezing an object you want to sell, copy it, shrink it, and remove all contents.
- Place the display script inside this model.
- Rename the model.
- Place the model and the original object for sale into the vendor.
- Edit the "Item Data" notecard to include the following data: object name, model name, price, agent keys
That's it! Note that no modification of code is necessary at all anywhere to get things to work. My mistake is that I created a fourth prim that I placed the display script in, thinking the object would rez and derez around that fourth object. For some strange reason it kept vanishing while the models stayed.  ~Ulrika~
|
Apotheus Silverman
I write code.
Join date: 17 Nov 2003
Posts: 416
|
01-02-2005 17:17
I have listed a multi-author vendor kit on SLExchange.com that anyone can use to get this vendor system up and running within a few minutes. Most people who have problems getting the scripts working find it to be of incredible value. The kit is fully open-source, just like the scripts themselves. It includes a working vendor, tutorial notecard and tools to help you along the way. You can get it here
|
Cenji Neutra
www.apez.biz
Join date: 30 Oct 2004
Posts: 36
|
Useage question: sizing models.. how?
01-30-2005 22:18
Thanks for these great scripts. They save n00bs a heap of time.
I have a (possibly silly) question about usage. I understand how to use the scripts, but in order to make display models for my vendor I need to resize the original objects for sale so that they are small enough to fit my vendor. To do that I simply hold CTRL&SHIFT and drag a white corner resize handle. However, for some reason it won't let be size some models small enough. I'm not sure, but it looks like the SL editor won't got below 0.5. So my question is; how do you uniformly resize your models? Is there some way with a script? Thanks. -David.
|
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
|
02-01-2005 17:37
From: Cenji Neutra Thanks for these great scripts. They save n00bs a heap of time.
I have a (possibly silly) question about usage. I understand how to use the scripts, but in order to make display models for my vendor I need to resize the original objects for sale so that they are small enough to fit my vendor. To do that I simply hold CTRL&SHIFT and drag a white corner resize handle. However, for some reason it won't let be size some models small enough. I'm not sure, but it looks like the SL editor won't got below 0.5. So my question is; how do you uniformly resize your models? Is there some way with a script? Thanks. -David. You can shrink a linked group until the smallest object in the group reaches minumum size (.01M on any axis). It sounds like the models you're having trouble with have a prim that has reached this minimum. The only solution is to rebuild the model.
_____________________
.
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.
|
Kyia LeMay
Registered User
Join date: 12 Dec 2004
Posts: 11
|
02-03-2005 13:55
I am trying to set up this script, I have everything working great, except my item it on its side. I have messed with the number for how the items sits in relation to the parent, but they don't seem to rotate the item. Any suggestions? Thanks 
|
Lightwave Valkyrie
Registered User
Join date: 30 Jan 2004
Posts: 666
|
02-05-2005 11:29
hide a small prim inside your model object and link it last you can rotate that to get the Z (blue) axis up -LW
|
Marina McTeague
Registered User
Join date: 20 Jan 2005
Posts: 18
|
02-06-2005 00:22
I've set this script up and EVERYTHING is working great, except it can't find the items when someone pays it - but I have checked and double-checked the item names, even changed then to things like 'a'...
Wondering if I have to have certain permissions checked?
|
Eata Kitty
Registered User
Join date: 21 Jan 2005
Posts: 387
|
02-27-2005 05:40
Wish there was an easier way to set rotation, it ignores the values from the original object. The little invisible prim works, but it's a pain in the ass.
|
Eata Kitty
Registered User
Join date: 21 Jan 2005
Posts: 387
|
02-27-2005 05:48
Wish there was an easier way to set rotation, it ignores the values from the original object. The little invisible prim works, but it's a pain in the ass.
|
Zalandria Zaius
Registered User
Join date: 17 Jan 2004
Posts: 277
|
rotation
03-02-2005 15:18
// rez the new model llRezObject(llList2String(models, currentItem), llGetPos() + rezPosition, ZERO_VECTOR, ZERO_ROTATION, commChannel);
This is line where the rotation will have to be changed.. The rezPosition will only set if the object is to the right/left... forward/back... up/down...
replace ZERO_ROTATION with llEuler2Rot(( <45, 0, 0> )DEG_TO_RAD) this lets you use simple degrees for the rotations
llRezObject(llList2String(models, currentItem), llGetPos() + rezPosition, ZERO_VECTOR, llEuler2Rot(( <45, 0, 0> )DEG_TO_RAD), commChannel);
It really is much easier to put the invisible cube thing on the display instead, since you can copy it, with the display script in it, set to the right rotation, then simply rename it. Otherwise if one display is rotated wrong one way and another some other way you'll never get them all to go right without some fancy scripting.
|
Apotheus Silverman
I write code.
Join date: 17 Nov 2003
Posts: 416
|
03-03-2005 06:31
Another easy way to set rotation is, in the display model's on_rez() event: llSetRot(llEuler2Rot(<x,y,z> * DEG_TO_RAD)); I still think it's easier to attach the model to a properly-rotated root prim though. I personally like to put my display models "inside" a larger transparent cylinder. You can see it in person at Busy Ben's Abbotts Aerodrome display... turn on highlight alpha. 
|
Surreal Farber
Cat Herder
Join date: 5 Feb 2004
Posts: 2,059
|
03-10-2005 01:17
How do I disable the timer? Is it a matter of commenting out code? If so, which lines? Thanks.
_____________________
Surreal
Phobos 3d Design - putting the hot in psychotic since 2004
Come see our whole line of clothing, animations and accessories in Chaos (37, 198, 43)
|
Apotheus Silverman
I write code.
Join date: 17 Nov 2003
Posts: 416
|
03-10-2005 09:33
From: Surreal Farber How do I disable the timer? Is it a matter of commenting out code? If so, which lines? Thanks. You can disable the timer by setting this line: float changeTimer = 300.0; to this: float changeTimer = 0;
|
Smigmee Pinkerton
Unlicensed Primologist
Join date: 1 Mar 2005
Posts: 42
|
I know this thread is old but.,...
03-14-2005 12:11
I was wondering if anyone had a script to work with Apotheus Silverman's Multi-Item, Multi -Author Vending script. Basically im looking for a script that would either (preferable) make both next and prev buttons have an image displayed of the next and the pervious item while the current item is rezzed spinning in the middle. I hope i have made this reletively clear.. If this is not possible. Maybe one could just have a seperate display screen above or next to the rezzed object. That displays a second view of the rezzed object. I have seen other display scripts but im not quite sure how to get it to "flow' with Apotheus Silverman's script. If anyone can help it would be really really appriciated thanks sooo much again guys 
|
Kandi Valkyrie
Registered User
Join date: 5 Nov 2003
Posts: 46
|
Non holo version
04-28-2005 12:43
Hiya  I would know to know if these scripts can be used to make a non-holo vendor, much like a regular vender that has images you scroll through with the next/back buttons. Holo vendors are wonderful but they are not so wonderful when you set one up and the display items kills your prim count. In the particular vendor I'm working on I don't want to use a rotating image because it will look cheesy. Any suggestions? TIA!
_____________________
Born: November 5 2003 Had Temper Tantrum: May 5 2003 Account Terminated: May 5 2003 Settled Temper Tantrum: August 11 2003 Active and running away from the baddies in Second Life: CURRENT Temper Tantrums To Date: 5
|
HeatherDawn Cohen
Who Me?!?!
Join date: 9 Aug 2004
Posts: 397
|
09-23-2005 20:16
Hi, diggin up old threads...hehe. I need some help though. Wondering if there is a way for the display to be payable. Either that, or has someone got a modified one for an image version? I'm needing one for clothing sales. Thanks!
|
HeatherDawn Cohen
Who Me?!?!
Join date: 9 Aug 2004
Posts: 397
|
'ello?
09-23-2005 20:19
Is this thing working?
|