Commit Graph

  • d347b6fad5 Finish implementation of npc.places.find_plotmarkers. Small code refactor. Hector Franqui 2017-08-27 12:32:04 -0400
  • ceae61f553 Add gitignore to IntelliJ folder Hector Franqui 2017-08-27 11:41:35 -0400
  • a4fd06d1c6 Add nearby plotmarkers search Hector Franqui 2017-08-27 11:28:40 -0400
  • ad9032ec5b Add scan functions and node definitions for workplaces. (WIP) Hector Franqui 2017-08-25 19:48:34 -0400
  • 11e871a932 Log cleanups. Hector Franqui 2017-08-25 09:33:25 -0400
  • 4c102a70a4 Spawner: Large code refactor to remove dependency on plotmarkers. Most spawner functions can now be called without giving a plotmarker. Move scanning functions to places.lua. Places: Cleanup and add more area-scanning functions. Schedules: Bugfix where schedules weren't being executed due to wrong "end" order in the do_custom() function. Data: Moved random data to "data" folder. Textures: Add 14 male textures and 10 female textures. Occupations: Small tweaks to "default_basic" occupation. Hector Franqui 2017-08-25 09:31:45 -0400
  • 698d247aba Fix misc bugs Hector Franqui 2017-08-11 15:41:50 -0400
  • 5a93800e77 Occupations: Add schedule check function, allow enqueuing of schedule check Hector Franqui 2017-08-11 12:03:45 -0400
  • 0f931d273c Occupations: Add schedule check function, allow enqueuing of schedule check. Add simple test farmer occupation (WIP). Hector Franqui 2017-08-11 12:01:44 -0400
  • 4c0e2b574a Temporary fix for male textures issue. 1.0.0-alpha-1 Hector Kio 2017-08-11 10:44:57 -0400
  • 3edc959d3a Dialogues: Finish implementation of registered dialogues. Ported all trade dialogues to use new dialogue system. Hector Franqui 2017-07-19 14:00:29 -0400
  • b5dc9926cd Add 5 additional male textures. Rename child textures to be more representative. Hector Franqui 2017-07-13 19:05:39 -0400
  • bff013bc44 Utilities: Add simple utility code to work with arrays and Lua tables Hector Franqui 2017-07-13 19:04:00 -0400
  • 5eceb09cdb Random data: Separate random data in different files for better classification. Add registrations as well. Hector Franqui 2017-07-13 19:02:40 -0400
  • e79fb91ff3 Dialogues: Re-write dialogues to allow Minetest's like registration system instead of the actual table lookup system. In general, dialogues now are registered in similar fashion as nodes, entities and others are registered in Minetest. Relationships: Re-write to the way favorite/disliked items are defined, now allow Minetest's like registration as well. Random data: Random data now includes registrations for gift items and dialogues. Hector Franqui 2017-07-13 19:01:28 -0400
  • bf935fd091 Dialogues: Fix bug with NPCs being frozen if 'Esc' button was pressed to exit dialogue Hector Franqui 2017-06-29 19:01:03 -0400
  • 6141af11aa Relationships: Increase gift timer and relationship decrease timer to more usual values. Fixed small bug on giving unliked items. Hector Franqui 2017-06-27 18:39:13 -0400
  • e70888c3e5 Fix bug with 'ignore' nodes when some map areas are not fully loaded but NPC try to perform actions on them. Hector Franqui 2017-06-27 18:38:28 -0400
  • cc56446206 NPC: (WIP) Schedule properties support adding one or multiple items to NPC inventory, and support taking one item from NPC inventory. Attempt to fix child textures issue (2). Hector Franqui 2017-06-21 21:07:36 -0400
  • 7110c49b42 Spawner: Avoid multiple spawning by not replacing the mg_villages:plotmarker, but just override its definition. NPC: (WIP) Support change properties on schedules. Hector Franqui 2017-06-21 07:16:11 -0400
  • fd4cec0d63 Spawner: Assign sits, furnaces and storage nodes to spawned NPCs. Small basic schedule change: NPCs now sit from 12-1 on whatever sit they 'own'. Fixed /restore_plotmarkers not clearing all metadata. NPC: Attempted to add a fix for the children growing on their own (due to mobs_redo). Hector Franqui 2017-06-19 21:03:24 -0400
  • 3df43ab580 Spawner: Assign sits, furnaces and storage nodes to spawned NPCs. Small basic schedule change: NPCs now sit from 12-1 on whatever sit they 'own'. Fixed /restore_plotmarkers not clearing all metadata. NPC: Attempted to add a fix for the children growing on their own (due to mobs_redo). Hector Franqui 2017-06-19 20:54:26 -0400
  • c19ea70242 Spawner: Add clearing of 'replaced' string to /restore_plotmarkers Hector Franqui 2017-06-18 11:19:33 -0400
  • a3b428fe14 Fix README.txt and restore correct spawning frequency. Hector Franqui 2017-06-17 13:21:24 -0400
  • 4814c16ba0 Remove debug.txt Hector Franqui 2017-06-17 13:00:54 -0400
  • 2530918fe9 Fix various bugs 1.0.0-alpha Hector Franqui 2017-06-17 12:55:50 -0400
  • fb549e7f93 Pathfinder: Drop jumper.lua's pathfinder in favor of MarkBu's pathfinder with slight modifications, as the later one supports 3D paths. Clean up old pathfinder code. Add path decoration to MarkBu pathfinder's generated paths. Change actions.lua and places.lua to use the new pathfinder. Properly modify README.md. Hector Franqui 2017-06-17 11:47:51 -0400
  • e1bf931064 Relationships: change texture of smoke to use default's mod texture Hector Franqui 2017-06-17 11:45:57 -0400
  • 3e006ac828 Add proper description.txt, depends.txt Hector Franqui 2017-06-17 11:15:40 -0400
  • caa39d97ab NPC: Fixed bugs around new logs and npc chat functions. Fixed bug with child texture. 1.0-alpha-0 Hector Franqui 2017-06-17 10:22:00 -0400
  • a91160ecc6 NPC: Cleaned up debugging logs. Standarized logs to have different levels. Show by default only INFO, ERROR log messages. Dialogues: Standarized function for NPC chat messages. Removed trader.lua and trader_test.lua which are part of old 'mobs_npc' mod. Hector Franqui 2017-06-17 09:44:25 -0400
  • bf0f643e3e NPC: Changed general issue with names. Now names are a dedicated variable, not anymore a nametag. NPC names aren't visible anymore. Spawner: Added NPC statistics to plotmarkers. Add statistics-based spawning for a more balanced, family-type spawning of NPCs. Hector Franqui 2017-06-17 09:08:29 -0400
  • adeeecd43e Pathfinding (WIP): Use MarkBu's pathfinder mod as the new pathfinder. Actions: Modify walk_to_pos to use new pathfinding code. Allow support for giving positions as strings or tables referring to specific places on Places Map. Spawner: Assign beds to NPCs. Increase amount of NPCs now being spawned as they are able to reach top floor beds. Places: Slight overhaul and changes. Add more info to places. NPC: Hide nametag. Hector Franqui 2017-06-14 18:42:36 -0400
  • d4e8744cfb Spawner: Assign entrance door to every NPC spawned. Increased ABM chance to make NPC spawning less laggy. Improved building scanning, finally now has correct data for scanning nodes. Places: Finding entrances is limited now to MTG doors. Hector Franqui 2017-05-19 14:36:11 -0400
  • 1d1a56592b Actions: Rewrite API to use executor function + constants of commands. Re-write NPC add action/task functions, do_custom() to use new actions API. Spawner: Find building entrances (WIP) Places: Fix numerous bugs with add/get places functions. Actions: Fix bugs with sittable task. Hector Franqui 2017-05-13 13:17:45 -0400
  • 9b3d458872 Spawner: Part 1: Add initial code to find doors front/behind position. Detect first floor nodes. Hector Franqui 2017-05-05 18:34:16 -0400
  • f4c374314a Actions: Enhance walking reliability by adding a moveto() at the end of every step and just before the next step. Increase walking speed constants to more normal values. Hector Franqui 2017-05-05 09:13:30 -0400
  • 55c6146e94 Spawning: Find entrance doors to building. Zorman2000 2017-04-10 22:42:21 -0400
  • 7169035783 Merge branch 'master' of https://github.com/hkzorman/advanced_npc Zorman2000 2017-04-08 10:22:10 -0400
  • a667f538f8 Spawner: Find entrance doors (WIP) Zorman2000 2017-04-08 10:21:51 -0400
  • bb5cd7e2c6 Add version of Jumper library Hector Kio 2017-04-06 19:32:38 -0400
  • 5a6113479e Improve initial comment. Hector Kio 2017-04-05 19:18:34 -0400
  • b30324fabe Pathfinding: Remove Jumper submodule. Tidy-up init.lua Update Readme. Zorman2000 2017-04-04 14:32:28 -0400
  • ef973e47cc Pathfinding: Cleaned up pathfinder.lua logs. Changed init.lua to refer to proper files. Updated comment about Jumper library in pathfinder.lua Zorman2000 2017-04-04 10:20:19 -0400
  • 7f2e1b665a Pathfinding: Cleanup jumper.lua Add copyright notices to jumper.lua Remove 'pathfinder2.lua' Zorman2000 2017-04-04 10:11:19 -0400
  • 297dd379a6 Pathfinding: Fix for mod security - joining up Jumper library code (WIP) Zorman2000 2017-04-03 21:48:17 -0400
  • afe8dc8f6e Places: Detect building entrances (WIP) Zorman2000 2017-03-27 20:05:18 -0400
  • d375762d11 NPCs: Add random female and male names. Spawner: Start adding metadata to spawner, places to NPCs. (WIP) Zorman2000 2017-03-27 14:47:31 -0400
  • b5ef1f8ed8 Spawner: automatic and manual spawning now works completely. Zorman2000 2017-03-27 14:03:20 -0400
  • 509bf571b1 Spawner: Fixed spawning. (WIP) Zorman2000 2017-03-27 11:08:18 -0400
  • d18d1ce897 Trading: Fix price items not being accounted for. Zorman2000 2017-03-27 10:53:21 -0400
  • 626ca68eb5 Spawner: Working node spawning. Zorman2000 2017-03-23 10:20:08 -0400
  • e937cc4ce4 Spawner: Moved all spawning code to spawner.lua. Started progress on node timer-based NPC spawning (WIP) Zorman2000 2017-03-22 22:08:41 -0400
  • 3649d5bc6a Spawner: Adds ABM for replacement for when LBM fails. Zorman2000 2017-03-18 12:58:36 -0400
  • f5fbda142e Spawner: Adds LBM to replace mg_villages:plotmarker with advanced_npc:auto_spawner (WIP). Adds initial scan code (WIP). Zorman2000 2017-03-18 10:32:37 -0400
  • 2e2815b559 Spawner: Add initial specification Zorman2000 2017-03-17 19:35:19 -0400
  • bd6d735170 Actions: Change use sittable and use bed interface to use them as tasks. Schedules: Allow tasks to be added as well as actions. zorman2000 2017-03-09 19:41:44 -0500
  • f55757d334 Schedules: Fix bugs, add simple test schedule. zorman2000 2017-03-09 13:54:37 -0500
  • fecdf8ff48 Schedules: Add correct execution interval for times. zorman2000 2017-03-08 09:36:53 -0500
  • f476f162f6 Trade: Fully supported custom trading (for now). zorman2000 2017-02-24 07:56:31 -0500
  • 1417e35ffb Trade: (WIP) Add custom trading dialogues, custom trading offers and code to show the custom trading options. zorman2000 2017-02-23 07:27:25 -0500
  • 37d8182bda Merge pull request #3 from tbowan/master Hector Kio 2017-02-20 18:20:53 -0500
  • f5968b952d Better fix #3 tbowan 2017-02-14 10:32:52 +0100
  • 8ea9af6e23 Fix error on unknown node tbowan 2017-02-13 23:37:33 +0100
  • ce39d59356 Trade: Full support for dedicated trading. zorman2000 2017-02-09 11:38:14 -0500
  • 8648e8fdff Merge branch 'master' of https://github.com/hkzorman/advanced_npc zorman2000 2017-02-04 12:38:24 -0500
  • a763516977 Trade: (WIP) Add working dedicated trading. Need to add offer re-generation. zorman2000 2017-02-04 12:38:02 -0500
  • b2edbf60b6 Small tweaks to README Hector Kio 2017-02-01 22:03:22 -0500
  • 4b839ebc06 Fix links on README zorman2000 2017-02-01 21:58:14 -0500
  • b5439db961 Edited README, moved roadmap to the wiki. zorman2000 2017-02-01 21:56:24 -0500
  • ac31226320 Updates README zorman2000 2017-02-01 21:20:28 -0500
  • fcc1968179 Trade: Added dedicated trader's formspec. zorman2000 2017-02-01 21:16:31 -0500
  • d8b90d95c3 Trade: Add function to store trade offers on NPC data based on the trading status. Add support to avoid flipping sold items out of stock to buy immediately. zorman2000 2017-02-01 11:36:20 -0500
  • b3b9bf393f Trade: Added basic logic for dedicated traders offers. zorman2000 2017-01-30 21:51:16 -0500
  • 54c005ec34 Trade: Add dedicated trading prompts. Dialogue: Add support to show dedicated trading prompts for dedicated traders. (WIP) Get buy/sell offers for dedicated traders. zorman2000 2017-01-29 20:30:43 -0500
  • d7a8de5b86 Trade: A list of buyable items is now calculated with the maximum amount buyable (given the currency), the minimum buyable amount and the minimum price. Port casual trading to use this system. Refactor the offer function to also support dedicated trading. zorman2000 2017-01-29 20:08:34 -0500
  • 25f1fcbfa8 Updated README zorman2000 2017-01-26 12:57:10 -0500
  • 75af34beb5 Dialogue: full support for flag-based dialogues. Added support for nested dialogue trees. Trade: (WIP) Refactor code to support dedicated trading. zorman2000 2017-01-26 12:55:04 -0500
  • 7c3801a5ce NPC: Fix small bug due to actions API change zorman2000 2017-01-19 21:31:40 -0500
  • 5d2c820d88 Actions: No longer have 'self' as part of the arguments object for each action. This caused an error with Lua serialization that crashed Minetest while the NPC was executing actions and it got unloaded (like exit game or mapblock unloaded). zorman2000 2017-01-19 20:42:46 -0500
  • dd4d445b3a Actions: Fix unlock not working properly. Pathfinding: Fix bug of map not generating if difference between z-coordinates is zero. Code cleanup. zorman2000 2017-01-19 20:11:11 -0500
  • 60b847a02a Actions: (WIP) Add locks, unlocks and re-execution of actions if there are interruptions. Need to improve the lock/unlock mechanism. Dialogues, trading: Add lock and unlock upon starting/finishing an interaction. Updated README with progress. Pathfinding: Fix slight bug that avoid a map being generated if the difference of start and end positions' z coordinate is zero. zorman2000 2017-01-18 19:34:02 -0500
  • e265bc283e Actions: Set default walking speed to two nodes per second. NPC: Set default wandering speed to one node per second. zorman2000 2017-01-16 12:16:42 -0500
  • 9556e76b79 Actions: Add ability for NPC to fully use a furnace. Add ability to add tasks to action queue. zorman2000 2017-01-13 22:54:27 -0500
  • 137f02e863 Actions: Add set interval action, that allows to increase the action timer interval to effectively produce wait times. zorman2000 2017-01-13 07:22:00 -0500
  • 1cb6eb5dd0 Actions: Add action to freeze/unfreeze mobs redo API. zorman2000 2017-01-13 07:12:13 -0500
  • e3fc7be783 Places: Add correct detection of sittable nodes, including stairs used as benches. Add staircase detection method, for basic staircases. Ability to detect the bottom, middle and top nodes. Useful for future implementation of being able to use 2nd floors. zorman2000 2017-01-12 19:40:20 -0500
  • 7e41e328e8 Actions: Support for sitting on benches and stairs. zorman2000 2017-01-11 07:54:50 -0500
  • e69272c359 Actions: Default doors and cottages' mod doors are fully supported now. Default bed and cottages' mod beds fully supported now. zorman2000 2017-01-10 14:21:45 -0500
  • 641bdd8874 Actions: Fully working 2D pathfinding code, including doors. Added NPC actions so that it now closes doors after opening them. Fixed rotations for opening/closing doors and for reaching the goal point. Added full support to cottages mod gates and half doors. WIP: Support for cottages beds and sleeping mats. zorman2000 2017-01-09 11:34:38 -0500
  • 49cdae423f More fixes to Readme. zorman2000 2017-01-06 08:05:06 -0500
  • 461749f8af More fixes to the Readme to reflect properly progress zorman2000 2017-01-06 08:02:35 -0500
  • 73a12d76cc Further fix to the README.: zorman2000 2017-01-06 08:01:16 -0500
  • 554fde4643 Adds pathfinding library Jumper by Ronald Yonaba. This includes an implementation of the A* pathfinding algorithm which makes NPC now always get to their goal node. Pathfinding: Adds functions that allows to map the Minetest 3D map to a 2D array to use by the pathfinding algorithm. Actions: Use new code for find_path function. Improves door opening while walking on paths, and also now close them. Cottages fence gates and doors are also now supported in addition to the default doors and gates. Changes to the Readme and the License. zorman2000 2017-01-06 07:57:42 -0500
  • 80b7eb6ec9 Actions: Added action to use a bed (from the default beds mod). zorman2000 2016-12-29 21:34:15 -0500
  • 7f22a74d7d Actions: Added door opening/closing to walk action. zorman2000 2016-12-29 19:02:25 -0500
  • cffd307cfe Actions: Added action to open/close doors, fence gates and anything that uses the default doors mod. zorman2000 2016-12-29 17:26:09 -0500
  • 6549a7e4f9 Actions: Fixed turns walking through paths. Improved algorithm to include doors and fence gates using default API. NPC: Improved collisionbox. zorman2000 2016-12-29 15:09:30 -0500
  • d78fee695e Actions: added experimental, still WIP path-finding code in Lua zorman2000 2016-12-28 22:10:06 -0500
  • 646b422082 Actions: Added some fundamental movement actions. Places: Added functions for adding and getting places, and for finding places of specific types. Added beds, chairs and chest as places. NPC: Added places map and action queue. zorman2000 2016-12-18 12:32:39 -0500