Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Other Products » FDS Status Reporter Plugin doesnt work
FDS Status Reporter Plugin doesnt work [message #244166] Thu, 08 February 2007 08:03 Go to next message
Buggy is currently offline  Buggy
Messages: 125
Registered: March 2004
Location: Germany
Karma: 0
Recruit

I have downloaded fds_status_reporter_plugin_1-02 from http://www.lmsbc.com/html/downloads.php?download=52 and setup in my brenbot/plugins directory.
After starting the fds he says:
Undefined subroutine &plugin::getGameStatus called at /XXXX/plugins/fds_status_reporter.pm line 66.


Whats wrong there?
Re: FDS Status Reporter Plugin doesnt work [message #244167 is a reply to message #244166] Thu, 08 February 2007 08:11 Go to previous messageGo to next message
Hex is currently offline  Hex
Messages: 858
Registered: March 2004
Karma: 0
Colonel
1.2 is for the beta only

goztow wrote on Tue, 11 May 2010 08:00

If we had to ban all who ever cheated or ever created a cheat (obj3cts and such) then I don't think there would be many members left here (sad fact).


reborn wrote on Fri, 29 January 2010 23:37

std is for pro's. Razz
Re: FDS Status Reporter Plugin doesnt work [message #245129 is a reply to message #244166] Tue, 13 February 2007 07:39 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
that problem is fixed in beta 1.51 build 2 (possibly b1)

Just dont use it for now Razz
Re: FDS Status Reporter Plugin doesnt work [message #245131 is a reply to message #244166] Tue, 13 February 2007 08:37 Go to previous messageGo to next message
Buggy is currently offline  Buggy
Messages: 125
Registered: March 2004
Location: Germany
Karma: 0
Recruit

ok but danpaul88 take my rights for the beta forum away and dont talk with me...
Re: FDS Status Reporter Plugin doesnt work [message #309883 is a reply to message #244166] Fri, 11 January 2008 12:52 Go to previous messageGo to next message
Creed3020 is currently offline  Creed3020
Messages: 1438
Registered: February 2003
Location: Toronto, Canada
Karma: 0
General (1 Star)
I recently have been trying to get this to work aswell.

I have an old set of templates kicking around but they seem to be out of date now. Must have been from an earlier version on this plugin.

I was wondering if there was anything out there or if I need to develop something.

Thanks! Rocked Over
Re: FDS Status Reporter Plugin doesnt work [message #309980 is a reply to message #244166] Fri, 11 January 2008 17:43 Go to previous messageGo to next message
Genesis2001
Messages: 1397
Registered: August 2006
Karma: 0
General (1 Star)
1 year bump ftl....


anyway, afaik...the FDS Status reporter stopped working with 1.5x :\ (I may be wrong, as usual =P)

~MathK1LL
Re: FDS Status Reporter Plugin doesnt work [message #309991 is a reply to message #309980] Fri, 11 January 2008 17:56 Go to previous messageGo to next message
Creed3020 is currently offline  Creed3020
Messages: 1438
Registered: February 2003
Location: Toronto, Canada
Karma: 0
General (1 Star)
MathK1LL wrote on Fri, 11 January 2008 19:43

1 year bump ftl....


anyway, afaik...the FDS Status reporter stopped working with 1.5x :\ (I may be wrong, as usual =P)

~MathK1LL


Why should I start a whole new thread about the exact same topic.... Sarcasm

So far the plugin is uploading the correct text file, so I believe it is working properly.
Re: FDS Status Reporter Plugin doesnt work [message #310130 is a reply to message #244166] Sat, 12 January 2008 04:46 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
The latest version of the plugin ( http://new.brenbot.com ) should work fine with 1.52, if it does not let me know and I will look into it. As for PHP side stuff, I'm afraid your just going to have to write your own PHP code for it, but this snippet should help;

// Process server data
if ( $fdsStatusTXT = file_get_contents ( "fdsstatus.txt" ) )
{
	$fdsStatusArray = explode ( "\n", $fdsStatusTXT );
	
	// Create gameData array
	$gameData = array (
		'mode' => $fdsStatusArray[0],
		'map' => $fdsStatusArray[1],
		'gdi_players' => $fdsStatusArray[2],
		'gdi_points' => $fdsStatusArray[3],
		'nod_players' => $fdsStatusArray[4],
		'nod_points' => $fdsStatusArray[5],
		'max_players' => $fdsStatusArray[6],
		'timeleft' => $fdsStatusArray[7],
		'sfps' => $fdsStatusArray[8]
	);
	
	
	// Create playerData array
	for ( $i = 0; $i < $gameData['gdi_players']+$gameData['nod_players']; $i++ )
	{
		// Explode the appropriate index of $fdsStatusArray into itself
		$fdsStatusArray[$i+9] = explode ( "\t", $fdsStatusArray[$i+9] );
		
		// Adjust time field
		$fdsStatusArray[$i+9][6] = substr ( $fdsStatusArray[$i+9][6], strpos( $fdsStatusArray[$i+9][6], "." )+1 );
	
		$playerData[$i] = array (
			'name' => trim($fdsStatusArray[$i+9][0]),
			'side' => trim($fdsStatusArray[$i+9][1]),
			'score' => trim($fdsStatusArray[$i+9][2]),
			'kills' => trim($fdsStatusArray[$i+9][3]),
			'deaths' => trim($fdsStatusArray[$i+9][4]),
			'ping' => trim($fdsStatusArray[$i+9][5]),
			'time' => trim($fdsStatusArray[$i+9][6])
		);
	}
}


(NOTE: The above PHP code is untested, but should work, or at least give you a good idea of how to make it work.)


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Sat, 12 January 2008 15:01]

Report message to a moderator

Re: FDS Status Reporter Plugin doesnt work [message #310181 is a reply to message #244166] Sat, 12 January 2008 11:29 Go to previous messageGo to next message
Creed3020 is currently offline  Creed3020
Messages: 1438
Registered: February 2003
Location: Toronto, Canada
Karma: 0
General (1 Star)
Thanks for a start Dan.

I knew that I would have to come up with most of the PHP.

The code that I already have looks really old and doesn't really have anything to do anymore with the newer version of the plugin.
Re: FDS Status Reporter Plugin doesnt work [message #310272 is a reply to message #244166] Sat, 12 January 2008 15:03 Go to previous message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
NB: Edited the above to replace $i with $i+9 on the line below the comment "// Adjust time field". As for why you need to adjust the time field, I am not entirely sure, but it was in the old code so I kept it. IIRC it was so that it could be parsed as a float for entry into a MySQL database (The $playerData and $gameData arrays don't exist in the live version TK2 use, it just goes straight into a database, but I replaced it with those to make it more clear what everything is).

http://steamsignature.com/card/1/76561197975867233.png
Previous Topic: ssgm dde hook problem
Next Topic: BrenBot Script
Goto Forum:
  


Current Time: Sat Nov 23 02:37:03 MST 2024

Total time taken to generate the page: 0.00795 seconds