Page 1 of 1

Most of my OXPs display in XML? Is it a Windows thing ?

Posted: Mon Mar 05, 2012 11:33 am
by Duggan
Further to a recent remark
Hmmm, Duggan seems to have a shipdata.plist in XML and Leafy has one in openstep!
I note that the majority of my OXPs plists display as XML, I'm wondering if this a specific Windows thing .Can I convert XML to openstep at all (preferably via an app)?

I ask because I do like to tweak a little here and there. I also note that Mac OS X's primary programming environment is essentially OpenStep . Alternatively how do I adjust values in XML to increase speed or slow it down etc.?

Mayhap newer OXPs are in openstep anyway,,,

Thanks in advance for any wisdom imparted. :)

Re: Most of my OXPs display in XML? Is it a Windows thing ?

Posted: Mon Mar 05, 2012 12:49 pm
by Commander McLane
XML or OpenStep is just a different notation. They do the exact same thing.

Example in OpenStep:

Code: Select all

        "max_flight_speed" = 240;
Same thing in XML:

Code: Select all

		<key>max_flight_speed</key>
		<string>240</string>
The only difference is that in XML you always have <key></key> tags around the key and <string></string> tags (or <integer></integer> tags, or <real></real> tags) around the value. Note that you don't actually strictly need the integer and real tags. Every number can also be expressed as a string. Oolite converts it to the correct format automatically.

Changing a value always works in the same way: simply change the value (in the above example '240') to something else. If it's a speed, you obviously have to choose a smaller number in order to fly slower, and a bigger number in order to fly faster.

Re: Most of my OXPs display in XML? Is it a Windows thing ?

Posted: Mon Mar 05, 2012 1:50 pm
by Eric Walch
Duggan wrote:
I also note that Mac OS X's primary programming environment is essentially OpenStep .
No, on the mac it is mostly XML. open step misses the option to define the type of the entries. But because most users like to use texteditors for editing plists, we converted them all to open step. For a convertor you can use the one at the bottom of this link. Actually, the whole conversion is part of a python library function. The script takes only care of the last few steps.

Re: Most of my OXPs display in XML? Is it a Windows thing ?

Posted: Mon Mar 05, 2012 2:36 pm
by Duggan
Thanks for the help guys... :)