
[Aseco2.2.0c and further]Dedimania Plugin (Reauthored)
Moderators: Flo, f*ckfish, Assembler Maniac, TM-Patrol
- w1lla
- 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)
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!
Re: [Aseco2.2.0c and further]Dedimania Plugin (Reauthored)
Nice work!
It seems to run smooth on my server!
thanks!
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
Team --> Mecha:Team (Forum)
Server TM1 Stadium --> Mecha:Base tmtp://#join=lvlao_server
Server TM2 Stadium --> Mecha:Base² maniaplanet://#join=mecha@TMStadium
- w1lla
- 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)
Updated new version
Code: Select all
tmnforever is nations and united makes it special. tmnforever has united. I need united!
Re: [Aseco2.2.0c and further]Dedimania Plugin (Reauthored)
What about a check for non-default RoundForcedLaps? See the XAseco v1.06 release notes and Dedimania API requirements.w1lla wrote:Updated new version
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
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub
- w1lla
- 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)
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:
after:
And add this to after: getuptime Both in aseco.php
With kind regards....
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;
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
Code: Select all
tmnforever is nations and united makes it special. tmnforever has united. I need united!
- Fisch.666
- 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)
Hi!
@w1lla
Are this changes in aseco for the check for non-default RoundForcedLaps like Xymph have posted above?
@w1lla
Are this changes in aseco for the check for non-default RoundForcedLaps like Xymph have posted above?
- w1lla
- 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)
yes they are....
Code: Select all
tmnforever is nations and united makes it special. tmnforever has united. I need united!
- Fisch.666
- 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)
Mhhh, strange. I get this error after adding both edits in my 2.2.0c aseco.php:
But i have added the whole function mapCountry($country) { part you have posted above after this:
Code: Select all
[16-Apr-2009 09:32:43] PHP Fatal error: Call to undefined function mapCountry() in /aseco/aseco.php on line 1405
Code: Select all
function getUptime() {
return time() - $this->startuptime;
}
- w1lla
- 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)
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) {
Code: Select all
tmnforever is nations and united makes it special. tmnforever has united. I need united!
- Fisch.666
- 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)
Ok, thanks for your reply. Works now without a problem... 

Re: [Aseco2.2.0c and further]Dedimania Plugin (Reauthored)
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
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
- oliverde8
- 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)
- w1lla
- 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)
Code: Select all
tmnforever is nations and united makes it special. tmnforever has united. I need united!
- w1lla
- 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)
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!
- oliverde8
- 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)
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!