Jump to content

Rhiannon Arkin

Resident
  • Posts

    85
  • Joined

  • Last visited

Posts posted by Rhiannon Arkin

  1. Hi

    I was wondering how to measure speed and efficiency in more complex scripts. 

    I am mostly curious about the usage of many individual variables vs lists. Is there empirical data available which of the two is more efficient ? speed and memory wise. 

    curios..

  2. Thanks for all the input! 

    The issue was that I still had a timer running in the script. and that was causing the script to go somewhere else instead of to the listen for the dialog. doh. 

    Steph: what kind of clean up operation would you need there? 

  3. Hi. I'm not finding what i'm doing wrong. So i have to ask here for some advice. 

    I'm working on a hud that pings a http server for data, and that server, on my domain, pings back and it all seems to work. If that player does not exist, the server returns a string with a command "fnop" and I want to open a menu with some additional choices, which I then will send back to the server. 

    So far so good. Not sure if these snippets are enough information. There's not much to the script, I have a few states and this happens in a state dedicated to that server interaction. 

     

    http_request(key id, string method, string body)
        {
            if (method=="POST") // incoming from server
                {   list temp=llParseString2List(body,["&"],[""]);
                    //server says nope 
                    if (llList2String(temp,0)=="fnop"){//--> menu 
                        llListenRemove(menu_listener);
                        menu_listener=llListen(hudchan_menu,"",playerID,"");
                        llDialog(playerID,maintext,menu_list,hudchan_menu);
                        }

    }}

    and in the same state I have the listen:

    listen( integer chan, string name, key id, string message )
        {
            if (chan==hudchan_menu){
                llOwnerSay(message);

    }}

     

     

    It all works up to the dialog box, the http server responds, I receive the "post" and the dialog opens. i can click on the choices and expected the listen on the same channel to hear it. but it just doesn't. It doesn't hear the dialog box. 

    So i wonder if there is an issue with the dialog being inside the http_request event? 

    well, maybe somebody has an idea about this. 

    thanks in advance

     

    R.

     

  4. That makes sense of course. in a way. Maya doesn't 'like' these tiny scales SL is working in. So it is better to rig and animate in cm/unit which is 100 times bigger than what SL expects. I couldn't find a scale while export setting in maya exporter of DAE/fbx, which would be even cooler since I wouldn't have to rig in mini-scale. Maybe there is a way around that. I have my workflow down now of creating big then scaling it down, then skin it, then export it.

     

  5. as so often in my case i find the answers soon after I post a question. 

    Issue is that my maya scene is 100 times bigger then the default sl avi template. I didn't think that would matter. since it's getting scaled down during import. 

    BUT it makes all the difference.

    If I export from maya 100 times smaller, import it into SL as 100 times bigger. then it works. 

    If I am too big in maya then import it as 100 times smaller into sl it does not work. 

    i'm sure there's a logic to it. 

     

     

    • Like 1
  6. hi

    I am experimenting with a mesh body. I model it in maya, skin it to the skeleton then export it as dae. 

    I can upload it in sl, click the include skin weights option, scale is set to 1. 

    When I rez the mesh onto the ground it has the correct scale. 

    When I add it to my avatar, it is GIGANTIC!

    I tried different scales and orientations but it always results in the same result. huge, and completely distorted. 

    what is the secret here ??  

     

    thanks a lot 

     

    R. 

     

     

  7. wow. i have the exact same result when exporting from maya to sl. even just exporting the base bento skeleton as it is provided with the mel script posted on the wiki results in the distortion you have. impossible to use. 

    Has anybody out there any advice on how to use maya for animations for sl ? seems so strange that this doesn't work. 

     

  8. thanks it's getting a bit clearer and clearer. 

    I understand the first part where it sends the string 'send' to the google form. that makes sense. 

    for the 'get' part, well, i have to understand how this works a bit more. Seems like one of these sl scripting things that seems very strange and then suddenly, after deep studies and experiments, start to make sense. 

    thanks

    R.

     

     

  9. ok thanks for the info. That makes it a lot more complex. Couldn't they just send the url with the header ? 

    Seems all initiative needs to start at the object in world. the server can't just start doing things. (maybe a good thing. )

    interesting

     

    R.

     

     

  10. Hi

    One rhia-question: I'm exploring this whole http command structure. 

    Here's where I am stuck. How do I know the url for the object in world I want to send stuff to ? The object already sent info to the off world server, but now this off world server wants to send things back to that same object. I know i have the key of the object through the headers. but how do i get the http/.... address so the php can send things? And, is that object always 'listening' to such pings ? 

    thanks for any insight

    R.

     

  11. Google sheets! Lol. Brilliant. 

    Probably a lot easier to set up then actual mysql databases. I wonder if you have resources to share on how to access google sheets on that level. 

     

    Found the info, they have a api for python. 

  12. Interesting solutions. Maybe having an external server is a good solution, but is also a lot of work to set up properly. I was mostly wondering how user settings and preferences can be managed. I hardly need huge amouts of data, so maybe all the other solutions are more valid. It's a mostly theoretical exploration for now. 

    I'll see if i can experiment with experiences too. They are still a bit mysterious to me. 

  13. Hi

    I saw a few huds that store data, user settings. How do they do that? We can't write into a notecard so I assume the data is kept somewhere in memory. And if i detach and re-attach the hud, doesn't it reset it's memory? 

    Is setting up a external server /database still the most reliable option ? 

    thanks for suggestions

    R. 

     

  14. Hi 

    I'm stuck thinking. 

    I am trying to use the control event to trigger animations for a weapon. (left mouse down+ control key). But obviously that takes away the control over the avi. 

    Is there a way to have the regular key input plus whatever i want to do by taking away the controls. Like triggering the weapon AND still moving forward as before. ??

    thanks


    R.

     

×
×
  • Create New...