Page 2 of 4

Re: star trek ships?

Posted: Fri Dec 15, 2017 6:21 pm
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

Re: star trek ships?

Posted: Fri Dec 15, 2017 7:56 pm
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!

Re: star trek ships?

Posted: Sat Dec 30, 2017 2:53 am
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.....

Re: star trek ships?

Posted: Sat Dec 30, 2017 9:17 am
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? :)

Re: star trek ships?

Posted: Mon Sep 17, 2018 7:08 am
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.

Re: star trek ships?

Posted: Tue Sep 18, 2018 12:53 am
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.

Re: star trek ships?

Posted: Wed Sep 19, 2018 10:29 am
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: )

Re: star trek ships?

Posted: Wed Sep 19, 2018 11:35 am
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

Re: star trek ships?

Posted: Wed Sep 19, 2018 12:04 pm
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:

Re: star trek ships?

Posted: Wed Sep 19, 2018 12:12 pm
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

Re: star trek ships?

Posted: Wed Sep 19, 2018 12:45 pm
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.

Re: star trek ships?

Posted: Wed Sep 19, 2018 12:47 pm
by Prester John
Never mind. I think I have found something useful in the Wiki..... :twisted:

Re: star trek ships?

Posted: Wed Sep 19, 2018 12:47 pm
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!

Re: star trek ships?

Posted: Wed Sep 19, 2018 1:35 pm
by Prester John
I won't sleep tonight because of you guys!!! :lol:
It's your fault. :P :lol:

Re: star trek ships?

Posted: Wed Sep 19, 2018 1:48 pm
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