Talk:XyzzyText

From Second Life Wiki
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

If you make contributions to this, please note that you should license them under the MIT license by putting a disclaimer at the top like Thraxis and I have done. Otherwise it is CC SA By and that's probably too restrictive for a tool that is intended to be this widely used.

Gigs Taggart 10:59, 29 August 2007 (PDT)

Tweak for Soft Reset (9-20-2009)

Had some problems issuing SOFT_RESET (msg 204008) to the board, making changes to init(): wipe gBankingData, send SLAVE_RESET message before doing the prim scan (which may take several seconds and cause any intervening xyzzy commands to get confused). I'm still thinking that it would be good for whatever script is sending SOFT_RESET to xyzzy to llSleep for 5sec or so before sending display commands though. May not make all wiki changes for an hour or so (to triple-check them). Any changes licensed under MIT (in case these are significant enough to warrant such attention) Odysseus Fairymeadow 06:40, 21 September 2009 (UTC)

Tweak for Mono (1-30)

I have tested this script in Mono, and it silently failed in the function 'get_number_of_prims'. The while loop does not work in Mono. I have change it to a working version. Ruud Lathrop

Long page, poor intro, and um, it's slow

This page seems to be written for experts and it's not too helpful for newbies to the whole xytext concept.

I'm of the opinion that the following changes should occur:

  • Split off the 5-character code to a subpage
  • Split off the 10-character code to a subpage
  • Rewrite this as a purely introductory page, with images documenting just what exactly is going on here for the "n00bs", and explain why it's being done.
  • Have links to the subpages for the 5-char / 10-char code after the intro sections.

Scalar Tardis 00:08, 1 June 2008 (PDT)

Usage for more than two lines

The quick start explains that you can add more rows, but it doesn't tell you that you need to edit the usage code for each line. Here is the usage code I'm using for a 4 row with added comments... Released under MIT license

integer DISPLAY_STRING      = 204000; 
integer DISPLAY_EXTENDED    = 204001; 
integer REMAP_INDICES       = 204002; 
integer RESET_INDICES       = 204003; 
integer SET_FADE_OPTIONS    = 204004; 
integer SET_FONT_TEXTURE    = 204005; 
integer SET_LINE_COLOR      = 204006; 
integer SET_COLOR           = 204007; 
integer RESCAN_LINKSET      = 204008;


integer gToggle;

default
{
   state_entry()
   {
       llListen(0,"",NULL_KEY,"");

   }


   listen(integer channel,string name, key id, string message)
   {
       // If you add more than 4 rows, add additional else if statements and change the incremets accordingly.
       if (gToggle == 0) {
           ++gToggle;
           llMessageLinked(LINK_THIS,DISPLAY_STRING,name + ":"+ message,"0");
       }
       else if (gToggle == 1) {
           ++gToggle;
           llMessageLinked(LINK_THIS,DISPLAY_STRING,name + ":"+ message,"1");
       }
       else if (gToggle == 2) {
           ++gToggle;
           llMessageLinked(LINK_THIS,DISPLAY_STRING,name + ":"+ message,"2");
       }
       else {
           gToggle=!gToggle;
           llMessageLinked(LINK_THIS,DISPLAY_STRING,name + ":"+ message,"3");
       }

   }
}

How to use other commands?

1. How do I use the slaves? Just toss them in?

2. How do I use the other commands?

integer DISPLAY_STRING      = 204000; 
integer DISPLAY_EXTENDED    = 204001; 
integer REMAP_INDICES       = 204002; 
integer RESET_INDICES       = 204003; 
integer SET_FADE_OPTIONS    = 204004; 
integer SET_FONT_TEXTURE    = 204005; 
integer SET_LINE_COLOR      = 204006; 
integer SET_COLOR           = 204007; 
integer RESCAN_LINKSET      = 204008;

3. Can someone include this info on the main page? The page seems to be made for people who have had experience with XyText.

Thanks!

jadz0r Conover 15:52, 23 September 2008 (PDT)

Use the 10 character prim with both the 5 & 10 character scripts

I don't see why the 5 and 10 character prims use marginally different prims. In the 5 Char script change ... (tweak slaves accordingly too) .. MIT License :) <lsl> ShowChars(integer link,vector grid_offset1, vector grid_offset2, vector grid_offset3, vector grid_offset4, vector grid_offset5) {

  llSetLinkPrimitiveParams( link,[ 
       PRIM_TEXTURE, FACE_1, (string)gFontTexture, <0.126, 0.1, 0>, grid_offset1 + <0.037, 0, 0>, 0.0, 
       PRIM_TEXTURE, FACE_2, (string)gFontTexture, <0.05, 0.1, 0>, grid_offset2, 0.0, 
       PRIM_TEXTURE, FACE_3, (string)gFontTexture, <-0.74, 0.1, 0>, grid_offset3 - <0.315, 0, 0>, 0.0, 
       PRIM_TEXTURE, FACE_4, (string)gFontTexture, <0.05, 0.1, 0>, grid_offset4, 0.0, 
       PRIM_TEXTURE, FACE_5, (string)gFontTexture, <0.126, 0.1, 0>, grid_offset5 - <0.037, 0, 0>, 0.0 
       ]); 

} </lsl> --Ninjafoo Ng 23:12, 15 December 2009 (UTC)