TM-FORUM

The TrackMania universal forum ^_^
It is currently 21 Feb 2017 13:17

All times are UTC + 1 hour




Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: XASECO (TMN/TMF) v1.16
PostPosted: 13 May 2014 15:39 
Offline
road tourist
road tourist

Joined: 21 Apr 2013 11:01
Posts: 83
Location: Germany/Rhineland-Palatinate
Owned TM-games: All except TMO
Manialink(s): im
Afaik not but here is a little mod i just made for you (untested and xaseco 1):
Open aseco.php and search for line 1196:
Code:
foreach ($this->rpc_calls as $call) {
            // display error message if needed
            $err = false;
            if (isset($responses[$call->index]['faultString'])) {
               $this->rpcErrorResponse($responses[$call->index]);
               print_r($call->call);
               $err = true;
            }

            // if an id was set, then save the response under the specified id
            if ($call->id) {
               $this->rpc_responses[$call->id] = $responses[$call->index][0];
            }

            // if a callback function has been set, then execute it
            if ($call->callback && !$err) {
               if (function_exists($call->callback)) {
                  // callback the function with the response as parameter
                  call_user_func($call->callback, $responses[$call->index][0]);
               }

               // if a function with the name of the callback wasn't found, then
               // try to execute a method with its name
               elseif (method_exists($this, $call->callback)) {
                  // callback the method with the response as parameter
                  call_user_func(array($this, $call->callback), $responses[$call->index][0]);
               }
            }
         }


Replace it by
Code:
foreach ($this->rpc_calls as $call) {
            // display error message if needed
            $err = false;
            if (isset($responses[$call->index]['faultString'])) {
               $this->rpcErrorResponse($responses[$call->index]);
               print_r($call->call);
               $err = true;
            }

            // if an id was set, then save the response under the specified id
            if ($call->id) {
               $this->rpc_responses[$call->id] = $responses[$call->index][0];
            }

            // if a callback function has been set, then execute it
            if ($call->callback && !$err) {
               $starttime = microtime();
               if (function_exists($call->callback)) {
                  // callback the function with the response as parameter
                  call_user_func($call->callback, $responses[$call->index][0]);
               }

               // if a function with the name of the callback wasn't found, then
               // try to execute a method with its name
               elseif (method_exists($this, $call->callback)) {
                  // callback the method with the response as parameter
                  call_user_func(array($this, $call->callback), $responses[$call->index][0]);
               }
               $time = $starttime - microtime();
               
               if ($time > !!!SET NUMBER HERE!!!) {
                  $event_time_debug[] = array($call->callback, $time);
               }
            }
         }
         $previous = file_get_contents('event_time_debug.txt');
         file_put_contents('event_time_debug.txt', $previous . PHP_EOL.PHP_EOL . print_r($event_time_debug, true));


It will generate a file called event_time_debug.txt. It wont be sorted but you can set a minimum time for an event to be put into the file (microseconds).
Dunno wether it works, just try it. If it works, it wont be very pretty and easy to use but for few minutes work i think its ok :)


Top
 Profile  
 
 Post subject: Re: XASECO (TMN/TMF) v1.16
PostPosted: 16 May 2014 17:57 
Offline
smooth traffic navigator
smooth traffic navigator

Joined: 16 Oct 2010 20:45
Posts: 226
Location: Germany
Owned TM-games: TMN! TMF
Thanks will try it this weekend :1


Top
 Profile  
 
 Post subject: Re: XASECO (TMN/TMF) v1.16
PostPosted: 29 May 2014 10:47 
Offline
smooth traffic navigator
smooth traffic navigator

Joined: 16 Oct 2009 19:36
Posts: 286
Owned TM-games: tmu
Manialink(s): kripke
hi,

If I enter http://www.gamers.org/tmf/dedimania_blacklist.txt in the raps.settings.php and try then to update it, I get "Error: can't access"

How can I fix this?

(btw. the link works in the dedicated_cfg.txt)^^

_________________
Do you need Coppers? Click here
Image
Image
________________
PC-specs: Intel Core i7-3770k CPU @ 3.50GHz | 32GB Ram | Windows7 prof. ed. 64 Bit | Nvidia GTX 680


Top
 Profile  
 
 Post subject: Re: XASECO (TMN/TMF) v1.16
PostPosted: 29 May 2014 11:02 
Offline
Pit Crew
Pit Crew

Joined: 19 Aug 2007 13:58
Posts: 5622
Owned TM-games: TMN, TMU, TMF, TM²
Kripke wrote:
If I enter http://www.gamers.org/tmf/dedimania_blacklist.txt in the raps.settings.php and try then to update it, I get "Error: can't access"
How can I fix this?
(btw. the link works in the dedicated_cfg.txt)^^

There are no access denied errors in our Apache log. At what timestamp exactly (including timezone) are you trying to acces it?
Does it happen every time you join the server or run /admin mergegbl, or just once and it was perhaps an incidental networking hiccup?

_________________
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub


Top
 Profile  
 
 Post subject: Re: XASECO (TMN/TMF) v1.16
PostPosted: 29 May 2014 12:33 
Offline
smooth traffic navigator
smooth traffic navigator

Joined: 16 Oct 2009 19:36
Posts: 286
Owned TM-games: tmu
Manialink(s): kripke
Xymph wrote:
Kripke wrote:
If I enter http://www.gamers.org/tmf/dedimania_blacklist.txt in the raps.settings.php and try then to update it, I get "Error: can't access"
How can I fix this?
(btw. the link works in the dedicated_cfg.txt)^^

There are no access denied errors in our Apache log. At what timestamp exactly (including timezone) are you trying to acces it?
Does it happen every time you join the server or run /admin mergegbl, or just once and it was perhaps an incidental networking hiccup?


.. I did a mistake.. I did not uploaded this file on includes folder and I had the standard values in it, sry..^^

Now it works normal^^

_________________
Do you need Coppers? Click here
Image
Image
________________
PC-specs: Intel Core i7-3770k CPU @ 3.50GHz | 32GB Ram | Windows7 prof. ed. 64 Bit | Nvidia GTX 680


Top
 Profile  
 
 Post subject: Re: XASECO (TMN/TMF) v1.16
PostPosted: 04 Dec 2015 07:48 
Offline
smooth traffic navigator
smooth traffic navigator

Joined: 16 Oct 2010 20:45
Posts: 226
Location: Germany
Owned TM-games: TMN! TMF
Hi Xymph,

will there be a fix for PHP7? XAseco uses mysql_connect and that is removed in PHP7.
https://secure.php.net/manual/en/function.mysql-connect.php

Thanks for info.


Top
 Profile  
 
 Post subject: Re: XASECO (TMN/TMF) v1.16
PostPosted: 04 Dec 2015 10:28 
Offline
Pit Crew
Pit Crew

Joined: 19 Aug 2007 13:58
Posts: 5622
Owned TM-games: TMN, TMU, TMF, TM²
TheBigG wrote:
will there be a fix for PHP7? XAseco uses mysql_connect and that is removed in PHP7.
https://secure.php.net/manual/en/function.mysql-connect.php

I am aware of that, but mysql_* calls are used in 20+ source files, not to mention countless third-party plugins. Rewriting to mysqli_* calls would take far more than a 'fix'. :(

The simple fix? Don't upgrade to PHP 7, or -- for ManiaPlanet, anyway -- switch to a more modern server controller that doesn't use mysql_* calls.

I know... not desirable either.

_________________
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub


Top
 Profile  
 
 Post subject: Re: XASECO (TMN/TMF) v1.16
PostPosted: 04 Mar 2016 14:56 
Offline
sunday driver
sunday driver
User avatar

Joined: 01 Jun 2010 01:37
Posts: 71
Owned TM-games: TMU, TMUF, TM2
Manialink(s): tdracer
I'm currently working on porting xasecos (and probably also of some third party plugins later) mysql_* calls to PDO. But don't expect it too soon. ;)

Edit: Xaseco (and Core Plugins) finished. After if have tested everything i'll uploaded it

_________________
Image
"My english is not the yellow from the egg ..." ;)


Top
 Profile  
 
 Post subject: Re: XASECO (TMN/TMF) v1.16
PostPosted: 12 Jul 2016 21:59 
Offline
highway camper
highway camper

Joined: 12 Jul 2016 18:50
Posts: 4
Owned TM-games: TM2S, TMU, TMN
Perfect, Then i can setup the Server again
After an change from HDD to SSD i found out that php7.0 is out
And all Package-Names are different, So i had to relearn them

And then i was wondering why it is not working and searched in forums, and i found the message that mysql will removed in future versions (This text was even in the XAseco.log)
But i have forgetten that :roflol:

I hope the Tests will all be Successfull


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group