To make a portal back you need to make another portal that goes in the other direction. A portal is always one-way.
Greetings,
I tried to make a portal in room2.
I duplicated "port1" which set in room and renamed it with "port2", then I made port2 to point to room, but it could not work.
Did any difference between port1 and port2 in setting the portal's dimensions ?! the code is followed:
<?xml version='1.0' encoding='UTF-8'?>
<world>
<textures>
<texture name="oldmetal">
<file>/lib/stdtex/oldmetal.jpg</file>
</texture>
</textures>
<shaders>
<shader>
<file>/shader/std_lighting_detail.xml</file>
</shader>
</shaders>
<materials>
<material name="oldmetal">
<texture>oldmetal</texture>
<shader type="standard">std_lighting_detail</shader>
<shadervar name="tex detail" type="texture">oldmetal</shadervar>
<shadervar name="detail texture scale" type="vector2">10,10</shadervar>
</material>
</materials>
<sounds>
<sound name="tada.wav">
<file>/lib/std/tada.wav</file>
</sound>
</sounds>
<library path="/lib/std" file="library" />
<plugins>
<plugin name="thing">crystalspace.mesh.loader.thing</plugin>
<plugin name="thingFact">crystalspace.mesh.loader.factory.thing</plugin>
</plugins>
<meshfact name="walls">
<plugin>thingFact</plugin>
<zfill />
<params>
<v x="-10" y="-1" z="10"/> <v x="10" y="-1" z="10"/>
<v x="-10" y="-1" z="-10"/> <v x="10" y="-1" z="-10"/>
<v x="-10" y="4" z="10"/> <v x="10" y="4" z="10"/>
<v x="-10" y="4" z="-10"/> <v x="10" y="4" z="-10"/>
<material>old_metal</material>
<texlen>4</texlen>
<p name="up">
<v>6</v> <v>7</v> <v>5</v> <v>4</v>
</p>
<p name="down">
<v>3</v> <v>2</v> <v>0</v> <v>1</v>
</p>
<p name="back">
<v>7</v> <v>6</v> <v>2</v> <v>3</v>
</p>
<p name="front">
<v>4</v> <v>5</v> <v>1</v> <v>0</v>
</p>
<p name="left">
<v>6</v> <v>4</v> <v>0</v> <v>2</v>
</p>
<p name="right">
<v>5</v> <v>7</v> <v>3</v> <v>1</v>
</p>
</params>
</meshfact>
<start>
<sector>room</sector>
<position x="0" y="0" z="0" />
</start>
<sector name="room">
<meshobj name="walls">
<plugin>thing</plugin>
<params>
<factory>walls</factory>
</params>
</meshobj>
<portals>
<portal name="port1">
<v x="9.7" y="1" z="1" />
<v x="9.7" y="1" z="0" />
<v x="9.7" y="-1" z="0" />
<v x="9.7" y="-1" z="1" />
<wv x="1" y="0" z="0" />
<ww x="-1" y="0" z="0" />
<sector>room2</sector>
<float />
</portal>
<priority>object</priority>
</portals> <light name="light1">
<center x="0" y="0" z="0" />
<radius>20</radius>
<color red="2" green="2" blue="2" />
</light>
</sector>
<sector name="room2">
<meshobj name="walls">
<plugin>thing</plugin>
<params>
<factory>walls</factory>
</params>
<move>
<v x="20" y="0" z="0" />
</move>
</meshobj>
<portals>
<portal name="port2">
<v x="9.7" y="1" z="1" />
<v x="9.7" y="1" z="0" />
<v x="9.7" y="-1" z="0" />
<v x="9.7" y="-1" z="1" />
<wv x="1" y="0" z="0" />
<ww x="-1" y="0" z="0" />
<sector>room</sector>
<float />
</portal>
<priority>object</priority>
</portals> <light name="light1">
<center x="20" y="0" z="0" />
<radius>20</radius>
<color red="2" green="2" blue="2" />
<dynamic />
</light>
</sector>
</world>