home · contact · privacy
plomrogue
9 years agoFix some inconsistencies in files README and SERVER_COMMANDS.
Christian Heller [Sun, 3 Aug 2014 02:33:16 +0000 (04:33 +0200)]
Fix some inconsistencies in files README and SERVER_COMMANDS.

9 years agoClient: Fix memory leak.
Christian Heller [Sun, 3 Aug 2014 02:20:52 +0000 (04:20 +0200)]
Client: Fix memory leak.

9 years agoUpdate README.
Christian Heller [Sun, 3 Aug 2014 02:07:31 +0000 (04:07 +0200)]
Update README.

9 years agoUpdate comment info on macros needed for snprintf().
Christian Heller [Sun, 3 Aug 2014 01:58:50 +0000 (03:58 +0200)]
Update comment info on macros needed for snprintf().

9 years agoServer: Only write record and save file if 15 seconds have passed.
Christian Heller [Sun, 3 Aug 2014 01:56:09 +0000 (03:56 +0200)]
Server: Only write record and save file if 15 seconds have passed.

9 years agoServer: Fix minor dependency issue.
Christian Heller [Sat, 2 Aug 2014 19:54:49 +0000 (21:54 +0200)]
Server: Fix minor dependency issue.

9 years agoAdd auto-mapping / map memory.
Christian Heller [Sat, 2 Aug 2014 03:20:05 +0000 (05:20 +0200)]
Add auto-mapping / map memory.

9 years agoServer: Reduce malloc() calls in FOV generation.
Christian Heller [Fri, 1 Aug 2014 00:34:33 +0000 (02:34 +0200)]
Server: Reduce malloc() calls in FOV generation.

9 years agoServer: Minor optimization of pathfinding algorithm.
Christian Heller [Fri, 1 Aug 2014 00:16:15 +0000 (02:16 +0200)]
Server: Minor optimization of pathfinding algorithm.

9 years agoServer: Refactor writing of field of view to Thing struct.
Christian Heller [Wed, 30 Jul 2014 04:38:31 +0000 (06:38 +0200)]
Server: Refactor writing of field of view to Thing struct.

9 years agoServer: Slightly simplify command parsing.
Christian Heller [Wed, 30 Jul 2014 03:27:46 +0000 (05:27 +0200)]
Server: Slightly simplify command parsing.

9 years agoServer: Remove some weird debugging code leftovers.
Christian Heller [Wed, 30 Jul 2014 02:26:00 +0000 (04:26 +0200)]
Server: Remove some weird debugging code leftovers.

9 years agoServer: Remove superfluous empty line in code.
Christian Heller [Tue, 29 Jul 2014 04:16:01 +0000 (06:16 +0200)]
Server: Remove superfluous empty line in code.

9 years agoServer: Make actors enemy-pathfinding travel around actors of own type.
Christian Heller [Tue, 29 Jul 2014 04:12:57 +0000 (06:12 +0200)]
Server: Make actors enemy-pathfinding travel around actors of own type.

9 years agoFixed typo in SERVER_COMMANDS.
Christian Heller [Thu, 24 Jul 2014 04:25:29 +0000 (06:25 +0200)]
Fixed typo in SERVER_COMMANDS.

9 years agoIn SERVER_COMMANDS file, fix description of TA_NAME command.
Christian Heller [Thu, 24 Jul 2014 04:13:14 +0000 (06:13 +0200)]
In SERVER_COMMANDS file, fix description of TA_NAME command.

9 years agoFix wrong language in SERVER_COMMANDS file.
Christian Heller [Thu, 24 Jul 2014 04:01:46 +0000 (06:01 +0200)]
Fix wrong language in SERVER_COMMANDS file.

9 years agoRemove tasks from TODO considered of no need.
Christian Heller [Thu, 24 Jul 2014 03:52:23 +0000 (05:52 +0200)]
Remove tasks from TODO considered of no need.

9 years agoAdd documentation on server commands.
Christian Heller [Thu, 24 Jul 2014 03:51:21 +0000 (05:51 +0200)]
Add documentation on server commands.

9 years agoServer: Fix buggy handling of ID sizes in TT_ID/TA_ID/T_ID commands.
Christian Heller [Thu, 24 Jul 2014 02:35:46 +0000 (04:35 +0200)]
Server: Fix buggy handling of ID sizes in TT_ID/TA_ID/T_ID commands.

9 years agoServer: Rename thing, thing type and thing action selection commands.
Christian Heller [Thu, 24 Jul 2014 02:33:06 +0000 (04:33 +0200)]
Server: Rename thing, thing type and thing action selection commands.

9 years agoServer: Fix buggy initialization of new thing types.
Christian Heller [Thu, 24 Jul 2014 01:16:35 +0000 (03:16 +0200)]
Server: Fix buggy initialization of new thing types.

9 years agoServer: Fix buggy evaluation of THING_ACTION id argument.
Christian Heller [Thu, 24 Jul 2014 00:39:13 +0000 (02:39 +0200)]
Server: Fix buggy evaluation of THING_ACTION id argument.

9 years agoServer: Ensure THING_ACTION command fails on argument 0.
Christian Heller [Wed, 23 Jul 2014 05:34:22 +0000 (07:34 +0200)]
Server: Ensure THING_ACTION command fails on argument 0.

9 years agoServer: Always delete worldstate file when world is set inactive.
Christian Heller [Wed, 23 Jul 2014 05:10:44 +0000 (07:10 +0200)]
Server: Always delete worldstate file when world is set inactive.

9 years agoServer: Remove barely used and not very useful yx_to_map_pos().
Christian Heller [Wed, 23 Jul 2014 03:25:46 +0000 (05:25 +0200)]
Server: Remove barely used and not very useful yx_to_map_pos().

9 years agoUse not f_name variable but __func__, standardize function name writing.
Christian Heller [Wed, 23 Jul 2014 03:16:12 +0000 (05:16 +0200)]
Use not f_name variable but __func__, standardize function name writing.

9 years agoAdd to TODO.
Christian Heller [Tue, 22 Jul 2014 05:09:26 +0000 (07:09 +0200)]
Add to TODO.

9 years agoReplace make build system with redo, serve erlehmann's redo as fallback.
Christian Heller [Tue, 22 Jul 2014 04:13:00 +0000 (06:13 +0200)]
Replace make build system with redo, serve erlehmann's redo as fallback.

9 years agoRemove from TODO consideration of 2D map arrays.
Christian Heller [Sun, 20 Jul 2014 03:26:50 +0000 (05:26 +0200)]
Remove from TODO consideration of 2D map arrays.

For details, see:
<http://www.plomlompom.de/PlomRogue/plomwiki.php?title=ArraysFor2DMaps1DOr2D>

9 years agoUpdate README.
Christian Heller [Mon, 14 Jul 2014 14:05:52 +0000 (16:05 +0200)]
Update README.

9 years agoMinor code beautifications.
Christian Heller [Sun, 13 Jul 2014 21:56:47 +0000 (23:56 +0200)]
Minor code beautifications.

9 years agoTODO list: Eliminate what's accomplished in previous commit.
Christian Heller [Sun, 13 Jul 2014 21:54:24 +0000 (23:54 +0200)]
TODO list: Eliminate what's accomplished in previous commit.

9 years agoServer: Read in former "config" data as normal server god commands.
Christian Heller [Sun, 13 Jul 2014 21:49:13 +0000 (23:49 +0200)]
Server: Read in former "config" data as normal server god commands.

Re-wrote and re-factored lots of stuff to facilitate this.

9 years agoAdd to TODO.
Christian Heller [Sat, 12 Jul 2014 03:49:20 +0000 (05:49 +0200)]
Add to TODO.

9 years agoUse direction names instead of numbers in player move communication.
Christian Heller [Fri, 11 Jul 2014 23:25:06 +0000 (01:25 +0200)]
Use direction names instead of numbers in player move communication.

9 years agoClient: Send no arguments for commands where the server expects none.
Christian Heller [Thu, 10 Jul 2014 04:38:14 +0000 (06:38 +0200)]
Client: Send no arguments for commands where the server expects none.

9 years agoAdd to TODO.
Christian Heller [Thu, 10 Jul 2014 04:25:55 +0000 (06:25 +0200)]
Add to TODO.

9 years agoServer: Expect (but don't force) some player commands as sans argument.
Christian Heller [Thu, 10 Jul 2014 04:23:19 +0000 (06:23 +0200)]
Server: Expect (but don't force) some player commands as sans argument.

9 years agoServer: Simplify rule for when to update worldstate file.
Christian Heller [Thu, 10 Jul 2014 01:28:18 +0000 (03:28 +0200)]
Server: Simplify rule for when to update worldstate file.

9 years agoHandle (non-existence) of log file smarter in start / wrapper scripts.
Christian Heller [Wed, 9 Jul 2014 23:50:49 +0000 (01:50 +0200)]
Handle (non-existence) of log file smarter in start / wrapper scripts.

9 years agoIn start script, give helpful advice to players not having compiled yet.
Christian Heller [Wed, 9 Jul 2014 23:45:23 +0000 (01:45 +0200)]
In start script, give helpful advice to players not having compiled yet.

9 years agoRemove alleged bug from TODO list, can't reproduce it.
Christian Heller [Wed, 9 Jul 2014 23:41:12 +0000 (01:41 +0200)]
Remove alleged bug from TODO list, can't reproduce it.

9 years agoAdd wrapper script over wrapper script so log messages get read on exit.
Christian Heller [Wed, 9 Jul 2014 23:31:17 +0000 (01:31 +0200)]
Add wrapper script over wrapper script so log messages get read on exit.

9 years agoAlarm about / don't start on finding temp file filesaving leftovers.
Christian Heller [Wed, 9 Jul 2014 23:04:31 +0000 (01:04 +0200)]
Alarm about / don't start on finding temp file filesaving leftovers.

9 years agoRefactor atomic writing to atomic_write_start() + atomic_write_finish().
Christian Heller [Wed, 9 Jul 2014 22:13:23 +0000 (00:13 +0200)]
Refactor atomic writing to atomic_write_start() + atomic_write_finish().

9 years agoServer: Remove memory leak in save_world().
Christian Heller [Wed, 9 Jul 2014 21:31:58 +0000 (23:31 +0200)]
Server: Remove memory leak in save_world().

9 years agoServer: Atomify the savefile writing.
Christian Heller [Wed, 9 Jul 2014 21:27:47 +0000 (23:27 +0200)]
Server: Atomify the savefile writing.

9 years agoServer: Merge duplicate string literals of "sprintf()".
Christian Heller [Wed, 9 Jul 2014 21:14:37 +0000 (23:14 +0200)]
Server: Merge duplicate string literals of "sprintf()".

9 years agoServer: Fix hardcoded_strings enum naming bug.
Christian Heller [Wed, 9 Jul 2014 21:00:53 +0000 (23:00 +0200)]
Server: Fix hardcoded_strings enum naming bug.

9 years agoServer: Start hardcoded_strings s's enum names with prefix "S_".
Christian Heller [Wed, 9 Jul 2014 20:59:04 +0000 (22:59 +0200)]
Server: Start hardcoded_strings s's enum names with prefix "S_".

9 years agoTest return values of _all_ *printf() calls.
Christian Heller [Wed, 9 Jul 2014 19:45:51 +0000 (21:45 +0200)]
Test return values of _all_ *printf() calls.

9 years agoReplace uses of variable-length arrays with try_malloc()/free().
Christian Heller [Wed, 9 Jul 2014 19:13:58 +0000 (21:13 +0200)]
Replace uses of variable-length arrays with try_malloc()/free().

9 years agoClient: Fix horizontal wobbliness of auto-centering on player.
Christian Heller [Tue, 8 Jul 2014 10:21:54 +0000 (12:21 +0200)]
Client: Fix horizontal wobbliness of auto-centering on player.

9 years agoServer: Limit size of backlog to 3000 chars plus newest message.
Christian Heller [Tue, 8 Jul 2014 03:38:26 +0000 (05:38 +0200)]
Server: Limit size of backlog to 3000 chars plus newest message.

9 years agoTODO list: remove task solved in previous commit.
Christian Heller [Tue, 8 Jul 2014 02:39:00 +0000 (04:39 +0200)]
TODO list: remove task solved in previous commit.

9 years agoClient: Add auto-center of map on player each new turn (can be toggled).
Christian Heller [Tue, 8 Jul 2014 02:38:02 +0000 (04:38 +0200)]
Client: Add auto-center of map on player each new turn (can be toggled).

9 years agoServer: Fix FOV generation bug (bad wrapping of shadow building spiral).
Christian Heller [Mon, 7 Jul 2014 22:32:18 +0000 (00:32 +0200)]
Server: Fix FOV generation bug (bad wrapping of shadow building spiral).

9 years agoServer: Fix bug of ai module's dijkstra_map() hanging on too large maps.
Christian Heller [Mon, 7 Jul 2014 15:06:36 +0000 (17:06 +0200)]
Server: Fix bug of ai module's dijkstra_map() hanging on too large maps.

9 years agoAdd to TODO.
Christian Heller [Mon, 7 Jul 2014 12:36:22 +0000 (14:36 +0200)]
Add to TODO.

9 years agoServer: Fix bugs in map and FOV generation on large maps.
Christian Heller [Mon, 7 Jul 2014 12:32:36 +0000 (14:32 +0200)]
Server: Fix bugs in map and FOV generation on large maps.

9 years agoAdd to TODO
Christian Heller [Mon, 7 Jul 2014 04:16:10 +0000 (06:16 +0200)]
Add to TODO

9 years agoAdd to TODO.
Christian Heller [Mon, 7 Jul 2014 04:08:08 +0000 (06:08 +0200)]
Add to TODO.

9 years agoServer: New field of view algorithm, much faster and more precise.
Christian Heller [Mon, 7 Jul 2014 03:38:30 +0000 (05:38 +0200)]
Server: New field of view algorithm, much faster and more precise.

9 years agoServer: Remove unused/obsolete world.enemy_fov.
Christian Heller [Fri, 4 Jul 2014 21:55:47 +0000 (23:55 +0200)]
Server: Remove unused/obsolete world.enemy_fov.

9 years agoAdd hint to TODO on how to improve field of view calculation.
Christian Heller [Fri, 4 Jul 2014 21:49:34 +0000 (23:49 +0200)]
Add hint to TODO on how to improve field of view calculation.

9 years agoServer: Fix bug of deleting record file upon replaying it.
Christian Heller [Fri, 4 Jul 2014 21:36:33 +0000 (23:36 +0200)]
Server: Fix bug of deleting record file upon replaying it.

9 years agoLoad last world state from save file, not from re-stepping record file.
Christian Heller [Fri, 4 Jul 2014 21:18:05 +0000 (23:18 +0200)]
Load last world state from save file, not from re-stepping record file.

Re-wrote large chunks of code dealing with server message parsing and
file parsing in general. Introduced "god commands" (manipulating the
game state beyond player actor control) that direct the re-generation of
the game state when loading the save file. Introduced a module
"hardcoded_strings" to store strings re-used and expected among various
modules.

9 years agoServer: Internally, rename "map object" stuff to "thing" stuff.
Christian Heller [Fri, 20 Jun 2014 01:23:27 +0000 (03:23 +0200)]
Server: Internally, rename "map object" stuff to "thing" stuff.

9 years agoAdded TODO.
Christian Heller [Fri, 20 Jun 2014 00:12:26 +0000 (02:12 +0200)]
Added TODO.

9 years agoMinor comment improvement.
Christian Heller [Fri, 13 Jun 2014 02:41:31 +0000 (04:41 +0200)]
Minor comment improvement.

9 years agoMaps are always squares, therefore define only their edge lengths.
Christian Heller [Wed, 14 May 2014 04:04:11 +0000 (06:04 +0200)]
Maps are always squares, therefore define only their edge lengths.

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

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

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

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

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

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

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

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