Jump to content

Killian Jayaram

Resident
  • Content Count

    19
  • Joined

  • Last visited

Everything posted by Killian Jayaram

  1. Yeah thanks setting them to floats worked
  2. I am trying to figure out a hit system based on enemy strength with user programmable strength and my code looks a little something like this... integer my_health = 100; // TAKES 10 HITS TO KILL ME IF NUMBER IS 100 integer health = 100; take_hit(integer strength){ integer hit_math = (strength /my_health) * 100; health = health - hit_math; } default{ touch_end(integer num){ take_hit(10); } } but for some reason "hit_math" keeps returning 0. Now maybe I have not had enough coffee yet but the math should work ( (10/100) * 100 = 10 ), what am I doing wrong?
  3. I am looking in to how when using the inbuilt browser on second life pre logs the user in when they visit secondlife.com, I would like to be able to pull the UUID or username from this data to know who is visiting/viewing. I have tried printing out all the headers using php/apache but nothing I know if I use the LSL llHTTPRequest I can use X-SecondLife-Owner-Key is there any way of doing this with the inbuilt browser? Thanks
  4. Hello, I use llHTTPRequest() in allot of my stuff and find that ever I move IP's and change my DNS that second life is so slow at looking up the new DNS to see my new servers IP that is connected to the domain. I am currently having to still run my old server as second life LSL is the only thing still using my old IP and I need to keep this online for my web systems to keep running but now a week of running my old server and second life still don't see my new IP. Is there any way to update this faster for the next time I need to move servers or change my DNS settings?
  5. I am trying to create a script crash to do some testing. Using allot of http responses and at the rare occasion the script can crash and just really needs a reset testing out the idea of report logging the error with what version and the user using llGetScriptState(). Is there a simple line of code or a setting on firestorm to stack heap or crash a script?
  6. Maybe diluting the search is a way to encourage us to pay for listing enhancements as 5% commission is not enough to pay for their badly optimized database server. Would be very easy to make your own marketplace style site if they made an API to login via their openid sign in system and allowed for "llGiveInventoryList" to work gridwide and not just the same sim.
  7. ChinRey wrote: Killian Jayaram wrote: I point blank refuse to change all my titles and descriptions to a one-liner, Makes sense. After all the title is your first sales pitch and it doesn't help much to get a top spot in the search results if people don't actually want to click on that link. Besides, if you focus only on one keyword it means only people who happen to search that specific keyword will ever see the listing. As an example I created (Self Scripted and Meshed) my own "Connect Four" but due to this name being a registered trademark of Hasbro (Milton Bradley (MB)) I can't use the title "Connect Four" but this is the name you search for when you think of this classic four in a row game, but the layout, colors and game itself is older than MB games and is not copyright. So to help me get seen in the search using some classic SEO tools I titled this product "Let's Get Four - Connect four in a row game" that way I have my unique name "Let's Get Four" so not to get a copyright claim on my butt, and put the words "Connect four" & "four in a row" in the title too but describing the game allowing for me to be searchable but unique at the same time but with this new system this could punish me for being a little more descriptive
  8. Pamela Galli wrote: ChinRey wrote: Oh yes, the new search algorithm is over-sensitive too keyword dilution and I really hope they'll correct that problem soon. Right now, if you want to rank high on s specific keyword, use that keyword and that keyword only as the title, add a word or two in the description field and upload a picture. Any other content in the listing seems to reduce your rakning. Well crap, that's the kind of thing they are unlikely to care enough about to fix. I have over 70 domiciles, I can't call them all House. There should be some kind of stats with them like a graph of sales with a big red line plummeting to the floor and someone should have noticed and want to fix it and I point blank refuse to change all my titles and descriptions to a one-liner, it makes the listing look quick and cheap and I would not buy from someone that does not put the time and effort into selling me the item as this reflects the quality of the product being sold.
  9. I would like to make a bit of an observance to the "new" Marketplace Search and just say as a user that buys more than one thing on a daily basis and as a small creator and have some of my items listed on marketplace that this new search is a step backward and does not give relevant results anymore! As someone that is a self-taught web developer and has over ten years experience, I have found that this new search engine uses the "less is more" system as if your item is listed as "Full Prem Hardback Book Mesh w/ AO" or "Book Mesh" the search will rate the less is more "Book mesh" over the more detailed product information title, you can try this for yourself just search "book" and you will find that you only find three word titles and most of the time the description just has a little information as a short line of text, most of the time just repeating the title. Now the old system was not great but with the use of user reviews and amount of sales would list this higher and almost providing a user powered search as we vote with out lindens! This to and the new ajax search suggestions that are useless unless you know the name of the product you're looking for by hole name, and what is should be doing is providing suggestions based on words and sentences that users have used before to find relevant results (and of course a profanity filter based off search maturity) and not hole product titles. As well I am willing to share how much I make a day with marketplace as most stuff I make for free or sell for less than 50L$ and don't care who see's but before with the old search system I was making on a daily basis 700L$ to 1,200L$ a day now with this new system I am lucky to make 100L$ a day now, hardly enough to pay for new creations uploads (Mesh, Textures, sounds, animations etc) and pay for inworld store to keep servers up and running. I did not want this to be a rant but more of constructive criticism as I can't be the only person that has noticed this and surprised that the beta search came out so soon and would wish there was a go back to the old search button. I would like other creators and shoppers to share their experience as maybe it's just me having a problem with the search.
  10. Freya Mokusei wrote: Killian Jayaram wrote: Any idea's how i can get this to make this select the list with out making a if(){} for evey number? While you can't use strings to build variable names, or use arrays in SL, you can use strided lists. From the look of your lists, each 'theme_' is a fixed number of items long? If that stays consistent then you can use strided lists, too! Rather than using ifs or text comparisons you'd be able to iterate through strides using an integer-based index, like an informal array. list lThemes = ["<1.00,1.00,1.00>","<1.00,1.00,1.00>","<1.00,1.00,1.00>, "<1.00,0.00,1.00>","<0.00,0.00,0.00>","<1.00,1.00,0.00>", "<1.00,1.00,0.00>","<1.00,1.00,1.00>","<1.00,0.00,1.00>"];list lgetStride(integer index){ list lreturnList = []; integer istrideLength = 3; integer i; for(i = 0; i < istrideLength; i++) { lreturnList += [llList2String(lThemes,index * istrideLength + i)]; } return lreturnList;} Hope this helps! revochen Mayne wrote: I'm often using strided lists and search for elements by using llListFindList list themes = [1, "<1.00,1.00,1.00>","<1.00,1.00,1.00>","<1.00,1.00,1.00>", 2, "<1.00,0.00,1.00>","<0.00,0.00,0.00>","<1.00,1.00,0.00>", 3, "<1.00,1.00,0.00>","<1.00,1.00,1.00>","<1.00,0.00,1.00>"];integer touch_count = 0;ChangeTheme(integer theme_index){ // WOULD MAKE THE COLORS HERE FROM LIST list theme_color = llList2List(themes, theme_index+1, theme_index+3);}default{ touch_end(integer total_number) { touch_count++; ChangeTheme(touch_count%3); }} Thats a very easy way to have some kind of associated lists like for a color menu: list color_names = ["red", "green", "blue"];list color_values = [<1,0,0>, <0,1,0>, <0,0,1>];GetValueByName(string cname){ integer index = llListFindList(color_names, [cname]); if(index > -1) { // get the associated color vector color = llList2Vector(color_values, index); }}default{ touch_end(integer num) { // get a color name, usually by menu input string color_name = llList2String(color_names, (integer)llFrand(llGetListLength(color_names)-1); GetValueByName( color_name); }} Thanks there is always a workaround!
  11. I am tring to make a short script that uses lists to customise the object (IE Themes saved in lists) but tring to slim down the script and make it so you can select themes from dialog but what i am looking to do it create the list name from string. list theme_1 = ["<1.00,1.00,1.00>","<1.00,1.00,1.00>","<1.00,1.00,1.00>"]; list theme_2 = ["<1.00,0.00,1.00>","<0.00,0.00,0.00>","<1.00,1.00,0.00>"]; list theme_3 = ["<1.00,1.00,0.00>","<1.00,1.00,1.00>","<1.00,0.00,1.00>"]; ChangeTheme(list theme_select){ // WOULD MAKE THE COLORS HERE FROM LIST } default { touch_end(integer total_number) { string theme_name = "theme_"+(string)llGetTime(); ChangeTheme((list)theme_name); } }Now this does run but does not run (lets say i held down for click (touch) for one second it does not run "theme_1" it tries to run theme_name. Any idea's how i can get this to make this select the list with out making a if(){} for evey number?
  12. I'm a little late jumping on board the mesh train but watching tons of videos and staring to get the hang of it, but I'm finding with a simple shape such as a bevel edge cube the shape can change dramatically upon upload in to second life without any changes. (Left is mesh in blender and right is edges viewed upon upload) If i import the file back into blender it is the same as but only changes when uplading to second life. (Running Blender 2.75 and Second Life 3.7.30 (302599) Any reason for this & a fix?
  13. Problem from when i come from PHP and JS the rules change, I will try making the vector to a list and output based on string and see if that works nay better as if and else make this to long and to much of a lag.
  14. See i thought someone was going to say that and i was tring to take the easy way out as i did not want to have to make 30 or so if and else commands but set the string and then work out from that the vector =p
  15. Maybe it's just getting late and google does not like me, but I am currently trying to use llGetsubstring to get the letter from a string and then add to a vector name. May not make sence, so here... vector texta = <0.0, -0.0, 0.0>; string words = "abc"; (vector)text + llGetSubString((string)words, 0, 0) // THIS LINE NOT WORKING FOR ME How would i go about doing this or am i doing it all wrong? (This is so i can change the texture vector baced on string without each texture change every time i make changes)
  16. Can't sleep so here... string is12() //STRING COMMAND NAME { integer now = (integer)llGetWallclock(); //SETS NOW AS CURRENT TIME integer hours = now / 3600; //TURNS HOURS IN TO 24H FORMAT string es = llGetSubString("0" + (string)hours, -2, -1); //ADDS 0 IF ONE DIG return llDeleteSubString(es, -3, -3); //REMOVES - IF HOURS IN NEG (GOOD IF MAKING TIME ZONE) } default //MAIN SCRIPT { state_entry() //FIRST STARTS { llSetTimerEvent(60); // Activate the timer every 60 seconds (DONT WANT ANY QUICKER OR MAY ACTIVATE TWICE) } timer() //LOOPS EVREY 60 SECONDS { if (is12() == "00") //IS CURRENT HOUR 12 AM { //ADD THING TO ACTIVATE AT 12AM HERE: llSay(0,"Another Day!"); //SAY ON PUBLIC CHAT THAT ITS A NEW DAY } } touch_start(integer total_number) // ON TOUCH { llSay(0,"The Current Hour is " + is12() + "."); //TELL TIME (GOOD TO SEE IF WORKING) } }
  17. Use wall clock found here: http://wiki.secondlife.com/wiki/LlGetWallclock Quick sample: // Convert to human-readable HH:MM:SS format string ConvertWallclockToTime() { integer now = (integer)llGetWallclock(); integer timezone = - 16; //GMT (Takes 16 hours from current time) integer seconds = now % 60; //seconds integer minutes = (now / 60) % 60; //Minutes integer hours = now / 3600; //Hours integer hourswtimezone = hours + timezone; //takes timezone from current hours return llGetSubString("0" + (string)hourswtimezone, -2, -1) + ":" + llGetSubString("0" + (string)minutes, -2, -1) + ":" + llGetSubString("0" + (string)seconds, -2, -1); } default { touch_start(integer total_number) { llSay(0, ConvertWallclockToTime()); } } I made this quick so there may be errors but should give you an idea. You would want ot convert this to a loop on rez and look to see if the hours equal 12 (or 00:00)
  18. I have had a good search and I can not find any info on how I would about changing the new Bumpmap and Shinymap Texture from script. Can this be done with lsl just yet and if so how would i go about it?
  19. As a seller on marketplace.secondlife.com I have many free items I list on the marketplace and forever is my email accounts full of emails of free items sold. I can turn off messages from second life but this only fixes half the problem as I would like to get emails from payed sales to keep records on sales reports in my inbox. Any other sellers have this same problem and if so would you like to see an option to stop emails from freebie sales? (Any Lindies Reading Take note as this is an much needed option!)
×
×
  • Create New...