ASECO/RASP (with Dedimania) v0.95 released!

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

Moderators: Xymph, TM-Patrol

nocturne
solid chaser
solid chaser
Posts: 1390
Joined: 08 Jun 2007 18:48
Owned TM-games: all
Contact:

Re: ASECO/RASP (with Dedimania) v0.95 released!

Post by nocturne » 28 Mar 2008 17:21

Alright, I got lazy and just copied over the files necessary for DM into my Aseco installation... Everything seems to be setup fine, but it seems the plugin isn't communicating with DM. It loads up fine, but doesn't show any current records (even on a track like Firebrand) and spits out recs every round starting at number one.

It seems something isn't quite working with the endrace function, but I can't pin it down. Any ideas..?

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

Re: ASECO/RASP (with Dedimania) v0.95 released!

Post by Xymph » 28 Mar 2008 17:37

nocturne wrote:Alright, I got lazy and just copied over the files necessary for DM into my Aseco installation... Everything seems to be setup fine, but it seems the plugin isn't communicating with DM. It loads up fine, but doesn't show any current records (even on a track like Firebrand) and spits out recs every round starting at number one.

It seems something isn't quite working with the endrace function, but I can't pin it down. Any ideas..?
If you didn't upgrade aseco.php to the new version, Dedimania won't work as it needs the new onEverySecond event that's generated there.
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

UKFC»ACE
smooth traffic navigator
smooth traffic navigator
Posts: 203
Joined: 08 Jun 2007 19:50
Owned TM-games: TMUF, TMNF
Location: Dublin, IRELAND

Re: ASECO/RASP (with Dedimania) v0.95 released!

Post by UKFC»ACE » 28 Mar 2008 17:52

Mine worked fine when first installed but then i started getting the streamselect PHP warning. I have not altered anything...

Code: Select all

[Aseco] PHP Version is 5.1.6
[Aseco] Load settings [config.xml]
[Aseco] Load admin/ops lists [adminops.xml]
[Aseco] Load plugin [plugin.localdatabase.php]
[Aseco] Load plugin [plugin.rounds.php]
[Aseco] Load plugin [chat.admin.php]
[Aseco] Load plugin [chat.help.php]
[Aseco] Load plugin [chat.records.php]
[Aseco] Load plugin [chat.records2.php]
[Aseco] Load plugin [chat.recrels.php]
[Aseco] Load plugin [chat.dedimania.php]
[Aseco] Load plugin [chat.players.php]
[Aseco] Load plugin [chat.players2.php]
[Aseco] Load plugin [chat.wins.php]
[Aseco] Load plugin [chat.laston.php]
[Aseco] Load plugin [chat.stats.php]
[Aseco] Load plugin [chat.server.php]
[Aseco] Load plugin [chat.song.php]
[Aseco] Load plugin [chat.me.php]
[Aseco] Load plugin [plugin.tmxinfo.php]
[Aseco] Load plugin [plugin.track.php]
[Aseco] Load plugin [plugin.checkpoints.php]
[Aseco] Load plugin [plugin.dedimania.php]
[Aseco] Load plugin [plugin.rasp.php]
[Aseco] Load plugin [plugin.rasp_jukebox.php]
[Aseco] Load plugin [plugin.rasp_chat.php]
[Aseco] Load plugin [plugin.rasp_karma.php]
[Aseco] Load plugin [plugin.rasp_nextmap.php]
[Aseco] Load plugin [plugin.rasp_nextrank.php]
[Aseco] Load plugin [plugin.rasp_votes.php]
[Aseco] Load plugin [plugin.chatlog.php]
[Aseco] Load plugin [plugin.uptodate.php]
[Aseco] Load plugin [jfreu.plugin.php]
[Aseco] Load plugin [mistral.idlekick.php]
[Aseco] Try to connect to server on 127.0.0.1:5225
[Aseco] Try to authenticate with login 'XXXX' and password 'XXXXX'
[Aseco] Connection established successfully!
[Local DB] Load settings file
[Local DB] Try to connect to MySQL server
[Local DB] MySQL Server Version is 5.0.24a-community-nt
[RASP] Cleaning up unused data
*-*-*-*-*-* RASP is running! *-*-*-*-*-*
|...Loading Settings
|...Loaded!
|...Checking database structure
|...Structure OK!
|...Calculating ranks
|...Done!
[03/28,17:37:04] << player 58 joined the game [ace1121 : ?$fffUKFC$000$w$iace : IRL : 11159 : 83.141.106.45]
[03/28,17:37:05] ************* (Dedimania) *************
[03/28,17:37:05] *** Dataserver connection on Dedimania ...
* Try connection on http://dedimania.net:8003/Dedimania ...
* Webaccess (dedimania.net:8003): Error(10060)A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
, connection failed !
  !!!
  !!! Error no database response (http://dedimania.net:8003/Dedimania)
  !!!
[03/28,17:37:09] ------------- (Dedimania) -------------
###############################################################################
  Aseco v0.95 Xymph running on 127.0.0.1:5225
  Name   : ?UKFCPractice
  Game   : TmNationsESWC - TimeAttack
  Version: 0.1.7.4 / 2006-05-30
  Author : Florian Schnell
  Re-Authored: Assembler Maniac & Xymph
###############################################################################
Begin Race
Begin Round
[03/28,17:37:12] track changed [none] >> [C-0]
[03/28,17:37:12] current record on C-0 is 0:19.26 and held by ?Nitros?`?!??
[PHP Warning] stream_select(): unable to select [0]: No error (max_fd=0) on line 200 in file C:\...\TmDedicatedServer\aseco_rasp_095\includes\web_access.inc.php
[PHP Warning] stream_select(): unable to select [0]: No error (max_fd=0) on line 200 in file C:\...\TmDedicatedServer\aseco_rasp_095\includes\web_access.inc.php
My server IS listed as active on dedimania.com

Any ideas?

User avatar
w1lla
TM-Patrol
TM-Patrol
Posts: 1466
Joined: 23 May 2007 07:20
Owned TM-games: TMU, TMN, TMF
Manialink(s): intr
Location: Venray

Re: ASECO/RASP (with Dedimania) v0.95 released!

Post by w1lla » 28 Mar 2008 17:59

required once in plugin.dedimania.php
remove that it helps a bit cuz it didnt came back.

Code: Select all

tmnforever is nations and united makes it special. tmnforever has united. I need united!

fordry
speedy pilot
speedy pilot
Posts: 368
Joined: 24 Jan 2008 20:53
Owned TM-games: TMUF TMN
Contact:

Re: ASECO/RASP (with Dedimania) v0.95 released!

Post by fordry » 28 Mar 2008 18:01

that might be the port number not being open on your router, check 8003.

-tK-
road tourist
road tourist
Posts: 96
Joined: 17 Nov 2006 19:22

Re: ASECO/RASP (with Dedimania) v0.95 released!

Post by -tK- » 28 Mar 2008 18:28

Xymph wrote: Perhaps it's still working because 'includes/rasp.funcs.php' is also require_once'd by chat.admin.php, which is listed earlier in plugins.xml.

Anyway, the strangest thing about the above errors is '1' being the filename that cannot be opened. No such file exists in the distribution so obviously it can't be opened either, but where does it get that name in the first place? :?

What about the /song command, does that work for you? chat.song.php does a require_once of 'includes/gbxdatafetcher.inc.php' and that isn't included anywhere else (actually it should, in includes/rasp.funcs.php, so I fixed that in the download zip).
When i type /song on a map which has no song (i dont know any maps with songs) i get this msg:
> No song found!

-edit
Just found a track with a song and when i type /song it shows:
Track Wallride City plays song: hybrid.mux
Last edited by -tK- on 28 Mar 2008 18:35, edited 1 time in total.

UKFC»ACE
smooth traffic navigator
smooth traffic navigator
Posts: 203
Joined: 08 Jun 2007 19:50
Owned TM-games: TMUF, TMNF
Location: Dublin, IRELAND

Re: ASECO/RASP (with Dedimania) v0.95 released!

Post by UKFC»ACE » 28 Mar 2008 18:30

fordry wrote:that might be the port number not being open on your router, check 8003.
DOH!! I set to BLOCK always instead of ALLOW. Working now, although... I'm sure earlier that the dedi recs displayer before AND after a race. Now they only display before. I still haven't changed any settings.

fordry
speedy pilot
speedy pilot
Posts: 368
Joined: 24 Jan 2008 20:53
Owned TM-games: TMUF TMN
Contact:

Re: ASECO/RASP (with Dedimania) v0.95 released!

Post by fordry » 28 Mar 2008 18:52

i have noticed that if you do not get a dedimania record on the track, it will not show the dedimania recs at the end.

nocturne
solid chaser
solid chaser
Posts: 1390
Joined: 08 Jun 2007 18:48
Owned TM-games: all
Contact:

Re: ASECO/RASP (with Dedimania) v0.95 released!

Post by nocturne » 28 Mar 2008 18:52

cut-and-pasted the 'run' function and everything seems to work great -- thx Xymph!

Really seems to clog up aseco, though (and I don't mean just the spam, hehe)... Running a stripped-down FAST might be a better approach for me I suppose, as aseco seems to be doing enough on it's own already.

Edit: On second thought, I'm forgetting completely about DM. Every track either has nothing but our local records, or nothing but fake records. The top500 on the localdb is a lot more competitive anyways...
Last edited by nocturne on 28 Mar 2008 18:59, edited 1 time in total.

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

Re: ASECO/RASP (with Dedimania) v0.95 released!

Post by Xymph » 28 Mar 2008 18:55

fordry wrote:i have noticed that if you do not get a dedimania record on the track, it will not show the dedimania recs at the end.
That is correct, if no new (probable) Dedi records have been set, nothing is sent to the central server at the end of the track. It is only the reply from that exchange that confirms the records were really new, and thus need to be displayed. This reduces chat message flooding a little bit.
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: 5683
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: ASECO/RASP (with Dedimania) v0.95 released!

Post by Xymph » 28 Mar 2008 18:57

-tK- wrote: When i type /song on a map which has no song (i dont know any maps with songs) i get this msg:
> No song found!

-edit
Just found a track with a song and when i type /song it shows:
Track Wallride City plays song: hybrid.mux
Yup, that's how it's supposed to be. So that include works fine then, and it remains a mystery why you're getting warnings with the Dedimania includes.
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: 5683
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: ASECO/RASP (with Dedimania) v0.95 released!

Post by Xymph » 28 Mar 2008 19:01

nocturne wrote:cut-and-pasted the 'run' function and everything seems to work great -- thx Xymph!
My pleasure. :)
nocturne wrote:Really seems to clog up aseco, though (and I don't mean just the spam, hehe)... Running a stripped-down FAST might be a better approach for me I suppose, as aseco seems to be doing enough on it's own already.
Yeah the message flooding can be a bit bad, especially in the beginning when you're racing on tracks that no other server has submitted records for yet. But that's why you can tune the amount of messaging with the dedimania.xml settings. Also, this effect will reduce over time as more and more servers run with Dedimania support.

But what do you mean by "clog up aseco"? Running everything in a single PHP process keeps things more coherent and all the messages in a consistent style, rather than two processes and a mix of message styles (which I personally found rather ugly on an Aseco/Fast server that I checked out before I wrote the plugins).
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

CRMax
sunday driver
sunday driver
Posts: 55
Joined: 27 Jan 2008 20:04
Owned TM-games: TMU, TMUF

Re: ASECO/RASP (with Dedimania) v0.95 released!

Post by CRMax » 28 Mar 2008 20:20

I download it, i going to set it on my server!
Sorry for my bad English :D
Clanleader of the world famous 【ฯЯ】 clan!
Visit us at: http://intense.racing.free.fr/!

Kjell T. Ring
sunday driver
sunday driver
Posts: 71
Joined: 03 Aug 2007 09:31
Owned TM-games: TMN, TMS
Location: Norway

Re: ASECO/RASP (with Dedimania) v0.95 released!

Post by Kjell T. Ring » 28 Mar 2008 20:46

This one works like a charm. I suppose an upgrade of dedimania.com sooner or later due to heavy Aseco usage in the community ;)

Two thumbs up for this Xymph and thanks to all others involved!

User avatar
Slig
Pit Crew
Pit Crew
Posts: 2124
Joined: 05 Sep 2005 17:51
Owned TM-games: ALL
Location: TraxicoLand (Fr)
Contact:

Re: ASECO/RASP (with Dedimania) v0.95 released!

Post by Slig » 28 Mar 2008 21:19

w1lla wrote:

Code: Select all

[PHP Warning] stream_select(): unable to select [9]: Bad file descriptor (max_fd=0) on line 200 in file D:\tmn\aseco_rasp_095\includes\web_access.inc.php
Hi kinda sweet new aseco but after being afk for sometime aseco gives me this as output in logfile.

What's wrong?
I think it is happening when there is no socket to select. You can try to do add that just before the stream_select( ), at line 200 of web_access.inc.php :

Code: Select all

		// if no socket to select then return directly
		if(count($read)+count($write)+count($except)==0)
			return 0;

Post Reply