Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Atrivixo

  1. I'm using Jass to make objects for clothes in SL. Is there a way to add images to use as materials? Such as an external tga or png with transparent areas that I can apply to an object within Jass...
  2. Thanks for the reply. I've tried this function, which works well when I simply attach the object. But my script attaches the object when it is touched, and for some reason, it only tells me the object has been attached AFTER I drop it. It's not a big deal though, I can pretty much use that.
  3. I want to add a function to my script that contains events that will happen when an object is dropped. I.e. the avatar will be holding something, and when they click "drop" on the object, I want something to happen. Is there a function for this? Or another way to do it?
  4. I have sent you a private message via your account on here.
  5. How do I get/create this openjpeg-dotnet.dll file?
  6. I've made sure that full permissions are set on the "Primstar" prim, and have changed the name (before exporting of course) of "Torus X.001" to just "Torus" but I'm still getting the same issue.
  7. Hi, thanks for the reply. I have just two prims and no copied parts. When I export them I have two maps (.tga files). Here is a copy of the lsl script: // Created with Primstar 1.1.0 from http://dominodesigns.info// http://creativecommons.org/licenses/by/2.0/uk/// Do not delete the attribution and license information unless you have// purchased a commercial license for Primstar from Domino Designs.integer multi = TRUE;list textures = ["Torus X.001", "Cylinder"];vector myPos;integer tI;string tS;key tK;key crate = "bcf02ab6-1cf8-fc38-0a50-94f9cf1c6c8b";integer isKey(key in){ if(in) return 2; return (in == NULL_KEY);}addPrim( string prim ){ llRezObject(prim, myPos, ZERO_VECTOR, ZERO_ROTATION, 0 );}default{ state_entry() { llSetObjectName( "Primstar - Torus X.001" ); llSetPrimitiveParams( [ PRIM_TEXTURE, ALL_SIDES, crate, <1.0, 1.0, 0.0>, <0.0, 0.0, 0.0>, 0.0 ] ); if ( llGetInventoryType( "Primstar" ) != INVENTORY_OBJECT ) { llOwnerSay( "Please add a prim called \"Primstar\" to my contents" ); state needs_something; } tI = llGetListLength( textures ); while ( tI ){ tI = tI - 1; tS = llList2String( textures, tI ); if ( isKey( tS ) == 0 ) { if ( llGetInventoryType( tS ) != INVENTORY_TEXTURE ) { llOwnerSay( "Please add texture \"" + tS + "\" to my contents" ); state needs_something; } } } if ( multi ) { llRequestPermissions( llGetOwner(), PERMISSION_CHANGE_LINKS ); } else { state ready; } } run_time_permissions( integer perm ) { if ( perm & PERMISSION_CHANGE_LINKS ) { state ready; } else { llOwnerSay( "You must give link permissions for the build to work. Click to try again." ); state needs_something; } }}state ready{ state_entry() { llOwnerSay( "Ready to build. Click to start." ); } touch_start( integer num ) { if ( llDetectedKey ( 0 ) == llGetOwner() ) { state build; } }}state build{ state_entry() { myPos = llGetPos(); llSetRot( ZERO_ROTATION ); llOwnerSay( "Building" ); addPrim( "Primstar" ); } object_rez( key id ) { llCreateLink(id, TRUE ); } changed( integer change ) { if ( change & CHANGED_LINK ) { tI = llGetNumberOfPrims() - 1; llOwnerSay( "Configuring Prim " + (string)tI); if ( tI == 1 ) { llSetLinkPrimitiveParams( 2, [ PRIM_TYPE, PRIM_TYPE_SCULPT, "Cylinder", PRIM_SCULPT_TYPE_CYLINDER, PRIM_SIZE, < 2.19875, 1.99577, 1.13357 >, PRIM_ROTATION, < 0.00000, 0.00000, 0.00000, 1.00000 >, PRIM_POSITION, < 0.00368, -0.00000, 0.44672 > ] ); addPrim( "Primstar" ); } else if (tI > 0 ) { llSetLinkPrimitiveParams( 2, [ PRIM_TYPE, PRIM_TYPE_SCULPT, "Torus X.001", PRIM_SCULPT_TYPE_CYLINDER, PRIM_SIZE, < 2.19875, 1.99577, 1.13357 >, PRIM_ROTATION, < 0.00000, 0.00000, 0.00000, 1.00000 >, PRIM_POSITION, < 0.00403, 0.00606, 1.32637 > ] ); llBreakLink( 1 ); } else { llOwnerSay( "Finished!" ); state ready; } } }}state needs_something{ on_rez( integer num) { state default; } changed( integer change ) { if ( change & CHANGED_INVENTORY ) { state default; } } touch_start( integer num ) { if ( llDetectedKey ( 0 ) == llGetOwner() ) { state default; } }}
  8. I've been recently going through the tutorial videos on : http://blog.machinimatrix.org/3d-creation/video-tutorials/sculpties-basic-tutorials/sculpted-prims-part-iii/ It's this video (Sculpted prims part III), that I am stuck on. When I load all the files into SL (as described in the video), and click the box, it only loads the FIRST prim and none of the others :/ Here is a short tutorial on what I'm generally trying to do (exported multiple prims and load into SL): http://robynhuffaker.com/sculptblender/2010/03/21/multi-sculptie-builds/ I've been stuck on this for hours today, messing about with all different ways of exporting and saving maps etc. Can anyone help?
  9. I am trying to create a menu that opens up when a prim is touched. The only solution I've been able to find it to use a dialog box. However, this doesn't allow me to adjust the size of the buttons, and most of the text that is going on these buttons will be long sentences. Is there any other way for me to create a clickable menu?
  10. I have a few questions regarding lib openmetaverse, being used to create a bot in second life. 1. Is there a method for an event for when the bot is touched? i.e. when some other avatar clicks the bot - do something... If not... then can I add something to the menu that appears when the bot is right clicked? 2. Where about in the API should I be looking to create a menu? E.g. a menu that appears (e.g. when the bot is clicked), that shows a selection of options, that the user(clicked) can select? I'm pretty new to C#, so I'm not sure about this stuff. Although I have programmed using Java for a few years.
  11. Thanks for your responses. Unfortunately I've tried all these suggestions and nothing seems to be fixing it
  12. I'm creating a bot using Lib OpenMetaVerse. I've managed to get it logged in but for some reason the avatar only displays as red smoke... I've used a C# script from wiki page. Does anyone know what I'm doing wrong?
  13. Hey there, I'm from the UK too and looking for new friends. I've sent you a friend request on SL
  14. Desculpe, eu não falo Português. Eu quero que você PM
  15. I have one big prim, that when clicked on, the avatar holds up their hands/reaches up. I only want the avatar to do this animation ONLY IF they are holding a certain object (object a) So, basically what I'm asking is, in the script for the big prim, how do I add a condition that basically says "if the user is holding object a - do this"?
  16. Hey, I'm looking for new friends who are maybe interested in doing some creation stuff together, or at least discuss things. If you fancy it, message back or PM me :)
  17. oh that's great, thank you! Thanks for all your help, I'll start working away at it now
  18. So if I use the person mesh model and I want it to walk, do I need to script each individual movement of the body or can I add animations to the mesh?
  19. Thanks both for your replies. I'm not sure if I am able to do the bot idea Is it possible to upload a movable mesh model? I uploaded a mesh model file (.dae). However, I can't get it to move? Even though there is an option for "moveable object". I imported a model into daz studio pro, made it do some movements, and exported it as a .dae file. I then uploaded it into SecondLife via Upload>>Mesh Model... I've tried it as: "Avatar Shape", "Moving Object", and "Not really any of these". It uploads fine and shows the "T shape" when placed on the ground, but doesn't move. Is there anyway to get this to move? Or am I doing this completely wrong?
  20. Thanks for all the information! I need the NPC to look like an avatar though. With a certain style of clothes and to be walking, holding objects, etc. So I think it may have to be a bot then. I have just started reading up on scripting and see that scripts can only be placed inside prim objects but not in an avatar. So for scripting a bot, do I script an object and make them wear it? :matte-motes-confused: or are there different rules for bots?
  21. Thanks for your response. I think the 2nd way of creating an NPC without a bot sounds along the lines of what I'm hoping to do. When are these new pathfinding commands released? I couldn't get into the link you gave me. I'm working on a relatively tight deadline because this is for a university project, rather than a personal one. If I want to take this approach: The other way is to write a script that moves your NPC randomly or along a pre-set path with llMoveToTarget and related functions. That can be fairly involved, depending on how much you want the NPC to do while it is moving around, and how aware you want it to be of what it might have to interact with. How do I create the NPC in the first place? Does this also involve creating an alternative account and hosting it somewhere? Sorry about all the questions, I'm trying to learn as much as I can about it and haven't been able to find much information.
  22. Hi, I'm relatively new to scripting and animations in Second Life. I want to be able to make my avatar walk from one spot to another without me having to use the arrow keys to do this manually inworld. The reason for this is that hopefully, eventually, I can create an NPC and have them walking around. So how do I go about getting my avatar to do this? Do I need to create an animation? Or do I write a script? Thanks.
  23. I want to be able to make my avatar move, lets say: forward three steps, then right three steps, somehow tracking this, and then saving it as an animation so that it can be repeated without me having to move the arrow keys manually. Is this possible? I have been told this is possible but, unfortunately, I am new to scripting and SecondLife. I have no idea how to go about attempting this, so any direction you could point me in would be great! Thanks in advance.
  24. Thank you both for your help. I've managed to add videos to prims (without the transparent backgrounds), which I guess will suffice for now. It is good to know that what I was trying to do isn't possible though, saves me spending any more time on it.
  25. I see, would that mean no sound? Well I want to add a video of someone talking (in front of a blue screen which I want transparent) to be put onto an object. Basically, they are giving a tour/talking about particular rooms and I'd prefer to have it transparent rather than put it on a wall and use the wall's texture as a background.
  • Create New...