removed useless _ folders
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<Solution name="Put_a_sim_map_on_a_texture">
|
||||
<Project name="Put_a_sim_map_on_a_texture" path="Put_a_sim_map_on_a_texture\Put_a_sim_map_on_a_texture.prj" active="true"/>
|
||||
</Solution>
|
||||
@@ -0,0 +1,114 @@
|
||||
// :CATEGORY:Sim Texture
|
||||
// :NAME:Put_a_sim_map_on_a_texture
|
||||
// :AUTHOR:Tyche Shepherd
|
||||
// :CREATED:2010-07-16 14:25:07.520
|
||||
// :EDITED:2013-09-18 15:39:00
|
||||
// :ID:669
|
||||
// :NUM:910
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// This version returns the Object Layer Map (i,e the default map image) but shows how you can also request the Terrain Layer Map.
|
||||
// :CODE:
|
||||
/*
|
||||
|
||||
Example script to apply a Region Map as a texture on a Prim
|
||||
|
||||
Author: Tyche Shepherd
|
||||
|
||||
Date: 2010-02-11
|
||||
|
||||
Copyright: Tyche Shepherd 2008-2010
|
||||
|
||||
License: Creative Commons Attribution 2.0 UK:England & Wales License
|
||||
|
||||
|
||||
|
||||
Basically you can do anything with this script including making derivative commercial works as long as you credit
|
||||
|
||||
Tyche Shepherd and gridsurvey.com . This credit should be distributed with any product.
|
||||
|
||||
See http://www.gridsurvey.com/api.php for more details on this license as well as any caveats.
|
||||
|
||||
|
||||
|
||||
The script sets up a listen when the container prim is touched.
|
||||
|
||||
The user then speaks the name of the desired region on the channel (default is channel 87)
|
||||
|
||||
A llHTTPRequest is sent to http://api.gridsurvey.com which returns the UUID of that Region's Map if it's found.
|
||||
|
||||
The Container Prim's texture is then changed to this UUID
|
||||
|
||||
The Listen times out after 10 seconds.
|
||||
|
||||
|
||||
|
||||
The gridsurvey.com Region Database is normally updated on a daily basis with the latest Region Maps.
|
||||
|
||||
|
||||
|
||||
*/
|
||||
|
||||
key requestID;
|
||||
|
||||
integer handle;
|
||||
|
||||
integer channel;
|
||||
|
||||
string currentsim;
|
||||
|
||||
string query_string;
|
||||
|
||||
|
||||
|
||||
default
|
||||
|
||||
{
|
||||
|
||||
|
||||
|
||||
state_entry()
|
||||
|
||||
{
|
||||
|
||||
handle=0;
|
||||
|
||||
//use channel 87 for listening
|
||||
|
||||
channel=87;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
touch_start(integer total_number)
|
||||
|
||||
{
|
||||
|
||||
if(handle!=0){
|
||||
|
||||
llListenRemove(handle);
|
||||
|
||||
handle=0;
|
||||
|
||||
}
|
||||
|
||||
llSay(0,"Say name of Region you want on channel " + (string)channel);
|
||||
|
||||
handle=llListen(channel,"","","");
|
||||
|
||||
//set listen time out to 10 seconds
|
||||
|
||||
llSetTimerEvent(10.0);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
listen(integer channel, string name, key id, string message)
|
||||
|
||||
{
|
||||
|
||||
currentsim=message;
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<Project name="Put_a_sim_map_on_a_texture" guid="D8540CF6-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D8540E03-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Put_a_sim_map_on_a_texture_1.lsl" guid="D854409A-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
Reference in New Issue
Block a user