[Opensim-users] How to get scripts to run in Diva
Kay McLennan
mclennan.kay at gmail.com
Mon May 16 21:55:18 UTC 2011
[Not exactly a response to your scripting question but...] I finally found a
teleport script in the OS that works in the OS (see below). More
specifically, I found the full perm teleport script (by Rupudiator quann) in
a full perm Pulpit Telelporter (by Garry Beaumont) in the Steam Shop @
Freebie Slumcity (The Neverhood 108, 105, 22). Also, FYI, The Neverhood and
the surrounding sims are terrific builds as well as fun to tour (to hunt for
freebies).
Best,
Kay
//
//"Teleport Script NEW" by Rupudiator quann
key lastAVkey = NULL_KEY;
string fltText = "Next Floor";
vector dest = <109.000,115.000,42.625>; // X Y Z coordinates
init()
{
llSetSitText("Teleport");
llSetText(fltText, <1,1,1>, 1);
llSitTarget(dest-llGetPos(), <0,0,0,1>);
}
default
{
state_entry()
{
init();
}
touch_start(integer i)
{
init();
}
changed(integer change)
{
key currentAVkey = llAvatarOnSitTarget();
if (currentAVkey != NULL_KEY && lastAVkey == NULL_KEY)
{
lastAVkey = currentAVkey;
if (!(llGetPermissions() & PERMISSION_TRIGGER_ANIMATION))
llRequestPermissions(currentAVkey,PERMISSION_TRIGGER_ANIMATION);
llSleep(0.5);
llUnSit(currentAVkey);
llStopAnimation("sit");
llResetScript();
}
}
}
On Mon, May 16, 2011 at 4:32 PM, Sean McNamara <smcnam at gmail.com> wrote:
> Hi,
>
> On Mon, May 16, 2011 at 5:13 PM, missyfitz <7minarets at gmail.com> wrote:
> > Is there anything specific that needs to be done to get scripts to run in
> > OSdiva? As a test I'm trying a very basic texture animation script which
> I
> > basically copy/pasted from my inventory in SL, and it doesn't do
> anything..
> > It says it saves/compiles the script, but the script doesn't actually
> > animate the texture. Other basic test scripts, like a prim rotation
> script,
> > also don't work. Here is the script I'm working with:
>
> I don't know anything about the specifics of Diva's distro, but have
> you tried the most trivial script possible? Rotating a prim and
> texture animations are hardly what I'd call as "basic" :)
>
> default
> {
> state_entry()
> {
> llSay(0, "Hello World!");
> }
> }
>
> If the above *does* work, then it seems that you've found some
> unsupported or misbehaving script functions in the version of XEngine
> shipped in diva.
>
> If the above *doesn't* work, you probably have a misconfiguration,
> maybe Diva can help you. But I'm sure it would be helpful for you to
> post your OpenSim.exe console log regardless.
>
> HTH,
>
> Sean
>
> >
> > default
> > {
> > state_entry()
> > {
> > llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES,0,0,0.0,
> > 1,-0.3);
> > }
> > }
> >
> > Should be just a simple, straightforward texture anim... XEngine is
> enabled
> > in opensim.ini:
> >
> > DefaultScriptEngine = "XEngine"
> >
> > Any reason why it wouldn't work?
> >
> >
> >
> > --
> > View this message in context:
> http://opensim-users.2152040.n2.nabble.com/How-to-get-scripts-to-run-in-Diva-tp6370458p6370458.html
> > Sent from the opensim-users mailing list archive at Nabble.com.
> > _______________________________________________
> > Opensim-users mailing list
> > Opensim-users at lists.berlios.de
> > https://lists.berlios.de/mailman/listinfo/opensim-users
> >
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20110516/a7964ae7/attachment.html>
More information about the Opensim-users
mailing list