ASECO/RASP TMF 2.2.0c [08/6/26]
Moderators: Flo, f*ckfish, Assembler Maniac, TM-Patrol
- oliverde8
- solid chaser
- Posts: 1135
- Joined: 07 Oct 2006 07:03
- Owned TM-games: TMU
- Manialink(s): oliverde8
- Location: Turkey
- Contact:
Re: ASECO/RASP TMF 2.2.0c [08/6/26]
Hi
I wanted to make a request for next version,
to be able to close and open RaspAutotime /admin autotime will open if it is closed. at least adding function doing that.
and a functions to change the multiplier, the MaxTime and the MinTime.
Thanks,
I wanted to make a request for next version,
to be able to close and open RaspAutotime /admin autotime will open if it is closed. at least adding function doing that.
and a functions to change the multiplier, the MaxTime and the MinTime.
Thanks,
Re: ASECO/RASP TMF 2.2.0c [08/6/26]
aseco is dead everybody should change it to xaseco.
-
- Pit Crew
- Posts: 1493
- Joined: 03 Jun 2006 13:24
- Owned TM-games: TMU
- Contact:
Re: ASECO/RASP TMF 2.2.0c [08/6/26]
It's hardly dead. Go troll elsewhere.tramp wrote:aseco is dead everybody should change it to xaseco.
There are people expanding existing plugins and writing new ones. I don't see the framework getting much more attention because it's pretty much complete.
Flo and I have bounced around the idea of a C/C++ version that could be compiled on both Windows & Linux. We just don't have the time to actually, you know, do it.
PHP slows down the whole process of memory management and basic message handling due to it's semi-interpreted nature. Re-writing in C/C++ would allow us to get total control of memory handling (no more guessing if a structure got copied and sent to a function) and a big speed improvement.
The biggest drawback would be that plugin authors would need to drastically change how they write the plugins and need to learn C/C++.
Re: ASECO/RASP TMF 2.2.0c [08/6/26]
xaseco is just a big rip from the original aseco, its more stable...tramp wrote:aseco is dead everybody should change it to xaseco.
- oliverde8
- solid chaser
- Posts: 1135
- Joined: 07 Oct 2006 07:03
- Owned TM-games: TMU
- Manialink(s): oliverde8
- Location: Turkey
- Contact:
Re: ASECO/RASP TMF 2.2.0c [08/6/26]
it is bqsed on the old Aseco not this one, I have Aseco turning sometimes more then a week (if server doesn't crash)Syco wrote:xaseco is just a big rip from the original aseco, its more stable...tramp wrote:aseco is dead everybody should change it to xaseco.
-
- highway camper
- Posts: 2
- Joined: 03 Dec 2008 17:46
- Owned TM-games: yes
Re: ASECO/RASP TMF 2.2.0c [08/6/26]
Check the stickied plugins list...
Re: ASECO/RASP TMF 2.2.0c [08/6/26]
Mine can run for a month or more, granted i run a couple XAsecos and they run fine too for long periods of time.oliverde8 wrote:it is bqsed on the old Aseco not this one, I have Aseco turning sometimes more then a week (if server doesn't crash)Syco wrote:xaseco is just a big rip from the original aseco, its more stable...tramp wrote:aseco is dead everybody should change it to xaseco.
-
- tricycle manager
- Posts: 25
- Joined: 23 Nov 2008 04:49
- Owned TM-games: TMUF
- Manialink(s): tathar
Re: ASECO/RASP TMF 2.2.0c [08/6/26]
I can't seem to find the documentation for creating plugins for ASECO versions 1.0 and newer anymore. Where did it go?
- oliverde8
- solid chaser
- Posts: 1135
- Joined: 07 Oct 2006 07:03
- Owned TM-games: TMU
- Manialink(s): oliverde8
- Location: Turkey
- Contact:
Re: ASECO/RASP TMF 2.2.0c [08/6/26]
Just find out that Nation of player is always empty
I did the fallowing changes in aseco.php
Added
Line 1400 Before
and added the fallowing function in the Aseco class
This function comes from Xaseco 

I did the fallowing changes in aseco.php
Added
Code: Select all
$this->client->query("GetDetailedPlayerInfo",$player["Login"]);
$info = $this->client->getResponse();
$nation = explode('|', $info['Path']);
if (isset($nation[1]))
$player["Nation"]=$this->mapCountry($nation[1]);
else
$player["Nation"] = $this->mapCountry('');
Code: Select all
// creates player object ...
$player_item = new Player($player);
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

- w1lla
- TM-Patrol
- Posts: 1466
- Joined: 23 May 2007 07:20
- Owned TM-games: TMU, TMN, TMF
- Manialink(s): intr
- Location: Venray
Re: ASECO/RASP TMF 2.2.0c [08/6/26]
Code: Select all
<?php
/**
* Writes a message to the logfile
* modified by AM
*/
function doLog($text, $type = 'log') {
// handle to log file
global $logfile;
// make directory for year-month (07-May) ...
$dir = './logs/'.date("y-M");
// make log entry for each day (YY-MM-DD_log.txt) ...
$file = date("y-m-d")."_".$type.".txt";
// directory doesn't exist yet, make it ...
if (!file_exists($dir)) mkdir($dir);
// file doesn't exist yet and logfile is in use, close logfile, unset the var ...
if (!file_exists($dir.'/'.$file) && $logfile[$type]) {
fclose($logfile[$type]);
$logfile[$type] = 0;
}
// logfile var not set, open file & assign it ...
if (!isset($logfile[$type]) || $logfile[$type] == 0) {
$logfile[$type] = fopen($dir.'/'.$file, "a+");
fwrite($logfile[$type], LF.'>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>'.LF);
fwrite($logfile[$type], ' :::::::::::::: RESTART AT '.date('m/d,H:i:s').' ::::::::::::::'.LF);
fwrite($logfile[$type], '<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<'.LF.LF);
}
fwrite($logfile[$type], $text);
}
function doXmlRpcLog($method, $size, $incoming) {
if ($incoming) {
doLog('<< Response ['.date('m/d,H:i:s').'] '.$method.' ['.round($size/1024, 2).'kb]'.LF, 'xmlrpc');
} else {
doLog('>> Call ['.date('m/d,H:i:s').'] '.$method.' ['.round($size/1024, 2).'kb]'.LF, 'xmlrpc');
}
}
/**
* Puts an element onto a specific position into an array.
* Keeps original size.
*/
function insertArrayElement(&$array, $value, $pos) {
// get current size ...
$size = count($array);
// if position is in array range ...
if ($pos < 0 || $pos > $size) {
return false;
}
// shift values below ...
for ($i = $size-1; $i >= $pos; $i--) {
$array[$i+1] = $array[$i];
}
// now put in the new element.
$array[$pos] = $value;
return true;
}
/**
* Moves an element from one position to the other.
* All items between are shifted down.
*/
function moveArrayElement(&$array, $from, $to) {
// get current size ...
$size = count($array);
// destination and source have to be among the array borders!
if ($from < 0 && $from > $size && $to < 0 && $to > $size) {
return false;
}
// backup the element we have to move ...
$moving_element = $array[$from];
if ($from > $to) {
// shift values between downwards ...
for ($i = $from-1; $i >= $to; $i--) {
$array[$i+1] = $array[$i];
}
} else {
// not needed yet ...
return false;
}
// now put in the element which was to move ...
$array[$to] = $moving_element;
return true;
}
/**
* Formats a string from the format ssssms
* into the format mmm:ss:ms.
* modified by AM
*/
function formatTime($MwTime, $msec = true) {
if ($MwTime == -1) {
return "???";
} else {
$minutes = floor($MwTime/(1000*60));
$seconds = floor(($MwTime-$minutes*60*1000)/1000);
if ($msec) {
$mseconds = ($MwTime / 10) % 100;
return sprintf("%02d:%02d.%02d", $minutes, $seconds, $mseconds);
} else {
return sprintf("%02d:%02d", $minutes, $seconds);
}
}
}
/**
* Formats a string from the format ssssmss
* into the format hh:mm:ss.ms
* modified by AM
*/
function formatTimeH($MwTime, $msec = true) {
if ($MwTime == -1) {
return "???";
} else {
$mseconds = ($MwTime / 10) % 100;
$MwTime = ($MwTime - $MwTime % 1000) / 1000;
$hours = floor($MwTime / 3600);
$MwTime = $MwTime - ($hours * 3600);
$minutes = floor($MwTime / 60);
$MwTime = $MwTime - ($minutes * 60);
$seconds = floor($MwTime);
if ($msec) {
return sprintf("%02d:%02d:%02d.%02d", $hours, $minutes, $seconds, $mseconds);
} else {
return sprintf("%02d:%02d:%02d", $hours, $minutes, $seconds);
}
}
}
/*
Summary: Strips all display formatting from an input string, suitable for
display within the game (escaped '$$' pairs are preserved).
Param : $input- The input string to strip formatting from.
Returns: The content portion of $input without formatting.
Author : Bilge/Assembler Maniac/Xymph
*/
function stripFormatting($input) {
return
//Replace all occurances of a null character back with a pair of dollar
//signs again
str_replace("\0", '$$',
//Replace links (introduced with the advent of TMU)
preg_replace(
'/
#Strip TMU H, L and P links by stripping everything between each
#square bracket pair until another $H, $L or $P sequence is found.
#This allows a $H to close a $L and vice versa, as does the game
\\$[hlp](.*?)(?:\\[.*?\\](.*?))*(?:\\$[hlp]|$)
/ix',
//Keep the second and third capturing groups if present
'$1$2',
//Replace various patterns beginning with an unescaped dollar
preg_replace(
'/
#Match a single dollar sign and any of the following:
\\$
(?:
#Strip colour codes by matching any hexadecimal character
#and any other two characters following it
[0-9a-f]..
#Strip any single character that does not match the above rule
#and is not an H, L or P link
|[^hlp]
#Strip the dollar sign if it is at the end of the string
|$
)
#Ignore alphabet case, ignore whitespace in pattern & use UTF-8 mode
/ixu',
//Replace any matches with nothing (i.e. strip matches)
'',
//Replace all occurances of dollar sign pairs with a null character
str_replace('$$', "\0", $input)
)
)
)
;
}
/**
* Formats a text.
* replaces parameters in the text which are marked with {n}
*/
function formatText ($text) {
// get all function's parameters ...
$args = func_get_args();
// first parameter is the text to format ...
$text = array_shift($args);
// further parameters will be replaced in the text ...
$parameters = $args;
// replace all parameters in the text ...
$i = 0;
foreach($parameters as $parameter) {
$i++;
$text = str_replace('{'.$i.'}', $parameter, $text);
}
// and return the modified one.
return $text;
}
/**
* Make String for SQL use that single quoted & got special chars replaced
*/
function quotedString($str_in) {
return '\'' . mysql_real_escape_string($str_in) . '\'';
}
/**
* Shortens strings that are too long
* to display as whole.
*
* @param string $string
* @param int $max_length
* @param string $count_string
* @return string
*/
function cutString($string, $max_length, $count_string = null) {
if ($count_string == null) $count_string = $string;
if (strlen($count_string) > $max_length) {
return substr($string, 0, $max_length-3).'...';
} else {
return $string;
}
}
// function posted from http://us2.php.net/manual/en/function.memory-get-usage.php#64156
// Warning: This will NOT work for Windows 2000 without some adjustments, see below for where to get more info
if( !function_exists('memory_get_usage') ) {
function memory_get_usage() {
//If its Windows
//Tested on Win XP Pro SP2. Should work on Win 2003 Server too
//Doesn't work for 2000
//If you need it to work for 2000 look at http://us2.php.net/manual/en/function.memory-get-usage.php#54642
if ( substr( PHP_OS, 0, 3 ) == 'WIN' ) {
$output = array();
exec( 'tasklist /FI "PID eq ' . getmypid() . '" /FO LIST', $output );
return preg_replace( '/[\D]/', '', $output[5] ) * 1024;
} else {
//We now assume the OS is UNIX
//Tested on Mac OS X 10.4.6 and Linux Red Hat Enterprise 4
//This should work on most UNIX systems
$pid = getmypid();
// original, slower way using grep - don't use unless 2nd one doesn't work
// exec("ps -eo%mem,rss,pid | grep $pid", $output);
// $output = explode(" ", $output[0]);
//rss is given in 1024 byte units
//return $output[1] * 1024;
// faster way to do the find memory directly PID w/out grep
exec("ps -o rss -p $pid", $output);
//rss is given in 1024 byte units
return $output[1] * 1024;
}
}
/**
* Map country names to 3-letter Nation abbreviations
* Created by Xymph
* Based on http://en.wikipedia.org/wiki/List_of_IOC_country_codes
*/
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";
if ($country != '')
trigger_error('Could not map country: ' . $country, E_USER_WARNING);
}
return $nation;
} // mapCountry
}
?>
Tested for both aseco v2.2.0c and the little update of Assembler.
Code: Select all
tmnforever is nations and united makes it special. tmnforever has united. I need united!
Re: ASECO/RASP TMF 2.2.0c [08/6/26]
i think have problem on my php
i open the aseco and he do all right ..
just 1 idiot warring:
help ? anyone?
ty
i open the aseco and he do all right ..
just 1 idiot warring:
i'm up to the php the file aseco.sql and this is isn't work[PHP Warning] mysqli::mysqli(): (42000/1049): Unknown database 'aseco_public' on
line 75 in file D:\Server\aseco\plugins\plugin.pubdb.php
[PubDb] Failed to connect, not currently available - Unknown database 'aseco_public'(1049)
help ? anyone?
ty
- w1lla
- TM-Patrol
- Posts: 1466
- Joined: 23 May 2007 07:20
- Owned TM-games: TMU, TMN, TMF
- Manialink(s): intr
- Location: Venray
Re: ASECO/RASP TMF 2.2.0c [08/6/26]
In plugins.xml remove the plugin.pubdb.php
as it is old. Download Dedimania plugin on this forum if you want world record records acces....
as it is old. Download Dedimania plugin on this forum if you want world record records acces....
Code: Select all
tmnforever is nations and united makes it special. tmnforever has united. I need united!
Re: ASECO/RASP TMF 2.2.0c [08/6/26]
ty bro
u can give me link to dedimania ?
because i didnt found it :X
u can give me link to dedimania ?
because i didnt found it :X
- w1lla
- TM-Patrol
- Posts: 1466
- Joined: 23 May 2007 07:20
- Owned TM-games: TMU, TMN, TMF
- Manialink(s): intr
- Location: Venray
Re: ASECO/RASP TMF 2.2.0c [08/6/26]
Code: Select all
tmnforever is nations and united makes it special. tmnforever has united. I need united!