Madpeter Zond
Resident-
Posts
20 -
Joined
-
Last visited
-
Web communications for scripts broken
Madpeter Zond replied to Sharie Criss's topic in Second Life Server
https://status.secondlifegrid.net/incidents/68wh9dty0l8j -
Web communications for scripts broken
Madpeter Zond replied to Sharie Criss's topic in Second Life Server
2nd - 3 projects that use HTTP and HTTPs are now giving 499 errors -
Napz Diabolito started following Madpeter Zond
-
sha was not a option when I created this code SHA1 or higher should be swaped out
-
I ended up creating my own bot to solve this issue http://secondbot.net/ its now open source: https://bitbucket.org/Madpeter/secondbot/
-
you can use a bot [as I have done] to get around this issue, even thou inworls thats based on SL code has notecard writing secondlife seems to hate adding support for usefull things, even a object level delay for creating and then writing a notecard would be better than having a avatar allways on a sim to create notecards.
-
if a certificate was ever created having it apply to the script even if the script is changed could lead to all sorts of issues like people hiding wastefull scripts inside other scripts with a clean certificate. its just much easyer to disable scripts for everyone, and then whitelist via groups who can run scripts on the land.
-
while encription can be done it uses up alot of space within a script and without being able to include library scripts in secondlife message vaildation is much easyer to do here is a basic example. string system_code_break = "^*^"; // breaks the raw message and the vaildation code apart string system_pass_code = "democode"; // used to help randomize the vaildation code a bit more integer system_pass_number = 2323; // used to help randomize the vaildation code a bit more integer system_allowed_time_offset = 3; // default: 3 // min: 0 // higher=less safe but better deals with SL lag // lower = safer but any lag will lead to lost messages integer vaildatemessage(string message,string vaildationcode) { integer loop = 0; integer now = llGetUnixTime(); integer vaild = FALSE; while((loop <= system_allowed_time_offset) && (vaild == FALSE)) { string testcode = llMD5String(message+system_pass_code,(now+system_pass_number)-loop); if(testcode == vaildationcode) vaild = TRUE; loop++; } return vaild; } say_vaildated_message(integer channel,string message) { message = message+system_code_break+llMD5String(message+system_pass_code,llGetUnixTime()+system_pass_number); llRegionSay(channel,message); } default { state_entry() { llListen(1,"","",""); } touch_end(integer a) { say_vaildated_message(1,"I was touched by "+llDetectedName(0)+""); } listen(integer channel,string name,key id,string message) { list data_split = llParseString2List(message,[system_code_break],[""]); if(llGetListLength(data_split) == 2) { string raw_message = llList2String(data_split,0); if(vaildatemessage(raw_message,llList2String(data_split,1))) { llOwnerSay((string)id+" says:"+raw_message); } else { llOwnerSay((string)id+" message is invaild"); } } } }- feel free to improve or replace this.