home · contact · privacy
plomrogue
9 years agoServer/py: Apply PEP8.
Christian Heller [Wed, 25 Feb 2015 10:23:53 +0000 (11:23 +0100)]
Server/py: Apply PEP8.

9 years agoServer/py: Add TA_NAME command.
Christian Heller [Wed, 25 Feb 2015 10:20:18 +0000 (11:20 +0100)]
Server/py: Add TA_NAME command.

9 years agoServer/py: Minor renamings.
Christian Heller [Wed, 25 Feb 2015 09:41:40 +0000 (10:41 +0100)]
Server/py: Minor renamings.

9 years agoServer/py: Add error message on manipulating ThingAction yet undefined.
Christian Heller [Wed, 25 Feb 2015 09:40:25 +0000 (10:40 +0100)]
Server/py: Add error message on manipulating ThingAction yet undefined.

9 years agoServer/py: Add TA_EFFORT command.
Christian Heller [Wed, 25 Feb 2015 09:37:04 +0000 (10:37 +0100)]
Server/py: Add TA_EFFORT command.

9 years agoServer/py: Un-dummify and refactor command_taid().
Christian Heller [Wed, 25 Feb 2015 09:14:32 +0000 (10:14 +0100)]
Server/py: Un-dummify and refactor command_taid().

9 years agoServer/py: Some refactoring.
Christian Heller [Wed, 25 Feb 2015 08:52:34 +0000 (09:52 +0100)]
Server/py: Some refactoring.

9 years agoServer/py: Add partly dummy TA_ID command to add new ThingActions.
Christian Heller [Wed, 25 Feb 2015 08:42:24 +0000 (09:42 +0100)]
Server/py: Add partly dummy TA_ID command to add new ThingActions.

9 years agoServer/py: In SERVER_COMMANDS, mirror Python variant more precisely.
Christian Heller [Wed, 25 Feb 2015 08:41:56 +0000 (09:41 +0100)]
Server/py: In SERVER_COMMANDS, mirror Python variant more precisely.

9 years agoServer/py: To world_db, add empty dicts for things, actions, types.
Christian Heller [Wed, 25 Feb 2015 06:31:37 +0000 (07:31 +0100)]
Server/py: To world_db, add empty dicts for things, actions, types.

9 years agoServer/py: Extend dummy functions, use dedicated set_world_inactive().
Christian Heller [Wed, 25 Feb 2015 06:08:29 +0000 (07:08 +0100)]
Server/py: Extend dummy functions, use dedicated set_world_inactive().

9 years agoServer/py: Extend command_worldactive() dummy.
Christian Heller [Wed, 25 Feb 2015 05:59:00 +0000 (06:59 +0100)]
Server/py: Extend command_worldactive() dummy.

9 years agoServer/py: Update SERVER_COMMANDS to Python variant's peculiarities.
Christian Heller [Wed, 25 Feb 2015 05:58:09 +0000 (06:58 +0100)]
Server/py: Update SERVER_COMMANDS to Python variant's peculiarities.

9 years agoServer/py: Sane default values for world_db.
Christian Heller [Wed, 25 Feb 2015 05:42:01 +0000 (06:42 +0100)]
Server/py: Sane default values for world_db.

9 years agoServer/py: Add (mostly dummy) WORLD_ACTIVE command.
Christian Heller [Tue, 24 Feb 2015 11:42:54 +0000 (12:42 +0100)]
Server/py: Add (mostly dummy) WORLD_ACTIVE command.

9 years agoServer/py: Fix buggy worlddb_value_setter()() error message.
Christian Heller [Tue, 24 Feb 2015 11:37:14 +0000 (12:37 +0100)]
Server/py: Fix buggy worlddb_value_setter()() error message.

9 years agoServer/py: Add (mostly dummy) MAP_LENGTH command.
Christian Heller [Tue, 24 Feb 2015 11:36:37 +0000 (12:36 +0100)]
Server/py: Add (mostly dummy) MAP_LENGTH command.

9 years agoServer/py: Make proper command_seedmap() refer to (dummy) remake_map().
Christian Heller [Tue, 24 Feb 2015 11:28:57 +0000 (12:28 +0100)]
Server/py: Make proper command_seedmap() refer to (dummy) remake_map().

9 years agoServer/py: Add PLAYER_TYPE command.
Christian Heller [Tue, 24 Feb 2015 11:24:06 +0000 (12:24 +0100)]
Server/py: Add PLAYER_TYPE command.

9 years agoServer/py: Refactoring.
Christian Heller [Tue, 24 Feb 2015 11:12:52 +0000 (12:12 +0100)]
Server/py: Refactoring.

9 years agoServer/py: Add SEED_MAP and SEED_RANDOMNESS commands, refactor.
Christian Heller [Tue, 24 Feb 2015 10:53:14 +0000 (11:53 +0100)]
Server/py: Add SEED_MAP and SEED_RANDOMNESS commands, refactor.

9 years agoServer/py: Fix KeyError-triggering typo.
Christian Heller [Tue, 24 Feb 2015 10:38:29 +0000 (11:38 +0100)]
Server/py: Fix KeyError-triggering typo.

9 years agoServer/py: Stricter command token counting.
Christian Heller [Tue, 24 Feb 2015 02:10:11 +0000 (03:10 +0100)]
Server/py: Stricter command token counting.

9 years agoServer/py: Fix buggy ValueError handling.
Christian Heller [Tue, 24 Feb 2015 02:07:24 +0000 (03:07 +0100)]
Server/py: Fix buggy ValueError handling.

9 years agoServer/py: Add SEED_MAP, SEED_RANDOMNESS to save_world(), make_world().
Christian Heller [Tue, 24 Feb 2015 02:04:09 +0000 (03:04 +0100)]
Server/py: Add SEED_MAP, SEED_RANDOMNESS to save_world(), make_world().

9 years agoServer/py: Add value check to command_turn().
Christian Heller [Tue, 24 Feb 2015 01:46:55 +0000 (02:46 +0100)]
Server/py: Add value check to command_turn().

9 years agoServer/py: Introduce TURN command into save_world().
Christian Heller [Tue, 24 Feb 2015 01:39:53 +0000 (02:39 +0100)]
Server/py: Introduce TURN command into save_world().

9 years agoServer/py: Add save_world() dummy, refactor.
Christian Heller [Tue, 24 Feb 2015 01:03:08 +0000 (02:03 +0100)]
Server/py: Add save_world() dummy, refactor.

9 years agoServer/py: More refactoring, documentation.
Christian Heller [Mon, 23 Feb 2015 11:53:48 +0000 (12:53 +0100)]
Server/py: More refactoring, documentation.

9 years agoServer/py: Some refactoring, explaining.
Christian Heller [Mon, 23 Feb 2015 11:27:52 +0000 (12:27 +0100)]
Server/py: Some refactoring, explaining.

9 years agoServer/py: Fix variable naming bug.
Christian Heller [Mon, 23 Feb 2015 11:08:52 +0000 (12:08 +0100)]
Server/py: Fix variable naming bug.

9 years agoServer/py: Proper obey() / commands DB infrastructure. More globalizing.
Christian Heller [Mon, 23 Feb 2015 11:06:55 +0000 (12:06 +0100)]
Server/py: Proper obey() / commands DB infrastructure. More globalizing.

9 years agoServer/py: Improve IO looping structure.
Christian Heller [Mon, 23 Feb 2015 01:59:41 +0000 (02:59 +0100)]
Server/py: Improve IO looping structure.

9 years agoServer/py: Flush PONG! message.
Christian Heller [Mon, 23 Feb 2015 01:07:38 +0000 (02:07 +0100)]
Server/py: Flush PONG! message.

9 years agoServer/py: Improve (almost finish?) IO looping structure.
Christian Heller [Mon, 23 Feb 2015 01:07:15 +0000 (02:07 +0100)]
Server/py: Improve (almost finish?) IO looping structure.

9 years agoServer/py: Improve server instance conflict management.
Christian Heller [Sun, 22 Feb 2015 13:00:23 +0000 (14:00 +0100)]
Server/py: Improve server instance conflict management.

9 years agoServer/py: Remove debugging code corrupting replay behavior.
Christian Heller [Sun, 22 Feb 2015 12:50:08 +0000 (13:50 +0100)]
Server/py: Remove debugging code corrupting replay behavior.

9 years agoServer/py: Init io_db["kicked by rival"] at start (to False).
Christian Heller [Sun, 22 Feb 2015 12:45:17 +0000 (13:45 +0100)]
Server/py: Init io_db["kicked by rival"] at start (to False).

9 years agoServer/py: Improve replay structure, add io_loop() dummy.
Christian Heller [Sun, 22 Feb 2015 12:43:14 +0000 (13:43 +0100)]
Server/py: Improve replay structure, add io_loop() dummy.

9 years agoServer/py: Some refactoring.
Christian Heller [Sun, 22 Feb 2015 12:20:22 +0000 (13:20 +0100)]
Server/py: Some refactoring.

9 years agoServer/py: Improve handling of parallel server instances conflict.
Christian Heller [Sun, 22 Feb 2015 12:11:14 +0000 (13:11 +0100)]
Server/py: Improve handling of parallel server instances conflict.

9 years agoServer/py: Add server_test() remake.
Christian Heller [Sun, 22 Feb 2015 12:03:17 +0000 (13:03 +0100)]
Server/py: Add server_test() remake.

9 years agoServer/py: Apply PEP8.
Christian Heller [Sun, 22 Feb 2015 11:44:12 +0000 (12:44 +0100)]
Server/py: Apply PEP8.

9 years agoServer/py: Minor refactoring.
Christian Heller [Sun, 22 Feb 2015 11:42:19 +0000 (12:42 +0100)]
Server/py: Minor refactoring.

9 years agoServer/py: Move atomic leftovers detection into setup_server_io().
Christian Heller [Sun, 22 Feb 2015 11:33:26 +0000 (12:33 +0100)]
Server/py: Move atomic leftovers detection into setup_server_io().

9 years agoServer/py: In replay mode, replay until world turn >= replay argument.
Christian Heller [Sun, 22 Feb 2015 11:21:59 +0000 (12:21 +0100)]
Server/py: In replay mode, replay until world turn >= replay argument.

9 years agoServer/py: Minor comment improvement.
Christian Heller [Sun, 22 Feb 2015 10:51:51 +0000 (11:51 +0100)]
Server/py: Minor comment improvement.

9 years agoServer/py: Improve atomicity of record(), description of its strategy.
Christian Heller [Sun, 22 Feb 2015 10:50:03 +0000 (11:50 +0100)]
Server/py: Improve atomicity of record(), description of its strategy.

9 years agoServer/py: Add atomic writing to record().
Christian Heller [Sun, 22 Feb 2015 10:28:33 +0000 (11:28 +0100)]
Server/py: Add atomic writing to record().

9 years agoServer/py: Put "_tmp" temp file suffix into io_db.
Christian Heller [Sun, 22 Feb 2015 10:13:57 +0000 (11:13 +0100)]
Server/py: Put "_tmp" temp file suffix into io_db.

9 years agoServer/py: Use new obey_lines_in_file() on both save and worldconf file.
Christian Heller [Sun, 22 Feb 2015 05:13:27 +0000 (06:13 +0100)]
Server/py: Use new obey_lines_in_file() on both save and worldconf file.

9 years agoServer/py: Restructure run_game() imitation.
Christian Heller [Sun, 22 Feb 2015 05:05:20 +0000 (06:05 +0100)]
Server/py: Restructure run_game() imitation.

9 years agoServer/py: Add note about improper replacement of record().
Christian Heller [Sun, 22 Feb 2015 05:01:02 +0000 (06:01 +0100)]
Server/py: Add note about improper replacement of record().

9 years agoServer/py: Add line number handling.
Christian Heller [Sun, 22 Feb 2015 04:56:49 +0000 (05:56 +0100)]
Server/py: Add line number handling.

9 years agoServer/py: Move all file path handling into setup_server_io().
Christian Heller [Sun, 22 Feb 2015 04:42:54 +0000 (05:42 +0100)]
Server/py: Move all file path handling into setup_server_io().

9 years agoServer/py: Add config file reading.
Christian Heller [Thu, 19 Feb 2015 12:20:49 +0000 (13:20 +0100)]
Server/py: Add config file reading.

9 years agoServer/py: Catch shlex tokenizer ValueError exceptions in obey().
Christian Heller [Thu, 19 Feb 2015 12:02:52 +0000 (13:02 +0100)]
Server/py: Catch shlex tokenizer ValueError exceptions in obey().

9 years agoServer/py: Add space after QUIT record line uncommenter.
Christian Heller [Thu, 19 Feb 2015 11:54:59 +0000 (12:54 +0100)]
Server/py: Add space after QUIT record line uncommenter.

9 years agoServer/py: Record QUIT too, but uncommented. Ignore pure comment lines.
Christian Heller [Thu, 19 Feb 2015 11:53:54 +0000 (12:53 +0100)]
Server/py: Record QUIT too, but uncommented. Ignore pure comment lines.

9 years agoServer/py: Add record file recording via record().
Christian Heller [Thu, 19 Feb 2015 11:49:13 +0000 (12:49 +0100)]
Server/py: Add record file recording via record().

9 years agoServer/py: Slightly extend capabilities of obey().
Christian Heller [Thu, 19 Feb 2015 11:43:27 +0000 (12:43 +0100)]
Server/py: Slightly extend capabilities of obey().

9 years agoServer/py: Fix erroneous comment.
Christian Heller [Thu, 19 Feb 2015 11:32:44 +0000 (12:32 +0100)]
Server/py: Fix erroneous comment.

9 years agoServer/py: Replace tokenizer() with shlex.split() (erlehmann advice).
Christian Heller [Thu, 19 Feb 2015 11:30:07 +0000 (12:30 +0100)]
Server/py: Replace tokenizer() with shlex.split() (erlehmann advice).

9 years agoServer/py: Replace HandledException with SystemExit (erlehmann advice).
Christian Heller [Thu, 19 Feb 2015 11:11:54 +0000 (12:11 +0100)]
Server/py: Replace HandledException with SystemExit (erlehmann advice).

9 years agoServer/py: Improve doc string.
Christian Heller [Tue, 17 Feb 2015 05:29:57 +0000 (06:29 +0100)]
Server/py: Improve doc string.

9 years agoServer/py: Add tokenizer function.
Christian Heller [Tue, 17 Feb 2015 05:23:49 +0000 (06:23 +0100)]
Server/py: Add tokenizer function.

9 years agoServer/py: Minor text improvements. Handle no-records-file case.
Christian Heller [Tue, 17 Feb 2015 03:02:19 +0000 (04:02 +0100)]
Server/py: Minor text improvements. Handle no-records-file case.

9 years agoServer/py: Improve replay integration.
Christian Heller [Tue, 17 Feb 2015 02:46:34 +0000 (03:46 +0100)]
Server/py: Improve replay integration.

9 years agoServer/py: Add obey() dummy for C variant's obey_msg().
Christian Heller [Tue, 17 Feb 2015 02:38:23 +0000 (03:38 +0100)]
Server/py: Add obey() dummy for C variant's obey_msg().

9 years agoServer/py: Realize slightly more of C variant's run_game() structure.
Christian Heller [Tue, 17 Feb 2015 02:29:48 +0000 (03:29 +0100)]
Server/py: Realize slightly more of C variant's run_game() structure.

9 years agoServer/py: Minor refactoring.
Christian Heller [Tue, 17 Feb 2015 02:19:10 +0000 (03:19 +0100)]
Server/py: Minor refactoring.

9 years agoServer/py: Add command line help, handle pre-server-io-setup exits.
Christian Heller [Tue, 17 Feb 2015 02:05:58 +0000 (03:05 +0100)]
Server/py: Add command line help, handle pre-server-io-setup exits.

9 years agoServer/py: Add command line parser for replay option.
Christian Heller [Tue, 17 Feb 2015 01:56:06 +0000 (02:56 +0100)]
Server/py: Add command line parser for replay option.

9 years agoServer/py: Improve docstring.
Christian Heller [Tue, 17 Feb 2015 00:49:34 +0000 (01:49 +0100)]
Server/py: Improve docstring.

9 years agoServer/py: More expressive error message on unhandled exceptions.
Christian Heller [Tue, 17 Feb 2015 00:46:11 +0000 (01:46 +0100)]
Server/py: More expressive error message on unhandled exceptions.

9 years agoServer/py: Implement C's detect_atomic_leftover(), part of run_game().
Christian Heller [Tue, 17 Feb 2015 00:43:43 +0000 (01:43 +0100)]
Server/py: Implement C's detect_atomic_leftover(), part of run_game().

9 years agoServer/py: Apply pep8 style.
Christian Heller [Tue, 17 Feb 2015 00:12:15 +0000 (01:12 +0100)]
Server/py: Apply pep8 style.

9 years agoServer/Py: Remove flush() the necessity of which I can't rationalize.
Christian Heller [Mon, 16 Feb 2015 22:29:12 +0000 (23:29 +0100)]
Server/Py: Remove flush() the necessity of which I can't rationalize.

9 years agoAs of yet non-functional roguelike-server Python replacement.
Christian Heller [Mon, 16 Feb 2015 22:25:34 +0000 (23:25 +0100)]
As of yet non-functional roguelike-server Python replacement.

9 years agoServer: Add regeneration of lifepoints on positive satiation values.
Christian Heller [Sun, 15 Feb 2015 04:37:03 +0000 (05:37 +0100)]
Server: Add regeneration of lifepoints on positive satiation values.

9 years agoServer/AI: Only hunt enemies up to a certain distance.
Christian Heller [Sun, 15 Feb 2015 03:01:31 +0000 (04:01 +0100)]
Server/AI: Only hunt enemies up to a certain distance.

9 years agoServer/AI: Minor improvements to fleeing algorithm.
Christian Heller [Sat, 14 Feb 2015 22:56:09 +0000 (23:56 +0100)]
Server/AI: Minor improvements to fleeing algorithm.

9 years agoServer: Remove .stomach thing type attribute, derive from .lifepoints.
Christian Heller [Sun, 8 Feb 2015 15:49:49 +0000 (16:49 +0100)]
Server: Remove .stomach thing type attribute, derive from .lifepoints.

9 years agoMinor code re-styling.
Christian Heller [Sun, 8 Feb 2015 05:12:54 +0000 (06:12 +0100)]
Minor code re-styling.

9 years agoServer: Use thing's .consumable as what's pushing up its .satiation.
Christian Heller [Sun, 8 Feb 2015 04:47:30 +0000 (05:47 +0100)]
Server: Use thing's .consumable as what's pushing up its .satiation.

9 years agoAdd basic food clock (but no consumables yet to re-set it).
Christian Heller [Sun, 8 Feb 2015 04:31:17 +0000 (05:31 +0100)]
Add basic food clock (but no consumables yet to re-set it).

9 years agoClient: Improve test_and_poll_server() ping test logic / timing.
Christian Heller [Fri, 6 Feb 2015 01:11:11 +0000 (02:11 +0100)]
Client: Improve test_and_poll_server() ping test logic / timing.

9 years agoServer: Fix segfault when parsing THINGS_HERE on player sans .fov_map.
Christian Heller [Fri, 6 Feb 2015 00:00:56 +0000 (01:00 +0100)]
Server: Fix segfault when parsing THINGS_HERE on player sans .fov_map.

9 years agoServer/AI: From directions of equal attractiveness, choose randomly.
Christian Heller [Wed, 4 Feb 2015 05:36:18 +0000 (06:36 +0100)]
Server/AI: From directions of equal attractiveness, choose randomly.

9 years agoServer: Fix buggy list of directions in try_thing_proliferation().
Christian Heller [Wed, 4 Feb 2015 04:35:44 +0000 (05:35 +0100)]
Server: Fix buggy list of directions in try_thing_proliferation().

9 years agoUpdate README.
Christian Heller [Tue, 3 Feb 2015 04:54:25 +0000 (05:54 +0100)]
Update README.

9 years agoServer/AI: Flee actors whose type starts with more lifepoints than own.
Christian Heller [Tue, 3 Feb 2015 04:44:23 +0000 (05:44 +0100)]
Server/AI: Flee actors whose type starts with more lifepoints than own.

9 years agoServer: Minor refactoring of get_dir_to_nearest_target().
Christian Heller [Sun, 1 Feb 2015 03:47:47 +0000 (04:47 +0100)]
Server: Minor refactoring of get_dir_to_nearest_target().

9 years agoAdd to TODO.
Christian Heller [Fri, 30 Jan 2015 05:59:28 +0000 (06:59 +0100)]
Add to TODO.

9 years agoUpdate copyright notice.
Christian Heller [Fri, 30 Jan 2015 05:59:15 +0000 (06:59 +0100)]
Update copyright notice.

9 years agoServer/AI: Explore map for (long-time) unexplored cells.
Christian Heller [Fri, 30 Jan 2015 05:58:04 +0000 (06:58 +0100)]
Server/AI: Explore map for (long-time) unexplored cells.

9 years agoClient: Fix buggy log window size pre-calculating triggering segfaults.
Christian Heller [Thu, 29 Jan 2015 05:16:31 +0000 (06:16 +0100)]
Client: Fix buggy log window size pre-calculating triggering segfaults.

9 years agoServer: Refactoring of initialization of empty maps.
Christian Heller [Tue, 27 Jan 2015 03:58:04 +0000 (04:58 +0100)]
Server: Refactoring of initialization of empty maps.

9 years agoFix hardcoding of MAGIC MEAT thing name.
Christian Heller [Tue, 27 Jan 2015 02:22:50 +0000 (03:22 +0100)]
Fix hardcoding of MAGIC MEAT thing name.

9 years agoClient: Fix too small memory allocation for window config view.
Christian Heller [Sun, 18 Jan 2015 01:46:03 +0000 (02:46 +0100)]
Client: Fix too small memory allocation for window config view.