🛈 Announcement
Greetings! Trackmania forums are now archived and accessible in read-only mode, please go to the new platform to discuss the game.
  1. #21

    Question regarding dedicated servers and friends

    Hi all,

    Liking the game so far but I can there's still some way to go. I understand new launch, new bugs etc and things need time to iron out. No biggy, can deal with that.

    My main question is how TM3 utilises friends & servers. Some context:

    Me and my friends love TM2 and creating stupid maps that should not exist. Generally we spend like an hour making them, friend creates a server, we pop in + have our fun and call it quits whenever. With the new "club" system, I'm a bit confused about how this is going to work.

    From what I understand, (as I have the club edition) I can host a server and let people join. Thing is, how exactly are my friends going to find it? Most will get the standard edition as they're pretty casual about TM and I don't want to force them to pony up the extra cash just so we can play together. I understand people using standard edition cannot join clubs, so I cant see how this will work.

    Additionally, if my friend gets the game on Epic and I'm using uplay, how will I go abouts adding them as a "friend" without using a club? is there a way?

    Cheers,

    Dave.

    (PS please make changing your nickname like the #1 thing to fix lmao)

  2. #22
    Originally Posted by essydave Go to original post
    Thing is, how exactly are my friends going to find it?

    It appears in live list for standard players (you don't have to have a club edition to a join server, only to create)

  3. #23
    Cool. Fair enough then. Is it possible to have a private server with others who only have standard?

  4. #24
    I'ts a real pain to get missing informations...

  5. #25
    Ubi-Alinoa's Avatar Super Moderator
    Join Date
    Feb 2010
    Posts
    748
    Hi,

    Standard players can't access to private activities of a club. You can look at differences between offers here: https://trackmania.com/uploads/2020/...ILS-scaled.jpg

    Cheers
     1 people found this helpful

  6. #26
    Hi, thanks for getting back.

    If that is the case, are you saying that standard players cannot go into private matches with their friends online? Disregarding clubs.

  7. #27
    Originally Posted by sdkNarkos Go to original post
    I'ts a real pain to get missing informations...
    Found a solution.Use libraries inside this package: https://github.com/maniaplanet/dedicated-server-api

    I do not use Connection class, as it give me troubles. You can use directly GbxRemote, but you have to require the other class manually.

    Code:
    require_once("includes/Xmlrpc/Exception.php");
    require_once("includes/Xmlrpc/FaultException.php");
    require_once("includes/Xmlrpc/Base64.php");
    require_once("includes/Xmlrpc/Request.php");
    require_once("includes/Xmlrpc/GbxRemote.php");
    
    $this->client = new Maniaplanet\DedicatedServer\Xmlrpc\GbxRemote("127.0.0.1", "5004", 5);
    $this->client->query("Authenticate", array("SuperAdmin", "SuperAdmin"));
    $this->client->query("EnableCallbacks", array(true));
    $this->client->query("SetApiVersion", array("2013-04-16"));
    $this->client->query('TriggerModeScriptEventArray', array("XmlRpc.EnableCallbacks", array("true")));
    in the loop use

    Code:
    $cbs = $this->client->getCallbacks();
    to get maniaplanet callbacks

    hope will be useful to you and someone else
     1 people found this helpful

  8. #28
    Thx for the tip, i'll try it out

  9. #29
    The new files didn't change anything for me.

    When i add this line:
    Code:
    $client->query('TriggerModeScriptEventArray', array("XmlRpc.EnableCallbacks", array("true")));
    I get this error:
    Code:
    Fatal error: Uncaught Maniaplanet\DedicatedServer\Xmlrpc\GameModeException: Not in script mode
    I also tested using different combinations of script settings in matchsettings:
    Code:
    <script_settings>
    	...
    	<setting name="S_UseLegacyXmlRpcCallbacks" type="boolean" value="1"/>
    	<setting name="S_UseScriptCallbacks" type="boolean" value="1"/>
    	<setting name="S_UseScriptXmlRpcCallbacks" type="boolean" value="1"/>
    	 <setting name="S_UseLegacyCallbacks" type="boolean" value="1"/>
    	...
    </script_settings>
    And I think I can't get callback without having script trigger them...
    Seems something still missing in my files or something I don't understand...

    (I tested with "<script_name>Trackmania/TM_TimeAttack_Online</script_name>" and <script_name>Trackmania/TM_Laps_Online</script_name>).

    Thx

  10. #30

    More infos

    I used this quick test code:

    Code:
    <?php
        require __DIR__ . '/vendor/autoload.php';
    
        $client = new Maniaplanet\DedicatedServer\Xmlrpc\GbxRemote("127.0.0.1", "5000", 5);
        $client->query("Authenticate", array("SuperAdmin", "SuperAdmin"));
        $client->query("EnableCallbacks", array(true));
        $client->query("SetApiVersion", array("2013-04-16"));
        $client->query('TriggerModeScriptEventArray', array("XmlRpc.EnableCallbacks", array("true")));
        
        flush();
        while(true) {
            $cbs = $client->getCallbacks();
            if (!empty($cbs)) {
               var_dump($cbs);
               flush();
            }
        }
    
        $client->Terminate();
    ?>
    And i get this error:
    Code:
    Fatal error: Uncaught Maniaplanet\DedicatedServer\Xmlrpc\GameModeException: Not in script mode.
    Help really appreciated