Jump to content

TRUNCATED SLURLS


GaiaGabe SLSGO
 Share

You are about to reply to a thread that has been inactive for 2530 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hello , I am not a scripter .

I have a small "technical problem and I am wondering if you can help me.
The topic is SLURLS.
The name of my sim is made of 2 words : GAIA GAMES.
From Map the slurl is : http://maps.secondlife.com/secondlife/GAIA GAMES/130/128/1202.
Please note: there is "%20" between the two words

I have some scripted objects that send comunications to players reporting the slurl . The objects send a message  to my external server . My external server send the message to my bot (Pikkubot) and the bot send the message to residents.


Very often the slurl sent by these objects is truncated and it drives my players to a sim named "GAIA" not belonging to me.
Can you explain me why it happens? There is a fix for it?

Thank you very much in advance :-) 

Edited by GaiaGabe SLSGO
Link to comment
Share on other sites

2 minutes ago, Whirly Fizzle said:

Use http://maps.secondlife.com/secondlife/GAIA%20GAMES/128/128/2 instead.
Ie) replace the space with %20

I already use it with the %20.

I am sorry I did a mistake in writing the original post . I already use http://maps.secondlife.com/secondlife/GAIA%20GAMES/128/128/2

I do not why but when I pasted it here (from Map) it did not write the %20

Link to comment
Share on other sites

Your scripted objects seems to be constructing the SLURL incorrectly, not including the %20, which is the code for a space.  They need to be creating the SLURL with a routine that is something like this:

    string MakeSLURL()
    {
        vector Pos = llGetPos();
        string X = (string)((integer)Pos.x);
        string Y = (string)((integer)Pos.y);
        string Z = (string)((integer)Pos.z);
        string SLURL = "http://maps.secondlife.com/secondlife/" + llEscapeURL(llGetRegionName()) + "/" + X + "/"+ Y + "/" + Z;
        return SLURL;
    }

That same %20 has to be conveyed to your external server and has to survive intact, or else the space will not be preserved.  Without knowing how that message is being sent and processed, it's impossible to advise you about what to do, although you may find documentation with your external service provider, or in a user group.

  • Like 1
Link to comment
Share on other sites

Thanks all, really !!

More info and it will be a little tricky toexplain because I am not native english speaker.

An object in world, named "WEB Replay",   records payments from games players. Data are sent to a server not belonging to me. In this server I can change settings. One of this setting is the Slurl as you can see by pic n.1. It means that the slurl is not built by the object. I have pasted it from Map and it contains the %20.

At certain intervals , the  message shown in Pic.n2 (you will notice that the message is built with the slurl set in pic 1) is sent to my Hosting (Aruba). When my hosting detect that the receiver is online, it send a message to   to a inworld object called "Speaker" . The speaker send a command to my (pikku)bot that finally send the message to the receiver. Sometimes the slurl is correct, sometimes no :-(  

 

 

slurl 1.jpeg

replay 2.jpeg

Edited by GaiaGabe SLSGO
typos
Link to comment
Share on other sites

I have just run a test using the following script (I got the slurl using the Copy SLurl tool on the inworld-map)

string str = "http://maps.secondlife.com/secondlife/GAIA%20GAMES/128/128/2";
default
{
    state_entry()
    {
    }
    touch_start(integer total_number)
    {
        key kToucher = llDetectedKey(0);
        llRegionSayTo(kToucher,0,"Raw message is "+str);
        llRegionSayTo(kToucher,0, "Escaped message is "+llEscapeURL(str));
        llRegionSayTo(kToucher,0,"Unescaped message is "+llUnescapeURL(str));
    }
}

The results are:

f838a6a33dd2f8c7294175d1eb0a6eba.png

I think I know why the scripters of the objects that are truncating the message have unescaped it but I'm only going to confuse matters further if I start speculating.

Edited by Innula Zenovka
  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2530 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...