XASECO (TMN/TMF) v1.14

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: XASECO (TMN/TMF) v1.14

Post by Ant » 08 Nov 2011 22:19

Hi xymph, just a quick one - but I get this error every time I try /admin players

Code: Select all

[11/09,02:10:40] player xxx_ant used chat command "/admin players"
PHP Fatal error:  Allowed memory size of 52428800 bytes exhausted (tried to allocate 71 bytes) in /home/xxx-ant/XAseco/plugins/chat.admin.php on line 1758
The line number changes each time I get this message as well.

I thought it might mean the dedicated needs to be restarted, so I did that and restarted xaseco of course, but the problem persists :?

Is this a bug? Do you know a way around this?

If it matters, I was the only player on the server when I tried this command.

Edit: It seems to be fixed by adding this to the top of aseco.php

Code: Select all

ini_set("memory_limit","12M");
Edit2: I might have been a bit hasty actually, it worked once - then after logging out of the server and logging back in and trying again, I got the same error.

Xymph
Pit Crew
Pit Crew
Posts: 5707
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: XASECO (TMN/TMF) v1.14

Post by Xymph » 09 Nov 2011 06:49

Ant wrote:but I get this error every time I try /admin players
[...]
Is this a bug? Do you know a way around this?

If it matters, I was the only player on the server when I tried this command.

Edit: It seems to be fixed by adding this to the top of aseco.php

Code: Select all

ini_set("memory_limit","12M");
Edit2: I might have been a bit hasty actually, it worked once - then after logging out of the server and logging back in and trying again, I got the same error.
See the v1.04 release notes, near the end.
There's already a memory_limit statement at the end of aseco.php, to the aforementioned 50 MB. No point in reducing it to one quarter of that :wink: so try increasing that instead of adding another statement.
Alternatively, decrease 'LIMIT 5000' in the /admin players code.
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

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: XASECO (TMN/TMF) v1.14

Post by Ant » 09 Nov 2011 07:21

Ah nice one, I missed that all that time ago (for some reason I was thinking it was limited at 5mb thats why I used a 12mb limit) - its now working perfectly. Thanks Xymph

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: XASECO (TMN/TMF) v1.14

Post by Ant » 11 Nov 2011 22:23

Hi Xymph, can you tell me if there is an OnSpec event or something similar? I just want to be be able to do something when a player goes into spec mode.

Thanks.

User avatar
L3cKy
smooth traffic navigator
smooth traffic navigator
Posts: 210
Joined: 05 Sep 2007 13:55
Owned TM-games: TMUF
Location: Berlin
Contact:

Re: XASECO (TMN/TMF) v1.14

Post by L3cKy » 12 Nov 2011 01:43

Ant wrote:Hi Xymph, can you tell me if there is an OnSpec event or something similar? I just want to be be able to do something when a player goes into spec mode.
Same here :)

Hi xymph ...
I want to hide the recspanel when a player goes into spectator or allready is spectator.
Is this without any big changes possible?

Greetings

User avatar
svens
speedy pilot
speedy pilot
Posts: 304
Joined: 05 Dec 2009 23:30
Owned TM-games: TMUF, TMS, TMO
Location: Bern, CH
Contact:

Re: XASECO (TMN/TMF) v1.14

Post by svens » 12 Nov 2011 13:25

Ant wrote:Hi Xymph, can you tell me if there is an OnSpec event or something similar? I just want to be be able to do something when a player goes into spec mode.
When a player changes spectator status a "PlayerInfoChanged" callback is sent. The PlayerInfo parameter contains the info you want, you can find a description of it in the help message to GetPlayerInfo() or GetPlayerList().. The field you're looking for is "SpectatorStatus = Spectator + TemporarySpectator * 10 + PureSpectator * 100 + AutoTarget * 1000 + CurrentTargetId * 10000
". Don't know how to catch it in XAseco though.

ComKat
wheelbarrow operator
wheelbarrow operator
Posts: 18
Joined: 10 Jul 2008 09:50
Owned TM-games: TMNF, TMUF, TM2C
Location: Denmark
Contact:

Re: XASECO (TMN/TMF) v1.14

Post by ComKat » 12 Nov 2011 16:48

I have the problem that the tracks i add or remove from my server not be saved..
When i add a new one it is on the server, and on the /list,
But if i restart the server, it disapperes -.-

I dont think it saving my new tracks to the tracklist.txt, and also if i remove a track, it is there again after i start the server...

Sorry for bad english.

Xymph
Pit Crew
Pit Crew
Posts: 5707
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: XASECO (TMN/TMF) v1.14

Post by Xymph » 12 Nov 2011 17:30

svens wrote:
Ant wrote:Hi Xymph, can you tell me if there is an OnSpec event or something similar? I just want to be be able to do something when a player goes into spec mode.
There's no specific event for that, but see below.
svens wrote:When a player changes spectator status a "PlayerInfoChanged" callback is sent. The PlayerInfo parameter contains the info you want, you can find a description of it in the help message to GetPlayerInfo() or GetPlayerList().. The field you're looking for is "SpectatorStatus = Spectator + TemporarySpectator * 10 + PureSpectator * 100 + AutoTarget * 1000 + CurrentTargetId * 10000
". Don't know how to catch it in XAseco though.
Right, and you can use the onPlayerInfoChanged event to act on this. And the main aseco.php already sets the isspectator attribute of the pertaining player object correctly. So you can so something like this in your onPlayerInfoChanged event handler:

Code: Select all

$player = $aseco->server->players->getPlayer($playerinfo['Login']);
if ($player->isspectator) { yadayada }
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

Xymph
Pit Crew
Pit Crew
Posts: 5707
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: XASECO (TMN/TMF) v1.14

Post by Xymph » 12 Nov 2011 17:34

L3cKy wrote:I want to hide the recspanel when a player goes into spectator or allready is spectator.
Is this without any big changes possible?
I don't see why you'd want to deprive a player of some information just because he/she switched to spec, possibly temporarily.
But you can experiment with the onPlayerInfoChanged event and the functions recpanel_off and display_recpanel if you really like.
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

Xymph
Pit Crew
Pit Crew
Posts: 5707
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: XASECO (TMN/TMF) v1.14

Post by Xymph » 12 Nov 2011 17:41

ComKat wrote:I have the problem that the tracks i add or remove from my server not be saved..
When i add a new one it is on the server, and on the /list,
But if i restart the server, it disapperes -.-

I dont think it saving my new tracks to the tracklist.txt, and also if i remove a track, it is there again after i start the server...
Enable $autosave_matchsettings in rasp.settings.php, restart XAseco, go to next track, then use the generated matchsettings file in the dedicated server start-up script.
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

ComKat
wheelbarrow operator
wheelbarrow operator
Posts: 18
Joined: 10 Jul 2008 09:50
Owned TM-games: TMNF, TMUF, TM2C
Location: Denmark
Contact:

Re: XASECO (TMN/TMF) v1.14

Post by ComKat » 12 Nov 2011 18:31

Xymph wrote:Enable $autosave_matchsettings in rasp.settings.php, restart XAseco, go to next track, then use the generated matchsettings file in the dedicated server start-up script.
Thansk for fast answer :)

Where are the generated matchsetings file located?
Is it the normal in gamedata/tracks/matchsettings.. ?

Xymph
Pit Crew
Pit Crew
Posts: 5707
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: XASECO (TMN/TMF) v1.14

Post by Xymph » 12 Nov 2011 18:50

ComKat wrote:Where are the generated matchsetings file located?
Is it the normal in gamedata/tracks/matchsettings.. ?
Try it and look. :wink:
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

ComKat
wheelbarrow operator
wheelbarrow operator
Posts: 18
Joined: 10 Jul 2008 09:50
Owned TM-games: TMNF, TMUF, TM2C
Location: Denmark
Contact:

Re: XASECO (TMN/TMF) v1.14

Post by ComKat » 12 Nov 2011 19:02

Xymph wrote:
ComKat wrote:Where are the generated matchsetings file located?
Is it the normal in gamedata/tracks/matchsettings.. ?
Try it and look. :wink:
Okay it was, and works perfect now :D

Another question you maybe can answer..
I use the chat based votes..
It should be possible to press F5 and F6 for yes and no, but it dont work? i can press buttons, and they work.. any idea? :)

Xymph
Pit Crew
Pit Crew
Posts: 5707
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: XASECO (TMN/TMF) v1.14

Post by Xymph » 12 Nov 2011 19:22

ComKat wrote:I use the chat based votes..
It should be possible to press F5 and F6 for yes and no, but it dont work? i can press buttons, and they work.. any idea? :)
Funny you mention that, I was on some server earlier today and noticed the same problem. They work fine on my test server, so I suspect some third-party plugin is messing with the buttons, but don't know which one.
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

ComKat
wheelbarrow operator
wheelbarrow operator
Posts: 18
Joined: 10 Jul 2008 09:50
Owned TM-games: TMNF, TMUF, TM2C
Location: Denmark
Contact:

Re: XASECO (TMN/TMF) v1.14

Post by ComKat » 12 Nov 2011 19:27

Xymph wrote:Funny you mention that, I was on some server earlier today and noticed the same problem. They work fine on my test server, so I suspect some third-party plugin is messing with the buttons, but don't know which one.
I think these are the other i have added than normals:
<plugin>plugin.MLintegration.php</plugin>
<plugin>plugin.msglog.php</plugin>
<plugin>plugin.donate.php</plugin>
<plugin>plugin.fufi.menu.php</plugin>
<plugin>plugin.fufi.widgets.php</plugin>
<plugin>plugin.elist.php</plugin>

Post Reply