Games (inc Online)Teh Mine

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  ANT_THOMAS  
 To:  ANT_THOMAS     
38140.2863 In reply to 38140.2862 
Or maybe it's actually 15 seconds, that is possibly a max since I've set it at 20 and 25 and it's still gone after 15.
0/0
 Reply   Quote More 

 From:  af (CAER)  
 To:  ALL
38140.2864 

It was suggested that I construct the Forbidden City. I did some research to find out how big it is, collect some maps and photos, etc.

 

It is 750m wide and 960m long.

 

The moat is 52m wide and 6m deep.

 

The walls are 10m high, 8.6m thick at the base and 6.7m thick at the top.

 

It has OVER NINE THOUSAND rooms.

 

This is going to take a long time, and will require a lot of red wool.

 

edit:
Here's a couple of sections of map showing the kind of scale we'd be talking about, assuming 1px = 1m:
http://caerphoto.com/misc/forbidden-city-size.png

 

http://caerphoto.com/misc/forbidden-city-size.jpg

 

I suppose we can be grateful none of its buildings are particularly tall :&

0/0
 Reply   Quote More 

 From:  ANT_THOMAS  
 To:  Peter (BOUGHTONP)     
38140.2865 In reply to 38140.2859 
That doesn't work. It results in this....

code:
[11:34] Disconnected: 1 (endOfStream )
[11:29] Disconnected: 1 (quitting )


This a log out and login

code:
2011-08-05 11:34:23 [INFO] Assassinmaster00 lost connection: disconnect.endOfStream
2011-08-05 11:34:40 [INFO] Assassinmaster00 [/82.0.57.13:51011] logged in with entity id 6954 at ([world] 989.4319634933074, 67.0, 976.3194288406315)
 
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  ANT_THOMAS     
38140.2866 In reply to 38140.2865 
Grrr, stupid bloody PHP! :@


Change...
php code:
$person = preg_match( '/(?<=\[INFO\] )\S+/' , $thing );
...to...
php code:
$results = [];
preg_match( '/(?<=\[INFO\] )\S+/' , $thing , $results );
$person = $results[0];

...in both the sections.


And correct $this to $thing in the else if.
( I blame Xen's dumb variable names for that one :P )
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Peter (BOUGHTONP)     
38140.2867 In reply to 38140.2866 
Oh, it probably also needs a $results = []; before the preg_match too.
(I just updated the post, but not sure if you read it before or after that)
0/0
 Reply   Quote More 

 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 

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