Map or Inventory/Library problems

Post here your questions about the OpenSpace 2.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
cyli
Posts: 16
Joined: 09 Mar 2010, 18:39

Map or Inventory/Library problems

Post by cyli »

Hi there,

I've been getting warnings such as:

14:18:58.010 - [ WARNING ] > [OpenSpace] The supertile 'Item not up to spec ( name : sf_barOC id : 114)
' referenced by the inventory item 'I114' was not found

I was wondering if there is an exception or boolean that I can get in code to verify whether the map/inventory/library is valid, so that I can do something about it if it isn't.

Thanks!
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

This warning is originated in the OpenSpace server-side extension. It seems something is wrong in the .lib and .inv files. In fact the supertile (defined in the lib file) belonging to the inventory item (defined in the inv file) can't be found. You probably have exported a new version of the inv file, without exporting the new lib file.
Paolo Bax
The SmartFoxServer Team
cyli
Posts: 16
Joined: 09 Mar 2010, 18:39

Post by cyli »

Thanks for the demystification! :)

Is there any way to get notified of this error in code though? The library/client comes from different server, and it'd be nice to know when this has occurred so I can send a message back to the server that serves the client/library, or some such.

I notice that the client receives the following message, for instance: [ RECEIVED ]: {"t":"xt","b":{"r":-1,"o":{"err":"The supertile 'Item not up to spec ( name : sf_barOC id : 114)\n' referenced by the inventory item 'I114' was not found","_cmd":"_os_invErr"}}}, (len: 177)

Is there a way I can listen in on this message as well from another extension?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Listening to the extension response event from another extension? No, this is not possible. What you can do is add a listener in your application.
Paolo Bax
The SmartFoxServer Team
cyli
Posts: 16
Joined: 09 Mar 2010, 18:39

Post by cyli »

On the client you mean?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Yes, on the client. Add a listener for the onExtensionResponse event.
Paolo Bax
The SmartFoxServer Team
Post Reply