New range of turrets

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

User avatar
Shipbuilder
---- E L I T E ----
---- E L I T E ----
Posts: 877
Joined: Thu May 10, 2012 9:41 pm
Location: Derby

Re: New range of turrets

Post by Shipbuilder »

Following Thargoid's valid point about the turrets needing to rotate I have been thinking about how we could incorporate different styles of turret whilst taking into account of the way in which they move and track targets.

In simple terms we seat the turret model on a spherical mount. The turret then rotates about the centre of this base.

The base itself can be positioned such that it is set half within the ship or station model so that as a turret tracks a target the base does not appear to disconnect with the model it is attached to.

I screenshot below shows the principle that I have applied to turret type 1 shown earlier in this thread with the 3D rectangular section of the model simply there to show how you could drop the spherical base in to the surface of a model.

If this would work you can then create any style of gun/turret on top of a base of this style.

Image
The GalTech Industries Corporation - Building ships to populate the galaxies.

Increase the variety of ships within your Ooniverse by downloading my OXPs

Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
User avatar
Tricky
---- E L I T E ----
---- E L I T E ----
Posts: 821
Joined: Sun May 13, 2012 11:12 pm
Location: Bradford, UK. (Anarchic)

Re: New range of turrets

Post by Tricky »

Can it be based on the mounts that you see on police helicopters for camera?
User avatar
Shipbuilder
---- E L I T E ----
---- E L I T E ----
Posts: 877
Joined: Thu May 10, 2012 9:41 pm
Location: Derby

Re: New range of turrets

Post by Shipbuilder »

Tricky wrote:
Can it be based on the mounts that you see on police helicopters for camera?
That was my line of thinking.
The GalTech Industries Corporation - Building ships to populate the galaxies.

Increase the variety of ships within your Ooniverse by downloading my OXPs

Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
User avatar
Shipbuilder
---- E L I T E ----
---- E L I T E ----
Posts: 877
Joined: Thu May 10, 2012 9:41 pm
Location: Derby

Re: New range of turrets

Post by Shipbuilder »

I have had a quick play with a turret but am having trouble getting the turret to appear in Oolite.

I suspect that it is to do with the code I have put in to the shipdata.plist (See below).

I have tried to use the new style sub-entity definition method but to be honest I am not 100% sure how to fully define a specific turret.

Is anyone able to have a look at the code below and advise where I am going wrong/provide a corrected section of code ?

Code: Select all

		<dict>
              		<key>type</key>
			<string>ball_turret</string>
			<key>subentity_key</key>
			<string>galtech_turret_1</string>
          		<key>position</key>
			<string>0 35 -2</string>
          		<key>orientation</key>
			<string>1 0 0 0</string>
          		<key>fire_rate</key>
			<string>0.5</string>
          		<key>weapon_range</key>
			<string>6000</string>
          		<key>weapon_energy</key>
			<string>10</string>
			<key>ai_type</key>
			<string>nullAI.plist</string>	
		 	<key>model</key>
			<string>galtech_turret_1.dat</string>
			<key>name</key>
			<string>GalTech Industries Corporation Turret 1</string>
		  	<key>thrust</key>
			<string>1.0</string>
			<key>roles</key>
			<string>turret</string>			
		 </dict>
The GalTech Industries Corporation - Building ships to populate the galaxies.

Increase the variety of ships within your Ooniverse by downloading my OXPs

Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: New range of turrets

Post by cim »

Shipbuilder wrote:
Is anyone able to have a look at the code below and advise where I am going wrong/provide a corrected section of code ?
You seem to be mixing your subentity definition and your entity definition.

Code: Select all

		<dict>
              		<key>type</key>
			<string>ball_turret</string>
			<key>subentity_key</key>
			<string>galtech_turret_1</string>
          		<key>position</key>
			<string>0 35 -2</string>
          		<key>orientation</key>
			<string>1 0 0 0</string>
          		<key>fire_rate</key>
			<string>0.5</string>
          		<key>weapon_range</key>
			<string>6000</string>
          		<key>weapon_energy</key>
			<string>10</string>
These should be in the "subentities" section of the ship which is mounting the turret.

Code: Select all

			<key>ai_type</key>
			<string>nullAI.plist</string>	
		 	<key>model</key>
			<string>galtech_turret_1.dat</string>
			<key>name</key>
			<string>GalTech Industries Corporation Turret 1</string>
		  	<key>thrust</key>
			<string>1.0</string>
			<key>roles</key>
			<string>turret</string>			
These should be in the separate entity definition of your turret (with key "galtech_turret_1").
User avatar
Shipbuilder
---- E L I T E ----
---- E L I T E ----
Posts: 877
Joined: Thu May 10, 2012 9:41 pm
Location: Derby

Re: New range of turrets

Post by Shipbuilder »

Thanks cim - I'll have a look at that :D

EDIT That was spot on - it's working now thanks for the assistance :wink:
The GalTech Industries Corporation - Building ships to populate the galaxies.

Increase the variety of ships within your Ooniverse by downloading my OXPs

Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: New range of turrets

Post by Wildeblood »

David and Goliath.

Image
User avatar
BuggyBY
Dangerous
Dangerous
Posts: 108
Joined: Thu Feb 09, 2012 9:03 am

Re: New range of turrets

Post by BuggyBY »

Wildeblood wrote:
David and Goliath.

Image
Is that a ... what ship is that? And how many shots would that thing need to destroy a Torus station? Also, what are those docking lights along the base of the barrel?
User avatar
SandJ
---- E L I T E ----
---- E L I T E ----
Posts: 1048
Joined: Fri Nov 26, 2010 9:08 pm
Location: Help! I'm stranded down here on Earth!

Re: New range of turrets

Post by SandJ »

Wildeblood wrote:
"DoomDodo.png" :lol:

It could also be the Bubble Space Telescope. Or the Star Lolly.
Flying a Cobra Mk I Cobbie 3 with nothing but Explorers Club.OXP and a beam laser 4 proper lasers for company :D
Dropbox referral link 2GB of free space online + 500 Mb for the referral: good for securing work-in-progress.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: New range of turrets

Post by Wildeblood »

BuggyBY wrote:
Is that a ... what ship is that? And how many shots would that thing need to destroy a Torus station? Also, what are those docking lights along the base of the barrel?
That's a Griff Moray viewed from the bottom. I think it needs exactly one shot to destroy anything, unless it misses. :twisted: The docking lights are exactly that, to instantiate it in game I just used a coriolis shipdata, and I neglected to remove the dock sub-entity.
SandJ wrote:
"DoomDodo.png" It could also be the Bubble Space Telescope. Or the Star Lolly.
Doomsday Orbital will be coming to your planet, cheeky git.
User avatar
SandJ
---- E L I T E ----
---- E L I T E ----
Posts: 1048
Joined: Fri Nov 26, 2010 9:08 pm
Location: Help! I'm stranded down here on Earth!

Re: New range of turrets

Post by SandJ »

.....
Last edited by SandJ on Mon Jul 16, 2012 7:13 pm, edited 1 time in total.
User avatar
Shipbuilder
---- E L I T E ----
---- E L I T E ----
Posts: 877
Joined: Thu May 10, 2012 9:41 pm
Location: Derby

Re: New range of turrets

Post by Shipbuilder »

Wildeblood - You're doing a great job with that. With planetary defence stations like that Thargoids will really get a big surprise on their next planet raid :twisted:
The GalTech Industries Corporation - Building ships to populate the galaxies.

Increase the variety of ships within your Ooniverse by downloading my OXPs

Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
User avatar
Pleb
---- E L I T E ----
---- E L I T E ----
Posts: 908
Joined: Sun Apr 29, 2012 2:23 pm
Location: United Kingdom

Re: New range of turrets

Post by Pleb »

Wow wildeblood that looks better than the texture I put on mine! The problem I'm having at the moment is trying to put a docking bay onto it, as none of the sides are perfectly flat and the docking bay I'm using (the standard one) only really works with flat surfaces and I also can't get it to go exactly where I want it. Trial and error at the moment! :?
Desktop PC: CPU: Intel i7-4790K Quad Core 4.4GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1080Ti RAM: 32GB DDR3

Laptop PC: CPU: Intel i5-10300H Quad Core 4.5GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1650 RAM: 32GB DDR4
User avatar
Shipbuilder
---- E L I T E ----
---- E L I T E ----
Posts: 877
Joined: Thu May 10, 2012 9:41 pm
Location: Derby

Re: New range of turrets

Post by Shipbuilder »

Pleb – Do you have Wings 3D ?

If so you should be able to use edit the file I posted for you to download by using the flatten command to give you some flat surfaces.
I’m not at home so I am trying to remember this from memory but I think you should be able to do the following: -

I don’t know where you intend putting a docking bay but assuming that you are looking to place a docking bay on the side opposite the barrel select the face selection tool, then click on the panel/panels which you would like to flatten, (i.e. make vertical), right click and select flatten from the menu then I think select axis z.

If you have any problems let me know what exactly you are trying to do and I will try to look at the 3D model I have, see if I can achieve what you are looking for and post a new file for download.
The GalTech Industries Corporation - Building ships to populate the galaxies.

Increase the variety of ships within your Ooniverse by downloading my OXPs

Flying the [wiki]Serpent_Class_Cruiser[/wiki] "Thargoid's Bane"
User avatar
Pleb
---- E L I T E ----
---- E L I T E ----
Posts: 908
Joined: Sun Apr 29, 2012 2:23 pm
Location: United Kingdom

Re: New range of turrets

Post by Pleb »

Yes I'm using Wings 3D, and you are correct in assuming it is the rear of the model of where I am trying to insert a docking bay. I know the hole I'm trying to create has to be 192x64 (which is the size of the standard docking bay) but its getting a dock to sit at the back that's confusing me, not to mention flattening the surface. :?

I've managed to retexture the station with a flatter texture than the one Wildeblood used, so that although it doesn't quite have the same feel as Wildeblood's it does look like it matches up, without parts of the texture being at the wrong angle. Perhaps the dock will be too big for the station, and I will need to make the station larger? I did think about doing this, just to create that sort of "That's no moon" feel to the station... :twisted:
Desktop PC: CPU: Intel i7-4790K Quad Core 4.4GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1080Ti RAM: 32GB DDR3

Laptop PC: CPU: Intel i5-10300H Quad Core 4.5GHz (Turbo-Charged) GPU: Nvidia GeForce GTX 1650 RAM: 32GB DDR4
Post Reply