Error ".$result." : '".$shardAddr."' while trying to join a session "; echo '

Back to menu'; } else { // ok, we have the info to connect ! // generate the lua script $cookie=convertCookieForActionHandler($_COOKIE["ryzomId"]); $luaScript='runAH(nil, "on_connect_to_shard", "cookie='.$cookie.'|fsAddr='.$shardAddr.'")'; //echo 'luaScrip : '.$luaScript.'
'; echo ''.$luaScript.''; echo 'You are allowed in the session
'; } } } if (isset($_POST["sessionId"])) joinSessionFromIdPost($_POST["sessionId"]); /** * Authenticate and request to join the specified shard */ function joinSessionFromIdPost( $destSessionId ) { $domainId = -1; if (!validateCookie($userId, $domainId, $charId)) { echo "Invalid cookie !"; die(); } else { joinSessionFromId($userId, $domainId, $destSessionId); } } /** * Request to join the specified shard */ function joinSessionFromId( $userId, $domainId, $destSessionId ) { $domainId = -1; if (!validateCookie($userId, $domainId, $charId)) { echo "Invalid cookie !"; die(); } else { echo "Welcome user $userId
"; $domainInfo = getDomainInfo($domainId); $addr = split(":", $domainInfo["session_manager_address"]); $RSMHost = $addr[0]; $RSMPort = $addr[1]; // ask join to the session manager $joinSession = new JoinSessionCb; $res = ""; $joinSession->connect($RSMHost, $RSMPort, $res); // $rsmProxy = new CRingSessionManagerWebProxy; // $charSlot = getCharSlot(); // if ingame (!=15), the RSM will check if this character has the right to connect to the specified session // $charId = ($userId<<4) + $charSlot; echo $charId." of user ".$userId." joigning session ".$destSessionId."
"; $joinSession->joinSession($charId, $destSessionId, $domainInfo["domain_name"]); // wait the the return message // $rsmSkel = new CRingSessionManagerWebSkel; if ($joinSession->waitCallback() == false) { echo "No response from server, joinSession failed
"; } die(); } } ?>