Jump to content

Xiija

Resident
  • Content Count

    662
  • Joined

  • Last visited

Community Reputation

173 Excellent

2 Followers

About Xiija

  • Rank
    Lotus Eater

Recent Profile Visitors

1,070 profile views
  1. i figured it out.. was over thinking it... instead of adding rotations, i just reset them each time
  2. so, i was thinking of trying to make one, and am wondering what the correct rotation code would be. i will prolly make a mesh of the rotor case, and just make the blades seperate, or a texture. I think i need x & y rotations, and i will change them based on a vehicle movement code.. kind of like how tires turn right when a vehicle turns right etc? here is an anim of the idea... any thoughts? Scorpion Helo mebbe i should just forget about adding rotations and affect each one individually? here is what i have for testing... float rollAmt = 20; float pitchAmt = 30; default { state_entry() { } touch_start(integer total_number) { llSetLinkPrimitiveParamsFast(1,[PRIM_ROTATION,llGetLocalRot() * llEuler2Rot(<0,rollAmt,0>*DEG_TO_RAD)]); // roll llSetLinkPrimitiveParamsFast(1,[PRIM_ROTATION,llGetLocalRot() * llEuler2Rot(<pitchAmt,0,0>*DEG_TO_RAD)]); // pitch } } Thanx for any help
  3. http://wiki.secondlife.com/wiki/LlSetTextureAnim instead of ALL_SIDES, just use a face number? llSetTextureAnim(ANIM_ON | SMOOTH | LOOP , ALL_SIDES, 1, 1, 1.0, 1.0, 1.0);
  4. to check when someone sits... http://wiki.secondlife.com/wiki/LlAvatarOnLinkSitTarget to give a button .... http://wiki.secondlife.com/wiki/LlDialog if you have a script you are working on, you can post it for help. if you are looking for someone else to make you a script, you can try Help Wanted, or Inworld Employment https://community.secondlife.com/forums/forum/124-commerce-forum/
  5. mebbe its ... llResetScript(); cant get in world to check
  6. If you drop this in the cylinder, it should rotate only the cylinder? default { state_entry() { llSetLinkPrimitiveParamsFast(LINK_THIS, [ PRIM_OMEGA ,<0.0, 0.0, 1.0>*llGetRot(), 0.1, 0.01 ]); } } you may need to stop the spin in the root, if that is where your spin is coming from? just add this line to state entry in the root: llTargetOmega(ZERO_VECTOR, 0, 0);
  7. llSetRot( llEuler2Rot( (<0,0,90>*DEG_TO_RAD) ));
  8. You could cheat a bit.... llSound("SoundName1",1.0,TRUE,TRUE); llLoopSound("SoundName2", 1.0);
  9. I recently got to play around with these... we tried tp, coms, and url persistence .. very handy ! I only got to test because a friend has premium, otherwise i'd never have a chance. It would be nice if every account got at least 1 key-val to use outside of experiences.. oh well
  10. menbbe using SLPPF ... SetLinkPrimitiveParamsFast . with the LINK_THIS flag? it's hard to answer with such a vague question
  11. Mebbe like a vendor system, once you click a generator, it is "in use" and no one else can click it till it is done, and once a person has clicked one, it sends a msg to all other generators that this person is already using another generator in the system?
  12. for a temp fix, you could hack the end of the borken JSOn ? key XMLRequest; default { state_entry() { } touch_start(integer total_number) { llOwnerSay("Sending HTTP Request, ..."); string tail = "Malachi 3:2"; // "joshua1:9"; // Malachi 3:2 tail = llEscapeURL(tail); string URL = "http://bible-api.com/"; XMLRequest = llHTTPRequest( URL + tail , [HTTP_USER_AGENT, "XML-Getter/1.0 (Mozilla Compatible)", HTTP_METHOD, "GET", HTTP_MIMETYPE, "application/json;charset=utf-8", // "text/plain;charset= CP-1252", ISO-8859-1, utf-8 HTTP_BODY_MAXLENGTH,16384, HTTP_PRAGMA_NO_CACHE,TRUE], ""); } http_response(key k,integer status, list meta, string body) { if(k == XMLRequest) { if(status != 200) { llOwnerSay("\nRrror code : " + (string)status); return; } else { body = llDeleteSubString(body, -5, -1); // ***hack off end, ** body = body + "\":'non'}"; // ***and add json ending tag*** llOwnerSay("\nVerse: \n" + llJsonGetValue( body, ["text"]) ); } } } }
  13. I did a fake json file to test functionality.. works ok, so it's all on the API dood key XMLRequest; default { state_entry() { } touch_start(integer total_number) { llOwnerSay("Sending HTTP Request, ..."); string URL2 = "https://my-json-server.typicode.com/Xiija/FakeDB/db"; XMLRequest = llHTTPRequest( URL2 , [HTTP_USER_AGENT, "XML-Getter/1.0 (Mozilla Compatible)", HTTP_METHOD, "GET", HTTP_MIMETYPE, "application/json;charset=utf-8", HTTP_BODY_MAXLENGTH,16384, HTTP_PRAGMA_NO_CACHE,TRUE], ""); } http_response(key k,integer status, list meta, string body) { if(k == XMLRequest) { if(status != 200) { llOwnerSay("\nRrror code : " + (string)status); return; } else { llOwnerSay("returnedJSON: \n" + llJsonGetValue( body, ["comments","0","body"]) ); } } } } the return was... [07:12] http get api thing 2: Sending HTTP Request, ... [07:13] http get api thing 2: returnedJSON: My body is ONE! from my JSON file ... https://github.com/Xiija/FakeDB/blob/master/db.json
  14. I'm not sure what you mean by truncated?.. i put my script in a box, and it gives me the full verse? the params in the request are just basic ones i use for generic requests. I'll test the json thing and see how that goes heh ETA: tested, i see why the JSON is not working, and the truncation now... the end of the json should be.... "translation_note": "Public Domain"} but all that is getting thru is ...... "translation_not ...( making the JSON invalid) mebbe the timeout or content length on the API side? the Joshua one is 578 bytes, ...and the content length set at the api is is 509 ::shrugs::
×
×
  • Create New...