Jump to content

Jenna Huntsman

Resident
  • Posts

    672
  • Joined

  • Last visited

Everything posted by Jenna Huntsman

  1. Hey! Just about fried my brain trying to work this out (it's been a while since high-school math). I want to generate 2 equally spaced points along Bezier curve between vectors A and B For example, Vector A is <0,1,1> and Vector B is <1,0,-1> Vector A and B also have rotation values (stored in Rads, but will put Degrees here) A: <0,90,0> B: <0,0,0> I've also got a base position vector (pos) which in this example will be <0,0,0> (rotation is irrelevant) How can I do this? Thank you! In case it helps, here's some actual (example) values for A and B, and their rotations Pos: <0,0,0> A (positon): <-0.50716, 1.00641, -1.64015> A (rotation): <-86.63250, 0.94834, -74.28978> B (position): <1.11717, 1.06567, -1.35355> B (rotation): <-82.30524, -5.75685, -126.59010>
  2. Probably going on around 600. Script is running in Mono with no set memory limit
  3. Just building on this actually: Did some modification to my scripts so now the strings are sent in blocks to solve the memory issue. I've actually now run into another (mostly unrelated) issue wherein I have a long list of strings, however I'm running out of memory when that list gets too long. Each string is around 50 characters or so. That Ord function looks like it might do the job of compressing that list well, would that be a good idea or should I look at another solution? Thanks guys!
  4. Hey! I've got a script which needs to pass a long list to another script via RegionSayTo However, I notices on the LSL wiki that scripts can't receive messages longer than 256 characters, so I wanted to look into compressing the content of the list and decompressing it on the other side. How could I do this? I looked at the llMD5String but that seems to only be useful to authenticate the content of a message, and not really compress it. Thanks! EDIT: Would llXorBase64 be suitable for this kind of thing? I don't really need the security aspect but if it can compress a longer string into a shorter one that'd be really useful!
  5. Thank you! Got it working, though had to modify your command a little - here's what I've got now: if((number != 10006) && (number != 10008))
  6. Hey! I'm having trouble getting a script to read the incoming number from link_message, and if it doesn't match either numbers, then return. Here's the code I've got: if(number != (10006 || 10008)) { llWhisper(0, "Wrong number!\n" + (string)number + "::" + message); return; } I've tried the statement as many different forms, such as: number == !(10006 || 10008) number != 10006 || 10008 number != 10006 | 10008 number != (10006 | 10008) number == !(10006 | 10008) None of which seem to work properly. How can I perform this check?
  7. Unfortunately, what Chibi said is true. Also, modelling is usually an uneconomical way to upgrade your avi, as most jobs are only interested in applicants who have already mastered their look. But yeah, get a Flickr, and take some photos to use as a portfolio!
  8. That worked, thank you! For reference, my code is now: list animtemp = llParseString2List(llList2String(localmem,i),["@"],[]); string Anim = llToLower(llList2String(animtemp, 0)); Anim = llStringTrim(Anim, STRING_TRIM_TAIL); Added a llStringTrim to get rid of the space before the @ sign!
  9. That *kind-of* works, but is returning weird parts of the command if the animation name is short (e.g. relax)
  10. Hey guys, I'm having problems getting my script to find a word match in part of a list. I've got my script to read configuration values from a notecard, and store each line of the notecard as a list entry, so for example the notecard is: Animation1 @ command @ number @ location @ frequency @ sitter Animation2 @ command @ number @ location @ frequency @ sitter Animation2 @ command2 @ number @ location @ frequency @ sitter Animation3 @ command @ number @ location @ frequency @ sitter And these are stored in a list called localmem. I'm trying to use llListFindList(localmem, [POSE_NAME]) POSE_NAME is the name of a pose taken from an inbound command from AVSitter, and returns the name of the pose as a string (e.g. "Animation2") only problem is, that llListFindList is always returning -1 How can I make it look for a word match as part of a list entry, and return the index of the location? Also, as there can be multiple commands tied to a single pose, how can I find all occurrences of the word and return all indexes of where it was found? (Ideally returning the indexes as a list) Thank you!
  11. Hey guys, LSL noob here so forgive the mundane question, but I'm completely stuck and Google isn't helping anymore. I'm trying to create a script that issues commands when an action is triggered from AVSitter -- I've got the communications between AVSitter and the script working, but I'm stuck trying to get my script to read from a config notecard as I want to store multiple values on one line, for example POSENAME @ COMMAND @ CMDVALUE @ LOCATION @ FREQUENCY @ SITTERNUM I'm not sure on how to get my script to read up until it hits an @ sign, and take the value, so that I can set internal values, e.g. avpose = POSENAME cmdwrite = COMMAND I don't think I can use llGetSubString as that seems to be looking for strings of fixed length, however pose names and commands are not fixed lengths! Can anyone think of a way I can do this? Thanks in advance!
  12. Does anyone know how often the list updates? I want to change both my first and last name but I don't like any of the given options (LL -- why isn't the list longer?) so will wait until the next cycle to see if I like any of those names
  13. Hey there! I'm a new model, just starting out but have been steadily building a portfolio! Contact me inworld at 1Hannah Actor! My Flickr: https://www.flickr.com/photos/crystalyne/
  14. I'm having this too. For some reason my mesh avatar just appears invisible instead of showing properly. Any news on this?
×
×
  • Create New...