phudbase-1.11.tar.gz

snippets · 55.4 KB · 2010-03-30

PHUDBase 1.11: a SocketMud-style base with a PHP web client.

Download   « Back to the snippets list

phudbase/README

****************************************************************
THANKS FOR DOWNLOADING PHUDBASE, SOCKET SERVIN' GOODNESS IN PHP
****************************************************************

This'll give you a very basic idea of how to get started with the codebase.

INSTALLATION AND FIRST RUN
---------------------------
- Untar the file in your folder of choice in your web server's home folder

- Open <folder>/server/game.php in your editor of choice

- Change the HOST and PORT settings, if necessary

- If you'll be using a WebSocket client and you changed WS_HOST in game.php:
	-- Open <folder>/client/js/client.js
	-- Edit the "var wshost" line to match your WS_HOST + WS_RESOURCE

- On the command line and in <folder>/server, issue the following command:
php -q game.php

- If you see something like:
	Attempting to bind to port 12345...
	Socket server started at address 127.0.0.1 on port 12345
  congrats! You have PHudBase server running.

- If you're using the WebSocket client, in a WebSocket compatible browser
  visit http://127.0.0.1/<folder>/client/ (or the appropriate HOST)

- If all goes well, you'll see the light turn green and a request for 
you to enter a character name.

- If you're using Telnet, just try a standard telnet 127.0.0.1 12345 and 
type a character name.

- Welcome to Phud!

---------------------------

If you have trouble (or success) getting PHudBase running, let me know 
over at the Google Groups page:

http://groups.google.com/group/phudbase-developers

Good luck!


CHANGE LOG
---------------------------
v1.0 - 8 Feb 2010: Initial release

v1.1 - 9 Feb 2010: Various little fixes

v1.2 - 9 Feb 2010: Improved handling of WebSocket connections vs. Telnet
   -- Added bug-fix for PHP core level missing MSG_DONTWAIT define
   -- GameServer::on_connect now preempts on_read for WebSocket Handshake
   -- GameServer::on_connect now sends welcome message immediately for Telnet
   -- GameServer::on_read now ignores inputs from non-"handshaked" clients

Archive contents (45 files)

FileSize
phudbase/README2.0 KB
phudbase/README~2.0 KB
phudbase/client/index.php4.8 KB
phudbase/server/game.php3.4 KB
phudbase/client/js/client.js4.0 KB
phudbase/client/js/jquery.pack.js55.9 KB
phudbase/client/js/jquery.colorbox-min.js8.8 KB
phudbase/client/css/colorbox.css3.1 KB
phudbase/client/css/colorbox-ie.css1.6 KB
phudbase/client/css/styles.css1.6 KB
phudbase/server/includes/errorFunctions.inc384 B
phudbase/server/includes/stringFunctions.inc3.4 KB
phudbase/server/includes/cacheFunctions.inc960 B
phudbase/server/includes/actions.inc464 B
phudbase/server/includes/commFunctions.inc3.0 KB
phudbase/server/includes/global.inc1021 B
phudbase/client/images/colorbox/overlay.png192 B
phudbase/client/images/colorbox/loading_background.png157 B
phudbase/client/images/colorbox/loading.gif9.2 KB
phudbase/client/images/colorbox/controls.png3.7 KB
phudbase/client/images/colorbox/borderTopRight.png202 B
phudbase/client/images/colorbox/borderTopLeft.png275 B
phudbase/client/images/colorbox/borderTopCenter.png93 B
phudbase/client/images/colorbox/borderMiddleRight.png95 B
phudbase/client/images/colorbox/borderMiddleLeft.png138 B
phudbase/client/images/colorbox/borderBottomRight.png276 B
phudbase/client/images/colorbox/borderBottomLeft.png298 B
phudbase/client/images/colorbox/borderBottomCenter.png93 B
phudbase/server/includes/actions/kick.php37 B
phudbase/server/includes/actions/say.php268 B
phudbase/server/includes/actions/move.php1.4 KB
phudbase/server/includes/actions/look.php272 B
phudbase/server/includes/classes/Game.class.inc4.2 KB
phudbase/client/images/colorbox/CVS/Entries646 B
phudbase/client/images/colorbox/CVS/Repository34 B
phudbase/client/images/colorbox/CVS/Root49 B
phudbase/client/images/colorbox/CVS/Template0 B
phudbase/server/includes/classes/GameObjects/GameObject.class.inc513 B
phudbase/server/includes/classes/GameObjects/Character.GameObject.class.inc1.8 KB
phudbase/server/includes/classes/GameObjects/Room.GameObject.class.inc3.1 KB
phudbase/server/includes/classes/Server/SocketServer.class.inc8.1 KB
phudbase/server/includes/classes/Server/Socket.class.inc1.2 KB
phudbase/server/includes/classes/Server/SocketClient.class.inc713 B
phudbase/server/includes/classes/Server/GameClient.class.inc902 B
phudbase/server/includes/classes/Server/GameServer.class.inc5.6 KB

Site Stats

Snippets: 1791
Codebases: 571