diff options
-rw-r--r-- | example/config/sim_skeleton/ThisSim.ini | 13 | ||||
-rwxr-xr-x | scripts/install/create_sim.sh | 22 |
2 files changed, 17 insertions, 18 deletions
diff --git a/example/config/sim_skeleton/ThisSim.ini b/example/config/sim_skeleton/ThisSim.ini index 5c11ef0..db3cf94 100644 --- a/example/config/sim_skeleton/ThisSim.ini +++ b/example/config/sim_skeleton/ThisSim.ini | |||
@@ -14,7 +14,7 @@ | |||
14 | InternalAddress = "SIM_IP" | 14 | InternalAddress = "SIM_IP" |
15 | InternalPort = "SIM_INT_PORT" | 15 | InternalPort = "SIM_INT_PORT" |
16 | AllowAlternatePorts = False | 16 | AllowAlternatePorts = False |
17 | ExternalHostName = "SIM_URL" | 17 | ExternalHostName = "${Const|HostName}" |
18 | RegionType = "private sim" | 18 | RegionType = "private sim" |
19 | SizeX = SIM_SIZE | 19 | SizeX = SIM_SIZE |
20 | SizeY = SIM_SIZE | 20 | SizeY = SIM_SIZE |
@@ -22,9 +22,18 @@ | |||
22 | MaxAgents = 100 | 22 | MaxAgents = 100 |
23 | MaxPrims = 45000 | 23 | MaxPrims = 45000 |
24 | PhysicalPrimMax = 640 | 24 | PhysicalPrimMax = 640 |
25 | NonphysicalPrimMax = 2560 | 25 | NonPhysicalPrimMax = 2560 |
26 | ClampPrimSize = False | 26 | ClampPrimSize = False |
27 | MaptileStaticUUID = "00000000-0000-0000-0000-000000000000" | 27 | MaptileStaticUUID = "00000000-0000-0000-0000-000000000000" |
28 | ; NonPhysicalPrimMin = 0 | ||
29 | ; PhysicalPrimMin = 0 | ||
30 | ; MaxPrimsPerUser = -1 | ||
31 | ; LinksetPrims = 0 | ||
32 | ; DefaultLanding = "<128, 128, 30>" | ||
33 | ; MaptileStaticFile = "" | ||
34 | ; ScopeID = "00000000-0000-0000-0000-000000000000" | ||
35 | ; Datastore = "" | ||
36 | ; ResolveAddress = "" | ||
28 | 37 | ||
29 | [Network] | 38 | [Network] |
30 | http_listener_port = SIM_PORT | 39 | http_listener_port = SIM_PORT |
diff --git a/scripts/install/create_sim.sh b/scripts/install/create_sim.sh index 16b668a..055f802 100755 --- a/scripts/install/create_sim.sh +++ b/scripts/install/create_sim.sh | |||
@@ -5,9 +5,8 @@ getPrgDir | |||
5 | 5 | ||
6 | NAME=$1 | 6 | NAME=$1 |
7 | LOCATION=$2 | 7 | LOCATION=$2 |
8 | URL=$3 | 8 | SIZE=$3 |
9 | IP=$4 | 9 | IP=$4 |
10 | SIZE=$5 | ||
11 | 10 | ||
12 | cd ${OS_PATH}/config | 11 | cd ${OS_PATH}/config |
13 | 12 | ||
@@ -35,6 +34,11 @@ then | |||
35 | echo "WARNING setting the Location to ${LOCATION}, this may not be what you want." | 34 | echo "WARNING setting the Location to ${LOCATION}, this may not be what you want." |
36 | fi | 35 | fi |
37 | 36 | ||
37 | if [ "x${SIZE}" = "x" ] | ||
38 | then | ||
39 | SIZE="256" | ||
40 | fi | ||
41 | |||
38 | if [ "x${IP}" = "x" ] | 42 | if [ "x${IP}" = "x" ] |
39 | then | 43 | then |
40 | IP="0.0.0.0" | 44 | IP="0.0.0.0" |
@@ -43,19 +47,6 @@ then | |||
43 | # According to the OpenSim docs, 0.0.0.0 means to listen on all NICs the machine has, which should work fine. | 47 | # According to the OpenSim docs, 0.0.0.0 means to listen on all NICs the machine has, which should work fine. |
44 | fi | 48 | fi |
45 | 49 | ||
46 | if [ "x${URL}" = "x" ] | ||
47 | then | ||
48 | # Here we make use of an external IP finding service. Careful, it may move. | ||
49 | # URL=$(wget -q http://automation.whatismyip.com/n09230945.asp -O -) # URL is best (without the HTTP://), but IP (e.g. 88.109.81.55) works too. | ||
50 | URL="SYSTEMIP" | ||
51 | echo "WARNING setting the ExternalHostName to ${URL}, this may not be what you want." | ||
52 | fi | ||
53 | |||
54 | if [ "x${SIZE}" = "x" ] | ||
55 | then | ||
56 | SIZE="256" | ||
57 | fi | ||
58 | |||
59 | # Wow, the hoops we have to jump through to avoid octal. | 50 | # Wow, the hoops we have to jump through to avoid octal. |
60 | if [ 9 -gt $k ]; then | 51 | if [ 9 -gt $k ]; then |
61 | NUM=$(printf '0%1s' $(( 10#$k + 1 )) ) | 52 | NUM=$(printf '0%1s' $(( 10#$k + 1 )) ) |
@@ -76,7 +67,6 @@ sed -i "s@SIM_UUID@${UUID}@g" ThisSim.ini | |||
76 | sed -i "s@SIM_POS@${LOCATION}@g" ThisSim.ini | 67 | sed -i "s@SIM_POS@${LOCATION}@g" ThisSim.ini |
77 | sed -i "s@SIM_IP@${IP}@g" ThisSim.ini | 68 | sed -i "s@SIM_IP@${IP}@g" ThisSim.ini |
78 | sed -i "s@SIM_INT_PORT@$(( ${PORT} + 1 ))@g" ThisSim.ini | 69 | sed -i "s@SIM_INT_PORT@$(( ${PORT} + 1 ))@g" ThisSim.ini |
79 | sed -i "s@SIM_URL@${URL}@g" ThisSim.ini | ||
80 | sed -i "s@SIM_SIZE@${SIZE}@g" ThisSim.ini | 70 | sed -i "s@SIM_SIZE@${SIZE}@g" ThisSim.ini |
81 | 71 | ||
82 | ln -s ../../current/scripts/common.sh common.sh | 72 | ln -s ../../current/scripts/common.sh common.sh |