home · contact · privacy
Christian Heller [Mon, 31 Mar 2014 02:24:43 +0000 (04:24 +0200)]
Fix textfile_width() line length check position.
Christian Heller [Mon, 31 Mar 2014 02:24:10 +0000 (04:24 +0200)]
Make textfile_width() check for too large lines.
Christian Heller [Mon, 31 Mar 2014 02:16:32 +0000 (04:16 +0200)]
Server/io.c: more precise comment.
Christian Heller [Mon, 31 Mar 2014 02:12:58 +0000 (04:12 +0200)]
Server: Poll server/in only every 0.33 seconds to reduce CPU usage.
Christian Heller [Sun, 30 Mar 2014 02:47:00 +0000 (04:47 +0200)]
Make README info on server config files more precise
Christian Heller [Sun, 30 Mar 2014 02:40:58 +0000 (04:40 +0200)]
Make server config files more readable, their parsing more lenient.
Completely re-wrote server's config file reading system for this. Just
a first step; client's config file system is to follow. Also stumbled
upon multiple issues in the meantime, added them to the TODO.
Christian Heller [Wed, 26 Mar 2014 20:56:52 +0000 (21:56 +0100)]
In TODO, fix wrong term.
Christian Heller [Wed, 26 Mar 2014 20:55:05 +0000 (21:55 +0100)]
Server: Eliminate major stack space waste offender in ai.c.
Christian Heller [Wed, 26 Mar 2014 20:49:53 +0000 (21:49 +0100)]
Add to TODO.
Christian Heller [Wed, 26 Mar 2014 20:10:38 +0000 (21:10 +0100)]
Enforce C11 via Makefile, explicate POSIX dependencies in source files.
Christian Heller [Wed, 26 Mar 2014 05:28:58 +0000 (06:28 +0100)]
Server: Change read_config_file() parameter order (stylistic reasons).
Christian Heller [Wed, 26 Mar 2014 04:41:03 +0000 (05:41 +0100)]
Client: Fix outdated comment.
Christian Heller [Wed, 26 Mar 2014 04:35:13 +0000 (05:35 +0100)]
Got rid of misc.h. Split off remains into array_append.h and control.h.
Christian Heller [Wed, 26 Mar 2014 03:36:44 +0000 (04:36 +0100)]
Client: Split off parts of misc.h into interface_conf.h.
Christian Heller [Wed, 26 Mar 2014 03:12:39 +0000 (04:12 +0100)]
Client: Split wincontrol.h off windows.h.
Christian Heller [Wed, 26 Mar 2014 02:12:52 +0000 (03:12 +0100)]
Server: Move common config file reading stuff into read_config_file().
Christian Heller [Tue, 25 Mar 2014 23:46:05 +0000 (00:46 +0100)]
Fix comment text.
Christian Heller [Tue, 25 Mar 2014 17:18:02 +0000 (18:18 +0100)]
Fix typo in Makefile comment.
Christian Heller [Tue, 25 Mar 2014 16:47:13 +0000 (17:47 +0100)]
Fix reference to wrongly named object definitions file in README.
Christian Heller [Tue, 25 Mar 2014 15:45:30 +0000 (16:45 +0100)]
Move tests for value size < UINT8_MAX into err_try_fgets() (flag: "8").
Christian Heller [Tue, 25 Mar 2014 15:28:43 +0000 (16:28 +0100)]
confserver/defs -> confserver/map_objects; fixed debug values in there.
Christian Heller [Tue, 25 Mar 2014 15:25:43 +0000 (16:25 +0100)]
Server: Make objects definable as "consumable" to gain n hitpoints.
This replaces the previous "MAGIC MEAT" hardcoding.
Christian Heller [Tue, 25 Mar 2014 15:00:18 +0000 (16:00 +0100)]
In client: Fix FIXME in get_keyname_to_keycode().
Christian Heller [Tue, 25 Mar 2014 14:35:04 +0000 (15:35 +0100)]
Added todo point.
Christian Heller [Mon, 24 Mar 2014 20:22:33 +0000 (21:22 +0100)]
Added -Wformat-security to gcc options, fixed point found by it.
Christian Heller [Tue, 18 Mar 2014 05:34:22 +0000 (06:34 +0100)]
Minor improvement in comment and TODO.
Christian Heller [Tue, 18 Mar 2014 05:24:51 +0000 (06:24 +0100)]
Client: Fixed window resizing bug.
Christian Heller [Tue, 18 Mar 2014 05:22:50 +0000 (06:22 +0100)]
Client: Minor re-configuration of default window geometry.
Christian Heller [Tue, 18 Mar 2014 05:18:26 +0000 (06:18 +0100)]
Client: Got rid of special keybinding formatting in "wide" linebreaking.
Christian Heller [Tue, 18 Mar 2014 05:07:20 +0000 (06:07 +0100)]
Added task to TODO.
Christian Heller [Tue, 18 Mar 2014 04:55:38 +0000 (05:55 +0100)]
In client, fixed bug hiding first entry in keybinding list drawings.
Christian Heller [Tue, 18 Mar 2014 04:47:11 +0000 (05:47 +0100)]
Startup script pipes everything to a log file now.
Christian Heller [Tue, 18 Mar 2014 04:07:27 +0000 (05:07 +0100)]
In the client, different modes of treating linebreaks are avaiable for
each window. Re-wrote large parts of draw_wins.c for this.
Christian Heller [Mon, 17 Mar 2014 03:55:19 +0000 (04:55 +0100)]
Got rid of useless "internal error code" part of error exit messages.
Christian Heller [Mon, 17 Mar 2014 03:50:48 +0000 (04:50 +0100)]
Re-factored server's main() into smaller routines in init.c.
Christian Heller [Mon, 17 Mar 2014 03:23:23 +0000 (04:23 +0100)]
Re-wrote large parts of the server client architecture. No more fifo.
server/out in its old use moves to server/worldstate, while the new
server/out is used for specific server messages. server/in is now a
plain text file. Solved the problem of parallel server processes, too.
Christian Heller [Mon, 10 Mar 2014 15:17:04 +0000 (16:17 +0100)]
Make get_drawfunc_by_char() return a proper function pointer.
Christian Heller [Mon, 10 Mar 2014 14:56:42 +0000 (15:56 +0100)]
Avoid doing arithmetic on a void pointer.
Christian Heller [Mon, 10 Mar 2014 14:25:47 +0000 (15:25 +0100)]
Removed redundant "return".
Christian Heller [Mon, 10 Mar 2014 14:03:34 +0000 (15:03 +0100)]
Added -Werror to compiler flags, fixed other warnings/errors triggered.
Christian Heller [Mon, 10 Mar 2014 13:52:10 +0000 (14:52 +0100)]
Removed unused parameter.
Christian Heller [Mon, 10 Mar 2014 13:49:41 +0000 (14:49 +0100)]
Added -Wextra to compiler flags, found out about redundant test.
Christian Heller [Mon, 10 Mar 2014 11:55:57 +0000 (12:55 +0100)]
In client, keybinding databases now store keybindings as arrays instead
of linked lists.
Christian Heller [Mon, 10 Mar 2014 10:18:30 +0000 (11:18 +0100)]
Some variable / struct member renaming for greater clarity.
Christian Heller [Mon, 10 Mar 2014 07:34:40 +0000 (08:34 +0100)]
Added TODO point.
Christian Heller [Mon, 10 Mar 2014 07:33:53 +0000 (08:33 +0100)]
Added TODO point.
Christian Heller [Mon, 10 Mar 2014 07:30:59 +0000 (08:30 +0100)]
Removed mention of scoring from README.
Christian Heller [Mon, 10 Mar 2014 07:29:54 +0000 (08:29 +0100)]
Removed finished task from TODO.
Christian Heller [Mon, 10 Mar 2014 07:29:23 +0000 (08:29 +0100)]
Removed scoring.
Christian Heller [Mon, 10 Mar 2014 07:18:25 +0000 (08:18 +0100)]
Put points from a separately kept TODO file into the repository proper.
Christian Heller [Fri, 7 Mar 2014 06:18:27 +0000 (07:18 +0100)]
Minor improvements to README style with help of GNU diction.
Christian Heller [Fri, 7 Mar 2014 05:45:23 +0000 (06:45 +0100)]
Provides more predictable shell argument expansions. As erlehmann told
me: "Always put quotes around variables, except if you know why you
don't want to!"
Christian Heller [Wed, 5 Feb 2014 23:12:57 +0000 (00:12 +0100)]
Fixed some more pitfalls that hurt working with game maps of maximum size.
Christian Heller [Wed, 5 Feb 2014 23:02:16 +0000 (00:02 +0100)]
Eliminated some potential problems for alternative game map sizes.
Christian Heller [Wed, 5 Feb 2014 16:42:16 +0000 (17:42 +0100)]
Added previously forgotten header file.
Christian Heller [Wed, 5 Feb 2014 15:32:38 +0000 (16:32 +0100)]
Repaired buggy check for out file generation time in init shell script.
Christian Heller [Wed, 5 Feb 2014 15:23:01 +0000 (16:23 +0100)]
Removed unused textfile_sizes() functionality, appropriately renamed it.
Christian Heller [Wed, 5 Feb 2014 15:11:20 +0000 (16:11 +0100)]
Some code-internal restructuring following the assumption that game map height /
width can't be higher than uint8_t values.
Christian Heller [Wed, 5 Feb 2014 14:18:46 +0000 (15:18 +0100)]
Added diagonal movement, with a 1.4 penalty.
Christian Heller [Sat, 1 Feb 2014 03:31:17 +0000 (04:31 +0100)]
Ensure that multiple inanimate objects on a map cell are always treated as a
stack, to the topmost one is picked up first.
Christian Heller [Fri, 31 Jan 2014 23:34:58 +0000 (00:34 +0100)]
Fixed typo in comment.
Christian Heller [Fri, 31 Jan 2014 23:31:54 +0000 (00:31 +0100)]
Some cosmetic code re-formatting.
Christian Heller [Fri, 31 Jan 2014 22:37:15 +0000 (23:37 +0100)]
Heavily improved enemy path-finding. Also corrected errors in turn_over() and
map object action handling found on the way.
Christian Heller [Tue, 28 Jan 2014 06:10:31 +0000 (07:10 +0100)]
Check for existence of server config files.
Christian Heller [Tue, 28 Jan 2014 05:46:02 +0000 (06:46 +0100)]
Client: interface config reload also re-sets virtual screen offset to 0.
Christian Heller [Tue, 28 Jan 2014 05:40:12 +0000 (06:40 +0100)]
Also built checks for server config files, and accordingly reformatted those.
Christian Heller [Tue, 28 Jan 2014 04:26:00 +0000 (05:26 +0100)]
Added previously forgotten err_try_fgets library (and moved it to src/common/).
Christian Heller [Tue, 28 Jan 2014 04:08:24 +0000 (05:08 +0100)]
Added default single-window interface config files for multi-terminal playing.
Christian Heller [Tue, 28 Jan 2014 03:25:45 +0000 (04:25 +0100)]
Client: Added checks / syntax validation for config files. Also changed commands
config file format to simplify doing those checks.
Christian Heller [Sat, 25 Jan 2014 22:57:00 +0000 (23:57 +0100)]
Added client commands config error check condition: third token longer than one char.
Christian Heller [Sat, 25 Jan 2014 22:45:09 +0000 (23:45 +0100)]
Check client's command DB config file for errors while reading it.
Christian Heller [Sat, 25 Jan 2014 22:06:19 +0000 (23:06 +0100)]
Refactored similar array append activities into array_append().
Christian Heller [Sat, 25 Jan 2014 21:18:38 +0000 (22:18 +0100)]
Made sure client is not confused by newlines at the end of config files.
Christian Heller [Sat, 25 Jan 2014 20:46:59 +0000 (21:46 +0100)]
Fixed bug where record unlinking in remake_world() *always* unlinked *any* previously existing record file.
Christian Heller [Sat, 25 Jan 2014 20:29:36 +0000 (21:29 +0100)]
Client: Save commands config file path in world struct.
Christian Heller [Sat, 25 Jan 2014 20:19:00 +0000 (21:19 +0100)]
Client: Renamed some world members, commented world struct.
Christian Heller [Sat, 25 Jan 2014 19:30:40 +0000 (20:30 +0100)]
Also make the client map window focus on the player when the world is re-seeded.
Christian Heller [Sat, 25 Jan 2014 19:27:08 +0000 (20:27 +0100)]
Server's remake_world() unlinks any pre-existing record file.
Christian Heller [Sat, 25 Jan 2014 19:13:19 +0000 (20:13 +0100)]
Removed unnecessary NULLings of pointers, explained kept ones.
Christian Heller [Sat, 25 Jan 2014 17:28:46 +0000 (18:28 +0100)]
Removed redundant calls for zeroing of memory, especially where replaceable with a single memset(ptr, 0, sizeof(struct ...)).
Christian Heller [Sat, 25 Jan 2014 06:13:21 +0000 (07:13 +0100)]
Merged Win and WinConf structs, windows.h and wincontrol.h. Also lots of refactoring on the way.
Christian Heller [Thu, 23 Jan 2014 21:50:54 +0000 (22:50 +0100)]
Merged world.wmeta and world.winconf_db into world.wins.
Christian Heller [Thu, 23 Jan 2014 21:03:45 +0000 (22:03 +0100)]
Fixed bug that crashed the client on terminal resizing due to wrongly expecting there always to be one active window.
Christian Heller [Thu, 23 Jan 2014 05:27:32 +0000 (06:27 +0100)]
Optimized WinConf / WinConfDB structure, removed redundant .draw.
Christian Heller [Thu, 23 Jan 2014 05:13:18 +0000 (06:13 +0100)]
Updated README.
Christian Heller [Thu, 23 Jan 2014 05:07:38 +0000 (06:07 +0100)]
Read interface config from one file (which can be set as command line argument)
instead of whole directory tree.
Christian Heller [Wed, 22 Jan 2014 23:37:35 +0000 (00:37 +0100)]
Removed memory leak in client's reset_windows(). (Previously, not all Win
structs were freed; only those visible.)
Christian Heller [Wed, 22 Jan 2014 22:00:19 +0000 (23:00 +0100)]
Handle SIGWINCH signals via reset_windows().
Christian Heller [Wed, 22 Jan 2014 14:31:54 +0000 (15:31 +0100)]
Client: reload_interface_conf() calls map_center() to re-focus map on player.
Christian Heller [Wed, 22 Jan 2014 14:29:33 +0000 (15:29 +0100)]
Fixed typo in confclient/commands that led to a swallowing of the first word of the window config reload command.
Christian Heller [Wed, 22 Jan 2014 14:28:14 +0000 (15:28 +0100)]
Client: Moved pad creation/sizing/deletion into (un)load_interface(), so that
calling them also fits the window config into a new terminal screen size.
Christian Heller [Wed, 22 Jan 2014 13:46:22 +0000 (14:46 +0100)]
Client: Changed window sizing algorithm to fix bug of too large negative window
width values wrapping into super-large positive width values if pad size is too
small.
Christian Heller [Wed, 22 Jan 2014 12:59:28 +0000 (13:59 +0100)]
Included <stddef.h> were NULL was used.
Christian Heller [Wed, 22 Jan 2014 05:20:35 +0000 (06:20 +0100)]
Client: Optimized order in which the command matching list is run through.
Christian Heller [Wed, 22 Jan 2014 05:08:10 +0000 (06:08 +0100)]
Client: Moved KeyBindingDB selection by char into keybindings library, making wrapper functions unnecessary.
Christian Heller [Wed, 22 Jan 2014 04:35:14 +0000 (05:35 +0100)]
Simplified client control library and interaction with it.
Christian Heller [Wed, 22 Jan 2014 01:35:47 +0000 (02:35 +0100)]
Define server messages and server message arguments in confclient/commands, instead of hardcoding them.
Christian Heller [Wed, 22 Jan 2014 00:04:28 +0000 (01:04 +0100)]
Removed unused client command id.
Christian Heller [Tue, 21 Jan 2014 23:47:18 +0000 (00:47 +0100)]
Removed indirection in control.c and therefore unused is_command_id_shortdsc().
Christian Heller [Tue, 21 Jan 2014 23:21:59 +0000 (00:21 +0100)]
Corrected erroneous interpretation of keycodes as command ids in variable names / comments.