Games (inc Online)Teh Mine

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  Peter (BOUGHTONP)  
 To:  ANT_THOMAS     
38140.2868 In reply to 38140.2867 
Stupid language. You apparently don't need to define the $results before using it, assuming the examples are correct.

Anyway, if you haven't already done it, here's a modified version of the original code segment I posted:

php code:
	else if ( strpos($thing,"logged in") )
	{
		$time = "[" . substr($thing, 11, 5) . "]";
		preg_match( '/(?<=\[INFO\] )\S+/' , $thing , $results );
		$person = $results[0];
		$chats[] = $time.' <i>Joined:</i> <b>'.htmlspecialchars($person).'</b>';
	}
	else if ( strpos($thing,"lost connection") )
	{
		$time = "[" . substr($thing, 11, 5) . "]";
		preg_match( '/(?<=\[INFO\] )\S+/' , $thing , $results );
		$person = $results[0];
		$reason = trim(substr(strrchr($thing, '.'), 1));
		$chats[] = $time.' <i>Disconnected:</i> <b>'.htmlspecialchars($person).'</b> ('.$reason.')';
	}


I also added a trim() call around the $reason value, to remove the space that appeared.
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Peter (BOUGHTONP)     
38140.2869 In reply to 38140.2866 
Brilliant. That's all now up. I might add an auto refresh thing later too. I'd already done that last night but it fucked up.
0/0
 Reply   Quote More 

 From:  Ken (SHIELDSIT)  
 To:  ANT_THOMAS     
38140.2870 In reply to 38140.2869 
Unreal
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Ken (SHIELDSIT)     
38140.2871 In reply to 38140.2870 
Which means notch has between 30 and 45 million euros. Lucky bastard!
0/0
 Reply   Quote More 

 From:  Ken (SHIELDSIT)  
 To:  Peter (BOUGHTONP)     
38140.2872 In reply to 38140.2871 
For a game in Beta.
0/0
 Reply   Quote More 

 From:  Chris (CHRISSS)  
 To:  Peter (BOUGHTONP)     
38140.2873 In reply to 38140.2871 
I wonder how much he was expecting/hoping to get, if he'd thought about that.

Chrissywissywoo
0/0
 Reply   Quote More 

 From:  koswix   
 To:  Chris (CHRISSS)     
38140.2874 In reply to 38140.2873 
I won a tenner on a scratch card yesterday. Doesn't really compare :(


GIVE ME EYERON OR! :@ msg:38140.1
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Peter (BOUGHTONP)     
38140.2875 In reply to 38140.2871 
Yeah I saw a quote the other day from him along the lines of "I don't think about the price of groceries any more"
0/0
 Reply   Quote More 

 From:  milko  
 To:  Ken (SHIELDSIT)     
38140.2876 In reply to 38140.2872 
In fairness, I doubt the post-beta audience will be all that large, there can't be that many people left waiting can there? Good heavens, if there are he'll be able to buy islands and things. Well, he probably already can, but more and bigger ones.

milko
0/0
 Reply   Quote More 

 From:  Ken (SHIELDSIT)  
 To:  milko     
38140.2877 In reply to 38140.2876 
I dunno, the number of people on earth is above my math skill. I just wish it was/had more physics or something involved so I could invent my own things to use instead of having to wait for them to introduce them.
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  ALL
38140.2878 

Auto-refresh is up and running. It'll refresh the chat every 20 seconds.

 

Next on my to-do list (when I can be bothered) are:
List of currently Online Users.
Ability to chat from the chat page.

0/0
 Reply   Quote More 

 From:  Drew (X3N0PH0N)  
 To:  Peter (BOUGHTONP)     
38140.2879 In reply to 38140.2860 
Hmm, I'll stick it in my dropbox.

http://dl.dropbox.com/u/132841/No%20Clouds.zip
0/0
 Reply   Quote More 

 From:  Drew (X3N0PH0N)  
 To:  ANT_THOMAS     
38140.2880 In reply to 38140.2863 
Bit of a problem on the web map...

81.155.247.206: test
Error: You may only chat once every 25 seconds.
0/0
 Reply   Quote More 

 From:  Drew (X3N0PH0N)  
 To:  af (CAER)     
38140.2881 In reply to 38140.2864 
I don't think you need to build /all/ of it. There are going to be a lot of dull buildings between the interesting ones. Emphasise the cool bits and drop the bits which don't add anything to the y'know.
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Drew (X3N0PH0N)     
38140.2882 In reply to 38140.2880 
:$ I obviously changed the wrong setting
0/0
 Reply   Quote More 

 From:  patch  
 To:  Drew (X3N0PH0N)     
38140.2883 In reply to 38140.2881 
The cafeterias and restaurants can probably be left out, aye. And maybe dividing all the numbers by two.
0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Drew (X3N0PH0N)     
38140.2884 In reply to 38140.2881 

Down to 2 secs now. NO SPAMING etc etc.

 

Though I can't yet find the setting to increase the length of time the messages show for. I've tried a couple of settings but it's still about 15 seconds per message.

0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  ALL
38140.2885 
The mini-site chat thing is now working fairly well and there's an online players list as well. Both refresh every 20 seconds.
0/0
 Reply   Quote More 

 From:  af (CAER)  
 To:  patch     
38140.2886 In reply to 38140.2883 
Even if I divide the size by two it's still longer than my wall :'D (and a 25m wide moat around the outside will be... an interesting challenge)
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Drew (X3N0PH0N)     
38140.2887 In reply to 38140.2879 
That one worked.

Dunno what was up with the other thing... either a corrupt upload or a server issue I guess. :/
0/0
 Reply   Quote More 

Reply to All  
 

1–20  …  2821–2840  2841–2860  2861–2880  2881–2900  …  3921–3934

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats