Categories

Archives

Did You Know?

When it comes to coding standards, I prefer the Allman indentation style; opening and closing braces should be in the same column for maximum readability. This goes back to my background in Pascal where the function's begin and end statements are aligned in the same column. But for consistency's sake, I'm trying to adopt the Zend Framework coding standards. It's still a bit of a struggle.

Recent Comments

Tags

asp audio browser bug business coalesce code crash Database db debian extension framework imap internet legions linux metaverse mysql obscurity patch PHP postgresql properties release scp Second Life second life security session social media sound sql ssh subversion tables tortoisesvn tribes ubuntu virtual world web windows zend zend framework zf

Second Life Link Message Debugging

I find myself using a lot of link messages when scripting in Second Life lately. In order to keep track of what's going on, but without riddling the various scripts with debug output, I just add another "linkmessage debugger" script, with the following content:

default
{

    link_message(integer sender_num, integer num, string str, key id)
    {
        llOwnerSay("LM DEBUG: " + llList2CSV([sender_num, num, str, id]));
    }

}

It's also interesting to use it on modifiable objects from other people and see what messages they're spewing out.

Write a comment