Commit Graph

44 Commits

Author SHA1 Message Date
Gergely Polonkai (W00d5t0ck)
b29f7c9063 Added a randomized response on unknown commands.
Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
2012-03-14 20:19:05 +01:00
Polonkai Gergely
c715d19b2d Command parsing rewritten
* The command parsing code is completely rewritten. I'm almost sure it's not as
  effective as it could be, but it's kinda fast. Also, a basic QUIT command is
  already added to the system, which does nothing yet.
2012-03-14 19:06:02 +00:00
Polonkai Gergely
be3e17fd07 Added wmud_client_send() and a client state field.
* The wmudCLient struct now has a state field, which indicates the current
  state of the client (we are waiting her to log in, or to enter a command,
  etc.)
* Created the wmud_client_send() function to send formatted strings to a client
2012-03-14 19:03:54 +00:00
Gergely Polonkai (W00d5t0ck)
c19ba376d3 Fixed tokenizer code; added command list structure
Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
2012-03-13 17:24:03 +01:00
Polonkai Gergely
74fe14660a Added a basic (non-working) command interpreter.
Signed-off-by: Polonkai Gergely <polesz@w00d5t0ck.info>
2012-03-13 02:22:22 +01:00
Polonkai Gergely
84ba83c8ba Fixed %ld to %d to supress warnings during testing.
Signed-off-by: Polonkai Gergely <polesz@w00d5t0ck.info>
2012-03-13 02:21:59 +01:00
Polonkai Gergely
f06e2636af Added necessary includes to networking.h
Signed-off-by: Polonkai Gergely <polesz@w00d5t0ck.info>
2012-03-13 02:20:17 +01:00
Polonkai Gergely
9854290799 Added game client data parsing
Signed-off-by: Polonkai Gergely <polesz@w00d5t0ck.info>
2012-03-13 00:42:00 +01:00
Polonkai Gergely
21a7603f4c Created the wmudClient struct
Created the wmudClient struct to store data of connected clients.
2012-03-12 22:52:43 +00:00
Polonkai Gergely
732297f365 Fixed main.h after chaning variable type in main.c 2012-03-12 22:51:17 +00:00
Gergely Polonkai (W00d5t0ck)
4ed9f6bcea Minor code changes
* Fixed GThread init call
* Added elapsed second count

Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
2012-03-12 16:42:13 +01:00
Polonkai Gergely
73ffc4a8fb Moved networking code to networking.[ch] 2012-03-12 12:55:53 +00:00
Polonkai Gergely
12706d7e85 Added GThread support 2012-03-12 12:54:38 +00:00
Polonkai Gergely
9e6780cded Finished basic network stack
Game network stack is now working fine. It still needs error checking to be done.
2012-03-11 22:44:29 +00:00
Gergely Polonkai
6f71c03a8c Finished basic game networking stack (no error handling) 2012-03-11 16:50:45 +01:00
Gergely Polonkai
44a5a07874 Added debugging support
Added --enable-debug flag to configure.ac. It currently only enables the
DebugContext macro in main.c
2012-03-10 18:24:23 +01:00
Gergely Polonkai (W00d5t0ck)
7d93696438 moved from GNet to GLib/GIO
GNet, which was originally chosen to be used as the networking library
is obsolete and upstream is no longer developed. Thus, I moved to GLib/GIO
(which sucks, without proper examples).
2012-03-08 17:39:45 +01:00
Gergely Polonkai (W00d5t0ck)
37c3d43365 Added GNet dependency to autotools
Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
2012-03-07 23:01:31 +01:00
Gergely Polonkai (W00d5t0ck)
13d99aa4b0 Extended .gitignore files
Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
2012-03-07 23:00:58 +01:00
Gergely Polonkai (W00d5t0ck)
a591efd613 Added SQLite3 support into configure.ac and Makefile templates
Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
2012-03-07 19:08:32 +01:00
Gergely Polonkai (W00d5t0ck)
dee313f5ef Extended .gitignores 2012-03-07 16:43:31 +01:00
Gergely Polonkai (W00d5t0ck)
869570071d Added autotools stuff 2012-03-07 16:37:43 +01:00
Gergely Polonkai (W00d5t0ck)
dc1a6d7a0a Moved old codebase to old-codebase/ 2012-03-07 16:24:50 +01:00
Gergely Polonkai (W00d5t0ck)
e2b367dd56 Merge branch 'player-sqlite' 2012-03-07 16:21:04 +01:00
Gergely Polonkai (W00d5t0ck)
a0cfb06494 Added two more rooms to the Passage.
Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
2012-03-07 13:37:14 +01:00
Gergely Polonkai (W00d5t0ck)
d3f0781900 Merge branch 'death' 2012-03-07 13:26:44 +01:00
Gergely Polonkai (W00d5t0ck)
1d22a91be9 Added new fields and tables to SQLite skeleton 2012-03-07 11:50:42 +01:00
Gergely Polonkai (W00d5t0ck)
18116a632e Added tags file (generated by ctags) to .gitignore 2012-03-07 09:28:10 +01:00
Gergely Polonkai (W00d5t0ck)
5c2b03f41a Added tags file (generated by ctags) to .gitignore 2012-03-06 18:47:45 +01:00
Gergely Polonkai (W00d5t0ck)
b737abf392 Added skeleton of the players sqlite template 2012-03-06 18:46:57 +01:00
Gergely Polonkai (W00d5t0ck)
2ad84db2ff Added support for the Passage
Added support for the Passage (currently with only one room).
Characters will automatically get here when dead, and they will
need to find a way to reborn to the Planes (currently there is
no such way, but to logout and login again) (see newly created
TODO file).

Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
2012-03-06 17:55:06 +01:00
Gergely Polonkai (W00d5t0ck)
55605b3f97 Added SQLite3 support to configure script
* Renamed aclocal.m4 to local.m4
* Created autogen.sh script
* Added SQLite3 stuff in configure.in (using pkg-config)
* Added SQLite3 stuff in Makefile templates

Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
2012-03-06 16:40:04 +01:00
Gergely Polonkai (W00d5t0ck)
4a5524e601 Added the "arrived from" patch.
Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
2012-03-06 15:14:06 +01:00
Gergely Polonkai (W00d5t0ck)
a922f0812d Finished basic race handling 2012-03-06 13:55:27 +01:00
Polonkai Gergely
0ec7dd3b79 Started adding races support
Started adding Races support, based on http://www.circlemud.org/pub/CircleMUD/contrib/code/players/races.txt

Signed-off-by: Polonkai Gergely <polesz@w00d5t0ck.info>
2012-03-06 08:41:05 +01:00
Polonkai Gergely
a8bca76fe1 Added AutoLoot and AutoDrain functionality 2012-03-05 17:29:53 +00:00
Polonkai Gergely
9c8a3e2255 Changed shout level and load behavour in config.c 2012-03-05 17:28:46 +00:00
Polonkai Gergely
b6efb003e6 Fixed bury & dig code 2012-03-05 17:27:49 +00:00
Polonkai Gergely
b39005f561 Moved *.swp to main .gitignore, and added current syslog to .gitignore 2012-03-05 17:12:06 +00:00
Polonkai Gergely
f9e9f38ee6 Added ViM swap files to gitignore 2012-03-05 17:09:53 +00:00
Polonkai Gergely
3509974c90 Added bury, dig and drain commands.
Signed-off-by: Polonkai Gergely <polesz@w00d5t0ck.info>
2012-03-05 10:34:54 +01:00
Polonkai Gergely
e5f990fe3c Added *.o to .gitignore 2012-03-03 21:44:59 +01:00
Polonkai Gergely
14eb6d6656 Added 2003-06-10 CVS patches 2012-03-03 21:42:37 +01:00
Polonkai Gergely
9e36096953 Added CircleMUD 3.1 as initial commit 2012-03-03 21:35:30 +01:00