Copying an OXP.

General discussion for players of Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
lave
Deadly
Deadly
Posts: 141
Joined: Thu Sep 09, 2010 12:21 am
Location: Deep in Leesti space mining asteroids for a living.
Contact:

Copying an OXP.

Post by lave »

I want to make (copy) an oxp for my own personal use.

I was thinking of making a copy of the casino that appears around some high tech planets.

I need to know how to do this.
Would it be a simple matter of just copying the oxp folder/files, renaming it to what I want, changing the textures then starting the game?

Or do I have to edit other files somewhere to make my version of the casino appear in game?

Thanks.
User avatar
ADCK
---- E L I T E ----
---- E L I T E ----
Posts: 771
Joined: Thu Dec 24, 2009 12:30 am
Location: Sydney
Contact:

Re: Copying an OXP.

Post by ADCK »

lave wrote:
I want to make (copy) an oxp for my own personal use.

I was thinking of making a copy of the casino that appears around some high tech planets.

I need to know how to do this.
Would it be a simple matter of just copying the oxp folder/files, renaming it to what I want, changing the textures then starting the game?

Or do I have to edit other files somewhere to make my version of the casino appear in game?

Thanks.
No, not as simple as that...

Before I continue I should point out that if you plan on releasing this OXP at any point, you should read the original readme that came with the OXP in regards to licensing.

Simply copying an oxp will cause one to override the other.

Sending you a new oxp which like-ships the originals, all you have to do is retexture the two textures now :P

Check your messages.
User avatar
ADCK
---- E L I T E ----
---- E L I T E ----
Posts: 771
Joined: Thu Dec 24, 2009 12:30 am
Location: Sydney
Contact:

Re: Copying an OXP.

Post by ADCK »

OK, I sent you a new OXP, Check your messages.

All I did was create a new shipdata.plist in a new oxp folder that looks like this:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>adck_for_lave_casinoship</key>
	<dict>
		<key>defense_ship_role</key>
		<string>adck_for_lave_sidewinder</string>
		<key>like_ship</key>
		<string>casinoship</string>
		<key>materials</key>
		<dict>
			<key>hoopyCasinoCarrier.png</key>
			<dict>
				<key>diffuse_map</key>
				<string>lave_CasinoCarrier.png</string>
				<key>illumination_map</key>
				<string>hoopyCasinoCarrier_illumination.png</string>
				<key>shininess</key>
				<integer>50</integer>
				<key>specular</key>
				<array>
					<real>0.75</real>
					<real>0.75</real>
					<real>0.8</real>
					<real>1</real>
				</array>
			</dict>
		</dict>
	</dict>
	<key>adck_for_lave_sidewinder</key>
	<dict>
		<key>like_ship</key>
		<string>sidewinder-casinodefender</string>
		<key>materials</key>
		<dict>
			<key>hoopyCasinoDefender.png</key>
			<dict>
				<key>diffuse_map</key>
				<string>lave_CasinoDefender.png</string>
				<key>shininess</key>
				<integer>50</integer>
				<key>specular</key>
				<array>
					<real>0.75</real>
					<real>0.75</real>
					<real>0.8</real>
					<real>1</real>
				</array>
			</dict>
		</dict>
		<key>roles</key>
		<string>adck_for_lave_sidewinder</string>
	</dict>
</dict>
</plist>
and copy/renamed the textures

It should work... haven't tested it, you'll need to retexture the textures of course to have any noticeable difference.
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: Copying an OXP.

Post by Wildeblood »

It needs one more thing: you didn't alter the name key, so it will still display in game as hOopy Casino, same as the original.

<key>name</key>
<string>Lave Hide-Out</string>
In your heart, you know it's flat.
User avatar
lave
Deadly
Deadly
Posts: 141
Joined: Thu Sep 09, 2010 12:21 am
Location: Deep in Leesti space mining asteroids for a living.
Contact:

Re: Copying an OXP.

Post by lave »

Thanks a lot ADCK. I got your message.

What I plan to do will be for my own personal use so I won't be releasing it.

@ Wildeblood...

Yes I saw that too. I will edit any files that need to be changed to fit my needs.

Thanks.
Post Reply