-
Posts
1,663 -
Joined
-
Last visited
Content Type
Forums
Blogs
Knowledge Base
Posts posted by Darkie Minotaur
-
-
You can't load a texture from an external server - from the perspective of LL there are good reasons for that, I guess.
What you could do, however, is use moap (media on a prim - see here e.g. ) to load a texture to the face of a prim.
Most likely, however, this will not work with rotating images - or to a limizted degree - since pages are rendered to each viewer.
- 1
-
HTTP communication is simple: request an an response. I you use several echo or print commands in an response, the result will still be one response. That should answer the quostion for separate http_responses.
As for several scripts listening for the responses to the same request: All scripts in a prim that sent the request can listen for the response.
To advice you how to best go about your problrm, it wiuld be good to know a little more about what your problem is.
-
Ok. Which object/prim these lines a written for? My starting point id the original object - so objRot would be llGetRot()
-
I have two more questions:
- What is objRot?
- What is normal (third line in your code)?
Thanks!
-
Thanks a lot, Dora - I will try it - and try to understand it.
-
I know I will chew off my lips when I see the solution, but I'm stuck here.
I want to mirror a prim at an axis - let's say the global x-achis. I got the positioning right - piece of cake. But I just don't get the rotation math right.
How do I get the rotation mirrored properly (let's keep it simple, and take the global x-axis?
-
Ok - no worries.
-
Bezieht sich dein Posting auf meines - es scheint so, weil du ja auf meines antwortest. Ich muss aber ehrlich zugeben: Ich verstehe nicht, worauf du dich beziehst.
-
Dies ist kein Beitrag zum Thema - aber ich habe mich beim Lesen Orcas Postings doch ziemlich amüsiert - rund um das Wort "Interpretaton". Das - und wenn man andere korrigiert, sollte man schon richtig richtig stellen - ein Substantiv ist.
Aber auch inhaltlich fand ich das Statement lustig - natürlich ist vieles darin eine Interpretation (viele wüdren sogar sagen, dass jeder Meinugsaüßerung eine Interpretation voraus geht). Das deutlichste Beispiel: Deinem "EDIT 2" liegen einige Interpretationen zu Grunde.
Das nur nebenbei.
-
The smoothest way to do what you want would be to use llSetKeyframedMotion. How you calculate the coordinates depends on how they are defined.
-
As far as your little script is concerned, there is no reson it shouldn't work in a HUD.
-
You can't do it, if you put the cadrige inside the projector's inventory. As long s both objects are rezzed in the same region, you can however use llGiveInventoryList (http://wiki.secondlife.com/wiki/LlGiveInventoryList) to treansfer the textures in the cardrige to the projector.
-
- Just try - and if you run into problems, just shout here!
-
What you basically need is a money event (http://wiki.secondlife.com/wiki/Money) to know that someone has payed the object and a timer event (http://wiki.secondlife.com/wiki/Timer) that you set with llSetTimerEvent (http://wiki.secondlife.com/wiki/Timer) to time the sitting. For an example how to script a pose ball, look here http://wiki.secondlife.com/wiki/Zero_Lag_Poseball
-
The answer is simple: prim media is not supported by v1 based viewers. They only support parcel media. Firestorm does, however, since it's not v1 based.
-
If the right-click way isn't what you want, you could use a second prim, make it transparent and place it on the face in question. Of cause, this means you can't click on the media (e.g. links) on the media prim.
-
You should state more precisely what you want. Do you want to load media onto a prim's face or do you want to retrieve data from an outworld server? These are 2 very different things.
To display media on a prim, you either use parcel media (look at LlParcelMediaCommandList) or prim-media (look at
llSetPrimMediaParams) -
The simplest way usually simply llHTTPRequest (if the inworld object triggers the information retrieval) or llHTTPResponse (if the webserver triggers the information retrieva; lslightly more tricky).
-
To stop the object to react on clicks for a bit, you simply add a timer and a flag:
key myRequest;string Who;integer touchable = 1;default{ state_entry() { } touch_start(integer number) { if (touchable) { touchable = 0; Who=llDetectedKey(0); llSetTimerEvent(10.0); llInstantMessage(Who,"Sending request to the server! Please wait..."); myRequest=llHTTPRequest("http://example.com/Page.asp", [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/x-www-form-urlencoded"], "Who=" + llGetUsername(llDetectedKey(0))); } else { llInstantMessage(Who,"Please wait a bit"); } } http_response(key request_id, integer status, list metadata, string body) { if (request_id == myRequest) { llInstantMessage(Who,body); } } timer() {
touchable = 1;
llSetTimerEvent(0);
}
}You could also wait for the http_response for setting touchable to 1 again, which at you current design would be better, since if the response has not arrived back when a second avi touches the objects, Who will be overwritten and the first ava won't get the IM in the response event, but the 2nd avi would get two mesages-
-
Grundsätzlich sollte SL - und auch Firestorm - auf eurer GraKa laufen, wenn auch nicht sonderlich schön - ihr bewegt euch damit am unteren Ende dessen, was SL braucht.
Bevor hier schlechtes Benehmen in blanke Aggression um schlägt, ein paar Tipps:
- bevor ich anfangen würde, in den Untiefen der verschiedenen Einstellungeb zu wühlen, würde ich einfach den Viewer sauber de-installieren und neu installieren. Wie man sauber de-installiert, könnt ihr hier nachlesen
- wenn das nichts hilft, geht inworld zur Support-Gruppe und fragt dort nach
-
There are two problems I can see in your code for the rezzed object:
- You use "attached" as a global variable - and as the variable for the parameter that gets passed by the attach event. Change the name of the global - let's say to "isattached" and set it to attached in the event.
- You din't st your global 'attached' - so it's not NULL_KEY. I would set it to NULL_key explicitly in the rezz event.
Try and see if that solves the riddle.
-
In which event do use this code? I guess it's the money event (the part before the http_response event), which doesn't support llDetectedKey() but passes the key of the ava that has payed money as a parameter. , id or Who are keys, so you have to convert them, using them as a string. AlsoYour code could look something like:
key myRequest;key Who;state cash { money(key id, integer amount) { Who = id; llInstantMessage(Who,"Sending request to the server"); myRequest=llHTTPRequest("http://example.com/Page.asp", [HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/x-www-form-urlencoded"], "Who=" + (string)Who); } http_response(key request_id, integer status, list metadata, string body) { if (request_id == myRequest) { llInstantMessage(Who,body); } }}
-
Was für eine GraCa hast du verbaut - hast du eventuell 2?
-
Look at llGetInventoryName- the example there should show you, how to iterate over the contents of an inventory.
Max Content of the HTTP request and Response
in LSL Scripting
Posted
HTTP_BODY_MAXLENGTH in llHTTPRequest defines the accepted length of the body óf http_response - not the length of the length of the body sent by llHTTPRequest. This, I think (but I'm not sure) only limited by the script memory available.