XASECO2 (TM²C) v0.98

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

Moderators: Xymph, TM-Patrol

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

Re: XASECO2 (TM²C) v0.98

Post by Xymph » 17 Dec 2011 09:01

Electron wrote:keep_best_vreplays is set to true by default.
I do not need all the VR in the VReplays folder (its pointless for me). Can I configure keep_best_vreplays to false without any disadvantages (relating to Dedimania)?
Can saving the GR be also switched off?
Why is both enabled by default? To save RAM?
You're talking about the Dedimania plugin, thought I'd provide that little context. :wink:
GReplays have to be saved before they can be used, that's all the SaveBestGhostsReplay method does. So this cannot be disabled, but it only happens for prospective #1 recs, so that directory shouldn't fill up very fast. You can always tmpwatch it.
VReplays are saved by default by the plugin but merely for symmetry, and you're welcome to turn that off.
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: 5706
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: XASECO2 (TM²C) v0.98

Post by Xymph » 18 Dec 2011 15:18

oliverde8 wrote:I have a problem wth my server over heating when I run XAseco as it uses 100% of the CPU all the time. I know I need to change som pieces but mean while.
I never saw XAseco1/2 eat 100% CPU, but a few percent while idling with no players still seems more than necessary indeed.
oliverde8 wrote: I changed the main while to this :

Code: Select all

			$time_end = microtime(true);
			$time = 200000 - ($time_end - $time_start);
Seems to me a little bug snuck in there. That time difference should be multiplied by 1000000 before being taken off the 200000. :wink:
oliverde8 wrote:

Code: Select all

			if($time > 0)
				usleep($time);
		}
I have this runing for 2 weeks now and had over 30 players without any notable slow down. when there is no players my CPu usage is below 10% even with 30 it stands under 60%. May it have a secondary effect runing it this way?
I think that's a good solution with no drawbacks I can think of, so I incorporated it in the next release. Thanks.
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

magaman
pedestrian
pedestrian
Posts: 13
Joined: 20 Jun 2011 22:35
Owned TM-games: tmu

Re: XASECO2 (TM²C) v0.98

Post by magaman » 18 Dec 2011 17:44

Noticed a couple of small things. auto save doesn't seem to be working. The music part does some weird stuff like current song display wrong info.

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

Re: XASECO2 (TM²C) v0.98

Post by Xymph » 18 Dec 2011 19:02

magaman wrote:Noticed a couple of small things. auto save doesn't seem to be working. The music part does some weird stuff like current song display wrong info.
Reporting possible bugs is welcome, but pointless if you include as little info as possible, rather than as much. :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

magaman
pedestrian
pedestrian
Posts: 13
Joined: 20 Jun 2011 22:35
Owned TM-games: tmu

Re: XASECO2 (TM²C) v0.98

Post by magaman » 19 Dec 2011 15:45

auto save

if i restart the server i will have tracks that have been deleted and not have tracks that have been added. and the server has been running weeks or months. It doesn't work. If i write match settings from ingame menu then restart server everything is fine.

Music displayes info from another song. Don't know what to say here.

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

Re: XASECO2 (TM²C) v0.98

Post by Xymph » 19 Dec 2011 19:50

magaman wrote:auto save

if i restart the server i will have tracks that have been deleted and not have tracks that have been added. and the server has been running weeks or months. It doesn't work. If i write match settings from ingame menu then restart server everything is fine.
Sounds like you haven't completely configured it, here's a recent thread on it.
magaman wrote:Music displays info from another song. Don't know what to say here.
What 'display' are you referring to? XAseco doesn't include a panel for music info, that may be a third-party plugin. Or are you referring to a chat command, or the game's own music widget? Is the song the previous one so that it trails behind, or a random other song?
Again, be complete and specific when reporting something.
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

magaman
pedestrian
pedestrian
Posts: 13
Joined: 20 Jun 2011 22:35
Owned TM-games: tmu

Re: XASECO2 (TM²C) v0.98

Post by magaman » 21 Dec 2011 17:39

The music could be fufi.

the auto save is set both in rasp.settings.php and the config file.

If it helps the server is a linux dedicated server running centos 5.7 64bit.

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

Re: XASECO2 (TM²C) v0.98

Post by Xymph » 21 Dec 2011 18:52

magaman wrote:the auto save is set both in rasp.settings.php and the config file.
And in /game_settings= in the .sh file?
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

magaman
pedestrian
pedestrian
Posts: 13
Joined: 20 Jun 2011 22:35
Owned TM-games: tmu

Re: XASECO2 (TM²C) v0.98

Post by magaman » 22 Dec 2011 22:28

yes. but only restarted Xaseco. So everytime I change something I am writing matchlist manually and it seems to be working that way for now.

How often is it supposed to autosave ?

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

Re: XASECO2 (TM²C) v0.98

Post by Xymph » 22 Dec 2011 23:08

magaman wrote:How often is it supposed to autosave ?
At the end of every track.
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
Electron
cyclist
cyclist
Posts: 38
Joined: 25 Jun 2010 18:20
Owned TM-games: TMUF, TM2
Manialink(s): GbxDump
Contact:

Re: XASECO2 (TM²C) v0.98

Post by Electron » 28 Dec 2011 13:38

Is it possible to define named constants for the game modes (Script, TA, Rounds, ...) in the next release?
Every time I read the scripts or extend my own plugin I am think over which modes have which numbers and vice versa. The fact that TMF and MP use different values makes it not easier.
The comments in the code describes near everywhere what the script does, but global defined named constants would be very handy.

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

Re: XASECO2 (TM²C) v0.98

Post by Xymph » 28 Dec 2011 19:21

Electron wrote:Is it possible to define named constants for the game modes (Script, TA, Rounds, ...) in the next release?
Every time I read the scripts or extend my own plugin I am think over which modes have which numbers and vice versa. The fact that TMF and MP use different values makes it not easier.
The comments in the code describes near everywhere what the script does, but global defined named constants would be very handy.
Possible? Yes, many things are possible with software. :)
I did actually consider this before the initial X2 release precisely because of the changed values. But in X1/X2, which are built object-oriented at least to some degree, the clean way would be to define the constants in class Gameinfo (similar to ManiaLive's GameInfos::GAMEMODE_* constants) rather than plain define()s (like in FAST, which isn't OO). And I didn't like the resulting long names for the constants, especially in already lengthy expressions involving multiple mode tests, so I decided against it under the pressure of getting X2 released during the TM2 beta.

But it kept nagging me, and your post provided just enough incentive to swing the balance the other way. So the next X1/X2 releases will have abbreviated constants like Gameinfo::RNDS, Gameinfo::TA, etc.
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

Post Reply