Jump to content

Lucinda Bulloch

Resident
  • Posts

    1,080
  • Joined

  • Last visited

Everything posted by Lucinda Bulloch

  1. It is as void says, vectors from a note card or from between"" are strings, as void says list2vector don't cast then, so it is safe to always treat them as strings and cast them yourself, like (vector)llList2String, to use llList2Vector they must be loaded as vectors in the first place, like vectorlist += (vector)DATA; then llList2Vector(vectorlist,x) will work, i use vectors and rotations a lot, my deck guns on all the warships talk to the AV and ship all the time so to stay in position and rotation, while in chat they are strings so must be converted before they can be used
  2. string text = "Visit my Website";string url = "http://MyWebsite.com"; //must include 'http://'default{ on_rez(integer p) { llLoadURL(llGetOwner(), text, url); }}
  3. Sorry for keep commenting in this thread, but your question vexes me, you claim not to know, that may be true or it could be that you do know and that to get exactly what you want is just out side the range in the integer math's of script, until you posed the question I did not think about it, now you made me think about it you have in fact asked an impossible question, like the grain of rice on a chess board, anyway I gave you a way to do it, you either knew that all along and just testing us as to what we really know or you didn't, but why pick 118 and 1000, it is those 2 numbers that put the solution just outside the range in the integers here.
  4. I might add that although you say 1000 to one for 1, that does not mean a 1000 times more, a random number is not linear(can't be predicted), so therefore not a single dimensional number, so therefore it has more than one component to it, so by treating the maxodd like that you will get more of the 1000 times than the 1000 to 1, for example treat the number as having 2 dimensions, then it would be maxodds squared, for three then cubed. So by squaring or cubing maxodds might give you a number that you want. For example in the code above, if you add the line maxodds = llCeil(llPow(maxodds,2)); just after the llSetmemoryLimit(0x4000); will increase the chances of one, to nearer the 1000 times over 118 that you want.
  5. Don't see the runtime code, just money, would not trust this script if you paid me, this is very badly written script, I would be ashamed to claim I wrote this.
  6. This code will test the distribution of the numbers, let it run for a while then click it and it will list how many times each number was selected. integer maxodds = 1000;integer minodds = 1;integer range = 118;integer rannum;integer odddiv;list nums = []; default{ state_entry() { llSetMemoryLimit(0x4000); odddiv = (maxodds-minodds)/range; integer x; for(x=0;x<range;x++){rannum += maxodds-(x*odddiv);nums+=0;} nums+=0; llSay(0,(string)rannum); //test string llSetTimerEvent(0.1); } timer() { llSetTimerEvent(0); integer num = llCeil(llFrand(rannum)); integer x=0; integer mo = 0; do { mo += (maxodds-(x*odddiv)); x++; } while(num>mo); nums = llListReplaceList(nums,[llList2Integer(nums,x)+1],x,x); llSetTimerEvent(0.1); } touch_start(integer total_number) { integer x; for(x=0; x<range;x++)llSay(0,(string)(x+1)+" = "+ llList2String(nums,x+1)+" times"); //test string }}
  7. integer maxodds = 1000;integer minodds = 1;integer range = 118;integer rannum;integer odddiv;default{ state_entry() { llSetMemoryLimit(0x4000); odddiv = (maxodds-minodds)/range; integer x; for(x=0;x<range;x++)rannum += maxodds-(x*odddiv); llSay(0,(string)rannum); //test string } touch_start(integer total_number) { integer num = llCeil(llFrand(rannum)); integer x=0; integer mo; do { mo += (maxodds-(x*odddiv)); x++; } while(num>mo); llSay(0,(string)x+ " - "+(string)num); //test string }} Yes that is not hard to do, above is code that does as you ask, it is 1000 times more weighted to 1 than 118, it is not hard to see how it is done and creats a curve that you want. it has no steps and is a pure curve. X is the number you want from the touch event. oops changed the line integer mo = maxodds to integer mo = 0;, now its perfect, lol.
  8. Dora Gustafson wrote: Lucinda Bulloch wrote: Yes, I have whole systems using it now, add the free memory line and you will see that if to low it allocates a full 64k, only when defined, you don't get runtime errors till its running, like I said if the free memory reports 2k free then you get a runtime error if 2 1.5k or more messages get stacked up, it is becoming an art, like with lots of emailers, you can find the first few in the chain will create run time errors and extra memory has to be allocated to them, I had to do that to my game servers, the first 5 emailers have 4k more memory than the rest This caveat should certainly be described in details in the wiki, Are you the one to do that? You seem to know a great deal about it. llSetMemoryLimit() would be a good place to write it i have a real thing about forms, wiki looks as if it is a mission, and I don't have the time, I am working 12 hours a day converting all my stuff to the new instructions, I have one game that has over a 100 objects, changing it all to castray, regionsayto and memory limit is driving me to the grave, but you look well versed on it, so maybe you should.
  9. Hi, yes, when I first did it I thought I could get away with tiny scripts, then when I looked on the parcel memory use I found nothing had changed, so I now put the get free memory line after, that takes bout 500 bytes, so when you comment it out after you can add 500 to your free memory, but you do have to be careful about using linked messages, when I did the first server, I thought job well done, took ages, then a big message came in and just about every script crashed.
  10. Yes, I have whole systems using it now, add the free memory line and you will see that if to low it allocates a full 64k, only when defined, you don't get runtime errors till its running, like I said if the free memory reports 2k free then you get a runtime error if 2 1.5k or more messages get stacked up, it is becoming an art, like with lots of emailers, you can find the first few in the chain will create run time errors and extra memory has to be allocated to them, I had to do that to my game servers, the first 5 emailers have 4k more memory than the rest .
  11. HI, did you test the llSetMemoryLimit(0x1000); that is only 4k and I have found that much code wont fit, what I do is always get the free memory before is set the number, what the code does is ignore it if it is to small when defined. So I would put. state_entry() { llSetMemoryLimit(0x1000); llSay(0,(string)llGetFreememory()); } if the limit is to small then all 64k is allocated and the free memory reports a number far higher than 0x1000 that case looks as if it could be below 0x4000 but above 0x1000; I could be wrong I always use the linked messages and try to keep them under 2k, but allow 4k to 8k for things like the message queue and the http instructions I use a lot.
  12. The OP is not ill, they have reached one of life's frontiers, in a sense they are lucky, not many reach this and are able to express it in such a way that others that have reached and past that frontier can see it and know where they are, as for a cure they don't need one, because when they reach a point of confusion they take active action to clear it up, what you have seen in this thread is just that, how a perfectly sane person makes sense of a very insane world.
  13. Replying to the OP, seems the reply button at the bottom left is acting like it is on the right Reminds me of a early James bond film, where they all have names like number one and number two, does this scanner come on warning all it coming on so James bond can hide from it, anyway joking apart, it is not clear how object gets set, and you should have a no_sensor so you can tell when it is not there, sensor tells you its there by the event being triggered, no_sensor is triggered if it is not there, but I think James bond will be happy knowing that he will always have a chance to hide from the sensor and when to pop his head up again, still you could use them to launch a thunderbird or two.
  14. We will all know when to act, I do not believe in things like god, but I do have faith in nature and her need to nurture, nature only requires balance, when things are to change direction so to reach that balance then nature will let us know, this thread is all about waking up, when enough have woken up so we will act as one, those that have taken over have become isolated from the people, to them they wont be part of that awakening just its victims as we are now.
  15. Easy, don't have any friends, then you don't have to worry about any of that, people in sl are very fickle.
  16. I bet you do, but blowing holes is a huge exaggeration don't you think? I can't see a single hole.
  17. Yes, your time of looking after others may have diminished, the fact they don't need you so much shows how well you did, but you are not alone and there are many that feel like you, and yes the 60's and 70's were a bit of a cop out, but now we are old now, we wont make that mistake again, we are legion and we will be heard.
  18. What you seem to be asking for is a script that you pay first then get a menu, that is poss, but most do a menu first then pay as many things are diff prices, put a pay first then menu is poss.
  19. Yes a bit, there must be someone that loves you a relative maybe, but nature has programmed us to stop working when we feel completely alone and isolated, it is almost like a test, some have known that and have climbed mountain tops and isolated themselves for 20 years or more to see what is revealed to them. But the way you describe your isolation is not about learning but about remorse, you don't have to lose a loved one to feel grief, just losing the everyday people around you can make you feel that way, I can feel how you feel and I can see it is because you have narrowed your view on what is right and wrong and feel it is time to judge, well I disagree and feel that you must put this aside as learning, you must look inward and see where you fit in the world and not where the world should fit to you, as some one once said, "it is not important that anyone should do for you but what you should do for yourself". But expressing what you have has helped cure you, you need only words to cure not meds. With regards to the slave, the slave did not die, the slave gave us an insight into ourselves and established some of the rights and wrongs we now live by, they gave us a standard to fight to, how could that have been without them, the landowners, overseers we forget but the slaves we never forget.
  20. I would say isolated you are, many feel as you do, if you knew that and them then you would not feel isolated so would have meaning, example there may have been an depressed jew in 1930, but far more jews felt the need to fight and rebalanced it, same goes for now, you may feel alone and that the bad guys have won but far more want to fight and rebalanced that, nature has programmed life to not be alone and when it feels like that to bow out of it, do you think you should when there is so much to be done, to put right what you can see is wrong, or are you blind to that and self indulgent.
  21. Lol, you seem to understand, just sit tight, the time will come when your gut will tell you what to do, you wont be alone, millions will feel what is right to do and act, they know we are coming, they hear us, they feel us, they fear us. wont let me embed that.
  22. To be honest I have noticed that a lot of your post give a positive view to others negative, so that suggest that you are involved in damage limitation on behalf of the lindens, the best thing about traffic bots was that they showed up on search, I never went to the places on top, I always scrolled down to places with numbers that looked real, now you can't tell so search is useless.
  23. Logic says that DNA is universal, and that aliens are human and just a bit more intelligent and that the planet is being taken over by a small group of them, but that is logic that the human race here can't face, judging by the actions of these invaders this is not the first time they have done it and are using very old and well tried plans.
  24. Yes I hate the new viewer, the old viewer had a search that I understood and could use, the new viewer has a rigged search, so I never use it, also I don't go anywhere now, sl seemed to have committed suicide over it, I am sure a lot are like me and don't move from their home now.
×
×
  • Create New...