From 34f6f87b6cbea176805b5802804af9be89284f99 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Fri, 16 Mar 2012 01:51:16 +0000 Subject: Remove unused bin/ScriptEngines/Default.lsl It would certainly be nice to change the default script on disk, but this is currently unused and isn't a suitable default. At this location it would also stop an easy manual deletion of script engine compiles and state. --- bin/ScriptEngines/Default.lsl | 104 ------------------------------------------ 1 file changed, 104 deletions(-) delete mode 100644 bin/ScriptEngines/Default.lsl (limited to 'bin') diff --git a/bin/ScriptEngines/Default.lsl b/bin/ScriptEngines/Default.lsl deleted file mode 100644 index ade855d..0000000 --- a/bin/ScriptEngines/Default.lsl +++ /dev/null @@ -1,104 +0,0 @@ -// autogenerated by generate_default_lsl.rb -integer touch_count = 0; - -default { - touch_start(integer total_number) { - float angle45 = PI/4.0; // 45 degrees - float angle30 = PI/6.0; // 30 degrees - float sqrt2 = llSqrt(2.0); - if((llFabs(-1.5) != 1.5) || (llFabs(10.4) != 10.4)) { - llShout(0, "Houston, we have a big problem! llFabs() does not work! Need it for other tests!"); - } - llSetText("This is a text by llSetText", <1,0,0>, 1); - llWhisper(0, "llWhispering a few random numbers between 0 and 100: " + llFrand(100) + "," + llFrand(100) + "," + llFrand(100) + "," + llFrand(100)); - llShout(0, "llShouting the unix time: " + llGetUnixTime() + ", and region corner: " + llGetRegionCorner()); - llShout(1, "Shouting a random number between 0 and 100 on the channel#1: " + llFrand(100)); - if (llAbs(-1) != 1) { - llSay(0, "Assert failed: llAbs(-1) != 1"); - } - if (llAbs(10) != 10) { - llSay(0, "Assert failed: llAbs(10) != 10"); - } - if (llFabs((llCos(angle45) - sqrt2/2.0) - 0) > 0.000001) { - llSay(0, "Assert failed: (llCos(angle45) - sqrt2/2.0) differs from 0 by more than 0.000001"); - llSay(0, " --> The actual result: " + (llCos(angle45) - sqrt2/2.0)); - } - if (llFabs((llSin(angle30) - 0.5) - 0) > 0.000001) { - llSay(0, "Assert failed: (llSin(angle30) - 0.5) differs from 0 by more than 0.000001"); - llSay(0, " --> The actual result: " + (llSin(angle30) - 0.5)); - } - if (llFabs((llAtan2(1, 1)*4 - PI) - 0) > 0.000001) { - llSay(0, "Assert failed: (llAtan2(1, 1)*4 - PI) differs from 0 by more than 0.000001"); - llSay(0, " --> The actual result: " + (llAtan2(1, 1)*4 - PI)); - } - if (llFabs((llTan(PI)) - 0) > 0.000001) { - llSay(0, "Assert failed: (llTan(PI)) differs from 0 by more than 0.000001"); - llSay(0, " --> The actual result: " + (llTan(PI))); - } - if (llFloor(2.4) != 2) { - llSay(0, "Assert failed: llFloor(2.4) != 2"); - } - if (llCeil(2.4) != 3) { - llSay(0, "Assert failed: llCeil(2.4) != 3"); - } - if (llRound(2.4) != 2) { - llSay(0, "Assert failed: llRound(2.4) != 2"); - } - if (llFloor(2.5) != 2) { - llSay(0, "Assert failed: llFloor(2.5) != 2"); - } - if (llCeil(2.5) != 3) { - llSay(0, "Assert failed: llCeil(2.5) != 3"); - } - if (llRound(2.5) != 3) { - llSay(0, "Assert failed: llRound(2.5) != 3"); - } - if (llFloor(2.51) != 2) { - llSay(0, "Assert failed: llFloor(2.51) != 2"); - } - if (llCeil(2.51) != 3) { - llSay(0, "Assert failed: llCeil(2.51) != 3"); - } - if (llRound(2.51) != 3) { - llSay(0, "Assert failed: llRound(2.51) != 3"); - } - if (llFloor(3.49) != 3) { - llSay(0, "Assert failed: llFloor(3.49) != 3"); - } - if (llCeil(3.49) != 4) { - llSay(0, "Assert failed: llCeil(3.49) != 4"); - } - if (llRound(3.49) != 3) { - llSay(0, "Assert failed: llRound(3.49) != 3"); - } - if (llFloor(3.5000001) != 3) { - llSay(0, "Assert failed: llFloor(3.5000001) != 3"); - } - if (llCeil(3.5000001) != 4) { - llSay(0, "Assert failed: llCeil(3.5000001) != 4"); - } - if (llRound(3.5000001) != 4) { - llSay(0, "Assert failed: llRound(3.5000001) != 4"); - } - if (llFloor(3.51) != 3) { - llSay(0, "Assert failed: llFloor(3.51) != 3"); - } - if (llCeil(3.51) != 4) { - llSay(0, "Assert failed: llCeil(3.51) != 4"); - } - if (llRound(3.51) != 4) { - llSay(0, "Assert failed: llRound(3.51) != 4"); - } - if ((llFabs(0-llPow(2, 16))) != 65536) { - llSay(0, "Assert failed: (llFabs(0-llPow(2, 16))) != 65536"); - } - if (llMD5String("Hello, Avatar!",0) != "112abd47ceaae1c05a826828650434a6") { - llSay(0, "Assert failed: llMD5String('Hello, Avatar!',0) != '112abd47ceaae1c05a826828650434a6'"); - } - if (llModPow(2, 16, 37) != 9) { - llSay(0, "Assert failed: llModPow(2, 16, 37) != 9"); - } - touch_count++; - llSay(0, "Object was touched. Touch count: " + touch_count); - } -} -- cgit v1.1 From b19be657b6e032321fe4b55b8751d609d9921384 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Fri, 16 Mar 2012 02:10:59 +0000 Subject: Remove unnecessary "backup" command in shutdown_commands.txt The simulator is already doing this internally. --- bin/shutdown_commands.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/shutdown_commands.txt b/bin/shutdown_commands.txt index ec76ec2..640c41a 100644 --- a/bin/shutdown_commands.txt +++ b/bin/shutdown_commands.txt @@ -1 +1,2 @@ -backup +; You can place simulator console commands here to execute when the simulator is shut down +; e.g. show stats -- cgit v1.1 From 78e992dbd0bbc0b99dd01b1c6c303098d99aac55 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Fri, 16 Mar 2012 02:13:45 +0000 Subject: Move startup_commands.txt.example to startup_commands.txt for consistency with the existing shutdown_commands.txt. Add comments to both files saying what they are (files that can contain console commands to execute on sim startup/shutdown) with an example. --- bin/shutdown_commands.txt | 1 + bin/startup_commands.txt | 3 +++ bin/startup_commands.txt.example | 4 ---- 3 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 bin/startup_commands.txt delete mode 100644 bin/startup_commands.txt.example (limited to 'bin') diff --git a/bin/shutdown_commands.txt b/bin/shutdown_commands.txt index 640c41a..4397749 100644 --- a/bin/shutdown_commands.txt +++ b/bin/shutdown_commands.txt @@ -1,2 +1,3 @@ ; You can place simulator console commands here to execute when the simulator is shut down ; e.g. show stats +; Lines starting with ; are comments diff --git a/bin/startup_commands.txt b/bin/startup_commands.txt new file mode 100644 index 0000000..1abfa64 --- /dev/null +++ b/bin/startup_commands.txt @@ -0,0 +1,3 @@ +; You can place region console commands here to execute once the simulator has finished starting up +; e.g. show stats +; Lines start with ; are comments. diff --git a/bin/startup_commands.txt.example b/bin/startup_commands.txt.example deleted file mode 100644 index 3dba4b3..0000000 --- a/bin/startup_commands.txt.example +++ /dev/null @@ -1,4 +0,0 @@ -terrain load-tile f32 islandterrain_1024x512.raw 512 1024 1000 1000 -terrain multiply 0.1 -terrain add 5 - -- cgit v1.1 From a2009ffe2e71afefad79471811418df8958870ab Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Fri, 16 Mar 2012 13:08:05 -0700 Subject: Terrain: added [Terrain] section with an option to load an initial flat terrain. Default is still pinhead island. I much rather have a flat land in the beginning. --- bin/OpenSim.ini.example | 4 +++- bin/OpenSimDefaults.ini | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/OpenSim.ini.example b/bin/OpenSim.ini.example index 1f3cd0d..2c85f9d 100755 --- a/bin/OpenSim.ini.example +++ b/bin/OpenSim.ini.example @@ -790,7 +790,9 @@ ;# {Enabled} {} {Enable Non Player Character (NPC) facilities} {true false} false ; Enabled = false - +[Terrain] + ;# {InitialTerrain} {} {Initial terrain type} {pinhead-island flat} pinhead-island + ; InitialTerrain = "pinhead-island" [Architecture] ;# {Include-Architecture} {} {Choose one of the following architectures} {config-include/Standalone.ini config-include/StandaloneHypergrid.ini config-include/Grid.ini config-include/GridHypergrid.ini config-include/SimianGrid.ini config-include/HyperSimianGrid.ini} config-include/Standalone.ini diff --git a/bin/OpenSimDefaults.ini b/bin/OpenSimDefaults.ini index fab2c47..fd31131 100644 --- a/bin/OpenSimDefaults.ini +++ b/bin/OpenSimDefaults.ini @@ -1512,6 +1512,9 @@ ;; Enable Non Player Character (NPC) facilities Enabled = false +[Terrain] + InitialTerrain = "pinhead-island" + ;; ;; If you are using a simian grid frontend you can enable ;; this module to upload tile images for the mapping fn -- cgit v1.1 From 33c14cb107ecb67a3e971d6adaab17d173d52747 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Sat, 17 Mar 2012 10:00:11 -0700 Subject: Region access control! Region operators can now specify things like DisallowForeigners (means what it says) and DisallowResidents (means that only admins and managers can get into the region). This puts the never-completed AuthorizationService to good use. Note that I didn't implement a grid-wide Authorization service; this service implementation is done entirely locally on the simulator. This can be changed as usual by pluging in a different AuthorizationServicesConnector. --- bin/config-include/Grid.ini | 1 + bin/config-include/GridCommon.ini.example | 10 ++++++++++ bin/config-include/GridHypergrid.ini | 1 + bin/config-include/Standalone.ini | 4 +--- bin/config-include/StandaloneCommon.ini.example | 10 ++++++++++ bin/config-include/StandaloneHypergrid.ini | 4 +--- 6 files changed, 24 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/config-include/Grid.ini b/bin/config-include/Grid.ini index da860c6..95d6264 100644 --- a/bin/config-include/Grid.ini +++ b/bin/config-include/Grid.ini @@ -14,6 +14,7 @@ AvatarServices = "RemoteAvatarServicesConnector" NeighbourServices = "RemoteNeighbourServicesConnector" AuthenticationServices = "RemoteAuthenticationServicesConnector" + AuthorizationServices = "LocalAuthorizationServicesConnector" PresenceServices = "RemotePresenceServicesConnector" UserAccountServices = "RemoteUserAccountServicesConnector" GridUserServices = "RemoteGridUserServicesConnector" diff --git a/bin/config-include/GridCommon.ini.example b/bin/config-include/GridCommon.ini.example index 712481d..fa6f525 100644 --- a/bin/config-include/GridCommon.ini.example +++ b/bin/config-include/GridCommon.ini.example @@ -146,3 +146,13 @@ [MapImageService] MapImageServerURI = "http://mygridserver.com:8003" + +[AuthorizationService] + ; If you have regions with access restrictions + ; specify them here using the convention + ; Region_ = + ; Valid flags are: + ; DisallowForeigners -- HG visitors not allowed + ; DisallowResidents -- only Admins and Managers allowed + ; Example: + ; Region_Test_1 = "DisallowForeigners" diff --git a/bin/config-include/GridHypergrid.ini b/bin/config-include/GridHypergrid.ini index 5f0ba37..da447f1 100644 --- a/bin/config-include/GridHypergrid.ini +++ b/bin/config-include/GridHypergrid.ini @@ -17,6 +17,7 @@ AvatarServices = "RemoteAvatarServicesConnector" NeighbourServices = "RemoteNeighbourServicesConnector" AuthenticationServices = "RemoteAuthenticationServicesConnector" + AuthorizationServices = "LocalAuthorizationServicesConnector" PresenceServices = "RemotePresenceServicesConnector" UserAccountServices = "RemoteUserAccountServicesConnector" GridUserServices = "RemoteGridUserServicesConnector" diff --git a/bin/config-include/Standalone.ini b/bin/config-include/Standalone.ini index 6ad4ac9..d307387 100644 --- a/bin/config-include/Standalone.ini +++ b/bin/config-include/Standalone.ini @@ -9,6 +9,7 @@ InventoryServices = "LocalInventoryServicesConnector" NeighbourServices = "LocalNeighbourServicesConnector" AuthenticationServices = "LocalAuthenticationServicesConnector" + AuthorizationServices = "LocalAuthorizationServicesConnector" GridServices = "LocalGridServicesConnector" PresenceServices = "LocalPresenceServicesConnector" UserAccountServices = "LocalUserAccountServicesConnector" @@ -47,9 +48,6 @@ [AvatarService] LocalServiceModule = "OpenSim.Services.AvatarService.dll:AvatarService" -[AuthorizationService] - LocalServiceModule = "OpenSim.Services.AuthorizationService.dll:AuthorizationService" - [AuthenticationService] LocalServiceModule = "OpenSim.Services.AuthenticationService.dll:PasswordAuthenticationService" diff --git a/bin/config-include/StandaloneCommon.ini.example b/bin/config-include/StandaloneCommon.ini.example index 2f39218..2a7e49e 100644 --- a/bin/config-include/StandaloneCommon.ini.example +++ b/bin/config-include/StandaloneCommon.ini.example @@ -231,3 +231,13 @@ [MapImageService] ; Set this if you want to change the default ; TilesStoragePath = "maptiles" + +[AuthorizationService] + ; If you have regions with access restrictions + ; specify them here using the convention + ; Region_ = + ; Valid flags are: + ; DisallowForeigners -- HG visitors not allowed + ; DisallowResidents -- only Admins and Managers allowed + ; Example: + ; Region_Test_1 = "DisallowForeigners" \ No newline at end of file diff --git a/bin/config-include/StandaloneHypergrid.ini b/bin/config-include/StandaloneHypergrid.ini index 00beb31..286d0a1 100644 --- a/bin/config-include/StandaloneHypergrid.ini +++ b/bin/config-include/StandaloneHypergrid.ini @@ -12,6 +12,7 @@ InventoryServices = "HGInventoryBroker" NeighbourServices = "LocalNeighbourServicesConnector" AuthenticationServices = "LocalAuthenticationServicesConnector" + AuthorizationServices = "LocalAuthorizationServicesConnector" GridServices = "LocalGridServicesConnector" PresenceServices = "LocalPresenceServicesConnector" UserAccountServices = "LocalUserAccountServicesConnector" @@ -68,9 +69,6 @@ LibraryName = "OpenSim Library" DefaultLibrary = "./inventory/Libraries.xml" -[AuthorizationService] - LocalServiceModule = "OpenSim.Services.AuthorizationService.dll:AuthorizationService" - [AuthenticationService] LocalServiceModule = "OpenSim.Services.AuthenticationService.dll:PasswordAuthenticationService" -- cgit v1.1 From 92b1ade78ea51ca1499298476fe7cc7ce4e955cc Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Sat, 17 Mar 2012 15:01:10 -0700 Subject: BAD JUSTIN! People using standalone in master, please update your StandaloneCommon.ini according to this change. People using robust in master, please update your Robust.HG.ini.example[.HG].ini according to this change. --- bin/Robust.HG.ini.example | 1 + bin/Robust.ini.example | 1 + bin/config-include/StandaloneCommon.ini.example | 1 + 3 files changed, 3 insertions(+) (limited to 'bin') diff --git a/bin/Robust.HG.ini.example b/bin/Robust.HG.ini.example index db9f08b..d98c826 100644 --- a/bin/Robust.HG.ini.example +++ b/bin/Robust.HG.ini.example @@ -66,6 +66,7 @@ ServiceConnectors = "8003/OpenSim.Server.Handlers.dll:AssetServiceConnector,8003 ; * in turn, reads the asset loader and database connection information ; * [AssetService] + StorageProvider = "OpenSim.Data.MySQL.dll:MySQLAssetData" LocalServiceModule = "OpenSim.Services.AssetService.dll:AssetService" DefaultAssetLoader = "OpenSim.Framework.AssetLoader.Filesystem.dll" AssetLoaderArgs = "./assets/AssetSets.xml" diff --git a/bin/Robust.ini.example b/bin/Robust.ini.example index 326caeb..691bfdc 100644 --- a/bin/Robust.ini.example +++ b/bin/Robust.ini.example @@ -58,6 +58,7 @@ ServiceConnectors = "8003/OpenSim.Server.Handlers.dll:AssetServiceConnector,8003 ; * in turn, reads the asset loader and database connection information ; * [AssetService] + StorageProvider = "OpenSim.Data.MySQL.dll:MySQLAssetData" LocalServiceModule = "OpenSim.Services.AssetService.dll:AssetService" DefaultAssetLoader = "OpenSim.Framework.AssetLoader.Filesystem.dll" AssetLoaderArgs = "./assets/AssetSets.xml" diff --git a/bin/config-include/StandaloneCommon.ini.example b/bin/config-include/StandaloneCommon.ini.example index 2a7e49e..4c734a1 100644 --- a/bin/config-include/StandaloneCommon.ini.example +++ b/bin/config-include/StandaloneCommon.ini.example @@ -44,6 +44,7 @@ ;AuthorizationServices = "LocalAuthorizationServicesConnector" [AssetService] + StorageProvider = "OpenSim.Data.MySQL.dll:MySQLAssetData" DefaultAssetLoader = "OpenSim.Framework.AssetLoader.Filesystem.dll" AssetLoaderArgs = "assets/AssetSets.xml" -- cgit v1.1 From 7dfa0309c63263fb15dc9e3883f5717f28e21c0c Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Sat, 17 Mar 2012 15:36:20 -0700 Subject: More on HG access control. This commit splits the UserManagementModule into the Basic one and the HG one, so that we can do everything that needs to be done for HG ACLs to work without interfering with the vanilla opensim. For the moment, it finds foreign users who have left a trace in the region, e.g. an object. This makes it possible to ban/IM/etc these users using the regular avatar picker. TODO: contact the UAS directly given a name of the form First.Last @foo.com. --- bin/config-include/GridHypergrid.ini | 1 + bin/config-include/StandaloneHypergrid.ini | 1 + 2 files changed, 2 insertions(+) (limited to 'bin') diff --git a/bin/config-include/GridHypergrid.ini b/bin/config-include/GridHypergrid.ini index da447f1..31a4059 100644 --- a/bin/config-include/GridHypergrid.ini +++ b/bin/config-include/GridHypergrid.ini @@ -27,6 +27,7 @@ LandServices = "RemoteLandServicesConnector" FriendsModule = "HGFriendsModule" MapImageService = "MapImageServiceModule" + UserManagementModule = "HGUserManagementModule" LandServiceInConnector = true NeighbourServiceInConnector = true diff --git a/bin/config-include/StandaloneHypergrid.ini b/bin/config-include/StandaloneHypergrid.ini index 286d0a1..ee51067 100644 --- a/bin/config-include/StandaloneHypergrid.ini +++ b/bin/config-include/StandaloneHypergrid.ini @@ -23,6 +23,7 @@ EntityTransferModule = "HGEntityTransferModule" InventoryAccessModule = "HGInventoryAccessModule" FriendsModule = "HGFriendsModule" + UserManagementModule = "HGUserManagementModule" InventoryServiceInConnector = true AssetServiceInConnector = true -- cgit v1.1