Jump to content

revochen Mayne

Resident
  • Posts

    208
  • Joined

  • Last visited

Everything posted by revochen Mayne

  1. Hello xtc4u, The reason for having separate scripts for the HUD and its extensions is mainly the script memory limit and also to have it modular. That way it's easier to maintain its code, remove or add more extension modules to it without messing to much with the HUDs main scripts. In general i wont say having less scripts as possible nor having them as separate scripts is the best way to do. It just depends on the purposes and processes they have to take care of. Both ways having its advantages and disadvantages for sure. Especially as LSL is a procedural scripting language it's adviced to not overload a single script by having to many simultaneous processes but rather having indivual scripts depending on its purpose and let them communicate via link messages. The advantage of the HUDs design is to let the core script process common tasks like user input, layout and updates. That way the core is processing a touch input by a user only in the single core script rather than to have multiple module scripts and each having its own touch event. Any further and specific task of a module extension belongs into the module script itself to help keeping script memory usage low and process performance high. Hope i brought some light into it, if not just ask on. I'll try to answer further questions but might takes a few days, as i'm not checking the forum each day. Greetings revochen =)
  2. Hello and greetings! I would like to share the free and full perms HUD for anyone interested in. It's quite advanced and got delivered about 100 times now through the SL marketplace. Anyway i would rather want to provide a link to the marketplace item than publishing its script if nobody minds. https://marketplace.secondlife.com/p/openHUD-Beta-Release/3400001 For anyone interested in the new version there is a short introduction video about on Youtube as usual. http://www.youtube.com/watch?v=rgs3rpGQimg&feature=youtu.be For more information feel free to join the developer group in SL called Open HUD LSL or visit the websites at: http://www.openhud.org and http://www.wiki.openhud.org Any help and feedback for is also much appreciated either here, at the SL group or the project websites. Thank You! =)
  3. Hello and greetings! It's me again and quite some time passed by since the last openHUD version got released. Finally i got a new version released but it will also be the last one for this year 2012. Latest changes are: - New "Spawn Manager" module - Settings menu for modules - "Text Color" option for Float Text module - New skin "Snowflake" - Minor bug fixes and memory usage improvements There is also a small anniversary to tell about because more than 100 openHUDs got delivered since the first version got published. And it's still full perms and free of any costs. Anyway i really wonder who's using them and why. So if you're an openHUD user in any way please let us know and post some lines stating your experience with here. For anyone interested in the new version there is a new short introduction video about on Youtube as usual. For more information feel free to join the developer group in SL called Open HUD LSL or visit the websites at: http://www.openhud.org and http://www.wiki.openhud.org Thank You! =)
  4. Some time passed by and finally i got it managed to get a few improvements to the openHUD. There is a new short video about introducing them on youtube at Latest changes are: - New position handling - Checking for updates - New skin "cyber" - Few bug fixes The latest openHUD version 0.18 is still available at the SL-Marketplace and also by now at the Wealth Island sim at http://slurl.com/secondlife/Wealth%20Island/37/213/23 full permissions and for free!
  5. Hi Dilbert and thank You! No, didn't want to bother them there as its rather for discussions and requesting help. Btw if anyone wondered where to get an openHUD... by now at the marketplace! https://marketplace.secondlife.com/p/openHUD-Beta-Release/3400001 Have fun!
  6. Greetings! There is a new video (3mins) available at the openhud website and youtube about the latest improvements: Layout presets and skins Enjoy!
  7. Join the Happy Easter Drawing Contest by CartoonKids & Hot Fusion and win real Linden-Dollar! What to do? Get a free drawing board at the marketplace and bring some colors on the pale bunny. You may change color and textures through its menu. No external graphic works required! https://marketplace.secondlife.com/p/Easter-Drawing-Board-01/3349445?id=3349445&slug=Easter-Drawing-Board-01 Then send your drawing board or a snapshot of it back to Paty Paule or Revochen Mayne until next Monday. Any drawing will get displayed on the Hot Fusion website and anyone may vote for its favorite until next weekend. Prizes are: 1st 2000L$ 2nd 1000L$ 3rd 500L$ Good luck and have fun! =)
  8. And i got a sneak preview teaser video up for you at youtube! Enjoy!
  9. Greetings! It's just a month ago as the openHUD project started and i would like to show its current process to anyone interested in. The HUD is already working but still in its beta phase though. When? Saturday, 8th April What Time? 4am and 3pm SLT Where? At the Wealth Island Sim http://slurl.com/secondlife/Wealth%20Island/85/183/26 For more information visit the project website, its wiki, join the SL group (openHUD LSL) or send a message/notecard to me in SL! Thank You! :matte-motes-sunglasses-1: http://www.openhud.org http://wiki.openhud.org
  10. Yes, you're right! It will just silently fail. Not sure tho how it works with multiple prims as well. I'm currently working on an asynchronous workaround using a timed calleback but it might lags for sure validating the avatars key, touch prim link number and touch counts or coordinates for gestures. That might be alot for a single script but i dont really expect more than 2-3 simultanous touches and so far it works well.
  11. i've made simular script (just far more lines of code!) but figured its not validating simultanous touches so best purpose for is on HUDs where just a single user is assumed or an additional user handler needs to get implemented somehow. Anyway great idea to reset the script time! =)
  12. Hello! I just got this gesture script dug out my inventory (sais created in dec ´08 ^^) and would like to contribute this script but befor i put it into the script library it needs just one simple fix. Anyway i need help with. Thats how it works yet. Put the script in a prim and an arrow texture gets applied to. Then whatever touch gesture you doing on the prims surface the arrow texture will rotate to that direction. Possible gestures are up, down, left, right, and diagonales. It also detects if a gesture was made twice within a short period of time. It will work most proper on HUDs tho as its not handling multiple simultaneous touches by different avatars. Also the gesture when moving from right bottom to left upper corner (diagonal) is messed up somehow. Any help with is much appreciated! Thanks =) vector startMove; vector endMove; vector whileMoving; string lastGesture; InterpretMove() { float tolerance = 0.2; string movement = "Moved "; float textureRot = 360.0; if(startMove.x < endMove.x-tolerance) { movement += "to right "; textureRot=270; } else if(startMove.x > endMove.x+tolerance) { movement += "to left "; textureRot=90; } if(startMove.y < endMove.y-tolerance) { if(movement=="Moved ") movement += "up"; else { movement += "and up"; textureRot=(textureRot-360)/2; } } else if(startMove.y > endMove.y+tolerance) { if(movement=="Moved ") { movement += "down"; textureRot=180; } else { movement += "and down"; textureRot = (180+textureRot)/2; } } else if(movement=="Moved ") movement += "not much or unknown gesture"; //llSay(0,movement); if(movement==lastGesture) { llSetTimerEvent(0); llOwnerSay("Double gesture "+movement); movement="none"; } //else llSay(0,movement); lastGesture=movement; llRotateTexture(textureRot*DEG_TO_RAD,ALL_SIDES); //llOwnerSay("\nX: "+(string)startMove.x+"/"+(string)endMove.x+"\nY: "+(string)startMove.y+"/"+(string)endMove.y); } default { state_entry() { llSetLinkPrimitiveParams(LINK_THIS,[PRIM_TEXTURE,ALL_SIDES,"bca29a42-c2f3-bf92-c614-ed91654c7bf7",<0.8,0.8,0>,<0,0,0>,0]); } touch_start(integer num) { startMove=llDetectedTouchST(0); } touch(integer num) { vector lastValid=llDetectedTouchST(0); if(lastValid!=<-1,-1,0>) whileMoving = lastValid; else { endMove = whileMoving; InterpretMove(); } //llOwnerSay((string)lastValid); } touch_end(integer num) { llSetTimerEvent(1); endMove=llDetectedTouchST(0); if(startMove!=endMove && endMove!=<-1,-1,0>) InterpretMove(); //else llOwnerSay("Touched"); } timer() { llSetTimerEvent(0); lastGesture="none"; } }
  13. This script detects if it gets touched once or twice within a short period of time. float touchTime = 0.3; list touchKeys = []; list touchTypes = []; default { touch_start(integer total_number) { key who = llDetectedKey(0); if(llListFindList(touchKeys,[who])==-1) { touchKeys += who; touchTypes += "singleTouch"; llSetTimerEvent(touchTime); } else { integer i = llListFindList(touchKeys,[who]); touchTypes = llListReplaceList(touchTypes,["doubleTouch"],i,i); } } timer() { integer i = 0; integer m = llGetListLength(touchKeys); llSetTimerEvent(0); while(i<m) { if(llList2String(touchTypes,i)=="singleTouch") { // do something on single touch llSay(0, "Thanks for your single touch "+llKey2Name(llList2Key(touchKeys,i))+"!"); } else { // do something on double touch llSay(0, "Thanks for your double touch "+llKey2Name(llList2Key(touchKeys,i))+"!"); } ++i; } touchKeys = []; touchTypes = []; } }
  14. HUDs (head-up-displays) are used in many ways in SL and there are very usefull ones existing for avatar animation, as building tools or even for games. And although the HUD can be a powerfull user interface there seems to be no idea of a framework for yet. Instead of having many different HUDs on limited attachment points there can be a single HUD handling its design, module add-ons, script updates and so on. Anyway as such a framework doesnt exist yet (or i'm just not aware of) i encourage anyone interested in to join the projects development group in-world. Its name is Open HUD LSL. So if you're an experienced scripter maybe even with HUD development background or a content creator for providing any ideas and feedback during the development then you're welcome to join the Open HUD LSL group or drop me a notecard in-world and we will stay in contact. Thank You! revochen mayne
  15. Hello! We are expanding and recruiting for following positions: Community Manager Clothes Designer Scripter/Developer Please contact me by IM or notecard for further informations. Thank You!
×
×
  • Create New...