-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored the Graphiz debugger code to follow the same style of code…
…, removed non-used code in comments, exposed Goal, precond and effects in the ReGoapNode, moved the DebugPlan boolean inside the PlannerSettings, Removed any local information from the pregenerated Debugger cs Updated the unity FSM example with various minor changes, both to the code and the scene - also upgraded the .NET version to 4.6 in Unity (needed for the Graphiz debugger!) Added a bat file to automatically generate PDFs out of Graphiz dot files
- Loading branch information
Showing
15 changed files
with
132 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
REM Helper bat file to create ps files with Graphiz's dot | ||
REM Graphiz must be installed and must be in Windows's PATH, alternatively just put your 'dot.exe' directory in the following var | ||
|
||
SET "dotPath=" | ||
REM Change this to the working directory, in Unity, if you place "ReGoap" inside Assets/, it will be '../../PlanDebugger' | ||
SET "workingPath=../../PlanDebugger/" | ||
SET "rawPath=Raws" | ||
SET "resultsPath=PDFs" | ||
SET "outputType=pdf" | ||
SET "rawSearch=%rawPath%/*" | ||
|
||
SET "currentDir=%cd%" | ||
|
||
CD %workingPath% | ||
ECHO "Changing working path to %workingPath%. Parsing files in %rawPath%. Saving in %resultsPath% with file type '%outputType%'." | ||
|
||
MKDIR %resultsPath% | ||
FOR %%I IN (%rawSearch%) DO %dotPath%dot -T%outputType% %rawPath%/%%I -o %resultsPath%/%%I.pdf | ||
|
||
explorer %cd%\%resultsPath% | ||
|
||
CD %currentDir% |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.