(X)Aseco+RASP Website Stats v3.6

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

Moderators: Xymph, TM-Patrol

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: (X)Aseco+RASP Website Stats v3.2

Post by Ant » 23 Jan 2011 22:05

Actually, some of the player names still don't display quite right. On the players page it isn't too bad although there are still some small mistakes. In the banners, some of them are fine but others (for the same player) still display messed up characters.

If anyone has any ideas, or can help with this I'd greatly appreciate it as I have tried and failed to fix these last couple of things :?

Edit: Even using the stripFormatting function for banners 4 and 5 ($statsbox) this still happens

$statsbox 4
Image

$statsbox 5
Image

Whereas this is fine for the same player
$statsbox 1
Image

Edit: Sort of fixed now, see this post below.

This is the code I'm testing at the moment for playerstats.php

Code: Select all

<?php
/*************************************************
*                                                *
*   Stats for XAseco+RASP                        *
*   __________________________________________   *
*                                                *
*   Copyright (c) 2007-2008 by oS.Cypher         *
*   Developed as a Project of Old School Gaming  *
*                                                *
*   http://www.os-gaming.de                      *
*                                                *
*************************************************/

require("config.php");
require("includes/globals.php");
require("includes/functions.php");
include("languages/".$lang.".php");
require("includes/ColorParser.php");
require("includes/tmfdatafetcher.inc.php");
include("includes/db_connect.php");

$cp = new ColorParser();
$arial = "fonts/tahoma";
$arial2 = "fonts/arial.ttf";

/**
* Summary: Strips all display formatting from an input string, suitable for display
*          within the game ('$$' escape pairs are preserved) and for logging
* Params : $input - The input string to strip formatting from
*          $for_tm - Optional flag to double up '$' into '$$' (default, for TM) or not (for logs, etc)
* Returns: The content portions of $input without formatting
* Authors: Bilge/Assembler Maniac/Xymph/Slig
*/

function stripFormatting($input, $for_tm = true) {
    return
        //Replace all occurrences of a null character back with a pair of dollar
        //signs for displaying in TM, or a single dollar for log messages etc.
        str_replace("\0", ($for_tm ? '$$' : '$'),
            //Replace links (introduced in TMU)
            preg_replace(
                '/
                #Strip TMF H, L & P links by stripping everything between each square
                #bracket pair until another $H, $L or $P sequence (or EoS) is found;
                #this allows a $H to close a $L and vice versa, as does the game
                \\$[hlp](.*?)(?:\\[.*?\\](.*?))*(?:\\$[hlp]|$)
                /ixu',
                //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 color codes by matching any hexadecimal character and
                        #any other two characters following it (except $)
                        [0-9a-f][^$][^$]
                        #Strip any incomplete color codes by matching any hexadecimal
                        #character followed by another character (except $)
                        |[0-9a-f][^$]
                        #Strip any single style code (including an invisible UTF8 char)
                        #that is not an H, L or P link or a bracket ($[ and $])
                        |[^][hlp]
                        #Strip the dollar sign if it is followed by [ or ], but do not
                        #strip the brackets themselves
                        |(?=[][])
                        #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 occurrences of dollar sign pairs with a null character
                    str_replace('$$', "\0", $input)
                )
            )
        )
    ;
}

function stripColors($str, $for_tm_drawing = true)
{
	$str2 = str_replace("$", "\001", preg_replace("`[\001\002]`","","a".$str) );

	if($for_tm_drawing)
		$str2 = str_replace("\001\001","$$", $str2);
	else
		$str2 = str_replace("\001\001","$", $str2);

	$str2 = preg_replace("`\001[hlHL]`","\002",$str2);
	$str2 = preg_replace("`\002\[([^\]]*)\]([^\002]*)\002`","$2",$str2);
	$str2 = preg_replace("`\002\[([^\]]*)\]`","",$str2);
	$str2 = str_replace("\002","", $str2);
	$str2 = str_replace('{/LINK}', '</a>', $str2);
	$str2 = preg_replace("`\001([0-9a-fA-F][0-9a-zA-Z][0-9a-zA-Z]|[^\001])`","",$str2);
	$str2 = str_replace("\001","$$", substr($str2,1) );

	return $str2;
}

$timeout = 5;
$fp = @fsockopen($ip2[$serv], $server_port[$serv], $errno, $errstr, $timeout);
if($fp) {
	fclose($fp);
	require("includes/GbxRemote.inc.php");
	$client = new IXR_Client_Gbx;
	if (!$client->InitWithIp($ip[$serv], $port[$serv])) {
   		die('An error occurred - '.$client->getErrorCode().":".$client->getErrorMessage());
	}
	if (!$client->query("Authenticate", $user[$serv], $pass[$serv])) {
		Error($client->getErrorMessage(), $client->getErrorCode());
		print "login failed !<br/>";
	}
	if($client->query('GetServerOptions')) {
		$ServerOptions = $client->getResponse();
		$servername=$ServerOptions['Name'];
		$servername1 = $servername;
		$servername = preg_replace("`\\$(w|s|n|i|z|g|m|r|>|<|o|l|h)`", "", $servername);
		$servername = preg_replace("`\\[[A-Za-z0-9]+\.[A-Za-z0-9]+\.[A-Za-z0-9]+\]`", "", $servername);
		$servername = preg_replace("`\\[[A-Za-z0-9]+\.[A-Za-z0-9]+\-[A-Za-z0-9]+\.[A-Za-z0-9]+\.[A-Za-z0-9]+\]`", "", $servername);
		$servername = preg_replace("`\\$[a-f0-9]{3}`",  "", $servername);
		$servername = preg_replace("`\\$[a-f0-9]{2}`","", $servername);
		$servername = preg_replace("`\\$[a-f0-9]{1}`", "", $servername);
	}
}

$sql = "SELECT * FROM rs_rank ORDER BY avg ASC";
$result = mysql_query($sql);
$rank = 1;

while($data = mysql_fetch_array($result)){
	if($data['playerID'] == $plid) {
		// Player is ranked
		$playerrank = $rank;
		$avg = $data['avg']/10000;
		$avg = sprintf("%.1f", $avg);
		break;
	} else {
		$rank++;
	}
}

if (!isset($playerrank)) {
	// Player is not ranked
	$playerrank = "-";
	$avg = "-";
}

$sql = "SELECT * FROM players WHERE Id=$plid";
$result = mysql_query($sql);
$data = mysql_fetch_array($result);
$playerlogin = $data['Login'];
$fetcher = new TMFDataFetcher($playerlogin);
$playername = $data['NickName'];
$playername1 = $playername;
$playername = preg_replace("`\\$(w|s|n|i|z|g|m|r|>|<|o|l|h)`", "", $playername);
$playername = preg_replace("`\\[[A-Za-z0-9]+\.[A-Za-z0-9]+\.[A-Za-z0-9]+\]`", "", $playername);
$playername = preg_replace("`\\[[A-Za-z0-9]+\.[A-Za-z0-9]+\-[A-Za-z0-9]+\.[A-Za-z0-9]+\.[A-Za-z0-9]+\]`", "", $playername);
$playername = preg_replace("`\\$[a-f0-9]{3}`", "", $playername);
$playername = preg_replace("`\\$[a-f0-9]{2}`", "", $playername);
$playername = preg_replace("`\\$[a-f0-9]{1}`", "", $playername);
$nation = $data['Nation'];
$flag = ($nation ? "img/flags/".$nation.".png" : "img/flags/UKN.png");
$MwTime = $data['TimePlayed'];
$hours = floor($MwTime/3600);
$minutes = floor(($MwTime/60-$hours*60));
$seconds = substr($MwTime-$minutes*60-$hours*3600,-2);
$time = sprintf("%02dh %02dm %02ds", $hours, $minutes, $seconds);



// STATS BANNERS
if($statsbox == 1) {
	//create small Statusgraphic
	Header ("Content-type: image/png");
	$im = ImageCreateFromPNG ("img/statsbox/playerstats_big.png"); // Open of the Master-Picture
	$white = ImageColorAllocate ($im, 255, 255, 255);  // white
	$black = ImageColorAllocate ($im, 0, 0, 0); // black
	$cp->drawStyledString($im, 10, 85, 14, $white, $arial, $playername1." @ ".$servername1);
	//imagettftext($im, 10, 0, 300, 14, $white, $arial2, "@ ".$servername);
	//$cp->drawStyledString($im, 10, 310, 14, $white, $arial, $servername1);
	imagettftext($im, 10, 0, 60, 34, $black, $arial2, $lng_stats_server." ".$lng_trecords_id.": ".$playerrank."    ".$lng_players_avg.": ".$avg);
	imagettftext($im, 10, 0, 60, 54, $black, $arial2, $lng_players_timeplayed.": ".$time);
	$nationflag = imagecreatefrompng($flag);
	imagealphablending($im, 1);
	imagealphablending($nationflag, 1);
	imagecopy($im, $nationflag, 60,4,0,0,18,11);
	ImagePng ($im); // Als PNG ausgeben
	ImageDestroy ($im); // Resourcen freigeben
}

if($statsbox == 2){
	//create small Statusgraphic
	Header ("Content-type: image/png");
	$im = ImageCreateFromPNG ("img/statsbox/playerstats_middle.png"); // Open of the Master-Picture
	$white = ImageColorAllocate ($im, 255, 255, 255);  // white
	$black = ImageColorAllocate ($im, 0, 0, 0); // black
	imagettftext($im, 8, 0, 10, 12, $white, $arial2, $playername." @ ".$lng_stats_server);
	imagettftext($im, 8, 0, 10, 25, $white, $arial2, $servername);
	imagettftext($im, 8, 0, 5, 32, $white, $arial2, "--------------------------------------------------");
	imagettftext($im, 8, 0, 10, 42, $white, $arial2, $lng_stats_server." ".$lng_trecords_id.": ".$playerrank);
	imagettftext($im, 8, 0, 10, 55, $white, $arial2, $lng_players_avg.": ".$avg);
	ImagePng ($im); // Als PNG ausgeben
	ImageDestroy ($im); // Resourcen freigeben
}

if($statsbox == 3){
	//create small Statusgraphic
	Header ("Content-type: image/png");
	$im = ImageCreateFromPNG ("img/statsbox/playerstats_small.png"); // Open of the Master-Picture
	$white = ImageColorAllocate ($im, 255, 255, 255);  // white
	$black = ImageColorAllocate ($im, 0, 0, 0); // black
	imagettftext($im, 7, 0, 110, 9, $white, $arial2, $playername." @ ".$lng_stats_server." ".$servername);
	imagettftext($im, 6, 0, 110, 18, $white, $arial2, $lng_stats_server." ".$lng_trecords_id.": ".$playerrank."  --  ".$lng_players_avg.": ".$avg."  --  ".$lng_players_timeplayed.": ".$time);
	ImagePng ($im); // Als PNG ausgeben
	ImageDestroy ($im); // Resourcen freigeben
}

if($statsbox == 4){
	//create World-TMN Statusgraphic
	Header ("Content-type: image/png");
	$im = ImageCreateFromPNG ("img/statsbox/signature.png"); // Open of the Master-Picture
	$text1 = stripFormatting($fetcher->nickname);
	$white = ImageColorAllocate ($im, 255, 255, 255);  // white
	$black = ImageColorAllocate ($im, 0, 0, 0); // black
	imagettftext($im, 10, 0, 29, 18, $white, $arial2, "Nick: $text1");
	imagettftext($im, 10, 0, 29, 33, $white, $arial2, "Nationrank: $fetcher->nationrank");
	imagettftext($im, 10, 0, 29, 48, $white, $arial2, "Worldrank: $fetcher->worldrank");
	$zonetext = "Homezone: $fetcher->homezone";
	$box = imagettfbbox(10, 0, $arial2, $zonetext);
	imagettftext($im, 10, 0, 29, 63, $white, $arial2, $zonetext);
	imagettftext($im, 10, 0, 29, 80, $white, $arial2, "LP: $fetcher->ladderpoints");
	imagettftext($im, 10, 0, 29, 95, $white, $arial2, $fetcher->nationshort);
	if ($homeflag = getZoneFlag($fetcher->homezoneflagURL, $fetcher->homezone))
		imagecopy($im, $homeflag, 34 + abs($box[2] - $box[0]), 53, 0, 0, 18, 12);
	if ($nationflag = getNationFlag($fetcher->nationiconURL, $fetcher->nationshort))
		imagecopy($im, $nationflag, 60, 85, 0, 0, 18, 12);
	ImagePng ($im);
	ImageDestroy ($homeflag);
	ImageDestroy ($nationflag);
	ImageDestroy ($im);
}

if($statsbox == 5){
	Header ("Content-type: image/png");
	$im = ImageCreateFromPNG ("img/statsbox/signature_player.png"); // Open of the Master-Picture
	$white = ImageColorAllocate ($im, 255, 255, 255);
	$name = stripFormatting($fetcher->nickname);
	$textX = 21;
	$textY = 12;
	$textsize = 9;
	$lineheight = 17;
	imagettftext($im, $textsize, 0, $textY, $textX, $white, $arial2, "Nickname: $name");
	imagettftext($im, $textsize, 0, $textY, $textX+=$lineheight, $white, $arial2, "Nationrank: $fetcher->nationrank");
	imagettftext($im, $textsize, 0, $textY, $textX+=$lineheight, $white, $arial2, "Worldrank: $fetcher->worldrank");
	imagettftext($im, $textsize, 0, $textY, $textX+=$lineheight, $white, $arial2, "Ladderpoints: $fetcher->ladderpoints");
	imagettftext($im, $textsize, 0, $textY, $textX+=$lineheight, $white, $arial2, "Country: $fetcher->nationshort");
	//imagettftext($im, $textsize, 0, 10, $textpos+=$lineheight, $white, $arial2, "Zone: $fetcher->homezone");
	if ($nationflag = $nationflag = getNationFlag($fetcher->nationiconURL, $fetcher->nationshort))
		imagecopy($im, $nationflag, 93, 78, 0, 0, 18, 12);
	//if ($homeflag = $homeflag = getZoneFlag($fetcher->homezoneflagURL, $fetcher->homezone))
	//	imagecopy($im, $homeflag, 118, 78, 0, 0, 12, 12);
	ImagePng ($im);
	//ImageDestroy ($homeflag);
	ImageDestroy ($nationflag);
	ImageDestroy ($im);
}

?>
If it matters, tmfdatafetcher.inc.php is w1lla's v1.5 and ColorParser.php is Fufi's TMFColorParser v1.3c.
Last edited by Ant on 24 Jan 2011 17:48, edited 1 time in total.

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

Re: (X)Aseco+RASP Website Stats v3.2

Post by nocturne » 24 Jan 2011 08:47

You'll always have problems with fonts... There's absolutely no font out there that supports the entirety of unicode characters while also having bold, italic, and bold italic styles. Some of the best fonts out there are code2000, which is available with an honorware licesence; and Arial Unicode MS, which is only available via MS Office products, and is otherwise licensed exclusively by Ascender corp. But neither are legal to freely distribute, nor do they work without stripping wide, bold, narrow, and italics tags. There's just no simple solution without breaking a few laws, and doing a lot of work otherwise
Chief Janitorial Supervisor of the Let'sRock! TM community : www.LetsRock-TM.com

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: (X)Aseco+RASP Website Stats v3.2

Post by w1lla » 24 Jan 2011 09:29

strange thing is:

At tm-ladder.com the login specified by Ant shows not so correctly but even better.

http://en.tm-ladder.com/weberknecht_rech.php

so maybe the utf-8 string is not correctly placed within the image...

Code: Select all

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

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: (X)Aseco+RASP Website Stats v3.2

Post by Ant » 24 Jan 2011 17:42

I have since removed ARIALUNI.TTF - please see this post

Ah nice one noc ! Using ARIALUNI.TTF which is Arial Unicode MS (I own MS Office so it should be ok) those banners look much better. Also, I think the nick difference there between the banners for the same player are just down to the nick being changed, and then hasn't returned to my server since. So the server banners won't be updated with the new nick, whereas the global banners will be.

Of course I can't include this font in the main download, but for anyone that already has it, in playerstats.php make this change:

Change line 24 from

Code: Select all

$arial2 = "fonts/arial.ttf";
to

Code: Select all

$arial2 = "fonts/ARIALUNI.TTF";
Obviously making sure you've uploaded your copy of ARIALUNI.TTF to /fonts.

Also make the above change in serverstats.php at line 21.

*Note: I made this change in the version of playerstats.php that I've posted above.

This font (for anyone who doesn't know) is found in C:\WINDOWS\Fonts and is around 22 MB, the newest version (as far as I can see) is 1.01.
Last edited by Ant on 08 Feb 2011 19:51, edited 1 time in total.

User avatar
El Fuego
solid chaser
solid chaser
Posts: 1097
Joined: 27 Oct 2006 11:00
Owned TM-games: TMUF, TM2 C/S
Location: Nae too far frae Glesgie
Contact:

Re: (X)Aseco+RASP Website Stats v3.2

Post by El Fuego » 24 Jan 2011 19:28

Bear in mind that you have no legal rights to use that font outside of your Windows installation. ;)
Cheers!
.FUEY.
Diary Of A Mad Man

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: (X)Aseco+RASP Website Stats v3.2

Post by Ant » 24 Jan 2011 20:19

Ah, I didn't actually know I couldn't still use it. I've now applied for a licence for it to be distributed with this package, so hopefully i'll get a response soon.

For anyone that doesn't already have this font and doesn't have it included in their system, it can also be downloaded and licensed from http://www.microsoft.com/typography/fon ... ?fmid=1081

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

Re: (X)Aseco+RASP Website Stats v3.2

Post by nocturne » 24 Jan 2011 21:56

Why I said there's no simple solution without breaking a few laws, hehe.

You can advise users to download the Code2000 font, which is honorware. It covers a good spectrum of special chars, though it's a serif font. Another possibility is Bitstream Vera, which is released under a GNU license (used in Google Earth -- another serif font).

The Arial Uni MS font is by far the best solution, though it's only available with Office Products, and is otherwise exclusively licensed by Ascender Corp. But you can't modify/distribute it at all without breaking some kind of law...

I've spent the last 3 days trying to figure something out for my own scripts.. Having not found any decent multi-styled unicode font, I finally settled on making my own. Just took the best font I could find and started adding in missing glyphs, then proceeded to start generating styles with a font editor. Six hours of processing down, and I have all the style combo's outside of narrow completed.. :?
Chief Janitorial Supervisor of the Let'sRock! TM community : www.LetsRock-TM.com

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: (X)Aseco+RASP Website Stats v3.2

Post by Ant » 24 Jan 2011 22:11

nocturne wrote:Why I said there's no simple solution without breaking a few laws, hehe.

You can advise users to download the Code2000 font, which is honorware. It covers a good spectrum of special chars, though it's a serif font. Another possibility is Bitstream Vera, which is released under a GNU license (used in Google Earth -- another serif font).

The Arial Uni MS font is by far the best solution, though it's only available with Office Products, and is otherwise exclusively licensed by Ascender Corp. But you can't modify/distribute it at all without breaking some kind of law...
Thats why I've applied for a license using this form - hopefully they don't want thousands for the privilege though !


nocturne wrote:I've spent the last 3 days trying to figure something out for my own scripts.. Having not found any decent multi-styled unicode font, I finally settled on making my own. Just took the best font I could find and started adding in missing glyphs, then proceeded to start generating styles with a font editor. Six hours of processing down, and I have all the style combo's outside of narrow completed.. :?
Nice !! So you'll be releasing noc.ttf in the near future then ? :)

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

Re: (X)Aseco+RASP Website Stats v3.2

Post by nocturne » 24 Jan 2011 23:06

Well... it's based off of a licensed font, so I couldn't really release it anywhere other than filesharing/p2p sites. Besides, with all the styles it's already clocking in at over 80mb (with narrow, narrow bold, narrow bold italic, and narrow italic still to go).
Chief Janitorial Supervisor of the Let'sRock! TM community : www.LetsRock-TM.com

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: (X)Aseco+RASP Website Stats v3.2

Post by Ant » 25 Jan 2011 17:02

80mb !! That is one big font !

I just heard back from Ascender by the way, heres a snip from the email I received.
Thank you for your inquiry. The fonts that come with Microsoft products or are downloaded from our web site come with an End User License Agreement (EULA). The EULA controls the use of the fonts. This EULA allows the fonts to be used for your own personal or business use on workstations. If you want to distribute the Arial Unicode font in a software product you would need an additional license, which we can provide to you. However, the distribution must under a proprietary license.
I'm still in touch with them, and hopefully I'll be granted the license soon to include this font with these stats :)

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: (X)Aseco+RASP Website Stats v3.2

Post by w1lla » 25 Jan 2011 17:48

if you use it under a personal use there aint a huge problem to load and use it in webstats.

It can be under business and should be payed for is my guess.

Code: Select all

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

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: (X)Aseco+RASP Website Stats v3.2

Post by Ant » 25 Jan 2011 19:02

Yeah, looking at what he said in the email, if you already own this file it is perfectly legal to use it in your own site. As far as a distribution license goes, hopefully they'll grant it for free (thats what i'm angling for anyway) but i'll post any fresh developments on this as soon as I know more.

Edit: I've also fixed some other files - heres the list so far:

playerstats.php (stripFormatting function and ARIALUNI.TTF font added)
serverstats.php (ARIALUNI.TTF font added)
includes/tmfdatafetcher.inc.php (Added v1.5b)
pages/search_players.php (Updated so the tables match the players page)
pages/search_tracks.php (Updated so the tables match the tracks page)

After I hear about the font license, I'll update the package with all the above fixed files - stay tuned :)

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

Re: (X)Aseco+RASP Website Stats v3.2

Post by nocturne » 26 Jan 2011 09:08

I wouldn't hope too much to get a license for anything less than a sizable fee... As they stated in the preliminary response, you're software/script needs to be covered under proprietary license (ie. no freeware) -- if they granted you such a license, anybody desiring the font could simply download your package and extract the font out, thus negating any thought they could have at maintaining their profitable license.

The best you could do would be to designate a config variable for the font, and advise the users as to how to find a more suitable font and how to enable it's use. As it stands, the current package is illegal as it holds the MS licensed font 'tahoma', which could be replaced legally with GNU FreeFont or BitStream Vera -- wouldn't matter all that much, if the official file didn't reside on my server.. xD
Chief Janitorial Supervisor of the Let'sRock! TM community : www.LetsRock-TM.com

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: (X)Aseco+RASP Website Stats v3.2

Post by Ant » 26 Jan 2011 09:31

nocturne wrote:if they granted you such a license, anybody desiring the font could simply download your package and extract the font out, thus negating any thought they could have at maintaining their profitable license.
To be fair, anyone who really wants this font can get it from a p2p site anyway - I do see your point though, i'll have to wait for their reply now I guess and see what I can do from there.
nocturne wrote:The best you could do would be to designate a config variable for the font, and advise the users as to how to find a more suitable font and how to enable it's use.
This will probably be what I end up doing ... if I can't get a free license :)
nocturne wrote:As it stands, the current package is illegal as it holds the MS licensed font 'tahoma', which could be replaced legally with GNU FreeFont or BitStream Vera -- wouldn't matter all that much, if the official file didn't reside on my server.. xD
tahoma's been included in these stats for ages aint it ?? I didn't have any idea that needed a license as well :shock:

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

Re: (X)Aseco+RASP Website Stats v3.2

Post by nocturne » 26 Jan 2011 10:13

When it comes to anything involving anything... there's always a license issue somewhere.

FWIW, I actually had a bit of trouble retrieving the v1.01 version of Arial Uni MS from the net -- all I could find was v.84, and had to rely on a comrade for a copy of the more recent version. I'd post a copy to download here, but I'd be breaking the law -- and not to mention it's sheer availability by link would make TM-Forum libel in many countries.

But, these issues often are best held within closed circles... If somebody asks someone 'in-the-know' for help, I'd expect their concerns to be handled on a private note. :wink:

And Ant, keep in mind that I did acknowledge two fonts which are open to distribute as long you note their GNU licenses. They are nothing close to perfect, but they cover far outside the standard font set (let alone far beyond the standard distribution of tahoma, besides the few uses of drawStyledString without stripping that would rely on IT, WD, & WDIT font substyles.)
FreeFont: http://www.gnu.org/software/freefont/
Vera: http://www.gnome.org/fonts/
Chief Janitorial Supervisor of the Let'sRock! TM community : www.LetsRock-TM.com

Post Reply