[Aseco2.x]Dedimania Plugin Beta V0.7

This forum is dedicated to the Aseco/Rasp 2 server records and control script by Flo and Assembler Maniac. Announcements and issues can be discussed in this forum.

Moderators: Flo, f*ckfish, Assembler Maniac, TM-Patrol

Post Reply
calsmurf2904
smooth traffic navigator
smooth traffic navigator
Posts: 199
Joined: 08 Jul 2008 15:23
Owned TM-games: TMNF,TMN
Location: Netherlands
Contact:

[Aseco2.x]Dedimania Plugin Beta V0.7

Post by calsmurf2904 » 22 Jul 2008 14:42

Hello,
Welcome to this topic about the dedimania plugin.
Feel free to test but please remember that it is still in beta phase.
If you have any questions please ask them in this topic.
Please report any bugs in this topic.

V0.5b requires an earlier installed dedimania plugin e.g. 0.5a

Public Beta Releases
Beta 0.1 Download Link
Beta 0.5 Download Link
Beta 0.5a Download Link
Beta 0.5b Download Link <-Requires previous version
Beta 0.6 Download Link
Beta 0.6a Download Link
Beta 0.7 Download Link
New 0.7 beta Download link...old ones are down
thx for w1lla for hosting the 0.7 beta link.

On wich version am I currently working ?
I am currently waiting for bugs etc. and fix them if any....will release V1.0 soon !

ChangeLog
Version 0.6a->Version 0.7
Added buttons for oliverde8's menu.
Removed an author name who didn't want to be in it ;)
Version 0.6->Version 0.6a
Added the fixes and suggestions from willa
Version 0.5b->Version 0.6
W1lla :
improved some dedimania stability
Added some extra features (need to ask willa for it)
Calsmurf2904 :
Added Dedimania PB Window !
Please compare the old dedimania.xml with the new one for changes !
Added the required includes that were missing in 0.5b
Version 0.5a->Version 0.5b
-Added chatcommand :
->/admin dediconnect (if dedimania disconnected or didn't properly connect)
-Removed chat command helpdedi sinds it referred to dedihelp
-Changed tool name from ASECO_CALSMURF2904 to ADEDIMANIA<version> (Example ADEDIMANIA0.5b)
Version 0.5->Version 0.5a
-Fixed /dedirecs
-Fixed the dedilast and dedifirst commands
Version 0.1->Version 0.5
-Fixed all the chat commands....needs testing
-Fixed some errors in plugin.dedimania.php
-Removed Globals
-Fixed some things in plugin.checkpoints.php
-Changed dedimania.xml and the plugins to support colors in the messages
Version 0.1
-Contains Basic Dedimania functions such as settings records etc.
Status :
plugin.dedimania.php |99% (NEEDS BUGTESTING)
chat.dedimania.php |99% (NEEDS BUGTESTING)
plugin.checkpoints.php |99% (NEEDS BUGTESTING)

Want to see if it works ?
My server running aseco 2.2.0c on dedimania page
(Doesn't count anymore since I use Xaseco)

@Everybody
I won't be working on this plugin anymore...don't have any time to do it.
Hope somebody else can develop it further.
Last edited by calsmurf2904 on 27 Dec 2008 13:03, edited 21 times in total.
Image
Current Projects :
Aseco 2.x Dedimania plugin
Aseco 2.x Clan management Plugin
Servers :
LSR Race Server
Server Specs :
TmForever Server 2.11.16 05-08-08 (D-M-Y)
Xaseco 1.03 with FufiMenu and FufiWidgets

User avatar
J-S
happy cruiser
happy cruiser
Posts: 149
Joined: 24 Apr 2008 18:20
Owned TM-games: TMN,TMUF,TMO,TMS
Manialink(s): shark
Location: Grenoble - France
Contact:

Re: [Aseco 2.X]Dedimania Plugin WIP

Post by J-S » 23 Jul 2008 17:05

when i run Aseco with Dedimania plugin WIP, Aseco crashes with one error on chat.dedimania.php :

Code: Select all

###########################^M
[Aseco] Synchronizing with dedicated server ...^M
[07/23,19:04:09] << player 137 joined the game [js26]^M
dedimania_playerconnect - js26 : $o$999[$06cSA.fr$999]$06c JS^M
dedimania_playerconnect - pinfo
Array
(
    [Login] => js26
    [Nation] => FRA
    [TeamName] =>
    [TeamId] => -1
    [IsSpec] =>
    [Ranking] => 8441
    [IsOff] =>
)
^M
PHP Fatal error:  Cannot access protected property Aseco::$chat_messages in /home/aseco/Aseco/TMNF_aseco_sharkpro/plugins/dedimania/chat.dedimania.php on line 33

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

Re: [Aseco 2.X]Dedimania Plugin WIP

Post by fordry » 23 Jul 2008 19:37

hey, i downloaded the one willa linked to in the other post, i had it before you started this thread. I am running it with no trouble other than the chat stuff being messed up, kinda funny the chat outputs you get from it. Just curious, are you gonna be getting the top records chat output working? i know that the chat plugin is still very unfunctional but that would be nice to have. If that and the chat message for when you set a record worked, that would be great, i personally don't care about any of the rest, like the manialinks.

tchamba
cyclist
cyclist
Posts: 39
Joined: 06 Jul 2008 11:29
Owned TM-games: tmu
Location: France (28)

Re: [Aseco 2.X]Dedimania Plugin WIP

Post by tchamba » 23 Jul 2008 19:42

I have this error

calsmurf2904
smooth traffic navigator
smooth traffic navigator
Posts: 199
Joined: 08 Jul 2008 15:23
Owned TM-games: TMNF,TMN
Location: Netherlands
Contact:

Re: [Aseco 2.X]Dedimania Plugin WIP

Post by calsmurf2904 » 23 Jul 2008 21:43

fordry wrote:hey, i downloaded the one willa linked to in the other post, i had it before you started this thread. I am running it with no trouble other than the chat stuff being messed up, kinda funny the chat outputs you get from it. Just curious, are you gonna be getting the top records chat output working? i know that the chat plugin is still very unfunctional but that would be nice to have. If that and the chat message for when you set a record worked, that would be great, i personally don't care about any of the rest, like the manialinks.
it shows the records at the start and the end of the race..it also shows that you set a record.
J-S wrote:when i run Aseco with Dedimania plugin WIP, Aseco crashes with one error on chat.dedimania.php :

Code: Select all

###########################^M
[Aseco] Synchronizing with dedicated server ...^M
[07/23,19:04:09] << player 137 joined the game [js26]^M
dedimania_playerconnect - js26 : $o$999[$06cSA.fr$999]$06c JS^M
dedimania_playerconnect - pinfo
Array
(
    [Login] => js26
    [Nation] => FRA
    [TeamName] =>
    [TeamId] => -1
    [IsSpec] =>
    [Ranking] => 8441
    [IsOff] =>
)
^M
PHP Fatal error:  Cannot access protected property Aseco::$chat_messages in /home/aseco/Aseco/TMNF_aseco_sharkpro/plugins/dedimania/chat.dedimania.php on line 33
i fixed this in my code but forgotten to update the zip file ^^
i will send out an fix to everybody who is testing
Image
Current Projects :
Aseco 2.x Dedimania plugin
Aseco 2.x Clan management Plugin
Servers :
LSR Race Server
Server Specs :
TmForever Server 2.11.16 05-08-08 (D-M-Y)
Xaseco 1.03 with FufiMenu and FufiWidgets

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

Re: [Aseco 2.X]Dedimania Plugin WIP

Post by fordry » 23 Jul 2008 23:22

ohh, the one i have must be older, haha. What i've got does very funny things.

User avatar
f*ckfish
Pit Crew
Pit Crew
Posts: 1302
Joined: 15 Jun 2007 07:59
Owned TM-games: TMNF, TMUF
Location: Dresden, Germany
Contact:

Re: [Aseco 2.X]Dedimania Plugin WIP

Post by f*ckfish » 24 Jul 2008 09:08

It's working very good and reliable for me =) I also included the functionality into the widgets and will upload a new version soon.
One question though: Why are you partially using global variables? You should replace them by member variables and get rid of the global definitions.

short summary of your usage which does not make much sense:

Code: Select all

class DediMania extends Plugin {

	var $dedi_timeout = 1800;  // 30 mins
	var $dedi_debug = 4;  // max debug level = 4

	function dedimania_init() {
		global $dedi_db, $dedi_db_defaults, $dedi_debug, $dedi_webacces, $dedi_lastsent;
		$this->dedi_db = array();
	}
}
may work but those global definitions are useless.

Better:

Code: Select all

class DediMania extends Plugin {

	var $dedi_timeout = 1800;  // 30 mins
	var $dedi_debug = 4;  // max debug level = 4
	var $dedi_defaults;
	var $dedi_db;
	var $dedi_webaccess;
	var $dedi_lastsent;

	function dedimania_init() {
		$this->dedi_db = array();
	}
}
You can totally get rid of the globals, since their definition in dedimania_init has no effect at all, but instead you should define the member variables.

But good job :thumbsup: Didn't have any problems with it for now!
inactive, sorry

calsmurf2904
smooth traffic navigator
smooth traffic navigator
Posts: 199
Joined: 08 Jul 2008 15:23
Owned TM-games: TMNF,TMN
Location: Netherlands
Contact:

Re: [Aseco 2.X]Dedimania Plugin WIP

Post by calsmurf2904 » 24 Jul 2008 09:39

f*ckfish wrote:It's working very good and reliable for me =) I also included the functionality into the widgets and will upload a new version soon.
One question though: Why are you partially using global variables? You should replace them by member variables and get rid of the global definitions.

short summary of your usage which does not make much sense:

Code: Select all

class DediMania extends Plugin {

	var $dedi_timeout = 1800;  // 30 mins
	var $dedi_debug = 4;  // max debug level = 4

	function dedimania_init() {
		global $dedi_db, $dedi_db_defaults, $dedi_debug, $dedi_webacces, $dedi_lastsent;
		$this->dedi_db = array();
	}
}
may work but those global definitions are useless.

Better:

Code: Select all

class DediMania extends Plugin {

	var $dedi_timeout = 1800;  // 30 mins
	var $dedi_debug = 4;  // max debug level = 4
	var $dedi_defaults;
	var $dedi_db;
	var $dedi_webaccess;
	var $dedi_lastsent;

	function dedimania_init() {
		$this->dedi_db = array();
	}
}
You can totally get rid of the globals, since their definition in dedimania_init has no effect at all, but instead you should define the member variables.

But good job :thumbsup: Didn't have any problems with it for now!
i know :P the global variables are still there because the XASECO file uses them and if haven't replaced them all :P i will do that in the next beta version :P
Image
Current Projects :
Aseco 2.x Dedimania plugin
Aseco 2.x Clan management Plugin
Servers :
LSR Race Server
Server Specs :
TmForever Server 2.11.16 05-08-08 (D-M-Y)
Xaseco 1.03 with FufiMenu and FufiWidgets

User avatar
f*ckfish
Pit Crew
Pit Crew
Posts: 1302
Joined: 15 Jun 2007 07:59
Owned TM-games: TMNF, TMUF
Location: Dresden, Germany
Contact:

Re: [Aseco 2.X]Dedimania Plugin WIP

Post by f*ckfish » 24 Jul 2008 09:49

You can now test it with the widgets =)
inactive, sorry

calsmurf2904
smooth traffic navigator
smooth traffic navigator
Posts: 199
Joined: 08 Jul 2008 15:23
Owned TM-games: TMNF,TMN
Location: Netherlands
Contact:

Re: [Aseco 2.X]Dedimania Plugin WIP

Post by calsmurf2904 » 24 Jul 2008 11:12

I am currently working hard on an new version....
the new version doesn't have all the globals in it :P
i am also working on getting /dedirecs to work....i am now trying it in the chat only so no fancy window showing the recs :P unless someone who knows how manialink window work can help me :P
Image
Current Projects :
Aseco 2.x Dedimania plugin
Aseco 2.x Clan management Plugin
Servers :
LSR Race Server
Server Specs :
TmForever Server 2.11.16 05-08-08 (D-M-Y)
Xaseco 1.03 with FufiMenu and FufiWidgets

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 2.X]Dedimania Plugin WIP

Post by w1lla » 24 Jul 2008 11:25

Code: Select all

			$player->msgs = array();
			// reserve extra width for $w tags
			//$extra = ($aseco->settings['lists_colornicks'] ? 0.2 : 0);
			$player->msgs[0] = array(1, $head, array(0.8+$extra, 0.1, 0.45+$extra, 0.25));
			// create list of records
			if ($total = count($dedi_recs)) {
				for ($i = 0; $i < $total; $i++) {
					$cur_record = $dedi_recs[$i];
					$nick = $cur_record['NickName'];
					$nick = stripFormatting($nick);
					$msg[] = array(str_pad($i+1, 2, '0', STR_PAD_LEFT) . '.',
					               '' . $nick,
					               ($cur_record['NewBest'] ? '': '') .
					               ($aseco->server->gameinfo->mode == 4 ?
					                $cur_record['Best'] : formatTime($cur_record['Best'])));
					$lines++;
					if ($lines > 14) {
						$player->msgs[] = $msg;
						$lines = 0;
						$msg = array();
					}
				}
				// add if last batch exists
				if (!empty($msg)) {
					$player->msgs[] = $msg;
				}
these kinds of codes should be changed to something else in which the manialink should work.

Thats what i think that needs to be changed to make it work.

Code: Select all

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

calsmurf2904
smooth traffic navigator
smooth traffic navigator
Posts: 199
Joined: 08 Jul 2008 15:23
Owned TM-games: TMNF,TMN
Location: Netherlands
Contact:

Re: [Aseco 2.X]Dedimania Plugin WIP

Post by calsmurf2904 » 24 Jul 2008 11:32

w1lla wrote:

Code: Select all

			$player->msgs = array();
			// reserve extra width for $w tags
			//$extra = ($aseco->settings['lists_colornicks'] ? 0.2 : 0);
			$player->msgs[0] = array(1, $head, array(0.8+$extra, 0.1, 0.45+$extra, 0.25));
			// create list of records
			if ($total = count($dedi_recs)) {
				for ($i = 0; $i < $total; $i++) {
					$cur_record = $dedi_recs[$i];
					$nick = $cur_record['NickName'];
					$nick = stripFormatting($nick);
					$msg[] = array(str_pad($i+1, 2, '0', STR_PAD_LEFT) . '.',
					               '' . $nick,
					               ($cur_record['NewBest'] ? '': '') .
					               ($aseco->server->gameinfo->mode == 4 ?
					                $cur_record['Best'] : formatTime($cur_record['Best'])));
					$lines++;
					if ($lines > 14) {
						$player->msgs[] = $msg;
						$lines = 0;
						$msg = array();
					}
				}
				// add if last batch exists
				if (!empty($msg)) {
					$player->msgs[] = $msg;
				}
these kinds of codes should be changed to something else in which the manialink should work.

Thats what i think that needs to be changed to make it work.
i will test it ;)
also with the new version the plugin requires access to the jukebox
so replace this code :

Code: Select all

private $jb_buffer, $tmxplaying, $tmxvotes, $tmxplayed, $jukebox;
with this :

Code: Select all

private $jb_buffer, $tmxplaying, $tmxvotes, $tmxplayed;
var $jukebox;
in the jukebox plugin
Image
Current Projects :
Aseco 2.x Dedimania plugin
Aseco 2.x Clan management Plugin
Servers :
LSR Race Server
Server Specs :
TmForever Server 2.11.16 05-08-08 (D-M-Y)
Xaseco 1.03 with FufiMenu and FufiWidgets

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 2.X]Dedimania Plugin WIP

Post by w1lla » 24 Jul 2008 12:16

Tested system:
Aseco v2.2.0c
The Following all worked:
/cps
/dedicps
/dedirecs
/dedilast
/dedidiff
/dedinew
/dedirange
/dedinext
/dedifirst
/dedipb
/dedilive
but you need to edit the dedimania.xml to change the {highlite text ingame}
The following that doesnt work are:
/dedihelp
and /helpdedi due to an error of xmlrpc -501

also if you remove the requireonce on tmxinfofetcher which isnt needed. That helps alot of not getting the right textures.

Code: Select all

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

calsmurf2904
smooth traffic navigator
smooth traffic navigator
Posts: 199
Joined: 08 Jul 2008 15:23
Owned TM-games: TMNF,TMN
Location: Netherlands
Contact:

Re: [Aseco 2.X]Dedimania Plugin WIP

Post by calsmurf2904 » 24 Jul 2008 12:19

i included it since the XASECO version also has it in the Challenge object.....so that there aren't any missing variables.
also does dedirecs command works ?
here it doesn't work.
EDIT :
calsmurf2904 wrote:Hello,
Me and W1lla are working on an DediMania Plugin for Aseco 2.x
Since the plugin.dedimania.php is completed for 95% (still has some issues but most of them are chat.dedimania.php related)
I thought maybe an WIP topic might be usefull.
For the persons who want to test the plugin.dedimania.php please pm me.
If you have any questions please ask them in this topic.
If you are testing plugin.dedimania.php then please keep in mind that it isn't for Public use.
Just for testing.
Please report any bugs in this topic.
PUBLIC BETA
The plugin is availible as downloadable beta !
This version also has some fixes.....please report any bugs !!!
Download Link



Status :
plugin.dedimania.php 95% (Requires chat.dedimania.php and plugin.checkpoints.php to be completed)
chat.dedimania.php 80% (needs better windows and better chat messages)
plugin.checkpoints.php 99% (NEEDS BUGTESTING)
see first post !!
Image
Current Projects :
Aseco 2.x Dedimania plugin
Aseco 2.x Clan management Plugin
Servers :
LSR Race Server
Server Specs :
TmForever Server 2.11.16 05-08-08 (D-M-Y)
Xaseco 1.03 with FufiMenu and FufiWidgets

tchamba
cyclist
cyclist
Posts: 39
Joined: 06 Jul 2008 11:29
Owned TM-games: tmu
Location: France (28)

Re: [Aseco 2.X]Dedimania Plugin WIP

Post by tchamba » 24 Jul 2008 16:27

Image
This is a print screen on my server
1: The size of the text "before this round :no record! " is identical to the name of the map :ftw:
2 : The pseudo is deformed

Post Reply