home · contact · privacy
plomrogue
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.

10 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.

10 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.

10 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).

10 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.

10 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.

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

10 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".

10 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.

10 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.

10 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.

10 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.

10 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().

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

10 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.

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

10 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.

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

10 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.

10 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()!

10 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.

10 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().

10 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.

10 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.

10 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().

10 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.

10 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.

10 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.

10 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.

10 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().

10 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.

10 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.

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

10 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.

10 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.

10 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.

10 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.

10 years agoAdded primitive inventory system. Any objects may now own/contain/carry other objects.
Christian Heller [Mon, 7 Oct 2013 00:08:28 +0000 (02:08 +0200)]
Added primitive inventory system. Any objects may now own/contain/carry other objects.

10 years agoChanged the way the end of the map object list is identified.
Christian Heller [Wed, 2 Oct 2013 09:24:10 +0000 (11:24 +0200)]
Changed the way the end of the map object list is identified.

10 years agoFixed README typo.
Christian Heller [Thu, 26 Sep 2013 03:13:06 +0000 (05:13 +0200)]
Fixed README typo.

10 years agoNew animate map objects are never placed on a square with other animated map objects...
Christian Heller [Thu, 26 Sep 2013 03:00:09 +0000 (05:00 +0200)]
New animate map objects are never placed on a square with other animated map objects; also fixed a bug that hindered compilation.

10 years agoThe player is now a map object like any other. All actor contacts now lead to violenc...
Christian Heller [Thu, 26 Sep 2013 02:39:21 +0000 (04:39 +0200)]
The player is now a map object like any other. All actor contacts now lead to violence, not just those between player and non-players.

10 years agoFixed referencing non-tracked map object definitions file.
Christian Heller [Wed, 25 Sep 2013 22:44:57 +0000 (00:44 +0200)]
Fixed referencing non-tracked map object definitions file.

10 years agoSimplified adding new objects to map.
Christian Heller [Wed, 25 Sep 2013 22:40:48 +0000 (00:40 +0200)]
Simplified adding new objects to map.

10 years agoCorrected line lengths.
Christian Heller [Mon, 23 Sep 2013 02:07:02 +0000 (04:07 +0200)]
Corrected line lengths.

10 years agoRe-wrote map object system to use same structs for items and monsters, and switched...
Christian Heller [Mon, 23 Sep 2013 01:55:49 +0000 (03:55 +0200)]
Re-wrote map object system to use same structs for items and monsters, and switched to plain-text savefile.

10 years agoMinor refactoring of meta_control().
Christian Heller [Thu, 19 Sep 2013 19:26:29 +0000 (21:26 +0200)]
Minor refactoring of meta_control().

10 years agoUnified (and heavily re-factored) (un-)loading/saving of keybindings and window confi...
Christian Heller [Thu, 19 Sep 2013 19:21:13 +0000 (21:21 +0200)]
Unified (and heavily re-factored) (un-)loading/saving of keybindings and window confiugrations. They were heavily entangled anyways.

10 years agoIndividual map objects are now identified by unique numbers stored in the savefiles...
Christian Heller [Thu, 19 Sep 2013 14:37:59 +0000 (16:37 +0200)]
Individual map objects are now identified by unique numbers stored in the savefiles, so they may in the future reference each other (instead of just volatile memory addresses).

10 years agoAdded appropriate inventory window config file.
Christian Heller [Tue, 17 Sep 2013 03:27:27 +0000 (05:27 +0200)]
Added appropriate inventory window config file.

10 years agoAdded dummy inventory window.
Christian Heller [Tue, 17 Sep 2013 03:26:21 +0000 (05:26 +0200)]
Added dummy inventory window.

10 years agoCenter map on player at game start.
Christian Heller [Tue, 17 Sep 2013 03:15:26 +0000 (05:15 +0200)]
Center map on player at game start.

10 years agoChanged default keybindings.
Christian Heller [Tue, 17 Sep 2013 02:51:02 +0000 (04:51 +0200)]
Changed default keybindings.

10 years agoAlso save active window selection in windows config.
Christian Heller [Tue, 17 Sep 2013 02:48:33 +0000 (04:48 +0200)]
Also save active window selection in windows config.

10 years agoRe-modelled draw_kb_view() on draw_titled_keybinding_list() model, lots of re-factori...
Christian Heller [Tue, 17 Sep 2013 02:23:48 +0000 (04:23 +0200)]
Re-modelled draw_kb_view() on draw_titled_keybinding_list() model, lots of re-factorisation among those two; also added "(none)" display for empty keybinding lists in keybinding configuration windows.

10 years agoNew window "Available keys" shows keybindings available on current selection.
Christian Heller [Tue, 17 Sep 2013 01:13:24 +0000 (03:13 +0200)]
New window "Available keys" shows keybindings available on current selection.

10 years agoStrongly overhauled keybinding managemment. Window-specific keybindings and a window...
Christian Heller [Sun, 15 Sep 2013 04:14:41 +0000 (06:14 +0200)]
Strongly overhauled keybinding managemment. Window-specific keybindings and a window keybinding configuration view are now available. Changed lots of stuff peripheral to this issue here and there, too.

10 years agoMade keybindings array into linked list; on the way rewrote / improved great parts...
Christian Heller [Fri, 13 Sep 2013 14:36:32 +0000 (16:36 +0200)]
Made keybindings array into linked list; on the way rewrote / improved great parts of keybindings library and some directly or indirectly connected code.

10 years agoAdded anti-hardcoding todo.
Christian Heller [Sun, 8 Sep 2013 14:32:43 +0000 (16:32 +0200)]
Added anti-hardcoding todo.

10 years agoFixed memory handling bug.
Christian Heller [Sun, 8 Sep 2013 14:15:56 +0000 (16:15 +0200)]
Fixed memory handling bug.

10 years agoCorrected comment spellings and line lengths in code.
Christian Heller [Sun, 8 Sep 2013 14:03:31 +0000 (16:03 +0200)]
Corrected comment spellings and line lengths in code.

10 years agoAll members of structs Win and WinMeta are now officially visible externally, removed...
Christian Heller [Sun, 8 Sep 2013 14:01:31 +0000 (16:01 +0200)]
All members of structs Win and WinMeta are now officially visible externally, removed "_" prefixes.

10 years agoSilently ignore characters in config/windows/toggle_order to which no window exists.
Christian Heller [Sun, 8 Sep 2013 13:18:07 +0000 (15:18 +0200)]
Silently ignore characters in config/windows/toggle_order to which no window exists.

10 years agoImproved error message precision in init_winconf_from_file().
Christian Heller [Sun, 8 Sep 2013 13:10:29 +0000 (15:10 +0200)]
Improved error message precision in init_winconf_from_file().

10 years agoRepaired erroneous previous commit and added check for validity of draw function...
Christian Heller [Sun, 8 Sep 2013 13:03:50 +0000 (15:03 +0200)]
Repaired erroneous previous commit and added check for validity of draw function identifier read from win config file.

10 years agoWindows are no longer hardcoded. Winconf files now contain a draw function identifier.
Christian Heller [Sun, 8 Sep 2013 12:49:56 +0000 (14:49 +0200)]
Windows are no longer hardcoded. Winconf files now contain a draw function identifier.

10 years agoRemoved unneeded function; also some minor comment improvmenets.
Christian Heller [Sun, 8 Sep 2013 10:27:35 +0000 (12:27 +0200)]
Removed unneeded function; also some minor comment improvmenets.

10 years agoSimplified window configuration view.
Christian Heller [Sun, 8 Sep 2013 10:15:11 +0000 (12:15 +0200)]
Simplified window configuration view.

10 years agoHeavy refactoring of all file I/O and some memory handling; also repaired some incons...
Christian Heller [Thu, 5 Sep 2013 04:08:48 +0000 (06:08 +0200)]
Heavy refactoring of all file I/O and some memory handling; also repaired some inconsistencies via the resulting standardizations.

10 years agoMoved textfile_sizes() to readwrite library.
Christian Heller [Wed, 4 Sep 2013 01:38:13 +0000 (03:38 +0200)]
Moved textfile_sizes() to readwrite library.

10 years agoImproved and defined more precisely textfile_sizes().
Christian Heller [Wed, 4 Sep 2013 01:25:34 +0000 (03:25 +0200)]
Improved and defined more precisely textfile_sizes().

10 years agoRemoved some superfluous calloc()/malloc() calls.
Christian Heller [Wed, 4 Sep 2013 00:59:57 +0000 (02:59 +0200)]
Removed some superfluous calloc()/malloc() calls.

10 years agoMostly cosmetic changes to various file reading/writing functions for greater readibi...
Christian Heller [Wed, 4 Sep 2013 00:44:39 +0000 (02:44 +0200)]
Mostly cosmetic changes to various file reading/writing functions for greater readibility.

10 years agoCoupled create_winconfs() and init_winconfs() that were only called as a couple anyhow.
Christian Heller [Tue, 3 Sep 2013 14:35:46 +0000 (16:35 +0200)]
Coupled create_winconfs() and init_winconfs() that were only called as a couple anyhow.

10 years agoCorrected off-by-one error in windows.c:refit_pad() that lead to failure of subpad...
Christian Heller [Tue, 3 Sep 2013 14:29:19 +0000 (16:29 +0200)]
Corrected off-by-one error in windows.c:refit_pad() that lead to failure of subpad memory allocation.

10 years agoWindow configuration can now be saved; and edited in a special window config view...
Christian Heller [Mon, 2 Sep 2013 04:01:41 +0000 (06:01 +0200)]
Window configuration can now be saved; and edited in a special window config view available on each window. Also simplified how init_win() interprets size parameters.

10 years agoHeavily re-structured initialization of windows and how individual windows are identi...
Christian Heller [Sun, 1 Sep 2013 02:05:13 +0000 (04:05 +0200)]
Heavily re-structured initialization of windows and how individual windows are identified to facilitate future plans for editing window configurations.

10 years agoFixed bug that freed non-existing map objects, triggered segfaults.
Christian Heller [Sat, 31 Aug 2013 13:46:12 +0000 (15:46 +0200)]
Fixed bug that freed non-existing map objects, triggered segfaults.

10 years agoFixed bug that reset turn number to 1 on each savefile load.
Christian Heller [Sat, 31 Aug 2013 13:42:22 +0000 (15:42 +0200)]
Fixed bug that reset turn number to 1 on each savefile load.

10 years agoFixed off-by-one error encountered while changing default key for 'reload_wins' command.
Christian Heller [Sat, 31 Aug 2013 03:34:46 +0000 (05:34 +0200)]
Fixed off-by-one error encountered while changing default key for 'reload_wins' command.

10 years agoNew command: type Z to reload default window configuration from window config files.
Christian Heller [Sat, 31 Aug 2013 03:24:32 +0000 (05:24 +0200)]
New command: type Z to reload default window configuration from window config files.

10 years agoImproved error handling, more error catching, error messages.
Christian Heller [Sat, 31 Aug 2013 02:30:41 +0000 (04:30 +0200)]
Improved error handling, more error catching, error messages.

10 years agoMoved freeing of winmeta into windows library.
Christian Heller [Sat, 31 Aug 2013 01:53:28 +0000 (03:53 +0200)]
Moved freeing of winmeta into windows library.

10 years agoImproved windows cleaning up: free win_meta, ncurses windows/pads.
Christian Heller [Sat, 31 Aug 2013 01:34:13 +0000 (03:34 +0200)]
Improved windows cleaning up: free win_meta, ncurses windows/pads.

10 years agoWhile adding cleaning up / freeing of map objects, fixed bug that initialized map...
Christian Heller [Sat, 31 Aug 2013 00:35:23 +0000 (02:35 +0200)]
While adding cleaning up / freeing of map objects, fixed bug that initialized map objects twice if game was started in first round, but savefile already existed.

10 years agoRemove debugging code that prohibited the game from starting.
Christian Heller [Fri, 30 Aug 2013 23:48:45 +0000 (01:48 +0200)]
Remove debugging code that prohibited the game from starting.

10 years agoAt clean-up, free memory of map object definitions, too.
Christian Heller [Fri, 30 Aug 2013 23:48:01 +0000 (01:48 +0200)]
At clean-up, free memory of map object definitions, too.