[Aseco2.2.0c and further]Dedimania Plugin (Reauthored)

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, Assembler Maniac, f*ckfish, TM-Patrol

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: [Aseco2.2.0c and further]Dedimania Plugin (Reauthored)

Post by w1lla » 13 Feb 2009 18:55

Edited first post and for the fans......... Aseco v2.2.1 works with it ;)

Code: Select all

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

User avatar
lvlao
road tourist
road tourist
Posts: 82
Joined: 16 Oct 2006 12:47
Owned TM-games: TMO TMN TMNF TMUF
Contact:

Re: [Aseco2.2.0c and further]Dedimania Plugin (Reauthored)

Post by lvlao » 14 Feb 2009 00:20

Nice work!

It seems to run smooth on my server!

thanks!
TrackMania Nations Forever (Free Game): Mecha:Getter
Team --> Mecha:Team (Forum)
Server TM1 Stadium --> Mecha:Base tmtp://#join=lvlao_server
Server TM2 Stadium --> Mecha:Base² maniaplanet://#join=mecha@TMStadium

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: [Aseco2.2.0c and further]Dedimania Plugin (Reauthored)

Post by w1lla » 13 Apr 2009 10:10

Updated new version

Code: Select all

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

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

Re: [Aseco2.2.0c and further]Dedimania Plugin (Reauthored)

Post by Xymph » 14 Apr 2009 21:58

w1lla wrote:Updated new version
What about a check for non-default RoundForcedLaps? See the XAseco v1.06 release notes and Dedimania API requirements.
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
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: [Aseco2.2.0c and further]Dedimania Plugin (Reauthored)

Post by w1lla » 15 Apr 2009 12:25

Does are now included...

plus a big change in dedimania plugin....

There is one version included as for 2.2.1 but the changes are the same for aseco.php for 2.2.0.c

Just add:

Code: Select all

	//showing nations....
$this->client->query("GetDetailedPlayerInfo",$player["Login"]);
      $info = $this->client->getResponse();
      $nation = explode('|', $info['Path']);
      if (isset($nation[1]))
         $player["Nation"]= mapCountry($nation[1]);
      else
         $player["Nation"] = mapCountry('');


after:

Code: Select all

// cancel if we got a player without a login ...
		if ($player['Login'] == '')
			return;
And add this to after: getuptime Both in aseco.php

Code: Select all

function mapCountry($country) {

   $nations = array(
      'Afghanistan' => 'AFG',
      'Albania' => 'ALB',
      'Algeria' => 'ALG',
      'Andorra' => 'AND',
      'Angola' => 'ANG',
      'Argentina' => 'ARG',
      'Armenia' => 'ARM',
      'Aruba' => 'ARU',
      'Australia' => 'AUS',
      'Austria' => 'AUT',
      'Azerbaijan' => 'AZE',
      'Bahamas' => 'BAH',
      'Bahrain' => 'BRN',
      'Bangladesh' => 'BAN',
      'Barbados' => 'BAR',
      'Belarus' => 'BLR',
      'Belgium' => 'BEL',
      'Belize' => 'BIZ',
      'Benin' => 'BEN',
      'Bermuda' => 'BER',
      'Bhutan' => 'BHU',
      'Bolivia' => 'BOL',
      'Bosnia&Herzegovina' => 'BIH',
      'Botswana' => 'BOT',
      'Brazil' => 'BRA',
      'Brunei' => 'BRU',
      'Bulgaria' => 'BUL',
      'Burkina Faso' => 'BUR',
      'Burundi' => 'BDI',
      'Cambodia' => 'CAM',
      'Cameroon' => 'CAR',  // actually CMR
      'Canada' => 'CAN',
      'Cape Verde' => 'CPV',
      'Central African Republic' => 'CAF',
      'Chad' => 'CHA',
      'Chile' => 'CHI',
      'China' => 'CHN',
      'Chinese Taipei' => 'TPE',
      'Colombia' => 'COL',
      'Congo' => 'CGO',
      'Costa Rica' => 'CRC',
      'Croatia' => 'CRO',
      'Cuba' => 'CUB',
      'Cyprus' => 'CYP',
      'Czech Republic' => 'CZE',
      'Czech republic' => 'CZE',
      'DR Congo' => 'COD',
      'Denmark' => 'DEN',
      'Djibouti' => 'DJI',
      'Dominica' => 'DMA',
      'Dominican Republic' => 'DOM',
      'Ecuador' => 'ECU',
      'Egypt' => 'EGY',
      'El Salvador' => 'ESA',
      'Eritrea' => 'ERI',
      'Estonia' => 'EST',
      'Ethiopia' => 'ETH',
      'Fiji' => 'FIJ',
      'Finland' => 'FIN',
      'France' => 'FRA',
      'Gabon' => 'GAB',
      'Gambia' => 'GAM',
      'Georgia' => 'GEO',
      'Germany' => 'GER',
      'Ghana' => 'GHA',
      'Greece' => 'GRE',
      'Grenada' => 'GRN',
      'Guam' => 'GUM',
      'Guatemala' => 'GUA',
      'Guinea' => 'GUI',
      'Guinea-Bissau' => 'GBS',
      'Guyana' => 'GUY',
      'Haiti' => 'HAI',
      'Honduras' => 'HON',
      'Hong Kong' => 'HKG',
      'Hungary' => 'HUN',
      'Iceland' => 'ISL',
      'India' => 'IND',
      'Indonesia' => 'INA',
      'Iran' => 'IRI',
      'Iraq' => 'IRQ',
      'Ireland' => 'IRL',
      'Israel' => 'ISR',
      'Italy' => 'ITA',
      'Ivory Coast' => 'CIV',
      'Jamaica' => 'JAM',
      'Japan' => 'JPN',
      'Jordan' => 'JOR',
      'Kazakhstan' => 'KAZ',
      'Kenya' => 'KEN',
      'Kiribati' => 'KIR',
      'Korea' => 'KOR',
      'Kuwait' => 'KUW',
      'Kyrgyzstan' => 'KGZ',
      'Laos' => 'LAO',
      'Latvia' => 'LAT',
      'Lebanon' => 'LIB',
      'Lesotho' => 'LES',
      'Liberia' => 'LBR',
      'Libya' => 'LBA',
      'Liechtenstein' => 'LIE',
      'Lithuania' => 'LTU',
      'Luxembourg' => 'LUX',
      'Macedonia' => 'MKD',
      'Malawi' => 'MAW',
      'Malaysia' => 'MAS',
      'Mali' => 'MLI',
      'Malta' => 'MLT',
      'Mauritania' => 'MTN',
      'Mauritius' => 'MRI',
      'Mexico' => 'MEX',
      'Moldova' => 'MDA',
      'Monaco' => 'MON',
      'Mongolia' => 'MGL',
      'Montenegro' => 'MNE',
      'Morocco' => 'MAR',
      'Mozambique' => 'MOZ',
      'Myanmar' => 'MYA',
      'Namibia' => 'NAM',
      'Nauru' => 'NRU',
      'Nepal' => 'NEP',
      'Netherlands' => 'NED',
      'New Zealand' => 'NZL',
      'Nicaragua' => 'NCA',
      'Niger' => 'NIG',
      'Nigeria' => 'NGR',
      'Norway' => 'NOR',
      'Oman' => 'OMA',
      'Other Countries' => 'OTH',
      'Pakistan' => 'PAK',
      'Palau' => 'PLW',
      'Palestine' => 'PLE',
      'Panama' => 'PAN',
      'Paraguay' => 'PAR',
      'Peru' => 'PER',
      'Philippines' => 'PHI',
      'Poland' => 'POL',
      'Portugal' => 'POR',
      'Puerto Rico' => 'PUR',
      'Qatar' => 'QAT',
      'Romania' => 'ROM',  // actually ROU
      'Russia' => 'RUS',
      'Rwanda' => 'RWA',
      'Samoa' => 'SAM',
      'San Marino' => 'SMR',
      'Saudi Arabia' => 'KSA',
      'Senegal' => 'SEN',
      'Serbia' => 'SCG',  // actually SRB
      'Sierra Leone' => 'SLE',
      'Singapore' => 'SIN',
      'Slovakia' => 'SVK',
      'Slovenia' => 'SLO',
      'Somalia' => 'SOM',
      'South Africa' => 'RSA',
      'Spain' => 'ESP',
      'Sri Lanka' => 'SRI',
      'Sudan' => 'SUD',
      'Suriname' => 'SUR',
      'Swaziland' => 'SWZ',
      'Sweden' => 'SWE',
      'Switzerland' => 'SUI',
      'Syria' => 'SYR',
      'Taiwan' => 'TWN',
      'Tajikistan' => 'TJK',
      'Tanzania' => 'TAN',
      'Thailand' => 'THA',
      'Togo' => 'TOG',
      'Tonga' => 'TGA',
      'Trinidad and Tobago' => 'TRI',
      'Tunisia' => 'TUN',
      'Turkey' => 'TUR',
      'Turkmenistan' => 'TKM',
      'Tuvalu' => 'TUV',
      'Uganda' => 'UGA',
      'Ukraine' => 'UKR',
      'United Arab Emirates' => 'UAE',
      'United Kingdom' => 'GBR',
      'United States of America' => 'USA',
      'Uruguay' => 'URU',
      'Uzbekistan' => 'UZB',
      'Vanuatu' => 'VAN',
      'Venezuela' => 'VEN',
      'Vietnam' => 'VIE',
      'Yemen' => 'YEM',
      'Zambia' => 'ZAM',
      'Zimbabwe' => 'ZIM',
   );

   if (array_key_exists($country, $nations)) {
      $nation = $nations[$country];
   } else {
      $nation = "OTH";
   }
   return $nation;
}  // mapCountry
With kind regards....

Code: Select all

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

User avatar
Fisch.666
happy cruiser
happy cruiser
Posts: 136
Joined: 18 May 2006 01:13
Owned TM-games: TMU, TMN, TMUF, TMNF
Location: Germany
Contact:

Re: [Aseco2.2.0c and further]Dedimania Plugin (Reauthored)

Post by Fisch.666 » 16 Apr 2009 06:50

Hi!

@w1lla

Are this changes in aseco for the check for non-default RoundForcedLaps like Xymph have posted above?

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: [Aseco2.2.0c and further]Dedimania Plugin (Reauthored)

Post by w1lla » 16 Apr 2009 06:53

yes they are....

Code: Select all

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

User avatar
Fisch.666
happy cruiser
happy cruiser
Posts: 136
Joined: 18 May 2006 01:13
Owned TM-games: TMU, TMN, TMUF, TMNF
Location: Germany
Contact:

Re: [Aseco2.2.0c and further]Dedimania Plugin (Reauthored)

Post by Fisch.666 » 16 Apr 2009 07:48

Mhhh, strange. I get this error after adding both edits in my 2.2.0c aseco.php:

Code: Select all

[16-Apr-2009 09:32:43] PHP Fatal error:  Call to undefined function mapCountry() in /aseco/aseco.php on line 1405 
But i have added the whole function mapCountry($country) { part you have posted above after this:

Code: Select all

function getUptime() {
		return time() - $this->startuptime;
	}

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: [Aseco2.2.0c and further]Dedimania Plugin (Reauthored)

Post by w1lla » 16 Apr 2009 07:53

Code: Select all

/**
	 * Returns the time how long Aseco is running yet.
	 *
	 * @return int
	 */
	function getUptime() {
		return time() - $this->startuptime;
	}
}

$cfg = 'config.xml';

if ($argc >= 2) {
	$filename = $argv[1];
	if (substr($filename, -4, 4) == '.xml')
		if (file_exists($filename))
			$cfg = $filename;
}

function mapCountry($country) {
Tried this way....

Code: Select all

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

User avatar
Fisch.666
happy cruiser
happy cruiser
Posts: 136
Joined: 18 May 2006 01:13
Owned TM-games: TMU, TMN, TMUF, TMNF
Location: Germany
Contact:

Re: [Aseco2.2.0c and further]Dedimania Plugin (Reauthored)

Post by Fisch.666 » 16 Apr 2009 08:08

Ok, thanks for your reply. Works now without a problem... :3

milow
pedestrian
pedestrian
Posts: 11
Joined: 06 Apr 2009 12:15
Owned TM-games: TMF

Re: [Aseco2.2.0c and further]Dedimania Plugin (Reauthored)

Post by milow » 18 Apr 2009 11:47

Ellow,
I was wondering where I could downlaod Dedimania for aseco.
The link in the first post isn't working anymore.
I hope you guys can help me out.

cheers

User avatar
oliverde8
solid chaser
solid chaser
Posts: 1135
Joined: 07 Oct 2006 07:03
Owned TM-games: TMU
Manialink(s): oliverde8
Location: Turkey
Contact:

Re: [Aseco2.2.0c and further]Dedimania Plugin (Reauthored)

Post by oliverde8 » 18 Apr 2009 11:59

I have been having troubles with dedimania.

axn-ford finished the track with a time of 24,20 and Dedimania gets him a record as if his time was 24,49

Image

he never did a time of 24,49.

Thanks
ImageImage
Manialink : oliverde8color>
Servers : STATS <> United | VeryShort | Made In Turkey

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: [Aseco2.2.0c and further]Dedimania Plugin (Reauthored)

Post by w1lla » 18 Apr 2009 21:44

host is suspended for now...

New download link....

http://www.sendspace.com/file/x9m49e

Code: Select all

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

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: [Aseco2.2.0c and further]Dedimania Plugin (Reauthored)

Post by w1lla » 20 Apr 2009 09:10

oliverde8 wrote:I have been having troubles with dedimania.

axn-ford finished the track with a time of 24,20 and Dedimania gets him a record as if his time was 24,49

Image

he never did a time of 24,49.

Thanks
can you provide a serverlog of dedimania please for that...

It looks like dedimania failed at that time but i cant do a work around if nothing is proven only by serverlogs.

Code: Select all

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

User avatar
oliverde8
solid chaser
solid chaser
Posts: 1135
Joined: 07 Oct 2006 07:03
Owned TM-games: TMU
Manialink(s): oliverde8
Location: Turkey
Contact:

Re: [Aseco2.2.0c and further]Dedimania Plugin (Reauthored)

Post by oliverde8 » 20 Apr 2009 15:22

Code: Select all

!...Creatin TrackList

|...TMX info was takken TMX:TMNF

[04/18,11:43:35] current record on ///Short78 is 00:24.35 and held by αΧη¬Ғσ२Đ!

[04/18,11:43:54] >> player 227 left the game [.woxed.]

[04/18,11:43:58] >> player 202 left the game [grandpasha]

[04/18,11:44:01] >> player 204 left the game [jerriblemobile]

[04/18,11:44:03] player oliverde8 used chat command '/dedirecs '

[04/18,11:44:11] >> player 187 left the game [elegance1]

[04/18,11:44:18] player 222 finished with 00:24.20 and took the 1. WR place!

[04/18,11:44:20] player 156 finished with 00:24.90 and took the 19. WR place!

[04/18,11:44:20] player 41 finished with 00:26.16 and took the 74. WR place!

[04/18,11:44:34] >> player 16 left the game [iskorpit]

[04/18,11:44:45] << player 1 joined the game [charleslartiste]

[04/18,11:44:49] player 41 finished with 00:25.85 and took the 61. WR place!

[04/18,11:44:55] >> player 152 left the game [zolimania]

[04/18,11:45:08] << player 184 joined the game [rellits]

[04/18,11:45:11] << player 69 joined the game [d.chiller]

[04/18,11:45:14] << player 226 joined the game [blckwhite]

dedimania_playerfinish - inconsistent finish/checks!  score: 24490  checks:
Checkpoints Object
(
    [online] => 1
    [display] => 1
    [dedirec] => 0
    [best_fin] => 24200
    [best_cps] => Array
        (
            [0] => 5440
            [1] => 9230
            [2] => 14900
            [3] => 18880
            [4] => 24200
        )

    [best_time] => 1240047858.38
    [curr_fin] => 24200
    [curr_cps] => Array
        (
            [0] => 5450
            [1] => 9280
            [2] => 15000
            [3] => 19000
            [4] => 24490
        )

)


[Dedimania] player fordx finished with 24490 and took the 30. WR place!
Here is the log
ImageImage
Manialink : oliverde8color>
Servers : STATS <> United | VeryShort | Made In Turkey

Post Reply