Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

XML to OpenStep converter

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
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:

XML to OpenStep converter

Post by ADCK »

Anyone know of a program that will convert XML to OpenStep and OpenStep to XML?

Would save me alot of time manually recoding certain files.

For example i want to add shaders to a certain oxp that's written in XML, but i'm only really familiar with OpenStep.
User avatar
Corny
---- E L I T E ----
---- E L I T E ----
Posts: 363
Joined: Sun Dec 20, 2009 11:50 am
Location: (northern) Germany

Post by Corny »

On a mac, you can open them with the Property List Editor (part of the Developer Tools) and save them as XML (or vice versa), so if you don't find anything (and don't have a mac), tell me which file it is and I'll convert it to you.
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:

Post by ADCK »

<ignore this post, problem solved>
Last edited by ADCK on Sat Jan 02, 2010 6:15 pm, edited 1 time in total.
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:

Post by ADCK »

http://www.filebuzz.com/fileinfo/54322/ ... ndows.html

Found that, automatically converts openstep to XML, but not the other way around, and the thing doesnt save files, so have to copy and paste...

And it seems to convert some things that should be <real> to <string>

But it works, even without the saving and it being one way, it did what i needed it to do.
Last edited by ADCK on Sat Jan 02, 2010 6:16 pm, edited 1 time in total.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5525
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

For XML to openStep, I usually find search and replace within your editor of choice to be quite sufficient for most of the work, with a little manual tidying up afterwards.
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:

Post by ADCK »

Learn something new everyday, appreantly in XML for oolite you don't need to use <real> , <integer>, <whatever> can just use <string> for all, oolite doesn't care.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

ADCK wrote:
Learn something new everyday, appreantly in XML for oolite you don't need to use <real> , <integer>, <whatever> can just use <string> for all, oolite doesn't care.
Yep. This is necessary because OpenStep plist format doesn’t have any number types, just strings, arrays and dictionaries.
Post Reply