LGSL 5.2 Released

Change Log:
http://www.greycube.com/help/readme/lgsl/change-log/
File changes:
http://www.greycube.com/help/readme/lgsl/upgrade-info/


Pleased to say that LGSL v5.2 is now available for download.

A lot of code has been changed, so let me know if I managed to break something in the process 🙂

See the comments for more detailed upgrade information.

America's Army 3 queries are actually encrypted, so I would like to say a personal thanks to Hazard Clan (http://hazardaaclan.com) whose excellent AA3 Wiki (http://www.hazardaaclan.com/wiki/doku.php?id=aa3_server_query) along with Luigi Auriemma (http://aluigi.altervista.org/papers.htm) who researched the encryption scheme, made adding AA3 support possible.

LGSL 5.1 Released

The latest version of LGSL is now ready, but first IMPORTANT UPGRADE INFO


– If you just upload all the .PHP files then you will be fine and can skip this.
– If you have made config changes, you need to re-apply them to the new config.
– For those who run modified code, please see news comments for file differences.
– The protocol file in this version is not compatible with older versions of LGSL.


There are lots of improvements, see them all in the change log section at:
http://www.greycube.com/help/readme/lgsl/


– This version contains a Source / Half-Life 2 server fix, where sometimes the details would not show.
– Often requested, the game icon is now on the map image and a page for guests to add servers.
– Game types of "generic gamespy protocol" adds support for many unlisted games and use of the feed.

Windows 7 and WUSB54G

I installed Windows 7 on two computers which use a Linksys WUSB54G v4 network adapter.


During the install they had internet by LAN cable, which allowed the drivers to be downloaded through Windows Update, and everything seemed great.


Then I started getting the blue screen of death, reporting wusb54g.sys as the cause, the weird thing is certain songs on Spotify would trigger a BSOD every time.


The solution was using a driver from http://www.ralinktech.com who made the chip inside the WUSB54G.


Download 'USB (RT2500USB)' and run the .exe, In Device Manager right click the device, Update driver, Browse, Pick, Network adaptors, one of the two Ralink Technology entries has 'RT2500 USB'.

eCaptcha 3.5 Released

This new version has many improvements, most importantly a moderation system for dealing with human submitted spam.


If your interested in the full list of changes, they are on the download page 🙂


Quickly updated to 3.5 – You can now be notified when items are waiting to be moderated.

MySQL Connect and Select DB Speed

Thought I would share some benchmark results, took PHP code that does the following:


include file
mysql_connect
mysql_select_db


And repeated 2000 times, on this shared host, it took just 0.09 seconds.


So there is very little overhead in repeatedly connecting to a database.

eCaptcha 3.2 Released

Pleased to say that the new eCaptcha is ready for use and is certainly worth upgrading to.


Its faster, cleaner, full screen, and more secure than before, so enjoy 🙂


See the download page for a full list of changes.


eCaptcha is compatible with CommentStop (http://www.jezza101.co.uk/e107-comment-stop-plugin.php) which blocks link spam posted by humans.

Mysterious Stutter Solved

My PC started to stutter, the mouse pointer, typing, programs, all would repeatedly freeze every few seconds.


Task manager showed CPU usage, but not from any program, so I ran 'Process Explorer' which showed usage by 'Interupts'.


The problem turned out to be the IDE DVD Drive ! Disabled it from the 'Device Manager' and the stuttering stopped.


It may actually be the motherboard IDE at fault, so got a SATA DVD drive, which also gets rid of the chunky IDE cable 😀

PHP – Notes on Time / Time Zones / Date

Just a few notes for any PHP coders, that I dont think PHP.net makes clear enough.


time() is always GMT, seconds from 1970 GMT to the current time GMT, not to the local server time.
This can also be shown with: time() == date("U") == gmdate("U")


Its the date() function that makes GMT seconds into local server time, hence the need for gmdate().


Then you have strtotime() which returns seconds like time() but changes depending on the servers time zone.


$time = strtotime("2009-04-04"); echo gmdate("Y-m-d H:i:s", $time); outputs 2009-04-03 23:00:00
Why the loss of an hour ? Because it was run on a server with Day Light Savings that apply in April.
Instead you have to be more specific and use strtotime("2009-04-04 GMT")


However that wont help when doing certain date calculations:


$time = strtotime("1993-04-04 GMT");
echo gmdate("Y-m-d H:i:s", $time); outputs 1993-04-04 00:00:00
echo strtotime("+1 day GMT", $time); outputs 1993-04-04 23:00:00


Here you can instead add the seconds in a day ( $time += 60 * 60 * 24 ) but thats not suitable for adding months.


From PHP 5.1.0 there is the option date_default_timezone_set() however PHP4 is still widely used.


Oh and Happy New Year 🙂

LGSL 5.0 Released

Here are the changes:


– Added: Call of Duty: World at War support
– Added: Jediknight: Jedi Academy support
– Added: Kingpin: Life of Crime support
– Added: Open Transport Tycoon Deluxe support
– Added: Star Wars: Battlefront support
– Added: Star Wars: Battlefront 2 support
– Added: Teeworlds support


– Updated: Half-Life and Source support
– Updated: Fuel of War to show player information
– Updated: UT3 to show player information


The map images are now in a seperate 5mb download, so LGSL is less than 150kb to download.


This will solve problems when uploading using a CMS plugin manager, makes upgrading easier, and allows me to update the map images seperately from LGSL. I hope you like this change.


I would like to mention OC Remix who released the "Super Street Fighter II Turbo HD Remix"
soundtrack for free HERE (http://www.ocremix.org/info/OC_ReMix:_Super_Street_Fighter_II_Turbo_HD_Remix_Official_Soundtrack) which I downloaded mostly out of curiosity, but turned out to be great
coding music ( no lyrics with a good beat for concentration ) which sped up the release.


Upgrade information in the comments.

Where the hell is Richard

I have been avoiding the forums recently, my thanks goes to those who have been helping others.


I code for fun, but recently, for various reasons, its been the last thing I have wanted to do.


My time at the moment is being spent playing Left4Dead and Zombie Panic Source 🙂

FOOTER TO GO HERE!