Page 1 of 1

uhh....help?

Posted: Sun Aug 19, 2007 4:28 pm
by Arexack_Heretic
hum... I think I have reverted to noobdom.

I cannot get a simple plist to get parsed.

Code: Select all

2007-08-19 17:26:57.000 oolite.exe[3308] [dataCache.notFound]: No data cache found, starting from scratch.
2007-08-19 17:26:57.000 oolite.exe[3308] [plist.parse.foundation.failed]: Failed to parse AddOns/AH_custompaints_and_racers.oxp/Config/shipyard.plist as a property list using Foundation. Retrying using homebrew parser. WARNING: the homebrew parser is deprecated and will be removed in a future version of Oolite.
Parse failed at line 1 (char 1) - extra data after parsed string
is the message I get.

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>krait-xr1-player</key>
	<dict>
		<key>chance</key>
		<real>0.01</real>
		<key>optional_equipment</key>
		<array>
			<string>EQ_ECM</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_SCANNER_SHOW_MISSILE_TARGET</string>
			<string>EQ_MULTI_TARGET</string>
			<string>EQ_SHIELD_BOOSTER</string>
		</array>
		<key>price</key>
		<integer>85000</integer>
		<key>standard_equipment</key>
		<dict>
			<key>extras</key>
			<array>
				<string>EQ_FUEL_INJECTION</string>
				<string>EQ_FUEL_SCOOPS</string>
			</array>
			<key>forward_weapon_type</key>
        	<string>EQ_WEAPON_NONE</string>
         	<key>missiles</key>
        	<integer>1</integer>
			<key>missiles</key>
			<integer>0</integer>
		</dict>
		<key>techlevel</key>
		<integer>6</integer>
		<key>weapon_facings</key>
		<integer>1</integer>
	</dict>
	<key>raceradder-player</key>
	<dict>
		<key>chance</key>
		<real>0.25</real>
		<key>optional_equipment</key>
		<array>
			<string>EQ_ECM</string>
			<string>EQ_FUEL_SCOOPS</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>
		</array>
		<key>price</key>
		<integer>80000</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>1</integer>
	</dict>
	<key>grimcobra1-player</key>
	<dict>
		<key>chance</key>
		<real>0.175</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>
		</array>
		<key>price</key>
		<integer>150000</integer>
		<key>standard_equipment</key>
		<dict>
			<key>extras</key>
			<array>
				<string>EQ_SHIELD_BOOSTER</string>
			</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>
</dict>
</plist>
is the code involved

Re: uhh....help?

Posted: Sun Aug 19, 2007 5:11 pm
by JensAyton
From line 31:

Code: Select all

			<key>extras</key>
			<array/>
			<key>forward_weapon_type</key>
			<string>EQ_WEAPON_NONE</string>
			<string>EQ_FUEL_INJECTION</string>
			<string>EQ_FUEL_SCOOPS</string>
			<string>EQ_WEAPON_NONE</string>
			<string>EQ_WEAPON_NONE</string>
You probably wanted some of this stuff to be in the extras array, and not to have so many EQ_WEAPON_NONEs.

Posted: Sun Aug 19, 2007 5:24 pm
by Arexack_Heretic
ahah. I see, copy paste error. I mangled the array.
I'll fix that.

edit: fixed, but still same error message. ?

I had been looking exhaustively at the shipdata.plist to find the error.
Because a script will not spawn ships from it.
would a error in the shipyard make a shipdata invalid?

Probably I messed up the filenames of the .dat files, I used capitals initially, but conversion to .dat made everything lowercase. :sigh:

Posted: Sun Aug 19, 2007 5:52 pm
by Cmdr Wyvern

Code: Select all

         <key>forward_weapon_type</key>
           <string>EQ_WEAPON_NONE</string>
            <key>missiles</key>
           <integer>1</integer>
         <key>missiles</key>
         <integer>0</integer>
      </dict> 
Notice the spare <missiles> entry?

Posted: Sun Aug 19, 2007 6:30 pm
by Arexack_Heretic
crud!

I just copypasted that bit, forgot to delete the superfuous part.
Do you feel like Murgh yet? ;)

edit:
found a few missing .dat extensions and case-mismatches too.

ok ouch it works now I guess.
just jumped a fresh commander in a (c)rusty adder into a bunch of 10 racing adders with pirateAI...

---------

I'll upload to wiki now as custom_paints_v2_0_b.oxp .
The oxp contains a small script that plants a bunch of these ships at the next WP as well as encounter at 0.5way across the corridor with the TigerBoys.

There is no racing, no interaction save laserfire, however most ships should come by from time to time as they have the role pirate(0.1) as well as racer.

I left out the red-black sidewinder for now, it was not very visible.
Maybe later I'll add several new gangs in liveries to scare harmless commanders. The RedRockets in all red for example.
The Tigers will get some support ships as well as sidewinder escorts for those. And I'll try to come up with a nice scripting to have the tigers appear together in groups.
ie. addships: tigers_bigrig (python/ana etc.) script_actions= "spawn: tigers 3"

Posted: Mon Aug 20, 2007 12:21 am
by Arexack_Heretic
Couldn't upload to the wiki, 't was too 'big'.

So I submitted it on OOsat2. Hopefully someone still maintains that satelite.


Finished the python texture, but will not be adding it in for a while, I really need to get some writing done.

Posted: Mon Aug 20, 2007 9:05 am
by Commander McLane
It seems the only reliable way right now for releasing longer OXPs (and I think with all the new fancy shader stuff pretty much all OXPs containing models will be fairly long) is to find yourself a free hosting site and then put the link to the wiki.

I don't think in the long run this is very satisfying. So my question is: Can anything be done to raise the upload-limit of the wiki, which currently is somewhere in the range of 2 megs, IIRC?

Posted: Mon Aug 20, 2007 12:07 pm
by Arexack_Heretic
I second that.

Unfortunately, my personal ISP webspace has become inaccesable to me due to router problems.
My credit rating is pretty much non existent at the moment, to the point of almost losing my internet service due to backlogged banktransfers, so buying extra webspace is no option either for me.

I've been meaning to reboot my entire system for a while now as errors tend to multiply and stack up, this has to wait a while however untill I have some time and motivation free to backup etc.

Posted: Mon Aug 20, 2007 1:15 pm
by Captain Hesperus
@A_H - Have you considered Box.net?

Sorry, pseudo-Spam. I must be getting withdrawal symptoms....

Captain Hesperus

Posted: Mon Aug 20, 2007 2:30 pm
by Arexack_Heretic
good plan.
registered, uploading.

here will come the http://www.box.net/shared/hceomynfgb

other good news: I got part of my tax return. so now I got some breathing room. Not enough to repay loans, but enough to pay one months bills.