Author Topic: Map Connecting...  (Read 1283 times)

Debci

  • Hydlaa Resident
  • *
  • Posts: 77
    • View Profile
Map Connecting...
« on: August 31, 2010, 09:58:36 pm »
Hi everyone!
Im testing my own maps design on the planeshift client sources, I followed the guide:
http://pcdserver.shacknet.nu/psdoc/?q=node/21

But it only work with one map region, how i can add and connect more regions? Adding an object from blender?

Regards!

RlyDontKnow

  • Associate Developer
  • Hydlaa Citizen
  • *
  • Posts: 403
    • View Profile
Re: Map Connecting...
« Reply #1 on: September 01, 2010, 02:33:37 am »
unfortunately you have to create the portals manually.
the portal is define by the vertices that define the mesh, a target sector and optionally a warp transformation as well as a clipping setting

for examples check the portals in the planeshift world files (they're in cs' binary xml format, to convert them to regular xml compile docconv (part of cs) and run docconv -outds=tinyxml world_filename)

Debci

  • Hydlaa Resident
  • *
  • Posts: 77
    • View Profile
Re: Map Connecting...
« Reply #2 on: September 01, 2010, 10:19:47 am »
unfortunately you have to create the portals manually.
the portal is define by the vertices that define the mesh, a target sector and optionally a warp transformation as well as a clipping setting

for examples check the portals in the planeshift world files (they're in cs' binary xml format, to convert them to regular xml compile docconv (part of cs) and run docconv -outds=tinyxml world_filename)
But in world folder I only can see zip files, and one xml, named lighting(this not are the portals...) what extension of files I want to search?

Regards

RlyDontKnow

  • Associate Developer
  • Hydlaa Citizen
  • *
  • Posts: 403
    • View Profile
Re: Map Connecting...
« Reply #3 on: September 01, 2010, 02:09:40 pm »
they don't have an extension
in the world.zip, there are files like npcroom1, npcroom2, ...
those are the ones you're looking for

edit: you can also check this: http://crystal.svn.sourceforge.net/viewvc/crystal/CS/trunk/data/castle/world?revision=34475&view=markup
it's the castle map (default one for cs' walktest) which has some portals as well, so you can check that one, too
« Last Edit: September 01, 2010, 02:11:14 pm by RlyDontKnow »

Debci

  • Hydlaa Resident
  • *
  • Posts: 77
    • View Profile
Re: Map Connecting...
« Reply #4 on: September 01, 2010, 03:26:16 pm »
they don't have an extension
in the world.zip, there are files like npcroom1, npcroom2, ...
those are the ones you're looking for

edit: you can also check this: http://crystal.svn.sourceforge.net/viewvc/crystal/CS/trunk/data/castle/world?revision=34475&view=markup
it's the castle map (default one for cs' walktest) which has some portals as well, so you can check that one, too
If I understanded this is the code of the portals:

Code: [Select]
<portal>
<v y="1.25" x="2.20533735273e-007" z="0.675000190735" />
<v y="-1.24999952316" x="-2.20533735273e-007" z="-0.675000190735" />
<v y="1.25" x="-3.17889679025e-008" z="-0.674999833107" />
<sector>basement03</sector>
<float />
</portal>
And the sector tags contains the sector of destiny of this portal?

Regards

RlyDontKnow

  • Associate Developer
  • Hydlaa Citizen
  • *
  • Posts: 403
    • View Profile
Re: Map Connecting...
« Reply #5 on: September 01, 2010, 03:44:01 pm »
right, the most basic portal just contains of the vertices that define the portal surface and the sector it leads to
the <float /> tag is an example of a clipping tag that defines how things are clipped
additionally you may define a warp transformation (e.g. to rotate/move them in case they aren't designed in one big coordinate system)