My vendor machine isn't working properly
|
|
Cris Poliak
Registered User
Join date: 14 Apr 2008
Posts: 27
|
04-18-2008 01:22
Hello everybody. I don't know how to solve this problem or what am I doing wrong. I can't set up this vendor to sell my creations using a few prims. Well.. to make that machine I created a 2mx2m prim to be used as a DISPLAY (named Display) and I added the code named "main" Then I put the following code named "display" in the Display prim: integer front = 0; // Set this to the face of the prim you want the image on. //Note: This script assumes that the sides of the display are either black or nonvisible. default { link_message(integer link, integer num, string mes, key id) { if (id != NULL_KEY) { if (mes == "PIC") { llSetTexture(id,front); } else if (mes == "LOADPREV") { // If you change front then this may need to be adjusted, or disabled. llSetTexture(id,front + 1); } else if (mes == "LOADNEXT") { // If you change front then this may need to be adjusted, or disabled. llSetTexture(id,front + 2); } } } }[\PHP] Then I joined all the prims and I added the items in the display prim but nothing seems to work. What's wrong with it? I only did this steps. Please help, I'm stucked. Regards. Cris.
|
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
04-18-2008 02:29
From: Cris Poliak Then I joined all the prims and I added the items in the display prim but nothing seems to work. What's wrong with it? I only did this steps. Please help, I'm stucked. Regards. Cris.
Surely you have to be more specific if you want help. If NOTHING works then ALL of this pretty code is WASTE and you have to start from scratch. If you wrote the code you must have an idea about how you want it to work, accordingly be able to make some qualified debugging. If you did not write the code you should seek a solution where you got the code. PS! Are the prims linked in the right order and manner? Are they named right? happy scripting
_____________________
From Studio Dora
|
|
Cris Poliak
Registered User
Join date: 14 Apr 2008
Posts: 27
|
04-18-2008 09:30
From: Dora Gustafson Surely you have to be more specific if you want help. If NOTHING works then ALL of this pretty code is WASTE and you have to start from scratch. If you wrote the code you must have an idea about how you want it to work, accordingly be able to make some qualified debugging. If you did not write the code you should seek a solution where you got the code. PS! Are the prims linked in the right order and manner? Are they named right? happy scripting Hello Dora thank you for your response.. The problem is that .. I don't know if that prims are linked in the right order/manner or named right... I wrote all the steps that I did, but I'm not sure if they're right or not. I got the code in "http://rpgstats.com/wiki/index.php?title=LibraryVendor" but as I read I can't see if I was wrong in some steps or not.
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
04-18-2008 13:13
If you are in the "not sure" state then you debug your code. everywhere there is one of these: link_message(integer link, integer num, string mes, key id) { Change it to: link_message(integer link, integer num, string mes, key id) { llOwnerSay((string)link + "#, msg = " + mes);
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
revochen Mayne
...says
Join date: 14 Nov 2006
Posts: 198
|
04-19-2008 21:40
just some of my thoughts even hard to say something without seing your vendor. is the display root prim? is the script set to 'running'? (theres a checkbox at the script editor) are you at an enabled scripts zone? and so on. IM me in-world for further help if you want
|
|
Cris Poliak
Registered User
Join date: 14 Apr 2008
Posts: 27
|
Problem Solved
04-25-2008 08:00
Problem solved! Thanks a lot guys.
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
04-25-2008 10:29
From: Cris Poliak Problem solved! Thanks a lot guys. Cool!!!!
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
04-25-2008 14:33
From: Cris Poliak Problem solved! Thanks a lot guys. What was it? an error 40?
_____________________
From Studio Dora
|
|
Cris Poliak
Registered User
Join date: 14 Apr 2008
Posts: 27
|
04-27-2008 08:55
From: Dora Gustafson What was it? an error 40? Oh... sorry, I forgot to tell the error that I had. I forgot to put the XYText Library code into the vendor, so the price was not displayed. I didn't notice that that library is necessary for the vendor.
|
|
Steve63 Avro
SL Junkie <>
Join date: 26 Nov 2007
Posts: 5
|
04-29-2008 21:52
OK.... well... I can't get it to work either. Followed all the instructions, the XYText setup accordingly and the machine continues to say that it is empty. The Notecard is configed per the instructions etc. I looked through http://lslwiki.net/lslwiki/wakka.php?wakka=XyText & the http://lslwiki.net/lslwiki/wakka.php?wakka=LibraryXyText12 posts I am using all the code from http://www.lslwiki.net/lslwiki/wakka.php?wakka=LibraryVendorWhat Library am I missing or is there something else amiss ? I really need a Low Lag Vendor system that is easy to use and config. I have a Working FOSSL system, but it get's bogged in a high lag situation. A Simple Lightweight machine that dispenses mostly freebies and a couple of items for a few lindens. If there is an alternative, I'm open to suggestions / solutions.
|
|
Steve63 Avro
SL Junkie <>
Join date: 26 Nov 2007
Posts: 5
|
04-30-2008 16:05
OK.... I seem to have found the problem with the code. It uses the llGetInventoryKey as shown below:
******************* if ( llGetInventoryKey((key)llList2String(temp,0)) == NULL_KEY || llGetInventoryKey((key)llList2String(temp,1)) == NULL_KEY) { llWhisper(0,"Error, missing inventory or picture from line : " + data); state running; } k = llGetNotecardLine("Settings",line++); ******************** Well, as stated in the discussion on this, IF the object / Item does not have Full Perms, ie: No Mod then this will cause the llGetInventoryKey to return -1.
In addition to that, the same llGetInventoryKey is used throughout the code for the LinkMessage which also continues the problem
************* llMessageLinked(LINK_SET,1,"PIC",llGetInventoryKey(llList2String(pics,0))); *************
This is too much work for me to recode at this time and my time is short but I wanted to let other's know that if they wanted to use this Vending System, that it can only be used with FULL PERM Pictures/Textures and Objects. IF Someone else cares to have a go at it, Great! But at least the source of the problem I have been having is here.
Good Luck everyone. Steve
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
04-30-2008 18:20
Hey, bet you know one heck of a lot more about scripting now then when you started playing with the script. Always a bright side to everything 
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Steve63 Avro
SL Junkie <>
Join date: 26 Nov 2007
Posts: 5
|
05-01-2008 05:39
Jessy... It's been a long time since I did any coding. I started off with Basic, Assembler, Cobol, moved up to C , & Turbo Pascal.... over the years Iworked with many languages including SAS, C++ & more. I left the IT business after 15 years in 2002 and haven't touched any programming language since then... never got into anything web related. Bit of a curve to get back into it but I'm getting there and this is somewhat different that what I used in the past. But Old Dawgs can learn new tricks and I am ramping up. 
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
05-01-2008 05:49
From: Steve63 Avro Jessy... It's been a long time since I did any coding. I started off with Basic, Assembler, Cobol, moved up to C , & Turbo Pascal.... over the years Iworked with many languages including SAS, C++ & more. I left the IT business after 15 years in 2002 and haven't touched any programming language since then... never got into anything web related. Bit of a curve to get back into it but I'm getting there and this is somewhat different that what I used in the past. But Old Dawgs can learn new tricks and I am ramping up.  Yep, I am a 50 yr old female. Only xp I ever had was debugging PLC ladder logic a few times and writing some code to magnetic strips for a TI95 30 yrs ago! I can't say it was easier learning LSL for me but I guess that it was nice that I had no pre-concieved notions of how the language SHOULD work  So I never missed arrays because I didn't know what an array was. So if I can do this then anyone can. Now I have started to branch out into LUA (easy!), a little php and a smattering of java.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Very Keynes
LSL is a Virus
Join date: 6 May 2006
Posts: 484
|
05-01-2008 08:27
We have a lot in common Jesse except that I was designing the PLC's and preferred HP's to TI's, but did have the same model as you  . I have had exposure to much the same languages as Steve, but had not coded for nearly 20 years before starting on LSL. Thank goodness for LSLEditor.exe - it eased the learning curve greatly as did the kind and generous folks on this forum.
|