Commit Graph

840 Commits

Author SHA1 Message Date
58bb6cb285 Made PathTo which allows me to get from one path to another. 2017-12-01 21:42:44 -08:00
4eea726db3 Pathfinding is now much faster on initial calculation after removing unused delay code. Also can path to adjacent maps. Needs work to chain the effect. 2017-12-01 02:18:37 -08:00
175a385977 Added functionality for shipping objects 2017-12-01 00:16:53 -08:00
3e9d7f6f49 Can path to nearest water tile and also if I need to water crops and need water path, get water, and path back to where I was. 2017-11-30 16:59:21 -08:00
38af511cfd Now pathfinds to closest tree possible. Probably want to do the same for the other tasks. 2017-11-30 16:06:19 -08:00
992ef687e7 Can cut weeds. 2017-11-30 11:58:05 -08:00
365808a504 Changed some code to be in SDust Core and now the AI can break stones! 2017-11-30 10:45:43 -08:00
eae0eb82bf Upgraded pathfinding to try and find all 4 cardinal goals simultaneously and whichever one it finds first must be the shortest path. Saves a TON of time as long as there is a path that we can pathfind to and is 4 times faster if there isn't a path at all. 2017-11-29 23:51:44 -08:00
e58ab6ba05 Fixed overcalculating paths WAY TOO MUCH. 2017-11-29 20:52:23 -08:00
b05ee04e2b Made the stick choping work and upgraded the pathfinding to store the cheapest path to prevent a TON of crashes and calculation time. 2017-11-29 20:06:48 -08:00
671eb1be49 RIP can now chop sticks but took HOURS to figure out how. Also if I can't find the path my code becomes vunerable to crash. 2017-11-29 18:34:53 -08:00
ad2ba9527b Path find through grass and made prereq for making sure I don't stay up too late. 2017-11-27 23:38:12 -08:00
c748f64c2a Made TaskMetaDataStatistics that will help calculate path cost and make isInventoryFull Pre-req 2017-11-27 14:25:31 -08:00
edd769b151 Fixed minor glitch where I would calculate cheapest task too often. 2017-11-26 18:20:23 -08:00
e44ec0ee5b Updates execution of tasks, added taskMetaData, (which is a lot) some pre-requisites, and chests show seeds. 2017-11-26 18:11:04 -08:00
069a6a5e8b Forgot to include logic to get low grade seeds from chest. (Though I'm sure it would have worked fine anyways). 2017-11-24 20:05:34 -08:00
de15a965f5 Added functionality to path to chest and pull seasonal seeds from it. 2017-11-24 19:56:10 -08:00
cf3a77d9de Pathfind fixes 2017-11-24 13:42:35 -08:00
836d6861d8 I guess fixing pathfind and spritebatch errors. 2017-11-24 13:12:36 -08:00
e51a8fbac5 Changed from system tasks system to delegate system that made more sense but not really??? Also still dealing with nasty issue of sprite batch error but atleast now I can harvest crops. 2017-11-24 11:21:03 -08:00
0c860a1516 Water all crops works correctly and now is stored in the execution list. Need to make some metadata for tasks and some statistics fr weights and stuff. 2017-11-23 16:42:28 -08:00
e95ffa45db Working on watering functionality for AI 2017-11-23 12:56:49 -08:00
b17d56a51b Merge branch 'master' of https://github.com/janavarro95/Stardew_Valley_Mods 2017-11-23 00:53:00 -08:00
1a2295e84e Almost got crop watering code working. Need to get simulated presses working and proper tile targeting 2017-11-23 00:51:50 -08:00
janavarro95 fefea5f26a
Update README.md 2017-11-22 19:43:37 -08:00
janavarro95 b28c253d0f
Update README.md 2017-11-22 19:38:39 -08:00
c7c65e06de Commit the good stuff. Fixed multipath finding recursing over goals. 2017-11-20 03:53:33 -08:00
d4470e0ebb Changes to pathTo to work better than addTask for some reason. Not 100% sure but will figure it out. 2017-11-20 01:54:33 -08:00
ac4a7e5a8a Fixed the large amounts of lag that happened during movement and key presses. 2017-11-20 01:03:21 -08:00
12ea388897 Started working on Execution task list that will queue up different tasks for the AI to do and execute them in order. 2017-11-19 22:32:24 -08:00
1d0b0a6b16 Added functionality to add multiple goals and path to each on in sequence from one another. 2017-11-19 21:20:41 -08:00
cd0ac16a22 Fined tuned some pathfinding stuff b adding pathTo and Delay functions. As long as I don't have to cross a bridge pathfinding works. 2017-11-19 17:00:12 -08:00
d722144c21 Finished BFS path finding and added in animations for the path. Also updated Animation Manager to be able to take multiple frames of animation per single animation set now. 2017-11-17 02:50:22 -08:00
fa3c4389ae Added Illumination framework to stardust for different colors, and made BFS path finding work for StarAI! 2017-11-16 23:07:30 -08:00
a12250b8cc Stared work on tileObject that will depict what is occuring with path finding and planning. 2017-11-16 10:29:02 -08:00
28421f07ff Updated all mods to use most recent version of pathos netgu package and started work on StarAI for CS146 Game AI 2017-11-16 03:47:02 -08:00
janavarro95 170c12e750 Merge pull request #24 from Pathoschild/update-code
Update new mods for SMAPI 2.0, enable update checks
2017-10-11 18:14:28 -07:00
Jesse Plamondon-Willard 1868dd4bd9 update for release 2017-10-11 16:20:46 -04:00
Jesse Plamondon-Willard 16d5461a4e standardise SimpleSoundManager entry class & prevent other mods from accessing its mod helper 2017-10-11 16:09:12 -04:00
Jesse Plamondon-Willard 3e01276c56 add readme for SimpleSoundManager 2017-10-11 16:06:26 -04:00
Jesse Plamondon-Willard 344058de88 enable update checks in SMAPI 2.0 2017-10-11 15:57:36 -04:00
Jesse Plamondon-Willard 3ab4044995 update deprecated code 2017-10-11 15:55:59 -04:00
Jesse Plamondon-Willard 76bd5b7f33 fix project references 2017-10-11 15:45:48 -04:00
Jesse Plamondon-Willard 4393b6318c update to mod build package 2.0 2017-10-11 15:45:29 -04:00
71c846acc5 Implemente correct interaction range with planter boxes. 2017-09-27 19:06:41 -07:00
bce270d6ce Updated PlanterBox to correctly draw crops when held and in the menu. Planter boxes also are auto-watered by rain. 2017-09-27 18:17:45 -07:00
a67a4d7380 Fixed animation glitch when harvesting crops, and now draw green + when crops are fully grown. 2017-09-15 11:15:51 -07:00
f0e1e696f9 Made Planter Boxes be a possible greenhouse, self watering, dead crops work again and are removed automatical per mod config, and dead crops can be removed by tools. 2017-09-14 13:49:19 -07:00
9888dacd22 Stuff serializes into chests 2017-09-13 17:11:05 -07:00
cf33b0228e Changed serialization manager, all objects serialize in world and inventory. Next is chests. 2017-09-13 13:53:12 -07:00