Page 1 of 1

Copying an OXP.

Posted: Sun Jun 12, 2011 11:03 am
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.

Re: Copying an OXP.

Posted: Sun Jun 12, 2011 11:23 am
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.

Re: Copying an OXP.

Posted: Sun Jun 12, 2011 12:15 pm
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.

Re: Copying an OXP.

Posted: Sun Jun 12, 2011 1:20 pm
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>

Re: Copying an OXP.

Posted: Sun Jun 12, 2011 5:11 pm
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.