Commit graph

331 commits

Author SHA1 Message Date
Erik Ogenvik
e6cd3bf643 Allow setting of thoughts. 2013-02-10 11:47:46 +01:00
Erik Ogenvik
f18b0c717b Provide ability to ask entities for their thoughts.
This is meant to be used for authoring. It allows admin clients to
inspect and persist the relevant parts of the minds of any NPC.
2013-02-04 20:15:29 +01:00
Alistair Riddoch
bbd2e722d2 Call client teardown when editor finalizes 2012-07-27 09:44:28 +01:00
Alistair Riddoch
437278b27b Remove curcular references and clean up syntax
Storing references to bound methds of self makes the object contain
circular references, and makes it hard to GC. Storing the unbound
methods removes this problem. I moved from apply() to the modern syntax
to be certain of getting the change right.
2012-07-26 23:28:56 +01:00
Alistair Riddoch
e9108262b4 Merge pull request #3 from erikhjortsberg/list_all_knowledge
List all knowledge
2012-01-06 06:47:59 -08:00
Alistair Riddoch
4ec82e38b5 Merge pull request #2 from erikhjortsberg/improved_speech_parsing
Handle punctuation and upper case intial letter.
2012-01-06 06:47:18 -08:00
Alistair Riddoch
c51802c34f Add test for combat interface 2011-12-02 01:04:39 +00:00
Alistair Riddoch
f8dc3e5e76 Restructure avatar creation to make more sense 2011-12-01 10:27:13 +00:00
Alistair Riddoch
ce22b00058 Clean up the way editor is set up 2011-12-01 10:11:00 +00:00
Alistair Riddoch
4a0eda93e7 Update client related code for changed bindings 2011-11-30 19:27:11 +00:00
Erik Hjortsberg
b5447f2eb9 Added debug function for getting all knowledge. 2011-10-23 16:04:52 -07:00
Erik Hjortsberg
c90b62d52d Handle punctuation and upper case intial letter.
The interlinguish code couldn't handle sentences starting with upper
case letters, and ending in punctuations.
2011-10-23 16:04:52 -07:00
Alistair Riddoch
29fb2c0922 Formatting tweaking 2011-09-14 16:29:56 +01:00
Alistair Riddoch
bf9e7ebbfe Format tweaking 2011-09-14 16:29:41 +01:00
Alistair Riddoch
87406d39ae Fix up comment spelling and formatting 2011-09-14 16:17:16 +01:00
Erik Ogenvik
361e074954 Address the calling entity when responding. 2011-09-02 23:51:07 +02:00
Erik Ogenvik
c4c4199865 Ignore messages addressed to others.
So far we only perform this check for the "list" and "tell" verbs, but
we should probably apply it to most talk ops.
2011-09-02 23:51:06 +02:00
Alistair Riddoch
3b039a7d8b Let's have some variable names that make sense. 2010-12-01 10:06:55 +00:00
Alistair Riddoch
ad0ac2b703 Add a new helper function to simplify client scripts 2010-09-12 15:12:54 +01:00
Alistair Riddoch
8152bd5562 metaserver search kinda works now. 2010-07-31 12:29:26 +01:00
Alistair Riddoch
32941d10f2 Add start of a metaserver query routine in python 2010-07-30 02:04:44 +01:00
Alistair Riddoch
0db259418f Add start of work of metaclient in python. 2010-07-29 02:50:08 +01:00
Amey Parulekar
eab877b245 Corrected bugs in code for detecting presence of hook in fish's inventory 2009-08-03 20:44:40 +05:30
Amey Parulekar
e91e37f004 Amble goal will return if a hook is present inside fish 2009-07-29 00:17:22 +05:30
Amey Parulekar
165055b54e Make school goal return if a hook is present inside fish 2009-07-29 00:15:30 +05:30
Amey Parulekar
f3ede87736 Changed search criteria from type to name in school goal 2009-07-25 00:35:12 +05:30
Amey Parulekar
015c03f4d2 Re-added school and amble goals to interlinguish 2009-07-17 15:24:06 +05:30
Amey Parulekar
c5f8fec6b1 Created a new branch of master and merged all changes into it 2009-07-10 03:15:53 +05:30
Alistair Riddoch
aac6856fa5 Fix check for Point3D in the pig herd goal. 2009-07-07 18:37:12 +01:00
Alistair Riddoch
7a1bc1d3a6 Fix up some goal functionality, but disable it as it currently hogs CPU. 2009-07-07 01:14:10 +01:00
Alistair Riddoch
8533389e8d Update NPCMind to inherit from core wrapper type. 2009-07-01 17:03:24 +01:00
Alistair Riddoch
c2cff84e1f Clean up imports removing deprecated support and obsolete modules. 2009-07-01 14:07:28 +01:00
Alistair Riddoch
e43ee88926 Make all Python entity and task objects inherit from object, and add checks. 2009-06-30 15:32:21 +01:00
Alistair Riddoch
084d4a6301 Change a few doc string typos. Thanks Amey. 2009-06-23 15:38:50 +01:00
Alistair Riddoch
531e4f512d Update all scripts to use atlas.Oplist 2009-05-21 16:34:27 +01:00
Alistair Riddoch
24a0887b58 Update all the scripts to import Quaternion from physics 2009-05-20 20:50:26 +01:00
Alistair Riddoch
6679b1b30f Update all Python scripts to import vector and point from physics 2009-05-20 19:34:01 +01:00
Alistair Riddoch
ff3cf9902c Jitter AI ticks so things look more natural 2009-04-21 23:02:14 -07:00
Al Riddoch
f1ffc6ce7f 2009-01-27 Al Riddoch <alriddoch@googlemail.com>
* rulesets/basic/mind/goals/humanoid/mason.py: Fix a potential issue
	  with goals not having full dependencies imported.
2009-01-27 18:17:14 +00:00
Al Riddoch
76165cabe8 2008-12-15 Al Riddoch <alriddoch@googlemail.com>
* client/Py_CreatorClient.cpp, client/CreatorClient.h,
	  client/CreatorClient.cpp, rulesets/basic/editor.py: Make a delete
	  method available to the client editor interface.
2008-12-15 18:47:48 +00:00
Al Riddoch
cb5456a59f 2008-12-07 Al Riddoch <alriddoch@googlemail.com>
* rulesets/basic/mind/NPCMind.py: Remove a few chunks of unused code.
	  Clean up and simplify the logic when dealing with converting plain
	  talk ops into structured interlinguish. Add some doc strings and
	  comments.
2008-12-07 03:54:44 +00:00
Al Riddoch
2a9bfe7f08 2008-10-21 Al Riddoch <alriddoch@googlemail.com>
* rulesets/basic/mind/NPCMind.py: Avoid a tight loop by more
	  fully checking an entity is ready to be added to posessions
	  before trying to add it.
2008-10-21 17:58:25 +00:00
Al Riddoch
9776626954 2008-09-18 Al Riddoch <alriddoch@googlemail.com>
* rulesets/basic/mind/goals/animal/domestic.py,
	  rulesets/basic/mind/goals/animal/herd.py,
	  rulesets/basic/mind/goals/common/misc_goal.py,
	  rulesets/basic/mind/goals/common/trigger.py,
	  rulesets/basic/mind/goals/dynamic/add_unique_goal.py,
	  rulesets/basic/mind/goals/humanoid/construction.py,
	  rulesets/basic/mind/goals/humanoid/fire.py,
	  rulesets/basic/mind/goals/humanoid/mason.py,
	  rulesets/basic/mind/goals/humanoid/transaction.py:
	  Add nominal doc strings to some goal classes.
2008-09-18 00:53:14 +00:00
Al Riddoch
c71d5ef8a5 2008-09-17 Al Riddoch <alriddoch@googlemail.com>
* rulesets/basic/mind/goals/common/move.py: Add nominal doc strings
	  to some goal classes.
2008-09-17 17:46:35 +00:00
Al Riddoch
e5bee108c9 2008-09-17 Al Riddoch <alriddoch@googlemail.com>
* rulesets/basic/mind/goals/common/common.py,
	  rulesets/basic/mind/goals/common/move.py,
	  rulesets/basic/mind/goals/humanoid/build_home.py,
	  rulesets/basic/mind/goals/humanoid/fire.py,
	  rulesets/basic/mind/goals/humanoid/mason.py,
	  rulesets/basic/mind/goals/humanoid/transaction.py:
	  Clean up the way goals are imported so it makes more sense,
	  and doxygen has an easier time with it.
2008-09-17 17:33:30 +00:00
Al Riddoch
23b4b91aca 2008-09-17 Al Riddoch <alriddoch@googlemail.com>
* rulesets/basic/__init__.py, rulesets/mason/__init__.py,
	  rulesets/Makefile.am: These are no longer module directories,
	  so don't need __init__.py files.
2008-09-17 16:43:51 +00:00
Al Riddoch
fda943df0d 2008-09-17 Al Riddoch <alriddoch@googlemail.com>
* rulesets/basic/mind/NPCMind.py: Add a mechanism to detect when
	  the mind is assigned ownership of something it has not yet seen,
	  and postpone adding it to owned things until later.
2008-09-17 15:14:08 +00:00
Al Riddoch
07d04e99a3 2008-03-28 Al Riddoch <alriddoch@googlemail.com>
* data/devices.xml: Add a second type of operation to the example
	  device.

	* rulesets/Character.cpp: Sort out the fixme so non-default actions
	  can be specified when actuating devices.

	* rulesets/basic/mind/goals/common/misc_goal.py: Clean up the
	  actuation testing goal.
2008-03-28 02:03:09 +00:00
Al Riddoch
6ab0d6753d 2008-03-28 Al Riddoch <alriddoch@googlemail.com>
* rulesets/basic/mind/goals/common/misc_goal.py: Make the checking
	  for a list simpler. Add a test goal for exercising the device
	  activation interface.

	* rulesets/mason/define_world.py: Add client test method to try
	  out the activation goal.
2008-03-28 01:20:29 +00:00
Al Riddoch
0ee685cf25 2008-03-28 Al Riddoch <alriddoch@googlemail.com>
* rulesets/Py_Location.cpp: Implement the repr() method of the
	  Python object protocol for this wrapper, making debugging easier in
	  scripts.
2008-03-28 01:13:26 +00:00