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)
Originally Posted by essydave Go to original post
It appears in live list for standard players (you don't have to have a club edition to a join server, only to create)
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![]()
Found a solution.Use libraries inside this package: https://github.com/maniaplanet/dedicated-server-apiOriginally Posted by sdkNarkos Go to original post
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.
in the loop useCode: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")));
to get maniaplanet callbacksCode:$cbs = $this->client->getCallbacks();
hope will be useful to you and someone else
The new files didn't change anything for me.
When i add this line:
I get this error:Code:$client->query('TriggerModeScriptEventArray', array("XmlRpc.EnableCallbacks", array("true")));
I also tested using different combinations of script settings in matchsettings:Code:Fatal error: Uncaught Maniaplanet\DedicatedServer\Xmlrpc\GameModeException: Not in script mode
And I think I can't get callback without having script trigger them...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>
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
I used this quick test code:
And i get this error: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(); ?>
Help really appreciatedCode:Fatal error: Uncaught Maniaplanet\DedicatedServer\Xmlrpc\GameModeException: Not in script mode.