Page 1 of 1

Question about Prices

Posted: Thu Feb 10, 2011 1:21 pm
by pagroove
When the Oolite BB was offline I was looking at the prices of the ships in my Oldships 2010.oxp. Some of the ships are too expensive so I opened the shipyard.plist and edited the prices. After saving and restarting Oolite with the shift-key pressed I still see the ships with the old prices. I then thought that I maybe have to jump into another system to let the market set the new ship prices but this doesn't work. Is the pricing set in another place besides the shipyard.plist?

This is my current shipyard.plist. Can anybody help?

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>PAG_bushmaster_miner-player</key>
	<dict>
		<key>chance</key>
		<real>0.005</real>
		<key>optional_equipment</key>
		<array>
			<string>EQ_ECM</string>
			<string>EQ_FUEL_SCOOPS</string>
			<string>EQ_PASSENGER_BERTH</string>
			<string>EQ_ESCAPE_POD</string>
			<string>EQ_ENERGY_BOMB</string>
			<string>EQ_ENERGY_UNIT</string>
			<string>EQ_NAVAL_ENERGY_UNIT</string>
			<string>EQ_DOCK_COMP</string>
			<string>EQ_WEAPON_PULSE_LASER</string>
			<string>EQ_WEAPON_BEAM_LASER</string>
			<string>EQ_WEAPON_MINING_LASER</string>
			<string>EQ_WEAPON_MILITARY_LASER</string>
			<string>EQ_FUEL_INJECTION</string>
			<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>
			<string>EQ_MULTI_TARGET</string>
			<string>EQ_GAL_DRIVE</string>
			<string>EQ_SHIELD_BOOSTER</string>
			<string>EQ_HEAT_SHIELD</string>
		</array>
		<key>price</key>
		<integer>100000</integer>
		<key>standard_equipment</key>
		<dict>
			<key>extras</key>
			<array/>
			<key>forward_weapon_type</key>
			<string>EQ_WEAPON_PULSE_LASER</string>
			<key>missiles</key>
			<integer>1</integer>
		</dict>
		<key>techlevel</key>
		<integer>4</integer>
		<key>weapon_facings</key>
		<integer>3</integer>
	</dict>
	<key>PAG_cat-player</key>
	<dict>
		<key>chance</key>
		<real>0.5</real>
		<key>optional_equipment</key>
		<array>
			<string>EQ_ECM</string>
			<string>EQ_FUEL_SCOOPS</string>
			<string>EQ_PASSENGER_BERTH</string>
			<string>EQ_ESCAPE_POD</string>
			<string>EQ_ENERGY_BOMB</string>
			<string>EQ_ENERGY_UNIT</string>
			<string>EQ_NAVAL_ENERGY_UNIT</string>
			<string>EQ_DOCK_COMP</string>
			<string>EQ_WEAPON_PULSE_LASER</string>
			<string>EQ_WEAPON_BEAM_LASER</string>
			<string>EQ_WEAPON_MILITARY_LASER</string>
			<string>EQ_FUEL_INJECTION</string>
			<string>EQ_GAL_DRIVE</string>
			<string>EQ_ADVANCED_COMPASS</string>
			<string>EQ_SHIELD_BOOSTER</string>
			<string>EQ_NAVAL_SHIELD_BOOSTER</string>
		</array>
		<key>price</key>
		<integer>240000</integer>
		<key>standard_equipment</key>
		<dict>
			<key>extras</key>
			<array>
				<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>
				<string>EQ_MULTI_TARGET</string>
			</array>
			<key>forward_weapon_type</key>
			<string>EQ_WEAPON_PULSE_LASER</string>
			<key>missiles</key>
			<integer>1</integer>
		</dict>
		<key>techlevel</key>
		<integer>10</integer>
		<key>weapon_facings</key>
		<integer>3</integer>
	</dict>
	<key>PAG_chameleon-player</key>
	<dict>
		<key>chance</key>
		<real>0.5</real>
		<key>optional_equipment</key>
		<array>
			<string>EQ_CARGO_BAY</string>
			<string>EQ_ECM</string>
			<string>EQ_FUEL_SCOOPS</string>
			<string>EQ_PASSENGER_BERTH</string>
			<string>EQ_ESCAPE_POD</string>
			<string>EQ_ENERGY_BOMB</string>
			<string>EQ_ENERGY_UNIT</string>
			<string>EQ_NAVAL_ENERGY_UNIT</string>
			<string>EQ_DOCK_COMP</string>
			<string>EQ_WEAPON_PULSE_LASER</string>
			<string>EQ_WEAPON_BEAM_LASER</string>
			<string>EQ_WEAPON_MILITARY_LASER</string>
			<string>EQ_FUEL_INJECTION</string>
			<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>
			<string>EQ_MULTI_TARGET</string>
			<string>EQ_GAL_DRIVE</string>
			<string>EQ_ADVANCED_COMPASS</string>
			<string>EQ_SHIELD_BOOSTER</string>
			<string>EQ_NAVAL_SHIELD_BOOSTER</string>
		</array>
		<key>price</key>
		<integer>200000</integer>
		<key>standard_equipment</key>
		<dict>
			<key>extras</key>
			<array/>
			<key>forward_weapon_type</key>
			<string>EQ_WEAPON_PULSE_LASER</string>
			<key>missiles</key>
			<integer>1</integer>
		</dict>
		<key>techlevel</key>
		<integer>5</integer>
		<key>weapon_facings</key>
		<integer>3</integer>
	</dict>
	<key>PAG_ghavial-player</key>
	<dict>
		<key>chance</key>
		<real>0.5</real>
		<key>optional_equipment</key>
		<array>
			<string>EQ_CARGO_BAY</string>
			<string>EQ_ECM</string>
			<string>EQ_FUEL_SCOOPS</string>
			<string>EQ_PASSENGER_BERTH</string>
			<string>EQ_ESCAPE_POD</string>
			<string>EQ_ENERGY_BOMB</string>
			<string>EQ_ENERGY_UNIT</string>
			<string>EQ_NAVAL_ENERGY_UNIT</string>
			<string>EQ_DOCK_COMP</string>
			<string>EQ_WEAPON_PULSE_LASER</string>
			<string>EQ_WEAPON_BEAM_LASER</string>
			<string>EQ_WEAPON_MILITARY_LASER</string>
			<string>EQ_FUEL_INJECTION</string>
			<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>
			<string>EQ_MULTI_TARGET</string>
			<string>EQ_GAL_DRIVE</string>
			<string>EQ_ADVANCED_COMPASS</string>
			<string>EQ_SHIELD_BOOSTER</string>
		</array>
		<key>price</key>
		<integer>220000</integer>
		<key>standard_equipment</key>
		<dict>
			<key>extras</key>
			<array/>
			<key>forward_weapon_type</key>
			<string>EQ_WEAPON_PULSE_LASER</string>
			<key>missiles</key>
			<integer>1</integer>
		</dict>
		<key>techlevel</key>
		<integer>6</integer>
		<key>weapon_facings</key>
		<integer>3</integer>
	</dict>
	<key>PAG_ghavial_alt-player</key>
	<dict>
		<key>chance</key>
		<real>0.5</real>
		<key>optional_equipment</key>
		<array>
			<string>EQ_CARGO_BAY</string>
			<string>EQ_ECM</string>
			<string>EQ_FUEL_SCOOPS</string>
			<string>EQ_PASSENGER_BERTH</string>
			<string>EQ_ESCAPE_POD</string>
			<string>EQ_ENERGY_BOMB</string>
			<string>EQ_ENERGY_UNIT</string>
			<string>EQ_NAVAL_ENERGY_UNIT</string>
			<string>EQ_DOCK_COMP</string>
			<string>EQ_WEAPON_PULSE_LASER</string>
			<string>EQ_WEAPON_BEAM_LASER</string>
			<string>EQ_WEAPON_MILITARY_LASER</string>
			<string>EQ_FUEL_INJECTION</string>
			<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>
			<string>EQ_MULTI_TARGET</string>
			<string>EQ_GAL_DRIVE</string>
			<string>EQ_ADVANCED_COMPASS</string>
			<string>EQ_SHIELD_BOOSTER</string>
		</array>
		<key>price</key>
		<integer>220000</integer>
		<key>standard_equipment</key>
		<dict>
			<key>extras</key>
			<array/>
			<key>forward_weapon_type</key>
			<string>EQ_WEAPON_PULSE_LASER</string>
			<key>missiles</key>
			<integer>1</integer>
		</dict>
		<key>techlevel</key>
		<integer>6</integer>
		<key>weapon_facings</key>
		<integer>3</integer>
	</dict>
	<key>PAG_iguana-player</key>
	<dict>
		<key>chance</key>
		<real>0.5</real>
		<key>optional_equipment</key>
		<array>
			<string>EQ_CARGO_BAY</string>
			<string>EQ_ECM</string>
			<string>EQ_FUEL_SCOOPS</string>
			<string>EQ_PASSENGER_BERTH</string>
			<string>EQ_ESCAPE_POD</string>
			<string>EQ_ENERGY_BOMB</string>
			<string>EQ_ENERGY_UNIT</string>
			<string>EQ_NAVAL_ENERGY_UNIT</string>
			<string>EQ_DOCK_COMP</string>
			<string>EQ_WEAPON_PULSE_LASER</string>
			<string>EQ_WEAPON_BEAM_LASER</string>
			<string>EQ_WEAPON_MILITARY_LASER</string>
			<string>EQ_FUEL_INJECTION</string>
			<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>
			<string>EQ_MULTI_TARGET</string>
			<string>EQ_GAL_DRIVE</string>
			<string>EQ_ADVANCED_COMPASS</string>
			<string>EQ_SHIELD_BOOSTER</string>
			<string>EQ_NAVAL_SHIELD_BOOSTER</string>
		</array>
		<key>price</key>
		<integer>280000</integer>
		<key>standard_equipment</key>
		<dict>
			<key>extras</key>
			<array>
				<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>
			</array>
			<key>forward_weapon_type</key>
			<string>EQ_WEAPON_PULSE_LASER</string>
			<key>missiles</key>
			<integer>1</integer>
		</dict>
		<key>techlevel</key>
		<integer>10</integer>
		<key>weapon_facings</key>
		<integer>3</integer>
	</dict>
	<key>PAG_monitor-player</key>
	<dict>
		<key>chance</key>
		<real>0.375</real>
		<key>optional_equipment</key>
		<array>
			<string>EQ_CARGO_BAY</string>
			<string>EQ_ECM</string>
			<string>EQ_FUEL_SCOOPS</string>
			<string>EQ_PASSENGER_BERTH</string>
			<string>EQ_ESCAPE_POD</string>
			<string>EQ_ENERGY_BOMB</string>
			<string>EQ_ENERGY_UNIT</string>
			<string>EQ_NAVAL_ENERGY_UNIT</string>
			<string>EQ_DOCK_COMP</string>
			<string>EQ_WEAPON_PULSE_LASER</string>
			<string>EQ_WEAPON_BEAM_LASER</string>
			<string>EQ_WEAPON_MINING_LASER</string>
			<string>EQ_WEAPON_MILITARY_LASER</string>
			<string>EQ_FUEL_INJECTION</string>
			<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>
			<string>EQ_MULTI_TARGET</string>
			<string>EQ_GAL_DRIVE</string>
			<string>EQ_ADVANCED_COMPASS</string>
			<string>EQ_SHIELD_BOOSTER</string>
		</array>
		<key>price</key>
		<integer>195000</integer>
		<key>standard_equipment</key>
		<dict>
			<key>extras</key>
			<array/>
			<key>forward_weapon_type</key>
			<string>EQ_WEAPON_PULSE_LASER</string>
			<key>missiles</key>
			<integer>2</integer>
		</dict>
		<key>techlevel</key>
		<integer>5</integer>
		<key>weapon_facings</key>
		<integer>15</integer>
	</dict>
	<key>PAG_monitor2-player</key>
	<dict>
		<key>chance</key>
		<real>0.375</real>
		<key>optional_equipment</key>
		<array>
			<string>EQ_CARGO_BAY</string>
			<string>EQ_ECM</string>
			<string>EQ_FUEL_SCOOPS</string>
			<string>EQ_PASSENGER_BERTH</string>
			<string>EQ_ESCAPE_POD</string>
			<string>EQ_ENERGY_BOMB</string>
			<string>EQ_ENERGY_UNIT</string>
			<string>EQ_NAVAL_ENERGY_UNIT</string>
			<string>EQ_DOCK_COMP</string>
			<string>EQ_WEAPON_PULSE_LASER</string>
			<string>EQ_WEAPON_BEAM_LASER</string>
			<string>EQ_WEAPON_MINING_LASER</string>
			<string>EQ_WEAPON_MILITARY_LASER</string>
			<string>EQ_FUEL_INJECTION</string>
			<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>
			<string>EQ_MULTI_TARGET</string>
			<string>EQ_GAL_DRIVE</string>
			<string>EQ_ADVANCED_COMPASS</string>
			<string>EQ_SHIELD_BOOSTER</string>
		</array>
		<key>230000</key>
		<integer></integer>
		<key>standard_equipment</key>
		<dict>
			<key>extras</key>
			<array/>
			<key>forward_weapon_type</key>
			<string>EQ_WEAPON_BEAM_LASER</string>
			<string>EQ_DOCK_COMP</string>
			<string>EQ_ESCAPE_POD</string>
			<key>missiles</key>
			<integer>2</integer>
		</dict>
		<key>techlevel</key>
		<integer>6</integer>
		<key>weapon_facings</key>
		<integer>15</integer>
	</dict>
	<key>PAG_ophidian-player</key>
	<dict>
		<key>chance</key>
		<real>0.3</real>
		<key>optional_equipment</key>
		<array>
			<string>EQ_CARGO_BAY</string>
			<string>EQ_ECM</string>
			<string>EQ_FUEL_SCOOPS</string>
			<string>EQ_PASSENGER_BERTH</string>
			<string>EQ_ESCAPE_POD</string>
			<string>EQ_ENERGY_UNIT</string>
			<string>EQ_DOCK_COMP</string>
			<string>EQ_WEAPON_PULSE_LASER</string>
			<string>EQ_WEAPON_BEAM_LASER</string>
			<string>EQ_WEAPON_MINING_LASER</string>
			<string>EQ_WEAPON_MILITARY_LASER</string>
			<string>EQ_FUEL_INJECTION</string>
			<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>
			<string>EQ_MULTI_TARGET</string>
			<string>EQ_GAL_DRIVE</string>
			<string>EQ_ADVANCED_COMPASS</string>
			<string>EQ_SHIELD_BOOSTER</string>
		</array>
		<key>price</key>
		<integer>140000</integer>
		<key>standard_equipment</key>
		<dict>
			<key>extras</key>
			<array>
				<string>EQ_DOCK_COMP</string>
				<string>EQ_ESCAPE_POD</string>
			</array>
			<key>forward_weapon_type</key>
			<string>EQ_WEAPON_BEAM_LASER</string>
			<key>missiles</key>
			<integer>0</integer>
		</dict>
		<key>techlevel</key>
		<integer>7</integer>
		<key>weapon_facings</key>
		<integer>3</integer>
	</dict>
	<key>PAG_ophidian_alt-player</key>
	<dict>
		<key>chance</key>
		<real>0.3</real>
		<key>optional_equipment</key>
		<array>
			<string>EQ_CARGO_BAY</string>
			<string>EQ_ECM</string>
			<string>EQ_FUEL_SCOOPS</string>
			<string>EQ_PASSENGER_BERTH</string>
			<string>EQ_ESCAPE_POD</string>
			<string>EQ_ENERGY_UNIT</string>
			<string>EQ_DOCK_COMP</string>
			<string>EQ_WEAPON_PULSE_LASER</string>
			<string>EQ_WEAPON_BEAM_LASER</string>
			<string>EQ_WEAPON_MINING_LASER</string>
			<string>EQ_WEAPON_MILITARY_LASER</string>
			<string>EQ_FUEL_INJECTION</string>
			<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>
			<string>EQ_MULTI_TARGET</string>
			<string>EQ_GAL_DRIVE</string>
			<string>EQ_ADVANCED_COMPASS</string>
			<string>EQ_SHIELD_BOOSTER</string>
		</array>
		<key>price</key>
		<integer>140000</integer>
		<key>standard_equipment</key>
		<dict>
			<key>extras</key>
			<array>
				<string>EQ_DOCK_COMP</string>
				<string>EQ_ESCAPE_POD</string>
			</array>
			<key>forward_weapon_type</key>
			<string>EQ_WEAPON_BEAM_LASER</string>
			<key>missiles</key>
			<integer>0</integer>
		</dict>
		<key>techlevel</key>
		<integer>7</integer>
		<key>weapon_facings</key>
		<integer>3</integer>
	</dict>
	<key>PAG_salamander-player</key>
	<dict>
		<key>chance</key>
		<real>0.5</real>
		<key>optional_equipment</key>
		<array>
			<string>EQ_CARGO_BAY</string>
			<string>EQ_ECM</string>
			<string>EQ_FUEL_SCOOPS</string>
			<string>EQ_PASSENGER_BERTH</string>
			<string>EQ_ESCAPE_POD</string>
			<string>EQ_ENERGY_UNIT</string>
			<string>EQ_NAVAL_ENERGY_UNIT</string>
			<string>EQ_DOCK_COMP</string>
			<string>EQ_WEAPON_PULSE_LASER</string>
			<string>EQ_WEAPON_BEAM_LASER</string>
			<string>EQ_WEAPON_MINING_LASER</string>
			<string>EQ_WEAPON_MILITARY_LASER</string>
			<string>EQ_FUEL_INJECTION</string>
			<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>
			<string>EQ_MULTI_TARGET</string>
			<string>EQ_GAL_DRIVE</string>
			<string>EQ_ADVANCED_COMPASS</string>
			<string>EQ_SHIELD_BOOSTER</string>
			<string>EQ_NAVAL_SHIELD_BOOSTER</string>
		</array>
		<key>price</key>
		<integer>200000</integer>
		<key>standard_equipment</key>
		<dict>
			<key>extras</key>
			<array/>
			<key>forward_weapon_type</key>
			<string>EQ_WEAPON_BEAM_LASER</string>
			<string>EQ_FUEL_INJECTION</string>
			<key>missiles</key>
			<integer>0</integer>
		</dict>
		<key>techlevel</key>
		<integer>9</integer>
		<key>weapon_facings</key>
		<integer>15</integer>
	</dict>
</dict>
</plist>

Re: Question about Prices

Posted: Thu Feb 10, 2011 1:36 pm
by Commander McLane
You don't have by any chance another OXP containing the same ships installed? Perhaps a previous version which you accidentally didn't remove?

Re: Question about Prices

Posted: Thu Feb 10, 2011 2:31 pm
by pagroove
Mmm now Oolite also crashes with this .plist. I'm re downloading my own OXP. As far as I can see now double oxp's installed. I keep you posted.

Re: Question about Prices

Posted: Thu Feb 10, 2011 2:51 pm
by Commander McLane
Anything in the log? Perhaps you made a typo and the plist isn't read at all?

EDIT: Yes, that's it. There is

Code: Select all

		<key>230000</key>
		<integer></integer>
in lines 324-325 (PAG_monitor2-player).

Seems you replaced the price key with the new price. :wink:

EDIT2: The following standard_equipment dictionary is munched as well.

Code: Select all

			<string>EQ_DOCK_COMP</string>
			<string>EQ_ESCAPE_POD</string>
should either be deleted or moved into the extras dict. Same with <string>EQ_FUEL_INJECTION</string> in the PAG_salamander-player (line 460, if the above lines are deleted).

Re: Question about Prices

Posted: Thu Feb 10, 2011 3:15 pm
by pagroove
EDIT2: The following standard_equipment dictionary is munched as well.

Do you have the linenr where its broken?

Re: Question about Prices

Posted: Thu Feb 10, 2011 3:16 pm
by Commander McLane
Just below the broken price tag, like four or five lines or so.

Re: Question about Prices

Posted: Thu Feb 10, 2011 3:25 pm
by pagroove
Thanx! It's working now. I upload a new version soon. With better pricing!