Oolite Bulletins

For information and discussion about Oolite.
It is currently Tue Oct 21, 2014 4:42 pm

All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: can't load entity errors
PostPosted: Thu Mar 22, 2007 9:56 pm 
Offline
Competent
Competent
User avatar

Joined: Sun Mar 04, 2007 2:36 am
Posts: 32
Location: Front Left-Hand Corner
Once i've quit Oolite I notice pages of "don't know how to load entity 'http://www.apple.com/DTDs/PropertyList-1.0.dtd' etc etc etc" in the launch shell. Whats going on here? Oolite or OXP? and why is it attempting to get an entity from a web site? Note that I'm using the linux version, your milage may vary.

_________________
WooHoo! My fav game now redone for childhood nostalgia of 20 years ago. Now if only I didn't have to go to work so I could live as a virtual space trader.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 22, 2007 10:48 pm 
Offline
Grand Admiral Emeritus
Grand Admiral Emeritus
User avatar

Joined: Sat Apr 02, 2005 2:43 pm
Posts: 6653
Location: Sweden
The “entity” in question is an XML document type definition. The error is harmless, but annoying. I believe it goes away if you use a sufficiently new version of libxml2, but I’m not sure as the problem doesn’t occur on Macs.

_________________
E-mail: jens@oolite.org
Twitter: Oolite
Wish lists: computery, othery


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 22, 2007 11:08 pm 
Offline
Competent
Competent
User avatar

Joined: Sun Mar 04, 2007 2:36 am
Posts: 32
Location: Front Left-Hand Corner
I never noticed it before as I'd made a Oolite to my menu so I didn't see the shell. but I've been weeding out buggy oxps and using the shell to get info on error messages and therefore noticed it. I'll check to see if my copy of libxml2 is up to date and see if that helps. Thanks.

_________________
WooHoo! My fav game now redone for childhood nostalgia of 20 years ago. Now if only I didn't have to go to work so I could live as a virtual space trader.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 23, 2007 6:09 am 
Offline
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral

Joined: Tue Aug 17, 2004 7:05 am
Posts: 365
Location: Orange, NSW, Australia
I'm not sure it is related to the version of libxml. The Win32 port uses a very recent version of libxml2 because earlier ones wouldn't build under mingw, and to get rid of those messages I had to patch gnustep-base to not try to validate plists.

In any event the message is annoying but harmless.

_________________
Regards,
David Taylor.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 23, 2007 3:23 pm 
Offline
Grand Admiral Emeritus
Grand Admiral Emeritus
User avatar

Joined: Sat Apr 02, 2005 2:43 pm
Posts: 6653
Location: Sweden
Hmm… having looked at the GNUstep parsing code, I’ve come up with a somewhat bogus but simple solution (now that all PList parsing goes through a single bottleneck): if the property list data starts with
Code:
<?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">

Replace it with:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//GNUstep//DTD plist 0.9//EN" "http://www.gnustep.org/plist-0_9.xml">

It may also be necessary to change <plist version="1.0"> with <plist version="0.9">, but I suspect not.

If someone who’s experiencing the problem could make this change to some plists manually and see if it makes a difference, it would be very helpful. (Make sure it’s stuff that’s checked at startup, like shipdata.plist and script.plist.)

_________________
E-mail: jens@oolite.org
Twitter: Oolite
Wish lists: computery, othery


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 25, 2007 10:33 pm 
Offline
Competent
Competent
User avatar

Joined: Sun Mar 04, 2007 2:36 am
Posts: 32
Location: Front Left-Hand Corner
I'll give it a go tonight and report back.

_________________
WooHoo! My fav game now redone for childhood nostalgia of 20 years ago. Now if only I didn't have to go to work so I could live as a virtual space trader.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 26, 2007 7:28 am 
Offline
Competent
Competent
User avatar

Joined: Sun Mar 04, 2007 2:36 am
Posts: 32
Location: Front Left-Hand Corner
got around to this sooner than I thought...
The GOOD news, it works fine! and you were right Ahruman, no need to change <plist version="1.0"> with <plist version="0.9"> Thanks Image
The BAD news, it needs to be done for every occurance, hence my screens full of it. So that means all plists in Applications/oolite.app/Contents/Resources/Config (where most plists are) and Applications/oolite.app/Resources (where info-gnustep.plist is) and ALL plists where it occurs in various OXPs! Looks like I'll be spending the next 1/2 hr Cut n Pasting instead of playing Oolite. Image

_________________
WooHoo! My fav game now redone for childhood nostalgia of 20 years ago. Now if only I didn't have to go to work so I could live as a virtual space trader.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 26, 2007 10:18 am 
Offline
Grand Admiral Emeritus
Grand Admiral Emeritus
User avatar

Joined: Sat Apr 02, 2005 2:43 pm
Posts: 6653
Location: Sweden
Well… the idea was to do it in code at runtime. :-)

_________________
E-mail: jens@oolite.org
Twitter: Oolite
Wish lists: computery, othery


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 30, 2007 12:25 pm 
Offline
Grand Admiral Emeritus
Grand Admiral Emeritus
User avatar

Joined: Sat Apr 02, 2005 2:43 pm
Posts: 6653
Location: Sweden
Runtime changing is now implemented, although it hasn’t been tested on GNUstep yet. As it turns out, the OS X plist parser will accept (or ignore) the GNUstep DTD as long as the <plist> tag’s version number is unchanged, but that wouldn’t “fix” existing DTDs, so dynamic fixing is preferable. (Translation: OXP writers don’t need to do anything at all about this.)

Note to builders: the dynamic rewrite can be disabled by defining NO_DYNAMIC_PLIST_DTD_CHANGE.

_________________
E-mail: jens@oolite.org
Twitter: Oolite
Wish lists: computery, othery


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 31, 2007 1:05 am 
Offline
Competent
Competent
User avatar

Joined: Sun Mar 04, 2007 2:36 am
Posts: 32
Location: Front Left-Hand Corner
Ahruman wrote:
(Translation: OXP writers don’t need to do anything at all about this.)

The one thing I love about these forums is that we get all the geek detail followed by a translation for us mere mortals so we at least have a semblance of understanding whats going on . I'm currently attempting to write my first OXP, first coding ever actually, and this place is a godsend when combined with the wiki. :D

_________________
WooHoo! My fav game now redone for childhood nostalgia of 20 years ago. Now if only I didn't have to go to work so I could live as a virtual space trader.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 31, 2007 11:50 am 
Offline
Grand Admiral Emeritus
Grand Admiral Emeritus
User avatar

Joined: Sat Apr 02, 2005 2:43 pm
Posts: 6653
Location: Sweden
gabbakeisen wrote:
The one thing I love about these forums…

So everything else about them sucks? ;-)

_________________
E-mail: jens@oolite.org
Twitter: Oolite
Wish lists: computery, othery


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group