home · contact · privacy
plomrogue
10 years agoUnify Map struct common to server and client in src/common/map.h.
Christian Heller [Wed, 14 May 2014 02:49:12 +0000 (04:49 +0200)]
Unify Map struct common to server and client in src/common/map.h.

10 years agoFix non-initializations that are detected as errors on gcc -O3.
Christian Heller [Wed, 14 May 2014 02:38:10 +0000 (04:38 +0200)]
Fix non-initializations that are detected as errors on gcc -O3.

10 years agoClient: Use 'D' for item drop, standardize across interface configs.
Christian Heller [Wed, 14 May 2014 02:16:32 +0000 (04:16 +0200)]
Client: Use 'D' for item drop, standardize across interface configs.

10 years agoServer: Force FOV on every actor, but update it on movement only.
Christian Heller [Wed, 14 May 2014 02:09:35 +0000 (04:09 +0200)]
Server: Force FOV on every actor, but update it on movement only.

10 years agoServer: Remove uncommented lines.
Christian Heller [Wed, 14 May 2014 01:19:54 +0000 (03:19 +0200)]
Server: Remove uncommented lines.

10 years agoServer: Add ENEMY_FOV option (default: off) to force FOV on enemies.
Christian Heller [Tue, 13 May 2014 04:01:02 +0000 (06:01 +0200)]
Server: Add ENEMY_FOV option (default: off) to force FOV on enemies.

10 years agoAdd bug to fix to TODO.
Christian Heller [Tue, 13 May 2014 01:50:41 +0000 (03:50 +0200)]
Add bug to fix to TODO.

10 years agoAdd (crude) field of view to player's view of map.
Christian Heller [Tue, 13 May 2014 01:49:03 +0000 (03:49 +0200)]
Add (crude) field of view to player's view of map.

10 years agoMake try_fgetc() prepend clearerr() for fgetc() versions that need it.
Christian Heller [Fri, 18 Apr 2014 12:43:20 +0000 (14:43 +0200)]
Make try_fgetc() prepend clearerr() for fgetc() versions that need it.

10 years agoClient: Fix bug that made horizontal scrolling jump back on large maps.
Christian Heller [Thu, 17 Apr 2014 00:23:51 +0000 (02:23 +0200)]
Client: Fix bug that made horizontal scrolling jump back on large maps.

10 years agoServer: On map generation, put lots of 'X' cells for trees on island.
Christian Heller [Thu, 17 Apr 2014 00:22:51 +0000 (02:22 +0200)]
Server: On map generation, put lots of 'X' cells for trees on island.

10 years agoClient: Change default window config to focus on map window on start.
Christian Heller [Wed, 16 Apr 2014 19:30:26 +0000 (21:30 +0200)]
Client: Change default window config to focus on map window on start.

10 years agoClient: Change default window config to widen map window.
Christian Heller [Wed, 16 Apr 2014 19:28:38 +0000 (21:28 +0200)]
Client: Change default window config to widen map window.

10 years agoFix README typo.
Christian Heller [Wed, 16 Apr 2014 15:11:34 +0000 (17:11 +0200)]
Fix README typo.

10 years agoServer: Un-do debugging change for last commit: reset player hitpoints.
Christian Heller [Wed, 16 Apr 2014 14:10:34 +0000 (16:10 +0200)]
Server: Un-do debugging change for last commit: reset player hitpoints.

10 years agoClient: Fix crashes happening on navigation in too large inventory (string).
Christian Heller [Wed, 16 Apr 2014 14:08:46 +0000 (16:08 +0200)]
Client: Fix crashes happening on navigation in too large inventory (string).

10 years agoMake grids hexagonal, remove all diagonal movement penalty hassle.
Christian Heller [Wed, 16 Apr 2014 14:00:11 +0000 (16:00 +0200)]
Make grids hexagonal, remove all diagonal movement penalty hassle.

10 years agoClient: Handle SIGWINCH on OS X systems.
Christian Heller [Tue, 15 Apr 2014 01:53:12 +0000 (03:53 +0200)]
Client: Handle SIGWINCH on OS X systems.

10 years agoAdd task to TODO.
Christian Heller [Mon, 14 Apr 2014 12:30:07 +0000 (14:30 +0200)]
Add task to TODO.

10 years agoServer: Use nanosleep() instead of POSIX-obsolete usleep() in io.c.
Christian Heller [Mon, 14 Apr 2014 12:24:53 +0000 (14:24 +0200)]
Server: Use nanosleep() instead of POSIX-obsolete usleep() in io.c.

10 years agoClient: Fixed use of unitialized variable in draw_wins.c.
Christian Heller [Mon, 14 Apr 2014 09:57:30 +0000 (11:57 +0200)]
Client: Fixed use of unitialized variable in draw_wins.c.

10 years agoServer: Check against setting map object id of 0 in config file reading.
Christian Heller [Mon, 14 Apr 2014 04:09:12 +0000 (06:09 +0200)]
Server: Check against setting map object id of 0 in config file reading.

10 years agoServer: Explain in map_object_actions.h why MapObjAct.id must not be 0.
Christian Heller [Mon, 14 Apr 2014 03:56:23 +0000 (05:56 +0200)]
Server: Explain in map_object_actions.h why MapObjAct.id must not be 0.

10 years agoServer: Make config file define to which map object type player belongs.
Christian Heller [Mon, 14 Apr 2014 03:38:11 +0000 (05:38 +0200)]
Server: Make config file define to which map object type player belongs.

10 years agoClient: Minor code restyling in place_win().
Christian Heller [Sun, 13 Apr 2014 22:35:13 +0000 (00:35 +0200)]
Client: Minor code restyling in place_win().

10 years agoClient: Clear up place_win() code, improve its comments.
Christian Heller [Sun, 13 Apr 2014 21:36:51 +0000 (23:36 +0200)]
Client: Clear up place_win() code, improve its comments.

10 years agoAdd to TODO.
Christian Heller [Wed, 9 Apr 2014 04:11:58 +0000 (06:11 +0200)]
Add to TODO.

10 years agoServer: Make config file set number of objects' start appearances.
Christian Heller [Wed, 9 Apr 2014 04:06:51 +0000 (06:06 +0200)]
Server: Make config file set number of objects' start appearances.

10 years agoServer: Limit iterations for map generation and object start placement.
Christian Heller [Wed, 9 Apr 2014 03:53:40 +0000 (05:53 +0200)]
Server: Limit iterations for map generation and object start placement.

10 years agoServer: Make map geometry definable in config file.
Christian Heller [Wed, 9 Apr 2014 03:05:47 +0000 (05:05 +0200)]
Server: Make map geometry definable in config file.

10 years agoClient: Minor interface config file reading code refactoring.
Christian Heller [Tue, 8 Apr 2014 03:52:11 +0000 (05:52 +0200)]
Client: Minor interface config file reading code refactoring.

10 years agoCode style: Minor indentation correction.
Christian Heller [Tue, 8 Apr 2014 03:41:49 +0000 (05:41 +0200)]
Code style: Minor indentation correction.

10 years agoRefactor file parsing patterns.
Christian Heller [Tue, 8 Apr 2014 03:37:35 +0000 (05:37 +0200)]
Refactor file parsing patterns.

10 years agoMinor refactoring in file parsing.
Christian Heller [Sun, 6 Apr 2014 22:04:47 +0000 (00:04 +0200)]
Minor refactoring in file parsing.

10 years agoClient: Fit files in confclient/single_wins/ to new config file format.
Christian Heller [Sun, 6 Apr 2014 20:36:44 +0000 (22:36 +0200)]
Client: Fit files in confclient/single_wins/ to new config file format.

10 years agoClient: Fit interface_conf to new config file style. Also, refactorings.
Christian Heller [Sun, 6 Apr 2014 20:18:02 +0000 (22:18 +0200)]
Client: Fit interface_conf to new config file style. Also, refactorings.

10 years agoMinor refactorings in config file parse code to clear up code.
Christian Heller [Fri, 4 Apr 2014 01:30:04 +0000 (03:30 +0200)]
Minor refactorings in config file parse code to clear up code.

10 years agoClient: Apply new commands DB file format, fix wrong path to it.
Christian Heller [Thu, 3 Apr 2014 04:51:32 +0000 (06:51 +0200)]
Client: Apply new commands DB file format, fix wrong path to it.

10 years agoMake client's commandDB reading use new parsing / config file format.
Christian Heller [Thu, 3 Apr 2014 02:50:36 +0000 (04:50 +0200)]
Make client's commandDB reading use new parsing / config file format.

Those new parsing methods are outsourced from src/server/configfile.c
to src/common/parse_file.c. CommandDB file parsing now also checks
against doubly declared commands.

10 years agoServer: Minor code-stylistic changes in configfile library.
Christian Heller [Wed, 2 Apr 2014 20:17:07 +0000 (22:17 +0200)]
Server: Minor code-stylistic changes in configfile library.

10 years agoClient: Shorten strings whose width does not fit well into compact size.
Christian Heller [Mon, 31 Mar 2014 02:47:03 +0000 (04:47 +0200)]
Client: Shorten strings whose width does not fit well into compact size.

10 years agoFix textfile_width() line length check position.
Christian Heller [Mon, 31 Mar 2014 02:24:43 +0000 (04:24 +0200)]
Fix textfile_width() line length check position.

10 years agoMake textfile_width() check for too large lines.
Christian Heller [Mon, 31 Mar 2014 02:24:10 +0000 (04:24 +0200)]
Make textfile_width() check for too large lines.

10 years agoServer/io.c: more precise comment.
Christian Heller [Mon, 31 Mar 2014 02:16:32 +0000 (04:16 +0200)]
Server/io.c: more precise comment.

10 years agoServer: Poll server/in only every 0.33 seconds to reduce CPU usage.
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.

10 years agoMake README info on server config files more precise
Christian Heller [Sun, 30 Mar 2014 02:47:00 +0000 (04:47 +0200)]
Make README info on server config files more precise

10 years agoMake server config files more readable, their parsing more lenient.
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.

10 years agoIn TODO, fix wrong term.
Christian Heller [Wed, 26 Mar 2014 20:56:52 +0000 (21:56 +0100)]
In TODO, fix wrong term.

10 years agoServer: Eliminate major stack space waste offender in ai.c.
Christian Heller [Wed, 26 Mar 2014 20:55:05 +0000 (21:55 +0100)]
Server: Eliminate major stack space waste offender in ai.c.

10 years agoAdd to TODO.
Christian Heller [Wed, 26 Mar 2014 20:49:53 +0000 (21:49 +0100)]
Add to TODO.

10 years agoEnforce C11 via Makefile, explicate POSIX dependencies in source files.
Christian Heller [Wed, 26 Mar 2014 20:10:38 +0000 (21:10 +0100)]
Enforce C11 via Makefile, explicate POSIX dependencies in source files.

10 years agoServer: Change read_config_file() parameter order (stylistic reasons).
Christian Heller [Wed, 26 Mar 2014 05:28:58 +0000 (06:28 +0100)]
Server: Change read_config_file() parameter order (stylistic reasons).

10 years agoClient: Fix outdated comment.
Christian Heller [Wed, 26 Mar 2014 04:41:03 +0000 (05:41 +0100)]
Client: Fix outdated comment.

10 years agoGot rid of misc.h. Split off remains into array_append.h and control.h.
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.

10 years agoClient: Split off parts of misc.h into interface_conf.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.

10 years agoClient: Split wincontrol.h off windows.h.
Christian Heller [Wed, 26 Mar 2014 03:12:39 +0000 (04:12 +0100)]
Client: Split wincontrol.h off windows.h.

10 years agoServer: Move common config file reading stuff into read_config_file().
Christian Heller [Wed, 26 Mar 2014 02:12:52 +0000 (03:12 +0100)]
Server: Move common config file reading stuff into read_config_file().

10 years agoFix comment text.
Christian Heller [Tue, 25 Mar 2014 23:46:05 +0000 (00:46 +0100)]
Fix comment text.

10 years agoFix typo in Makefile comment.
Christian Heller [Tue, 25 Mar 2014 17:18:02 +0000 (18:18 +0100)]
Fix typo in Makefile comment.

10 years agoFix reference to wrongly named object definitions file in README.
Christian Heller [Tue, 25 Mar 2014 16:47:13 +0000 (17:47 +0100)]
Fix reference to wrongly named object definitions file in README.

10 years agoMove tests for value size < UINT8_MAX into err_try_fgets() (flag: "8").
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").

10 years agoconfserver/defs -> confserver/map_objects; fixed debug values in there.
Christian Heller [Tue, 25 Mar 2014 15:28:43 +0000 (16:28 +0100)]
confserver/defs -> confserver/map_objects; fixed debug values in there.

10 years agoServer: Make objects definable as "consumable" to gain n hitpoints.
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.

10 years agoIn client: Fix FIXME in get_keyname_to_keycode().
Christian Heller [Tue, 25 Mar 2014 15:00:18 +0000 (16:00 +0100)]
In client: Fix FIXME in get_keyname_to_keycode().

10 years agoAdded todo point.
Christian Heller [Tue, 25 Mar 2014 14:35:04 +0000 (15:35 +0100)]
Added todo point.

10 years agoAdded -Wformat-security to gcc options, fixed point found by it.
Christian Heller [Mon, 24 Mar 2014 20:22:33 +0000 (21:22 +0100)]
Added -Wformat-security to gcc options, fixed point found by it.

10 years agoMinor improvement in comment and TODO.
Christian Heller [Tue, 18 Mar 2014 05:34:22 +0000 (06:34 +0100)]
Minor improvement in comment and TODO.

10 years agoClient: Fixed window resizing bug.
Christian Heller [Tue, 18 Mar 2014 05:24:51 +0000 (06:24 +0100)]
Client: Fixed window resizing bug.

10 years agoClient: Minor re-configuration of default window geometry.
Christian Heller [Tue, 18 Mar 2014 05:22:50 +0000 (06:22 +0100)]
Client: Minor re-configuration of default window geometry.

10 years agoClient: Got rid of special keybinding formatting in "wide" linebreaking.
Christian Heller [Tue, 18 Mar 2014 05:18:26 +0000 (06:18 +0100)]
Client: Got rid of special keybinding formatting in "wide" linebreaking.

10 years agoAdded task to TODO.
Christian Heller [Tue, 18 Mar 2014 05:07:20 +0000 (06:07 +0100)]
Added task to TODO.

10 years agoIn client, fixed bug hiding first entry in keybinding list drawings.
Christian Heller [Tue, 18 Mar 2014 04:55:38 +0000 (05:55 +0100)]
In client, fixed bug hiding first entry in keybinding list drawings.

10 years agoStartup script pipes everything to a log file now.
Christian Heller [Tue, 18 Mar 2014 04:47:11 +0000 (05:47 +0100)]
Startup script pipes everything to a log file now.

10 years agoIn the client, different modes of treating linebreaks are avaiable for
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.

10 years agoGot rid of useless "internal error code" part of error exit messages.
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.

10 years agoRe-factored server's main() into smaller routines in init.c.
Christian Heller [Mon, 17 Mar 2014 03:50:48 +0000 (04:50 +0100)]
Re-factored server's main() into smaller routines in init.c.

10 years agoRe-wrote large parts of the server client architecture. No more fifo.
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.

10 years agoMake get_drawfunc_by_char() return a proper function pointer.
Christian Heller [Mon, 10 Mar 2014 15:17:04 +0000 (16:17 +0100)]
Make get_drawfunc_by_char() return a proper function pointer.

10 years agoAvoid doing arithmetic on a void pointer.
Christian Heller [Mon, 10 Mar 2014 14:56:42 +0000 (15:56 +0100)]
Avoid doing arithmetic on a void pointer.

10 years agoRemoved redundant "return".
Christian Heller [Mon, 10 Mar 2014 14:25:47 +0000 (15:25 +0100)]
Removed redundant "return".

10 years agoAdded -Werror to compiler flags, fixed other warnings/errors triggered.
Christian Heller [Mon, 10 Mar 2014 14:03:34 +0000 (15:03 +0100)]
Added -Werror to compiler flags, fixed other warnings/errors triggered.

10 years agoRemoved unused parameter.
Christian Heller [Mon, 10 Mar 2014 13:52:10 +0000 (14:52 +0100)]
Removed unused parameter.

10 years agoAdded -Wextra to compiler flags, found out about redundant test.
Christian Heller [Mon, 10 Mar 2014 13:49:41 +0000 (14:49 +0100)]
Added -Wextra to compiler flags, found out about redundant test.

10 years agoIn client, keybinding databases now store keybindings as arrays instead
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.

10 years agoSome variable / struct member renaming for greater clarity.
Christian Heller [Mon, 10 Mar 2014 10:18:30 +0000 (11:18 +0100)]
Some variable / struct member renaming for greater clarity.

10 years agoAdded TODO point.
Christian Heller [Mon, 10 Mar 2014 07:34:40 +0000 (08:34 +0100)]
Added TODO point.

10 years agoAdded TODO point.
Christian Heller [Mon, 10 Mar 2014 07:33:53 +0000 (08:33 +0100)]
Added TODO point.

10 years agoRemoved mention of scoring from README.
Christian Heller [Mon, 10 Mar 2014 07:30:59 +0000 (08:30 +0100)]
Removed mention of scoring from README.

10 years agoRemoved finished task from TODO.
Christian Heller [Mon, 10 Mar 2014 07:29:54 +0000 (08:29 +0100)]
Removed finished task from TODO.

10 years agoRemoved scoring.
Christian Heller [Mon, 10 Mar 2014 07:29:23 +0000 (08:29 +0100)]
Removed scoring.

10 years agoPut points from a separately kept TODO file into the repository proper.
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.

10 years agoMinor improvements to README style with help of GNU diction.
Christian Heller [Fri, 7 Mar 2014 06:18:27 +0000 (07:18 +0100)]
Minor improvements to README style with help of GNU diction.

10 years agoProvides more predictable shell argument expansions. As erlehmann told
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!"

10 years agoFixed some more pitfalls that hurt working with game maps of maximum size.
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.

10 years agoEliminated some potential problems for alternative game map sizes.
Christian Heller [Wed, 5 Feb 2014 23:02:16 +0000 (00:02 +0100)]
Eliminated some potential problems for alternative game map sizes.

10 years agoAdded previously forgotten header file.
Christian Heller [Wed, 5 Feb 2014 16:42:16 +0000 (17:42 +0100)]
Added previously forgotten header file.

10 years agoRepaired buggy check for out file generation time in init shell script.
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.

10 years agoRemoved unused textfile_sizes() functionality, appropriately renamed it.
Christian Heller [Wed, 5 Feb 2014 15:23:01 +0000 (16:23 +0100)]
Removed unused textfile_sizes() functionality, appropriately renamed it.

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.