OpenStep -> XML translation needed (DONE)

Discussion and announcements regarding the Mac port… er, original version of Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

OpenStep -> XML translation needed (DONE)

Post by Lestradae »

Hi,

I would need an automatic translation from OpenStep to XML format (again) and as you guys have the OS that has the tools for that ...

Anyone out there helping me? Just send me a PM.

Thanks 8)

L
Last edited by Lestradae on Mon Feb 23, 2009 10:43 am, edited 1 time in total.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

Is there any particular reason you're going back to XML? Wouldn't it produce a more streamlined OXP code to have it all in OpenStep?
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

...

Post by Lestradae »

Thargoid wrote:
Is there any particular reason you're going back to XML? Wouldn't it produce a more streamlined OXP code to have it all in OpenStep?
There is a simple reason: There are automated error search engines for XML, but none that I know of for OpenStep.

If I merge oxps, I need to convert them to one of the two formats, and I chose XML for the above reason.

Perhaps, when OSE is completely ready and done, I might translate it all back to OpenStep, but not before that - the final OSE shipdata plist might well have a few hundred thousand lines and if a semicolon is at the wrong place somewhere, without automated error search that would have been it, then.

Cheers

L
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: ...

Post by JensAyton »

Lestradae wrote:
There is a simple reason: There are automated error search engines for XML, but none that I know of for OpenStep.
There’s one built in to Oolite (or rather, GNUstep). If your plist is broken, the log will tell you where and why.
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

Re: ...

Post by Lestradae »

Ahruman wrote:
There’s one built in to Oolite (or rather, GNUstep). If your plist is broken, the log will tell you where and why.
Problem is, a lot of errors are not being found by that one. The result is that for example the shipdata.plist just stops working downwards from a typo or unfit entry onwards.

I have observed this on many occasions. For example, someone writes "<key>missiles</key> blabla but then no <string>SOME-NUMBER</string> follows and the next entry comes. The log doesn't show an error message then, but the plist is only used down to this line and everything below is ignored.

The Markup Service finds such errors. There were other occasions of that sort I don't remember clearly enough to give a good example.
User avatar
LittleBear
---- E L I T E ----
---- E L I T E ----
Posts: 2882
Joined: Tue Apr 04, 2006 7:02 pm
Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.

Post by LittleBear »

I'd reckomend "Another General Purpose Text Editor". Its free and with it you can convert between formats. It also hightlights errors. Eg a missing } will make all the text in that argument turn red and then go green when you add the }. It also can save in JS format. A google with give you the download page. :wink:
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

..

Post by Lestradae »

Thanks for the tip, LittleBear, downloaded it and will try it out. :D

Haven't found out how to do XML-OpenStep translations with it yet, but only had a quick look - I guess that translation is self-explaining?

Cheers

L
User avatar
LittleBear
---- E L I T E ----
---- E L I T E ----
Posts: 2882
Joined: Tue Apr 04, 2006 7:02 pm
Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.

Post by LittleBear »

I think you just select language and click the one you want it to format in.
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
Post Reply