ggmj.de

German Giant Map Junkies
Aktuelle Zeit: Mo Jun 18, 2018 6:56 am

Alle Zeiten sind UTC + 1 Stunde




Ein neues Thema erstellen Auf das Thema antworten  [ 9 Beiträge ] 
Autor Nachricht
 Betreff des Beitrags: Changed my game
BeitragVerfasst: Sa Jul 15, 2006 10:03 am 
Offline

Registriert: So Mai 21, 2006 1:55 pm
Beiträge: 11
Hi mate. I have changed my hosted game and have been given a new IP for the new gameserver. Should I re-install utlc or can I make changes to the existing installation to fix this?

Thanks a lot for your help.


Nach oben
 Profil  
 
 Betreff des Beitrags: good news ;-)
BeitragVerfasst: Sa Jul 15, 2006 12:16 pm 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
Hi Borat,
just change the Gameserver-FTP-Settings in the config.php.
You can continue using UTLC with all the data you collected.

Greetz - ~3DC~

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Sa Jul 15, 2006 2:53 pm 
Offline

Registriert: So Mai 21, 2006 1:55 pm
Beiträge: 11
Thanks 3DC but is there a way I can start all over again. This is a new game and I want to forget about the previous data. It does not have to be deleted but just "not counted anymore".


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Sa Jul 15, 2006 3:18 pm 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
ah ok,

upload this as a new php-file and run it please:
Code:
<?php
include("config.php");
if(mysql_query("Truncate table `lc_names`;", $dbHandle))
echo "empty table ... success.";
else
mysql_error();
?>

should work.

if you want to delete your comments too, just replace the lc_names with lc_comments and run it again.

didnt test it, but it should work :)

Greetz - ~3DC~

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Sa Jul 15, 2006 4:26 pm 
Offline

Registriert: So Mai 21, 2006 1:55 pm
Beiträge: 11
OK that cleared the data :D but when I try to GET logs I get this error:

Getlogs transfers all complete Playerjoin-Logfiles from /217475/ror/UserLogs/ and saves them under /hsphere/local/home/ez25bora/ez25.org.uk/utlogcheck/logs/.
After that the Logfiles will be deleted from /217475/ror/UserLogs/.


Notice: Undefined offset: 8 in /hsphere/local/home/ez25bora/ez25.org.uk/utlogcheck/index.php on line 252

$plserver ="mysql10.opentransfer.com"; // IP-Adress of DB: mostly localhost (let unchanged if you're unsure)
$pluser ="*****"; // name of DB-User
$plpass ="*****"; // your DB-password
$pldataBase ="*****"; // the database to be used

$ftp_server ="213.19.131.64"; // FTP-Server-IP
$ftp_user_name ="*****"; // FTP-Server-Username
$ftp_user_pass ="*****"; // FTP-Server-Password
$ftp_logs_dir ="/217475/ror/UserLogs/"; // Path to the PlayerJoin*.log - Files on FTP-Server

EDIT I also tried //ini_set("error_reporting",E_ALL); // show all errors but I still get

0 files transferred.

EDIT: I even re-installed utlogcheck (dropped the LC elements in phpmyadmin). Still the same error, so I'm guessing it's my config file.

EDIT: I tried your script in another recent thread and it displays:

Array
(
[0] => 07-14-06 05:57PM 940 PlayerJoin_7757_2006_07_14_17_05_02.log
[1] => 07-14-06 06:05PM 612 PlayerJoin_7757_2006_07_14_17_57_09.log
[2] => 07-14-06 06:11PM 351 PlayerJoin_7757_2006_07_14_18_05_08.log
[3] => 07-14-06 07:24PM 1310 PlayerJoin_7757_2006_07_14_18_37_42.log
[4] => 07-14-06 07:47PM 994 PlayerJoin_7757_2006_07_14_19_24_13.log
[5] => 07-14-06 07:57PM 489 PlayerJoin_7757_2006_07_14_19_47_54.log
[6] => 07-14-06 08:35PM 790 PlayerJoin_7757_2006_07_14_19_57_16.log
[7] => 07-14-06 09:07PM 395 PlayerJoin_7757_2006_07_14_20_35_47.log
[8] => 07-14-06 09:51PM 392 PlayerJoin_7757_2006_07_14_21_07_48.log
[9] => 07-15-06 12:33PM 231 PlayerJoin_7757_2006_07_15_05_14_03.log


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Di Jul 18, 2006 2:02 pm 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
Hi,
Zitat:
EDIT I also tried //ini_set("error_reporting",E_ALL); // show all errors but I still get

you need to remove the 2 slashes at beginning of that line to take effect.

//ini_set("error_reporting",E_ALL); // show all errors
is only a comment

ini_set("error_reporting",E_ALL); // show all errors
would be ok.

does this help or generate some more debugging-infos?

Greetz - ~3DC~

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Di Jul 18, 2006 5:03 pm 
Offline

Registriert: So Mai 21, 2006 1:55 pm
Beiträge: 11
It is NOT commented out atm and I get the error:

Notice: Undefined offset: 8 in /hsphere/local/home/ez25bora/ez25.org.uk/utlogcheck/index.php on line 252

this is repeated for every player log.

If I DO comment it out, I get no errors except "0 files transferred".


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Di Jul 18, 2006 6:21 pm 
Offline
{GGMJ} - full - member
Benutzeravatar

Registriert: Di Mai 20, 2003 11:51 pm
Beiträge: 3208
Wohnort: ~52°N/13°E
yooohoo ;)

Please upload this as a new .php-file into your UTLC-folder.
Code:
<pre>
<?
include("config.php");
$conn_id = @ftp_connect($ftp_server);
$login_result = @ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
if($login_result!=1)
echo $msg[$lng]['getlogs']['error'];
else
    {
    $anzahlfiles=0;
    ftp_chdir ($conn_id,$ftp_logs_dir);
    $contents = ftp_rawlist($conn_id, ".");

   foreach($contents as $key=>$val)
      {
      $cnt2=ereg_replace(" +",' ',$val);
      $ftpcontentline = explode(" ", $cnt2); // alles auseinanderpflücken
      var_dump($ftpcontentline);
      }
   }
?>
</pre>



...
When acessed via web, this should display something like:
Zitat:
array(9) {
[0]=>
string(10) "-rw-------"
[1]=>
string(1) "1"
[2]=>
string(11) "user"
[3]=>
string(11) "group"
[4]=>
string(3) "1848"
[5]=>
string(3) "Jul"
[6]=>
string(2) "18"
[7]=>
string(5) "17:08"
[8]=>
string(40) "PlayerJoin_30147_2006_07_18_19_04_57.log"
}
array(9) {
[0]=>
string(10) "-rw-------"
[1]=>
string(1) "1"
[2]=>
string(11) "user"
[3]=>
string(11) "group"
[4]=>
string(3) "1617"
[5]=>
string(3) "Jul"
[6]=>
string(2) "18"
[7]=>
string(5) "17:12"
[8]=>
string(40) "PlayerJoin_30147_2006_07_18_19_08_41.log"
}
(here: 2 example-entries; list can get long with if you have many files the /UserLogs - Folder)

Ok, these are the contents of the array which is generated to get the filenames after parsing the raw-filelist.


Over every line with data, a number is displayed in [ ].

Get the Number above the Filename (in this example it's the 8 ) and enter it at line 252.

For example:
if the number is 6, you need to change
$ftpcontentline2 = explode(".", $ftpcontentline[8]); // alles auseinanderpflücken

to

$ftpcontentline2 = explode(".", $ftpcontentline[6]); // alles auseinanderpflücken

That should do it :)

You can remove the "// alles auseinanderpflücken" at the end if you want, it's just a comment

If something isnt clear, just ask.
Good Luck'n'Greetz - ~3DC~

_________________
manamana


Nach oben
 Profil  
 
 Betreff des Beitrags:
BeitragVerfasst: Di Jul 18, 2006 8:20 pm 
Offline

Registriert: So Mai 21, 2006 1:55 pm
Beiträge: 11
Thank you very much 3DC !

Perfect!

BTW the game I am using this for is Red Orchestra Ostfront 41-45.


Nach oben
 Profil  
 
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 9 Beiträge ] 

Alle Zeiten sind UTC + 1 Stunde


Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast


Du darfst keine neuen Themen in diesem Forum erstellen.
Du darfst keine Antworten zu Themen in diesem Forum erstellen.
Du darfst deine Beiträge in diesem Forum nicht ändern.
Du darfst deine Beiträge in diesem Forum nicht löschen.
Du darfst keine Dateianhänge in diesem Forum erstellen.

Suche nach:
Gehe zu:  
cron

Deutsche Übersetzung durch phpBB.de