Index: data/contentcreation/pps/MirkoKaiser/CuboidSS/Version2/levels/CuboidSpaceStation2.2.lua
===================================================================
--- data/contentcreation/pps/MirkoKaiser/CuboidSS/Version2/levels/CuboidSpaceStation2.2.lua	(revision 5306)
+++ data/contentcreation/pps/MirkoKaiser/CuboidSS/Version2/levels/CuboidSpaceStation2.2.lua	(revision 5307)
@@ -1,15 +1,23 @@
---<?lua
-
-
-function createSpaceStation()
 -- This lua script creates a totally random generated space station for the orxonox computer game!
 
 
 
+-- This function creates a randomly generated space station.
+-- The first three arguments (xPos,yPos,zPos) are the position of the space station.
+-- The next tree arguments (xVel,yVel,zVel) are the velocity of the space station.
+-- The arguments (xRotAxis,yRotAxis,zRotAxis) are the rotation axis, with respect to which the space ship will rotate. Each argument can be 0 or 1.
+-- The argument RotRate defines how fast the space station will rotate.
+-- The arguments (xRotOnce,yRotOnce,zRotOnce) define in which direction the space station will face, if they are all zero, the station will face into the negative
+--	z-direction, and the positive y-direction is the top side of the station.
+function createSpaceStation(xPos,yPos,zPos, xVel,yVel,zVel, xRotAxis,yRotAxis,zRotAxis, RotRate, xRotOnce,yRotOnce,zRotOnce)
+
+
+
 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 -- This prints xml code, which creates a MovableEntity, which I need to attach all the parts of the space station.
-
--- If you want to move, rotate or displace the whole space station, this is the line you have to change.
-print("<MovableEntity scale=1 position=\"0,0,") print(-500) ("\" velocity=\"0,0,0\" rotationaxis=\"0,0,1\" rotationrate=0 yaw=180 >")
+print("<MovableEntity scale=1 position=\"") print(xPos) print(",") print(yPos) print(",") print(zPos)
+print("\" velocity=\"") print(xVel) print(",") print(yVel) print(",") print(zVel)
+print("\" rotationaxis=\"") print(xRotAxis) print(",") print(yRotAxis) print(",") print(zRotAxis) print("\" rotationrate=") print(RotRate)
+print(" pitch=") print(xRotOnce) print(" yaw=") print(yRotOnce) print(" roll=") print(zRotOnce) print(" >")
 -- End create Movable Entity.
 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
@@ -249,5 +257,5 @@
 bodyParts[leftSidePartsIndex[1]][0][0][0][5]="roll=90 pitch="..math.random(0,180)
 bodyParts[rightSidePartsIndex[1]][0][0][0][6]="roll=-90 pitch="..math.random(0,180)
-
+bodyParts[rightSidePartsIndex[1]][0][0][0][8]="rotationaxis=\"1,0,0\" rotationrate=5"
 bodyParts[leftSidePartsIndex[1]][0][0][0][0]=1
 bodyParts[leftSidePartsIndex[1]][0][0][1][0]=1
@@ -545,5 +553,5 @@
 		if check == 1 then
 			-- This prints the part.
-			printModel(x,y,z,tempSidePartIndex,false,1)
+			printModel(x,y,z,tempSidePartIndex,true,1)
 			partSet=1
 			-- This actualizes the grid array with the values of the array bodyParts at the position tempSidePartIndex.
@@ -599,5 +607,5 @@
 		if check == 1 then
 			-- This prints the part.
-			printModel(x,y,z,tempSidePartIndex,false,2)
+			printModel(x,y,z,tempSidePartIndex,true,2)
 			partSet=1
 			-- This actualizes the grid array with the values of the array bodyParts at the position tempSidePartIndex.
@@ -737,5 +745,9 @@
 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 
-end
-
---?>
+
+
+-- End the createSpaceStation function.
+end
+
+
+
Index: data/contentcreation/pps/MirkoKaiser/CuboidSS/Version2/levels/CuboidSpaceStation2.2.txt
===================================================================
--- data/contentcreation/pps/MirkoKaiser/CuboidSS/Version2/levels/CuboidSpaceStation2.2.txt	(revision 5307)
+++ data/contentcreation/pps/MirkoKaiser/CuboidSS/Version2/levels/CuboidSpaceStation2.2.txt	(revision 5307)
@@ -0,0 +1,2178 @@
+<MovableEntity scale=1 position="
+0
+,
+0
+,
+-5000
+" velocity="
+0
+,
+0
+,
+0
+" rotationaxis="
+0
+,
+0
+,
+1
+" rotationrate=
+0
+pitch=
+0
+yaw=180
+roll=
+0
+>
+<attached>
+<Model position="
+-450
+,
+-225
+,
+-450
+" scale=
+100
+ mesh= "
+DoubleCuboidBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+-225
+,
+0
+" scale=
+100
+ mesh= "
+CuboidBody.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+-225
+,
+225
+" scale=
+100
+ mesh= "
+CuboidBody.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+-225
+,
+450
+" scale=
+100
+ mesh= "
+DoubleCuboidBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+0
+,
+-675
+" scale=
+100
+ mesh= "
+CuboidConnectionBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+0
+,
+0
+" scale=
+100
+ mesh= "
+CuboidConnectionBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+0
+,
+675
+" scale=
+100
+ mesh= "
+DoubleCuboidBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+225
+,
+-450
+" scale=
+100
+ mesh= "
+CuboidConnectionBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+225
+,
+225
+" scale=
+100
+ mesh= "
+DoubleCuboidBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-225
+,
+0
+,
+-675
+" scale=
+100
+ mesh= "
+CuboidBody.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-225
+,
+0
+,
+-450
+" scale=
+100
+ mesh= "
+CuboidConnectionBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-225
+,
+0
+,
+225
+" scale=
+100
+ mesh= "
+CuboidBody.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-225
+,
+0
+,
+450
+" scale=
+100
+ mesh= "
+CuboidBody.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-225
+,
+0
+,
+675
+" scale=
+100
+ mesh= "
+CuboidConnectionBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+0
+,
+-675
+" scale=
+100
+ mesh= "
+CuboidBody.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+0
+,
+-450
+" scale=
+100
+ mesh= "
+DoubleCuboidBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+0
+,
+0
+" scale=
+100
+ mesh= "
+CuboidConnectionBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+0
+,
+675
+" scale=
+100
+ mesh= "
+CuboidBody.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+225
+,
+-675
+" scale=
+100
+ mesh= "
+CuboidConnectionBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+225
+,
+0
+" scale=
+100
+ mesh= "
+CuboidBody.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+225
+,
+225
+" scale=
+100
+ mesh= "
+DoubleCuboidBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+225
+,
+675
+" scale=
+100
+ mesh= "
+CuboidConnectionBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+-225
+,
+-450
+" scale=
+100
+ mesh= "
+DoubleCuboidBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+-225
+,
+0
+" scale=
+100
+ mesh= "
+DoubleCuboidBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+-225
+,
+450
+" scale=
+100
+ mesh= "
+CuboidConnectionBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+0
+,
+-450
+" scale=
+100
+ mesh= "
+CuboidBody.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+0
+,
+-225
+" scale=
+100
+ mesh= "
+CuboidConnectionBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+0
+,
+450
+" scale=
+100
+ mesh= "
+CuboidConnectionBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+225
+,
+-675
+" scale=
+100
+ mesh= "
+CuboidConnectionBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+225
+,
+0
+" scale=
+100
+ mesh= "
+DoubleCuboidBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+225
+,
+450
+" scale=
+100
+ mesh= "
+DoubleCuboidBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+450
+,
+0
+,
+-450
+" scale=
+100
+ mesh= "
+CuboidConnectionBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+450
+,
+0
+,
+225
+" scale=
+100
+ mesh= "
+CuboidBody.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+450
+,
+0
+,
+450
+" scale=
+100
+ mesh= "
+DoubleCuboidBody.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+-225
+,
+900
+" scale=
+100
+ mesh= "
+Thruster.mesh
+"
+pitch=-90
+>
+<attached>
+<ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
+</attached>
+</Model>
+<Model position="
+-450
+,
+0
+,
+1125
+" scale=
+100
+ mesh= "
+Thruster.mesh
+"
+pitch=-90
+>
+<attached>
+<ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
+</attached>
+</Model>
+<Model position="
+-450
+,
+225
+,
+675
+" scale=
+100
+ mesh= "
+Thruster.mesh
+"
+pitch=-90
+>
+<attached>
+<ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
+</attached>
+</Model>
+<Model position="
+-225
+,
+0
+,
+1350
+" scale=
+100
+ mesh= "
+Thruster.mesh
+"
+pitch=-90
+>
+<attached>
+<ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
+</attached>
+</Model>
+<Model position="
+0
+,
+0
+,
+900
+" scale=
+100
+ mesh= "
+Thruster.mesh
+"
+pitch=-90
+>
+<attached>
+<ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
+</attached>
+</Model>
+<Model position="
+0
+,
+225
+,
+1350
+" scale=
+100
+ mesh= "
+Thruster.mesh
+"
+pitch=-90
+>
+<attached>
+<ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
+</attached>
+</Model>
+<Model position="
+225
+,
+-225
+,
+1125
+" scale=
+100
+ mesh= "
+Thruster.mesh
+"
+pitch=-90
+>
+<attached>
+<ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
+</attached>
+</Model>
+<Model position="
+225
+,
+0
+,
+1125
+" scale=
+100
+ mesh= "
+Thruster.mesh
+"
+pitch=-90
+>
+<attached>
+<ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
+</attached>
+</Model>
+<Model position="
+225
+,
+225
+,
+900
+" scale=
+100
+ mesh= "
+Thruster.mesh
+"
+pitch=-90
+>
+<attached>
+<ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
+</attached>
+</Model>
+<Model position="
+450
+,
+0
+,
+900
+" scale=
+100
+ mesh= "
+Thruster.mesh
+"
+pitch=-90
+>
+<attached>
+<ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
+</attached>
+</Model>
+<Model position="
+-0
+,
+0
+,
+-900
+" scale=
+100
+ mesh= "
+SemiCircleCockpit.mesh
+"
+pitch=-90 yaw=180
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-675
+,
+0
+,
+-0
+" scale=
+100
+ mesh= "
+SolarPanel.mesh
+"
+roll=90 pitch=118
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+675
+,
+0
+,
+-0
+" scale=
+100
+ mesh= "
+SolarPanel.mesh
+"
+roll=-90 pitch=44
+>
+<attached>
+
+</attached>
+</Model>
+<MovableEntity scale=1 position="
+0
+,
+450
+,
+-0
+" 
+
+>
+<attached>
+<Model position="
+0
+,
+0
+,
+0
+" scale=
+100
+ mesh= "
+CuboidLandingZone.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+</attached>
+</MovableEntity>
+<MovableEntity scale=1 position="
+0
+,
+675
+,
+-0
+" 
+rotationaxis="0,1,0" rotationrate=5
+>
+<attached>
+<Model position="
+0
+,
+0
+,
+0
+" scale=
+100
+ mesh= "
+SatelliteDish.mesh
+"
+pitch=-90
+>
+<attached>
+
+</attached>
+</Model>
+</attached>
+</MovableEntity>
+<Model position="
+-450
+,
+-112.5
+,
+-225
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+-225
+,
+-112.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+-112.5
+,
+0
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+-225
+,
+112.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+-225
+,
+337.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+-112.5
+,
+450
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+-112.5
+,
+675
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+-225
+,
+787.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-337.5
+,
+0
+,
+-675
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+0
+,
+-112.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-337.5
+,
+0
+,
+0
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+112.5
+,
+0
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-337.5
+,
+0
+,
+450
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+112.5
+,
+450
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+0
+,
+562.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-337.5
+,
+0
+,
+675
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+0
+,
+1012.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+225
+,
+112.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-450
+,
+225
+,
+562.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-112.5
+,
+0
+,
+-675
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-225
+,
+0
+,
+-562.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-112.5
+,
+0
+,
+-450
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-112.5
+,
+0
+,
+0
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-225
+,
+0
+,
+112.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-225
+,
+0
+,
+337.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-112.5
+,
+0
+,
+450
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-225
+,
+0
+,
+562.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-112.5
+,
+0
+,
+675
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+-225
+,
+0
+,
+1237.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+0
+,
+-787.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+112.5
+,
+-675
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+0
+,
+-562.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+112.5
+,
+0
+,
+-450
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+112.5
+,
+0
+,
+-225
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+112.5
+,
+-225
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+0
+,
+-112.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+112.5
+,
+0
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+112.5
+,
+0
+,
+450
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+112.5
+,
+450
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+0
+,
+562.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+112.5
+,
+675
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+0
+,
+787.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+112.5
+,
+225
+,
+-675
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+112.5
+,
+225
+,
+-225
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+225
+,
+-112.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+112.5
+,
+225
+,
+0
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+337.5
+,
+0
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+225
+,
+112.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+112.5
+,
+225
+,
+225
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+112.5
+,
+225
+,
+450
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+225
+,
+562.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+112.5
+,
+225
+,
+675
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+0
+,
+225
+,
+1237.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+-112.5
+,
+-450
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+-112.5
+,
+-225
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+-225
+,
+-112.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+-112.5
+,
+225
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+-225
+,
+337.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+-112.5
+,
+450
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+-112.5
+,
+900
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+-225
+,
+1012.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+337.5
+,
+0
+,
+-450
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+0
+,
+-337.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+112.5
+,
+-225
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+337.5
+,
+0
+,
+225
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+112.5
+,
+225
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+0
+,
+337.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+337.5
+,
+0
+,
+450
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+roll=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+112.5
+,
+450
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+0
+,
+1012.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+225
+,
+-112.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+225
+,
+337.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+225
+,
+225
+,
+787.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+450
+,
+0
+,
+112.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+450
+,
+0
+,
+337.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+<Model position="
+450
+,
+0
+,
+787.5
+" scale=
+100
+ mesh= "
+CuboidConnection.mesh
+"
+pitch=90
+>
+<attached>
+
+</attached>
+</Model>
+</attached>
+</MovableEntity>
Index: data/contentcreation/pps/MirkoKaiser/CuboidSS/Version2/levels/CuboidSpaceStation2.lua
===================================================================
--- data/contentcreation/pps/MirkoKaiser/CuboidSS/Version2/levels/CuboidSpaceStation2.lua	(revision 5306)
+++ data/contentcreation/pps/MirkoKaiser/CuboidSS/Version2/levels/CuboidSpaceStation2.lua	(revision 5307)
@@ -1,21 +1,31 @@
 <?lua
+
+
+
 -- This lua script creates a totally random generated space station for the orxonox computer game!
 
+
+
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 -- This prints xml code, which creates a MovableEntity, which I need to attach all the parts of the space station, if you want to move, rotate or displace the whole space station, this is the line you have to change.
 print("<MovableEntity scale=1 position=\"0,0,-5000\" velocity=\"0,0,0\" rotationaxis=\"0,0,1\" rotationrate=0 yaw=180 >")
-
-
-
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+
+
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 -- Create a randomseed, so that the math.random() function is actually random.
 	math.randomseed(os.time())
 -- End create randomseed.
-
-
-
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+
+
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 -- Here you can define some global variables, with which you can modify the space station.
 	-- Define the maximal size of the space station, this is actually just for the grid, be sure that this value is big enough.
 	sSSize=30
 	-- Define how many parts the space station has, this value has to be exact, so be sure to increment it if you're adding a new part.
-	sSParts=7
+	sSParts=8
 	-- Define how many body parts the space station has, this value has to be exact. Body part means a part, which has connections at least in two directions.
 	sSBodyParts=3
@@ -29,5 +39,5 @@
 	rightSidePartsIndex={}
 	-- Define how many top parts you have.
-	topParts=1
+	topParts=2
 	-- Define which index your top parts have.
 	topPartsIndex={}
@@ -51,7 +61,9 @@
 	gridDim=2.25
 -- End define global parameters.
-
-
-
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+
+
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 -- This creates a 4-dimensional grid, which tells us if there is a part or not, and in which direction it has connections.
 -- The parameters x,y,z are the axis of the space station, which iterate to sSSize, the maximal size of the space station.
@@ -75,7 +87,9 @@
 	end
 -- End create 4-dim grid.
-
-
-
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+
+
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 -- This creates an array which stores all the bodyparts, it's size is depending on the global values pDim and sSParts.
 -- The first parameter i, tells us how many parts fit into the array, so it iterates from 1 to sSParts, each part has his own value i.
@@ -234,4 +248,18 @@
 	bodyParts[topPartsIndex[1]][1][0][3][0]=1
 	bodyParts[topPartsIndex[1]][-1][0][3][0]=1
+
+	topPartsIndex[2]=8
+	bodyParts[topPartsIndex[2]][0][0][0][4]="SatelliteDish.mesh"
+	bodyParts[topPartsIndex[2]][0][0][0][5]="pitch=-90"
+	bodyParts[topPartsIndex[2]][0][0][0][0]=1
+	bodyParts[topPartsIndex[2]][0][0][1][0]=1
+	bodyParts[topPartsIndex[2]][0][0][-1][0]=1
+	bodyParts[topPartsIndex[2]][1][0][0][0]=1
+	bodyParts[topPartsIndex[2]][1][0][1][0]=1
+	bodyParts[topPartsIndex[2]][1][0][-1][0]=1
+	bodyParts[topPartsIndex[2]][-1][0][0][0]=1
+	bodyParts[topPartsIndex[2]][-1][0][1][0]=1
+	bodyParts[topPartsIndex[2]][-1][0][-1][0]=1
+	
 	-- End insert the top parts.
 
@@ -242,5 +270,9 @@
 
 -- End create array bodyParts.
-
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+
+
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 -- Here I define some functions which I will use later.
 	--This function actualizes the grid, which I have to call always after I have added a new part to the space station.
@@ -277,10 +309,16 @@
 	-- End checkPart function.
 -- End define functions.
-
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+
+
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 -- This is xml code, which means now we attach some parts to the MovableEntity.
 print("<attached>")
-
-
-
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+
+
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 -- Attach all bodyparts.
 	-- Define at which position in the x-direction you're space station will start. 
@@ -322,7 +360,9 @@
 	end
 -- End attach all bodyparts.
-
-
-
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+
+
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 -- Attach thrusters, if there are some.
 	if thrusterIndex ~= false then
@@ -348,7 +388,9 @@
 	end
 -- End attach Thrusters.
-
-
-
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+
+
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 -- Attach cockpit, if there is one.
 function setCockpit()
@@ -398,7 +440,9 @@
 	end
 -- End attach cockpit.
-
-
-
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+
+
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 -- Attach parts on the left side of the space station.
 function setLeftSidePart()
@@ -451,7 +495,9 @@
 	end
 -- End attach left side parts.
-
-
-
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+
+
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 -- Attach parts on the right side of the space station.
 function setRightSidePart()
@@ -504,7 +550,9 @@
 	end
 -- End attach right side parts.
-
-
-
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+
+
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 -- Attach parts on top of the space station.
 function setTopPart()
@@ -526,5 +574,5 @@
 	if topPartsIndex[0] ~= false then
 		for sPC=1,topParts do
-			tempTopPartsIndex = topPartsIndex[math.random(1,topParts)]
+			tempTopPartsIndex = topPartsIndex[sPC]
 			partSet=0
 			y=math.floor(sSSize/2)
@@ -557,7 +605,9 @@
 	end
 -- End attach top parts.
-
-
-
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+
+
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 -- Attach all connectionparts.
 	-- This iterates through the whole grid array.
@@ -584,10 +634,15 @@
 	end
 -- End attach all connectionparts.
-
-
-
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+
+
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 -- This is xml code, which ends the attachment and the MovableEntity.
 print("</attached>")
 print("</MovableEntity>")
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+
 
 ?>
Index: data/contentcreation/pps/MirkoKaiser/CuboidSS/Version2/levels/CuboidSpaceStation2.oxw
===================================================================
--- data/contentcreation/pps/MirkoKaiser/CuboidSS/Version2/levels/CuboidSpaceStation2.oxw	(revision 5306)
+++ data/contentcreation/pps/MirkoKaiser/CuboidSS/Version2/levels/CuboidSpaceStation2.oxw	(revision 5307)
@@ -17,5 +17,6 @@
 
 <?lua
-	include("levels/CuboidSpaceStation2.lua")
+	dofile("../../media/levels/CuboidSpaceStation2.2.lua")
+	createSpaceStation(0,0,-5000, 0,0,0, 0,0,1, 0, 0,180,0)
 ?>
 
