star trek ships?

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6885
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Re: star trek ships?

Post by Disembodied »

This page on the wiki might be of use. Although the page hasn't been edited in five years, it should hopefully give you a place to start:

http://wiki.alioth.net/index.php/OXP_howto_model
fraterchaos
Above Average
Above Average
Posts: 23
Joined: Tue Dec 12, 2017 7:58 pm

Re: star trek ships?

Post by fraterchaos »

Disembodied wrote: Fri Dec 15, 2017 6:21 pm
This page on the wiki might be of use. Although the page hasn't been edited in five years, it should hopefully give you a place to start:

http://wiki.alioth.net/index.php/OXP_howto_model
yep, that definitely helps! Basically, what I needed most was to know about the Obj2DatTex.py thing.

Not sure yet if it will work, but I already have access to pre-made models of the ship in Obj format, so assuming the texture files work right, it should simply be a matter of converting with Obj2DatTex.py, and creating the OXP file.

I'll definitely have a look at doing this sometime very soon! Thanks!
User avatar
Zark Montor
Competent
Competent
Posts: 42
Joined: Thu Jan 02, 2014 1:06 am
Location: Sevenoaks, Kent, UK

Re: star trek ships?

Post by Zark Montor »

is anyone looking at attempting the Uss Orville? looks like a tough one to do. Funny show, though!

Btw, don't look at me, i won't be having a go, just planting the seed.....
I have returned! Less annoying and still enjoying the mighty Oo!
1.86 on self reconned dell studio xps thru Pep 8/64. Runs very well.
Nice to see its still well supported. Oo, Suits you, Sir!
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: star trek ships?

Post by Smivs »

is anyone looking at attempting the Uss Orville? looks like a tough one to do. Funny show, though!

Btw, don't look at me, i won't be having a go, just planting the seed.....
A Redwood seed, by any chance? :)
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Prester John
Competent
Competent
Posts: 56
Joined: Mon Sep 17, 2018 5:57 am

Re: star trek ships?

Post by Prester John »

I would not mind (and I would be glad) to pilot Star Trek Starships.
Considering that every player can do what they like with Oolite (expansion packs....?... :wink: ), no player may have an identical 'Oolite Environment'.
I mean : we can 'custom' OOlite, right?
So, if I wanted ST Starships, I would have them and not bother other Oolite players. I would keep them for me (if nobody else were asking them from me).

I have a list of ST Starships I would like to play/pilot :

Federation Klingons
Ares Kvort
Challenger Ktinga
Miranda Vorcha
Saladin Neghvar
Nebula

Now, what I need is 'How-to' actually HAVE them working properly.
I get you have to convert meshes (*.obj to Oolite).
But, AFTER????
Which files/folders do we have to add, to make it work? And 'How-to' program the scripts? Are there standard scripts we can modify for this goal?
I have checked the Wiki, about that. It's verrrry dissuasive.

All I need is a Solution/Manual that is ACTUALLY working.
And I'm thinking about the Constitution Heavy Cruiser we have.

HOW has this *.oxp been MADE?
If I had the COMPLETE Solution/manual, detailed step-by-step (so that I could understand HOW), I would be grateful.

Thank you for your understanding and patience.
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: star trek ships?

Post by phkb »

This is probably a bit off topic, but anyway...

I'm not a modeller, so I can't tell you how to create the .dat files, or how to create textures or normal maps or anything like that. What I can tell you is how to pull all the components together.

In your "AddOns" folder, create a new folder with an ".oxp" extension. For this example I'll use "MyShip.oxp"

Inside "MyShip.oxp", create a subfolder called "Config", another one called "Models", and another called "Textures"
The structure should now look like this:

- Addons
-- MyShip.oxp
--- Config
--- Models
--- Textures

Put your .dat files into the "Models" folder, and any texture png files should go in the "Textures" folder.

Next, in the "Config" folder, create a "shipdata.plist" file, and a "shipyard.plist" file. These should be standard text files (if you're on Windows, avoid using Notepad as it has been known to mess up files).

The entry you add into shipdata.plist essentially pulls together all the components from Models and Textures to create an entity that can be used in-game. In it you define all the properties the ship will have (like maximum energy, maximum number of missiles, etc). See the [EliteWiki] shipdata.plist wiki page for details on all the options for this entry.

There are a couple of key components you will need, though. In this example, I'm assuming you aren't using custom shaders - this example will just use the default shaders. I'm also just creating a player ship here, not an NPC one yet:

Code: Select all

{
	"myship_definition" = {
		...snip...
		materials = {
			"Hull" = { // if your .dat file has a text key for textures, you should use it here instead of "Hull"
				diffuse_map = "myship_diffuse.png";
				normal_map = "myship_normal.png"; // if you have a separate normal map
				emission_map = "myship_emission.png"; // if you have a separate emission map
				specular_map = "myship_specular.png"; // if you have a separate specular map
				specular_color = (0.4, 0.4, 0.4);
				shininess = 25; // for backward compatibility with Oolite 1.86 and previous
				gloss = 0.5; // for Oolite 1.87ff
			};
		};
		model = "myship_model.dat";
		roles = "player"; 
		...snip...
	};
}
Finally, you'll need to create a matching entry in the shipyard.plist file. See the [EliteWiki] shipyard.plist wiki for details on all the options. Something like this:

Code: Select all

{
	"myship_definition" = {
		"chance" = 0.5;
		"optional_equipment" =
		(
			"EQ_ADVANCED_COMPASS",
			"EQ_CARGO_BAY",
			"EQ_DOCK_COMP",
			"EQ_ECM",
			"EQ_ENERGY_BOMB",
			"EQ_ENERGY_UNIT",
			"EQ_ESCAPE_POD",
			"EQ_FUEL_INJECTION",		
			"EQ_FUEL_SCOOPS",
			"EQ_GAL_DRIVE",
			"EQ_HEAT_SHIELD",
			"EQ_MULTI_TARGET",
			"EQ_NAVAL_ENERGY_UNIT",
			"EQ_NAVAL_SHIELD_BOOSTER",
			"EQ_PASSENGER_BERTH",
			"EQ_SCANNER_SHOW_MISSILE_TARGET",
			"EQ_SHIELD_BOOSTER",
			"EQ_WEAPON_BEAM_LASER",
			"EQ_WEAPON_PULSE_LASER",
			"EQ_WEAPON_MILITARY_LASER",
			"EQ_WEAPON_MINING_LASER"
		);
		price = 500000;
		standard_equipment = {
			forward_weapon_type = "EQ_PULSE_PULSE_LASER";
			missiles = 2;
		};
		techlevel = 8;
		weapon_facings = 15;
	};
}
For testing, you might like to change the "chance" value to "1", and the "techlevel" value to 0, so that you'll be able to buy the ship anywhere.

That should get your ship in the game. You can also use the Oolite debug console to view your ship, using the command :test [myship_definition].

To keep this simple I've left off adding NPC versions of your ship. Maybe once you're up and running with a player ship I can add the extra details for the NPC's. Or you can look in one of the other ship OXP's to see how it's done.

Hope that helps a little, anyway.
Last edited by phkb on Wed Jan 31, 2024 1:26 pm, edited 1 time in total.
User avatar
Prester John
Competent
Competent
Posts: 56
Joined: Mon Sep 17, 2018 5:57 am

Re: star trek ships?

Post by Prester John »

Not only that will help, but, from what I have read already on the Wiki, I think "the wind is in our sails" (*wink* reference :wink: )
User avatar
Prester John
Competent
Competent
Posts: 56
Joined: Mon Sep 17, 2018 5:57 am

Re: star trek ships?

Post by Prester John »

You know what?
I will try to convert my old VRML star trek starships models into Oolite usable format and try your things 'aggreemented' with some more from the Wiki...
Not sure I will make it, but I have to try.

Oh! One LAST question : is it possible to declare One Particular Planet in a Galaxie as The Main Planet (I mean Max Tech Level)?
I'm thinking about something... 8) :D
User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 1166
Joined: Mon May 30, 2016 3:54 am
Location: lurking in The Devils Triangle (G1)

Re: star trek ships?

Post by montana05 »

Prester John wrote: Wed Sep 19, 2018 11:35 am
You know what?
I will try to convert my old VRML star trek starships models into Oolite usable format and try your things 'aggreemented' with some more from the Wiki...
Not sure I will make it, but I have to try.

Oh! One LAST question : is it possible to declare One Particular Planet in a Galaxie as The Main Planet (I mean Max Tech Level)?
I'm thinking about something... 8) :D
The highest TechLevel a planet could get is 15, obviously they are rare, G1 only got 1. If you got a Star Trek planet/system in mind why not put it in interstellar space ? HIMSN had a concept for that.

Btw, if you need help with the shipdata.plist just send me a message. :wink:
Scars remind us where we've been. They don't have to dictate where we're going.
User avatar
Prester John
Competent
Competent
Posts: 56
Joined: Mon Sep 17, 2018 5:57 am

Re: star trek ships?

Post by Prester John »

montana05 wrote: Wed Sep 19, 2018 12:04 pm
Prester John wrote: Wed Sep 19, 2018 11:35 am
You know what?
I will try to convert my old VRML star trek starships models into Oolite usable format and try your things 'aggreemented' with some more from the Wiki...
Not sure I will make it, but I have to try.

Oh! One LAST question : is it possible to declare One Particular Planet in a Galaxie as The Main Planet (I mean Max Tech Level)?
I'm thinking about something... 8) :D
The highest TechLevel a planet could get is 15, obviously they are rare, G1 only got 1. If you got a Star Trek planet/system in mind why not put it in interstellar space ? HIMSN had a concept for that.

Btw, if you need help with the shipdata.plist just send me a message. :wink:
HEP! :shock:
HIMSN?
Concept?
Where?
Link, please? PUH-LEEEEAAASSSSEE? :o
User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 1166
Joined: Mon May 30, 2016 3:54 am
Location: lurking in The Devils Triangle (G1)

Re: star trek ships?

Post by montana05 »

Her Imperial Majesty's Space Navy (HIMSN) topic:

https://bb.oolite.space/viewtopic.php?f= ... ilit=HIMSN

Alpha release:

http://wiki.alioth.net/index.php/File:H ... a_test.oxz

HIMSN was a great project unfortunately never made it over the Alpha release. However, as much as I can recall the js had planets in interstellar space.
Scars remind us where we've been. They don't have to dictate where we're going.
User avatar
Prester John
Competent
Competent
Posts: 56
Joined: Mon Sep 17, 2018 5:57 am

Re: star trek ships?

Post by Prester John »

Never mind. I think I have found something useful in the Wiki..... :twisted:
User avatar
Prester John
Competent
Competent
Posts: 56
Joined: Mon Sep 17, 2018 5:57 am

Re: star trek ships?

Post by Prester John »

montana05 wrote: Wed Sep 19, 2018 12:45 pm
Her Imperial Majesty's Space Navy (HIMSN) topic:

https://bb.oolite.space/viewtopic.php?f= ... ilit=HIMSN

Alpha release:

http://wiki.alioth.net/index.php/File:H ... a_test.oxz

HIMSN was a great project unfortunately never made it over the Alpha release. However, as much as I can recall the js had planets in interstellar space.
OOps!
Thanks!
User avatar
Prester John
Competent
Competent
Posts: 56
Joined: Mon Sep 17, 2018 5:57 am

Re: star trek ships?

Post by Prester John »

I won't sleep tonight because of you guys!!! :lol:
It's your fault. :P :lol:
User avatar
montana05
---- E L I T E ----
---- E L I T E ----
Posts: 1166
Joined: Mon May 30, 2016 3:54 am
Location: lurking in The Devils Triangle (G1)

Re: star trek ships?

Post by montana05 »

Prester John wrote: Wed Sep 19, 2018 1:35 pm
I won't sleep tonight because of you guys!!! :lol:
It's your fault. :P :lol:
Welcome to the club, last time I was testing the weaponry from my latest carrier I was dreaming of ball turrets plasma-balls and laser-fire approaching me. I took it as a clear sign that its time for a break. :D
Scars remind us where we've been. They don't have to dictate where we're going.
Post Reply