home · contact · privacy
plomrogue
10 years agoSome code-internal restructuring following the assumption that game map height /
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.

10 years agoAdded diagonal movement, with a 1.4 penalty.
Christian Heller [Wed, 5 Feb 2014 14:18:46 +0000 (15:18 +0100)]
Added diagonal movement, with a 1.4 penalty.

10 years agoEnsure that multiple inanimate objects on a map cell are always treated as a
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.

10 years agoFixed typo in comment.
Christian Heller [Fri, 31 Jan 2014 23:34:58 +0000 (00:34 +0100)]
Fixed typo in comment.

10 years agoSome cosmetic code re-formatting.
Christian Heller [Fri, 31 Jan 2014 23:31:54 +0000 (00:31 +0100)]
Some cosmetic code re-formatting.

10 years agoHeavily improved enemy path-finding. Also corrected errors in turn_over() and
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.

10 years agoCheck for existence of server config files.
Christian Heller [Tue, 28 Jan 2014 06:10:31 +0000 (07:10 +0100)]
Check for existence of server config files.

10 years agoClient: interface config reload also re-sets virtual screen offset to 0.
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.

10 years agoAlso built checks for server config files, and accordingly reformatted those.
Christian Heller [Tue, 28 Jan 2014 05:40:12 +0000 (06:40 +0100)]
Also built checks for server config files, and accordingly reformatted those.

10 years agoAdded previously forgotten err_try_fgets library (and moved it to src/common/).
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/).

10 years agoAdded default single-window interface config files for multi-terminal playing.
Christian Heller [Tue, 28 Jan 2014 04:08:24 +0000 (05:08 +0100)]
Added default single-window interface config files for multi-terminal playing.

10 years agoClient: Added checks / syntax validation for config files. Also changed commands
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.

10 years agoAdded client commands config error check condition: third token longer than one char.
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.

10 years agoCheck client's command DB config file for errors while reading it.
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.

10 years agoRefactored similar array append activities into array_append().
Christian Heller [Sat, 25 Jan 2014 22:06:19 +0000 (23:06 +0100)]
Refactored similar array append activities into array_append().

10 years agoMade sure client is not confused by newlines at the end of config files.
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.

10 years agoFixed bug where record unlinking in remake_world() *always* unlinked *any* previously...
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.

10 years agoClient: Save commands config file path in world struct.
Christian Heller [Sat, 25 Jan 2014 20:29:36 +0000 (21:29 +0100)]
Client: Save commands config file path in world struct.

10 years agoClient: Renamed some world members, commented world struct.
Christian Heller [Sat, 25 Jan 2014 20:19:00 +0000 (21:19 +0100)]
Client: Renamed some world members, commented world struct.

10 years agoAlso make the client map window focus on the player when the world is re-seeded.
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.

10 years agoServer's remake_world() unlinks any pre-existing record file.
Christian Heller [Sat, 25 Jan 2014 19:27:08 +0000 (20:27 +0100)]
Server's remake_world() unlinks any pre-existing record file.

10 years agoRemoved unnecessary NULLings of pointers, explained kept ones.
Christian Heller [Sat, 25 Jan 2014 19:13:19 +0000 (20:13 +0100)]
Removed unnecessary NULLings of pointers, explained kept ones.

10 years agoRemoved redundant calls for zeroing of memory, especially where replaceable with...
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 ...)).

10 years agoMerged Win and WinConf structs, windows.h and wincontrol.h. Also lots of refactoring...
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.

10 years agoMerged world.wmeta and world.winconf_db into world.wins.
Christian Heller [Thu, 23 Jan 2014 21:50:54 +0000 (22:50 +0100)]
Merged world.wmeta and world.winconf_db into world.wins.

10 years agoFixed bug that crashed the client on terminal resizing due to wrongly expecting there...
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.

10 years agoOptimized WinConf / WinConfDB structure, removed redundant .draw.
Christian Heller [Thu, 23 Jan 2014 05:27:32 +0000 (06:27 +0100)]
Optimized WinConf / WinConfDB structure, removed redundant .draw.

10 years agoUpdated README.
Christian Heller [Thu, 23 Jan 2014 05:13:18 +0000 (06:13 +0100)]
Updated README.

10 years agoRead interface config from one file (which can be set as command line argument)
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.

10 years agoRemoved memory leak in client's reset_windows(). (Previously, not all Win
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.)

10 years agoHandle SIGWINCH signals via reset_windows().
Christian Heller [Wed, 22 Jan 2014 22:00:19 +0000 (23:00 +0100)]
Handle SIGWINCH signals via reset_windows().

10 years agoClient: reload_interface_conf() calls map_center() to re-focus map on player.
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.

10 years agoFixed typo in confclient/commands that led to a swallowing of the first word of the...
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.

10 years agoClient: Moved pad creation/sizing/deletion into (un)load_interface(), so that
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.

10 years agoClient: Changed window sizing algorithm to fix bug of too large negative window
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.

10 years agoIncluded <stddef.h> were NULL was used.
Christian Heller [Wed, 22 Jan 2014 12:59:28 +0000 (13:59 +0100)]
Included <stddef.h> were NULL was used.

10 years agoClient: Optimized order in which the command matching list is run through.
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.

10 years agoClient: Moved KeyBindingDB selection by char into keybindings library, making wrapper...
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.

10 years agoSimplified client control library and interaction with it.
Christian Heller [Wed, 22 Jan 2014 04:35:14 +0000 (05:35 +0100)]
Simplified client control library and interaction with it.

10 years agoDefine server messages and server message arguments in confclient/commands, instead...
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.

10 years agoRemoved unused client command id.
Christian Heller [Wed, 22 Jan 2014 00:04:28 +0000 (01:04 +0100)]
Removed unused client command id.

10 years agoRemoved indirection in control.c and therefore unused is_command_id_shortdsc().
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().

10 years agoCorrected erroneous interpretation of keycodes as command ids in variable names ...
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.

10 years agoMore of the same.
Christian Heller [Tue, 21 Jan 2014 23:18:01 +0000 (00:18 +0100)]
More of the same.

10 years agoSome further renaming for the same purpose (see last commit).
Christian Heller [Tue, 21 Jan 2014 23:10:56 +0000 (00:10 +0100)]
Some further renaming for the same purpose (see last commit).

10 years agoSome variable / struct member renaming to better differentiate between keynames and...
Christian Heller [Tue, 21 Jan 2014 23:02:21 +0000 (00:02 +0100)]
Some variable / struct member renaming to better differentiate between keynames and names of commands bound to keys.

10 years agoGave former draw_kb_view() more descriptive title draw_keybinding_config().
Christian Heller [Tue, 21 Jan 2014 22:21:57 +0000 (23:21 +0100)]
Gave former draw_kb_view() more descriptive title draw_keybinding_config().

10 years agoMinor language corrections in README.
Christian Heller [Tue, 21 Jan 2014 05:26:21 +0000 (06:26 +0100)]
Minor language corrections in README.

10 years agoMinor comment-cosmetic corrections.
Christian Heller [Tue, 21 Jan 2014 04:31:55 +0000 (05:31 +0100)]
Minor comment-cosmetic corrections.

10 years agoRemoved test for writing non-bashisms. Was only meant to be work-temporary.
Christian Heller [Tue, 21 Jan 2014 04:25:33 +0000 (05:25 +0100)]
Removed test for writing non-bashisms. Was only meant to be work-temporary.

10 years agoMAJOR re-write. Split plomrogue into a server and a client. Re-wrote large parts
Christian Heller [Tue, 21 Jan 2014 04:15:19 +0000 (05:15 +0100)]
MAJOR re-write. Split plomrogue into a server and a client. Re-wrote large parts
of everything to accomodate this strong architectural change. On the way,
dropped old savefiles; they are now completely replaced by record files, that
are re-played up to their last point when the game starts anew. Also re-factored
large parts of the code and corrected some minor errors.

10 years agoFixed bug that led to endless loop in nearest_enemy_dir().
Christian Heller [Sat, 14 Dec 2013 05:16:50 +0000 (06:16 +0100)]
Fixed bug that led to endless loop in nearest_enemy_dir().

10 years agoReplaced fgets() with try_fgets() in keybindings library.
Christian Heller [Sun, 1 Dec 2013 04:12:31 +0000 (05:12 +0100)]
Replaced fgets() with try_fgets() in keybindings library.

10 years agoReplaced fgets() with try_fgets() in command_db library.
Christian Heller [Sun, 1 Dec 2013 04:04:54 +0000 (05:04 +0100)]
Replaced fgets() with try_fgets() in command_db library.

10 years agoMinor code-stylistic improvements in control library.
Christian Heller [Sun, 1 Dec 2013 03:58:11 +0000 (04:58 +0100)]
Minor code-stylistic improvements in control library.

10 years agoSome refactoring in map library.
Christian Heller [Sun, 1 Dec 2013 03:33:40 +0000 (04:33 +0100)]
Some refactoring in map library.

10 years agoSome refactoring in map_object_actions library.
Christian Heller [Sun, 1 Dec 2013 03:22:27 +0000 (04:22 +0100)]
Some refactoring in map_object_actions library.

10 years agoSmall refactoring of read_map_objects().
Christian Heller [Sun, 1 Dec 2013 02:42:29 +0000 (03:42 +0100)]
Small refactoring of read_map_objects().

10 years agoChanged way world.map_obj_count is transmitted; also re-factoring of map_objects...
Christian Heller [Sun, 1 Dec 2013 02:29:27 +0000 (03:29 +0100)]
Changed way world.map_obj_count is transmitted; also re-factoring of map_objects library.

11 years agoRefactorisation and comment improvements in misc library.
Christian Heller [Wed, 27 Nov 2013 03:07:02 +0000 (04:07 +0100)]
Refactorisation and comment improvements in misc library.

11 years agoSimplified textfile_sizes() and replaced all get_linemax() calls with it.
Christian Heller [Tue, 26 Nov 2013 16:20:13 +0000 (17:20 +0100)]
Simplified textfile_sizes() and replaced all get_linemax() calls with it.

11 years agoDifferentiated try_fgetc() (fgetc() wrapper proper) and try_fgetc_noeof() (catches...
Christian Heller [Tue, 26 Nov 2013 04:35:38 +0000 (05:35 +0100)]
Differentiated try_fgetc() (fgetc() wrapper proper) and try_fgetc_noeof() (catches EOF as error).

11 years agoReplaced entire read/write_uint*_bigendian() family in readwrite library with simpler...
Christian Heller [Tue, 26 Nov 2013 03:55:17 +0000 (04:55 +0100)]
Replaced entire read/write_uint*_bigendian() family in readwrite library with simpler try_fgetc()/try_fputc() and bigendian-sorted calls to it.

11 years agoRemoved unused code in readwrite library.
Christian Heller [Tue, 26 Nov 2013 02:30:55 +0000 (03:30 +0100)]
Removed unused code in readwrite library.

11 years agoUpdated README.
Christian Heller [Tue, 26 Nov 2013 02:11:42 +0000 (03:11 +0100)]
Updated README.

11 years agoReplaced random movement by enemies with a pretty dumb AI of "move in direction of...
Christian Heller [Tue, 26 Nov 2013 01:57:10 +0000 (02:57 +0100)]
Replaced random movement by enemies with a pretty dumb AI of "move in direction of nearest enemy".

11 years agoSome code-stylistic improvements to rexit library; also moved exit_trouble() into it.
Christian Heller [Mon, 25 Nov 2013 03:05:33 +0000 (04:05 +0100)]
Some code-stylistic improvements to rexit library; also moved exit_trouble() into it.

11 years agoSome further refactorisation and comments improvements in wincontrol library.
Christian Heller [Mon, 25 Nov 2013 02:26:54 +0000 (03:26 +0100)]
Some further refactorisation and comments improvements in wincontrol library.

11 years agoSmall improvements in save_win_config() code and comments.
Christian Heller [Mon, 25 Nov 2013 01:56:39 +0000 (02:56 +0100)]
Small improvements in save_win_config() code and comments.

11 years agoEnsure not more WinConfs are read or saved than world.winconf_ids can stomach.
Christian Heller [Mon, 25 Nov 2013 01:40:22 +0000 (02:40 +0100)]
Ensure not more WinConfs are read or saved than world.winconf_ids can stomach.

11 years agoSlightly improved code style and comments in sorted_wintoggle_and_activate().
Christian Heller [Mon, 25 Nov 2013 01:08:17 +0000 (02:08 +0100)]
Slightly improved code style and comments in sorted_wintoggle_and_activate().

11 years agosorted_winttogle_and_activate() now sufficiently tolerates toggle_order_and_activate...
Christian Heller [Mon, 25 Nov 2013 01:03:43 +0000 (02:03 +0100)]
sorted_winttogle_and_activate() now sufficiently tolerates toggle_order_and_activate files that go beyond there intended length.

11 years agoSome refactoring and commenting in wincontrol library.
Christian Heller [Mon, 25 Nov 2013 00:42:11 +0000 (01:42 +0100)]
Some refactoring and commenting in wincontrol library.

11 years agoTransformed trouble_msg() into exit_err() wrapper exit_trouble(), eliminating some...
Christian Heller [Sun, 24 Nov 2013 23:48:44 +0000 (00:48 +0100)]
Transformed trouble_msg() into exit_err() wrapper exit_trouble(), eliminating some code and memory management overhead.

11 years agoMinor code-stylistic and comment improvements mostly in wincontrol library.
Christian Heller [Sun, 24 Nov 2013 23:21:09 +0000 (00:21 +0100)]
Minor code-stylistic and comment improvements mostly in wincontrol library.

11 years agoImprovement of wincontrol.h descriptions and some minor connected corrections elsewhere.
Christian Heller [Sat, 23 Nov 2013 14:20:50 +0000 (15:20 +0100)]
Improvement of wincontrol.h descriptions and some minor connected corrections elsewhere.

11 years agoSlightly shortened and simplified windows library code.
Christian Heller [Sat, 23 Nov 2013 04:34:29 +0000 (05:34 +0100)]
Slightly shortened and simplified windows library code.

11 years agoFurther improved / shortened comments in windows.h.
Christian Heller [Sat, 23 Nov 2013 02:47:16 +0000 (03:47 +0100)]
Further improved / shortened comments in windows.h.

11 years agoImprovd comments in windows.h.
Christian Heller [Fri, 22 Nov 2013 04:51:11 +0000 (05:51 +0100)]
Improvd comments in windows.h.

11 years agoMinor code-stylistic revisions to yx_uint16 library.
Christian Heller [Fri, 22 Nov 2013 04:02:06 +0000 (05:02 +0100)]
Minor code-stylistic revisions to yx_uint16 library.

11 years agoImproved (and simplified) pseudo-randomness.
Christian Heller [Wed, 20 Nov 2013 05:04:10 +0000 (06:04 +0100)]
Improved (and simplified) pseudo-randomness.

11 years agoFixed map object action bug deriving from wrong order of reading/writing MapObject...
Christian Heller [Wed, 20 Nov 2013 04:14:16 +0000 (05:14 +0100)]
Fixed map object action bug deriving from wrong order of reading/writing MapObject.command/.arg/.progress.

11 years agoDon't hardcode map object action id for "move" in turn_over()!
Christian Heller [Wed, 20 Nov 2013 04:10:42 +0000 (05:10 +0100)]
Don't hardcode map object action id for "move" in turn_over()!

11 years agoSome shortening / re-styling of place_win()'s code and comments.
Christian Heller [Tue, 19 Nov 2013 02:41:05 +0000 (03:41 +0100)]
Some shortening / re-styling of place_win()'s code and comments.

11 years agoFixed window positioning bug, cleared up code and comments in place_win().
Christian Heller [Tue, 19 Nov 2013 02:25:26 +0000 (03:25 +0100)]
Fixed window positioning bug, cleared up code and comments in place_win().

11 years agoEach map object action now take different numbers of turns to complete. Re-wrote...
Christian Heller [Mon, 18 Nov 2013 03:22:17 +0000 (04:22 +0100)]
Each map object action now take different numbers of turns to complete. Re-wrote large parts of map object actions system, player control and turn_over() for this.

11 years agoDead shoggoths corpse to "magic meat" that can now be "used" i.e. consumed for hitpoi...
Christian Heller [Sat, 9 Nov 2013 04:48:57 +0000 (05:48 +0100)]
Dead shoggoths corpse to "magic meat" that can now be "used" i.e. consumed for hitpoint gaining.

11 years agoRemoved if-redundancy in get_drawfunc_by_char().
Christian Heller [Sat, 9 Nov 2013 03:00:09 +0000 (04:00 +0100)]
Removed if-redundancy in get_drawfunc_by_char().

11 years agoMore consistent code styling whitespace rules.
Christian Heller [Sat, 9 Nov 2013 02:14:05 +0000 (03:14 +0100)]
More consistent code styling whitespace rules.

11 years agoReduced code complexity by stronger integrating windows library.
Christian Heller [Sat, 9 Nov 2013 02:08:05 +0000 (03:08 +0100)]
Reduced code complexity by stronger integrating windows library.

11 years agoStrongly simplified / standardized user action interfaces.
Christian Heller [Wed, 6 Nov 2013 05:20:24 +0000 (06:20 +0100)]
Strongly simplified / standardized user action interfaces.

11 years agoRemoved redundancy between record_control() and player_control() by re-writing their...
Christian Heller [Tue, 5 Nov 2013 02:47:24 +0000 (03:47 +0100)]
Removed redundancy between record_control() and player_control() by re-writing their common structures.

11 years agoMade get_name_to_keycode() code a little less ugly/redundant by outsourcing to try_ke...
Christian Heller [Tue, 5 Nov 2013 02:01:16 +0000 (03:01 +0100)]
Made get_name_to_keycode() code a little less ugly/redundant by outsourcing to try_keycode().

11 years agoMade single World struct a global variable, fitted a lot of code to this change,...
Christian Heller [Sat, 2 Nov 2013 00:43:37 +0000 (01:43 +0100)]
Made single World struct a global variable, fitted a lot of code to this change, on the way corrected some minor stylistic issues.

11 years agoNot very elegant solution to bug of appropriate inventory selection not being saved...
Christian Heller [Tue, 29 Oct 2013 02:48:39 +0000 (03:48 +0100)]
Not very elegant solution to bug of appropriate inventory selection not being saved in record file for dropping actions.

11 years agoMinor comment fixing.
Christian Heller [Mon, 28 Oct 2013 05:17:40 +0000 (06:17 +0100)]
Minor comment fixing.

11 years agoDon't use ncurses windows besides the virtual screen pad. Eliminated some ncurses...
Christian Heller [Mon, 28 Oct 2013 05:13:26 +0000 (06:13 +0100)]
Don't use ncurses windows besides the virtual screen pad. Eliminated some ncurses dependencies and Frame struct.

11 years agoMore precise description of what draw_text_from_bottom() does.
Christian Heller [Mon, 21 Oct 2013 02:08:34 +0000 (04:08 +0200)]
More precise description of what draw_text_from_bottom() does.

11 years agoOverhauled large parts of window system to universalize scroll hints.
Christian Heller [Mon, 21 Oct 2013 01:57:15 +0000 (03:57 +0200)]
Overhauled large parts of window system to universalize scroll hints.

11 years agoCorrected mix up of width and hight in window geometry config view.
Christian Heller [Fri, 11 Oct 2013 02:26:53 +0000 (04:26 +0200)]
Corrected mix up of width and hight in window geometry config view.