error_reporting(E_ALL); ini_set('display_errors', 1);









Si vous voyez cette page, vous êtes intéressé à ajouter votre région dans notre guide de destination Osgrid.

Avant tout:

Vous devez avoir accès à la configuration de votre simulateur.

Que la région doit être ouverte un très grand nombre d'heures par jour

Si votre zone est éteinte pendant plus de 2 jours consécutifs, elle sera automatiquement supprimée des destinations de guidage (pas votre région de coordonnées)

Ne paniquez pas au lancement de votre zone, vous verrez qu'elle apparaîtra à nouveau et sans aucune action de votre main.

Venons à la configuration de votre simulateur maintenant.

Pour être ajouté, nous devrons permettre au simulateur de communiquer en externe avec nos scripts distants depuis nos serveurs.

Vous devez ouvrir le dossier "bin" de votre simulateur.

Allez à OpenSim.ini

Maintenant, allez à la session [Network]

vous trouverez cette ligne maintenant: ExternalHostNameForLSL =

Si vous ne le trouvez pas, ajoutez à la fin votre adresse IP ou votre DNS utilisé.

Sauvegardez votre fichier.

Redémarrez votre simulateur avec un réel arrêt dans le terminal.

Merci d'avoir écrit un email à [email protected] avec:

Votre nom d'avatar complet:

Dans le fichier joint la photo de votre région "s'il vous plaît la haute résolution est inutile et sera refusée"

Le nom de votre région, ainsi que la catégorie souhaitée.

Passons à la création du script pour votre région.

Créer une boîte et aller au contenu, générer un script.

Copiez ce script dans votre nouveau script de contenu:

// OpenSim Destination Guide Terminal v0.3 by djphil (CC-BY-NC-SA 4.0)
// edited by paela argus for Osgrid
// Any help please call only PAELA ARGUS thanks you
// This script are full perms please understand and not change permitive
// PLEASE USE THIS BOX ONLY IN OSGRID
// IF YOU WANT SIMILAR SYSTEM FOR YOUR GRID PLEASE GO IN https://github.com/djphil/osguide this is free to use for all and make happy dj phil cordially paela argus,
string targetUrl = "http://destination.osgrid.org/"; // change this url break this script warning !!
string terminal_name = "Terminal 1.1.5 Gaming"; // other name are not allowed and auto removed by osgrid server !!
string categorie_name = "Gaming"; //HELP use the choose in line 13 to 22 other name are auto removed !!
float update_rate = 200.0; // dont use timer lower of 200 or Ip server can be banned in osgrid thanks you !!!
integer display_debug = FALSE; // show a debug txt
integer display_guide = TRUE; // show in guide false = just showed in viewer destination guide !!
integer display_text = FALSE; // make a text on the head your box
integer face = ALL_SIDES; // you can change at your owner risk !!
// 1 Official location //disabled for user level 0
// 3 Arts and culture = events and art
// 4 Business
// 5 Educational
// 6 Gaming
// 7 Hangout
// 8 Newcomer friendly
// 9 Parks and Nature
// 10 Residential
// 11 Shopping
// 13 Other
// 14 Rental
// AFTER THIS LINE DONT TOUCH THIS SCRIPT THANKS YOU !! ANY CHANGE ARE IN YOUR RISK AND CAN BE BANN YOUR SERVER ACCESS IN THE DESTINATION GRID !!!
string server_uuid;
string region_name;
string owner_name;
string owner_uuid;
string script_name;
key http_request_id;
key tiny_request_id;
key serv_request_id;
key ping_request_id;
terminal_fullbright_flash()
{
llSetLinkPrimitiveParamsFast(LINK_SET, [PRIM_FULLBRIGHT, face, TRUE]);
llSleep(0.25);
llSetLinkPrimitiveParamsFast(LINK_SET, [PRIM_FULLBRIGHT, face, FALSE]);
}
key addRegionToDestinationGuideID;
addRegionToDestinationGuide(string url)
{
integer scope = AGENT_LIST_PARCEL_OWNER| AGENT_LIST_EXCLUDENPC;//dont change this line or server ip banned in osgrid thanks you !!
list agents_list = llGetAgentList(scope, []);
integer agents_online = llGetListLength(agents_list);
addRegionToDestinationGuideID = llHTTPRequest(targetUrl + "inc/terminal.php",
[HTTP_METHOD, "POST", HTTP_MIMETYPE, "application/x-www-form-urlencoded", HTTP_BODY_MAXLENGTH, 16384],
"terminal=register" +
"&categorie_name=" + llEscapeURL(categorie_name) +
"&http_server_url=" + llStringToBase64(http_server_url) +
"&agents_online=" + agents_online +
"&agents_list=" + llStringToBase64(llList2CSV(agents_list))
);
}
string http_server_url;
request_http_server_url()
{
llReleaseURL(http_server_url);
http_server_url = "";
llRequestURL();
}
verify_region_parcel_owner()
{
list parcel_details = llGetParcelDetails(llGetPos(), [PARCEL_DETAILS_NAME, PARCEL_DETAILS_OWNER]);
string parcel_name = llList2String(parcel_details, 0);
key parcel_owner_uuid = llList2Key(parcel_details, 1);
if (owner_uuid != parcel_owner_uuid)
{
llOwnerSay("\nDésolé " + owner_uuid + ", la parcelle " + parcel_name + " ne t'appartient pas ...");
llInstantMessage(parcel_owner_uuid,
"\nUn object nomé \"" + llGetObjectName() + "\"" +
" contenant un script nomé \"" + script_name + "\"" +
" à été rezzer par " + owner_name +
" sur la parcelle " + parcel_name +
" de la région " + region_name +
"\n[OBJET UUID] " + llGetKey() +
"\n[OWNER UUID] " + owner_uuid
);
llDie();
}
}
default
{
state_entry()
{
llOwnerSay("Initialisation ...");
owner_uuid = llGetOwner();
region_name = llGetRegionName();
script_name = llGetScriptName();
verify_region_parcel_owner();
llSetObjectName(script_name);
llSetObjectDesc("Digital Concepts (CC-BY-NC-SA 4.0) edit paela");
if (display_text) llSetText("[? TERMINAL ?]\n" + region_name + "\n(" + owner_name + ")", <1.0, 1.0, 1.0>, 1.0);
else llSetText("", <1.0, 1.0, 1.0>, 1.0);
llSetTexture(osGetMapTexture(), face);
llSetTimerEvent(0.1);
}
touch_start(integer n)
{
key toucher_uuid = llDetectedKey(0);
if (toucher_uuid == owner_uuid) llSetTimerEvent(0.1);
else llRegionSayTo(toucher_uuid, PUBLIC_CHANNEL, "Onwer only " + " ...");
}
http_request(key id, string method, string body)
{
if (method == URL_REQUEST_GRANTED)
{
http_server_url = body;
addRegionToDestinationGuide(http_server_url);
tiny_request_id = llHTTPRequest("http://tinyurl.com/api-create.php?url=" + targetUrl, [], "");
serv_request_id = llHTTPRequest("http://tinyurl.com/api-create.php?url=" + body, [], "");
ping_request_id = llHTTPRequest(body, [], "");
}
else if (method == URL_REQUEST_DENIED)
{
llSay(PUBLIC_CHANNEL, "Something went wrong, no url. " + body);
}
else if (method == "GET")
{
llHTTPResponse(id, 200, "Terminal Http Server for " + terminal_name + " is ready to use ...\n");
}
else if (method == "POST")
{
llHTTPResponse(id, 200, "OK");
addRegionToDestinationGuide(http_server_url);
terminal_fullbright_flash();
}
else {llHTTPResponse(id, 405, "Unsupported Method"); llOwnerSay("[ERROR] Unsupported Method ...");}
}
http_response(key id, integer status, list metadata, string body)
{
if (id)
{
if (status != 200)
{
llOwnerSay("[POST RECIEVED] " + status);
return;
}
}
else if (id == NULL_KEY)
{
llOwnerSay("[POST NULL & STATUS] " + status);
return;
}
body = llStringTrim(body, STRING_TRIM);
// if (id == tiny_request_id && display_guide)
// llSay(PUBLIC_CHANNEL, "Guide @ " + body);
// if (id == serv_request_id && display_debug)
// llOwnerSay("Server @ " + body);
if (id == addRegionToDestinationGuideID && display_debug)
{
string text = "\n============================";
text += "\n" + body;
text += "\n============================";
llOwnerSay(text);
}
if (id == ping_request_id && display_debug)
{
string text = "\n============================";
text += "\n" + body;
text += "\n============================";
llOwnerSay(text);
}
if (body == "HOST_RESTRICTION")
{
body = "\n* Your \"host\" Are not allowed to use this box any question contact paela argus inworld or in mail: [email protected] ...";
body += "\n* the region \"" + region_name + "\" are not added ...";
llOwnerSay("[WARNING] " + owner_name + body);
}
if (body == "UUID_RESTRICTION")
{
body = "\n* categorie \"" + categorie_name + "\" are not allowed ...";
body += "\n* region \"" + region_name + "\" not added ...";
llOwnerSay("[WARNING] " + owner_name + body);
}
}
timer()
{
llSetTimerEvent(update_rate);
request_http_server_url();
terminal_fullbright_flash();
}
on_rez(integer n)
{
llSetTimerEvent(0.0);
verify_region_parcel_owner();
}
changed(integer change)
{
if (change & CHANGED_INVENTORY) {llResetScript();}
if (change & CHANGED_OWNER) {llResetScript();}
if (change & CHANGED_REGION) {llResetScript();}
if (change & CHANGED_REGION_START) {llResetScript();}
}
}

Ensuite, vous devrez choisir la catégorie désirée au numéro de ligne: 8

Changez la catégorie pour la catégorie que vous voulez voir utiliser votre simulateur

Exemple de chaîne categorie_name = "Jeux";

Finissez, si vous avez besoin d'aide, demandez à Dan Banner ou à Paela Argus

merci,