Crystal Space
Welcome, Guest. Please login or register.
September 16, 2014, 02:13:10 am

Login with username, password and session length
Search:     Advanced search
9014 Posts in 2047 Topics by 8457 Members
Latest Member: Justinparks5
* Home Help Search Login Register
+  Crystal Space
|-+  Crystal Space Development
| |-+  Support
| | |-+  iCollection XML/map file
« previous next »
Pages: [1] Print
Author Topic: iCollection XML/map file  (Read 1028 times)
Crystalfur
Newbie
*
Posts: 30


View Profile Email
« on: April 28, 2010, 03:30:36 am »

CS version 1.4; else irrelevant for this question.

So collections are in and regions are out. I'm having a little trouble getting the collection to work in the XML map file.

see: http://www.crystalspace3d.org/docs/online/1.4/manual/XML-World-Definition-Section.html#0

I write it exactly as it tells me to in the XML:
<world>
  ...stuff...
  <scene...>
     ....
  </scene>
  <collection name='kitties'>
    <meshobj>meowmoew1</meshobj>
    <meshobj>meowmoew2</meshobj>
    ....
  </collection>
</world>

I run the .exe and get the error: crystalspace.syntax.badtoken: Unexpected token 'collection'!
I put the collection in a few other spots, such as inside the scene nodes, but nay.

If I remember correctly, I was never able to stick regions in the map file either.

Regards,
Logged
kickvb
Global Moderator
Jr. Member
*****
Posts: 79


View Profile
« Reply #1 on: April 28, 2010, 01:38:55 pm »

Effectively, from what I see the XML loader doesn't handle the "collection" tag. The manual page in 1.4 seems therefore "in-dated", while this has been corrected in the 1.9 manual...
Logged
Crystalfur
Newbie
*
Posts: 30


View Profile Email
« Reply #2 on: April 29, 2010, 01:02:50 am »

You seem to be correct. The info has been removed from the Development version documentation. I wonder why. Apparently, XML and I are not getting along as of late. Thanks anyway.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 5.815 seconds with 15 queries.