-
Posts
23 -
Joined
-
Last visited
Content Type
Forums
Blogs
Knowledge Base
Everything posted by Biran Gould
-
Thanks Tessa. I think i'm going to go with integer numberOfSecondsInAWeek = 604800; integer weekNumber = ((llGetUnixTime()+offset)/numberOfSecondsInAWeek) - 2816; so at least my weekNumber will be accurate for the rest of the year. Maybe i'll add something like weekNumber = llList2Integer([weekNumber,weekNumber-52], weekNumber > 52); to keep the value correct for next year too.
-
So, i have a simple HUD game, that allows the players to collect points. But i want the HUD to reset the points to zero, at midnight on Sunday ( SL time ) and i also need to take care of people who were offline sunday, and don't come back until later in the week. I was initially thinking of tracking the week number, but unfortunately, i found nothing in the date libraries for generating that from a unix time But i'm really not sure what the best way to approach this problem is, Please let me know your thoughts on how to deal with this issue, thanks!
-
Converting a UUID into a channel number, and back again
Biran Gould replied to Biran Gould's topic in LSL Scripting
I wanted to rez a prim, and instruct it to follow a specific avatar, without having to call the object that rezzed this prim, for the uuid to follow. -
So, for some time, ive been doing the following, to generate a random channel number. integer pchan = (integer)("0x" + (string)llGetKey()) * -1; but now i'm wondering, if i pass that value to another script, Is there a way of working backwards, and calculating the original uuid, from that integer?
-
Awesome as always Tessa! Thank you very much, i appreciate it
-
I found this excellent compass example on the following page, to tell me which direction another object is, in relation to myself https://wiki.secondlife.com/wiki/LlAtan2#Examples which is nice, but i want to know, which direction ( N/S/E/W ) is my avatar facing? can anyone share a code snippet to tell me? thanks in advance
-
*RESOLVED* i was originally posting /formResponse&entry.965194476=ONE&entry.1380673114=TWO&entry.701416711=THREE when i should have been posting /formResponse?entry.965194476=ONE&entry.1380673114=TWO&entry.701416711=THREE So i'm now able to write data out to a google spreadsheet! Woot!
-
Ive been looking into the concept of posting data from an SL script, into a google spreadsheet. Ive been following the method explained here https://community.secondlife.com/forums/topic/468863-how-to-read-data-directly-from-google-sheets/ So i created my spreadsheet, then created a simple form selecting 'Get pre-filled link', adding data ONE, TWO, THREE into the 3 fields in my form, and then hitting the 'GetLink' button returns the URL as expected https://docs.google.com/forms/d/e/(spreadsheet_id)/viewform?usp=pp_url&entry.965194476=ONE&entry.1380673114=TWO&entry.701416711=THREE So far, so good, but then the example provided suggests changing "/viewform?usp=pp_url" into "/formResponse" in the URL in order to post the data back. Problem is, when i tried it i was just getting "Page Not Found", and my values are not going into my spreadsheet.
-
Hello FB, IM has been sent, drop a notecard with your specsifications on me when you have the time. Thanks
-
Hello! My name's Biran, and i write scripts. ( since 2006! ) I specialize in HUD Devices and Experiences, and have worked on a wide variety of projects I provide full perm scripts, that you can resell in your own products. Call me in-world, I'm here everyday. Marketplace : https://marketplace.secondlife.com/stores/1894 In-world : https://maps.secondlife.com/secondlife/Embrace/186/164/2002
-
Thats great, thanks for your help everyone!
-
Hello, i was wondering, So if i know where i am using llGetRootPosition() and i know which direction i am facing using llGetRootRotation() and i want to rez an object, directly 3m in front of me, how can i work out the vector position? surely this must have been done before? Thanks
-
My go-to for a random channel number is integer channel = (integer)("0x" + (string)llGetKey()) * -1; Random for every object.
-
Thanks Tessa! i'll look into it.
-
Hello. I created a script, that lets the avatar flip a coin. You can see a gif of it here https://gyazo.com/e75392a90d9419d76ee0453f46caba0c Its a simple little thing, and i was happy with it. Here's the function in my original script. vector hPos = <0.008243, 0.000406, -0.006726>; vector hRot = <0.0, 0.0, 0.0>; fMove(integer gohome) { if (gohome) { llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_POS_LOCAL, hPos, PRIM_ROT_LOCAL, llEuler2Rot(hRot)]); } else { list p = llGetLinkPrimitiveParams(LINK_THIS, [PRIM_POS_LOCAL, PRIM_ROT_LOCAL]); vector pos = llList2Vector( p,0 ); vector mRot = llRot2Euler(llList2Rot( p,1 )); moved ++; if (moved < 30) { pos.z += 0.01; } else if (moved > 60) { moved = 0; mRot.z = 0; } else if (moved == 30) { pos.z = hPos.z; } else { pos.z -= 0.01; } mRot.x += 0.1; if (pos.z > hPos.z) { pos.z = hPos.z; } llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_POS_LOCAL, pos, PRIM_ROT_LOCAL, llEuler2Rot(mRot)]); } } Full source : https://pastebin.com/190Thxjm The problem arrived, when i got a better animation. Now the default rotation of the coin has changed, and i just can't seem to get it flipping end over end. my second version, which has the following defaults vector hPos = <0.047370, -0.024816, 0.011251>; vector hRot = <0.0, 1.57080, 0.0>; behaves like this https://gyazo.com/711bc5b5e44601b6e5a45bd9fe96bd72 full source https://pastebin.com/JXvwQyTX any help would be appreciated! thank you!
-
Looking for a SCRIPT creator to help me with a custom job
Biran Gould replied to pipex0ne's topic in Inworld Employment
Sent you an IM -
Hi Maverick, Call me when your next in-world, i'd be happy to take a look.
-
I can help you with that Sofia, i'll send you an IM when we are both in-world at the same time
-
Thanks for the project Mimizy!
-
Hello Strawberry, thanks for your question. Write me a notecard, listing all your desires, drop it on me, and i will see what i can do
-
Hello! My name's Biran, and i write scripts. I specialize in HUD Devices and Experiences, and have worked on a wide variety of projects I provide full perm scripts, that you can resell in your own products. Call me in-world, I'm here everyday. Marketplace : https://marketplace.secondlife.com/stores/1894 In-world : https://maps.secondlife.com/secondlife/Embrace/186/161/2001
-
$$$ In need of a scripting professional!
Biran Gould replied to Thommas McMahn's topic in Inworld Employment
thommas.mcmahn This name is unavailable. https://gyazo.com/2f9bc94fd59734e1634df20df3162f15 Give me a call.