Skip to content

Commit

Permalink
Adding Rule Based Config (#34)
Browse files Browse the repository at this point in the history
* Updates to deal with IOException

* Cleanup and version number update

* Fixing multiple event registration

* Adding vscode tasks

* Fixing new game + event registration

* Updating info message

* Update README.md

Fixed logo

* Refactor/Rewrite and code cleanup

* Changed to move instead of copy/delete

* Removed queues (not helpful)

* Adding rules structure

* Rule Processing Progress

* Added locations and filename calculation

* Added migration from old auto rules to new

* Cleaning up warning

* Adding keypress rules

* Adding validation, testing fixes

* Validation complete + Version rev

* Fixed defect + made moves more reliable
Using queues to wait on warp so the screen renders
Using queues to wait for ticks before moving files
Fixed issues where rules were applied incorrectly
Added documentation
Fixed exception for key commands during load screen

* Update README.md

Documenting new config file format

* Update README.md

* Update ModConfig.cs

* Update ModTrigger.cs

* Update README.md

Clarifying the values

* Update README.md

* Update README.md

* Update README.md

* Update todo.md

* Validation update

* Documentation/Warnings/Validation
Added more validation
Added checks for filename overlap
Addec checks for rules that will never trigger
Added dialog box on config file load failure
Added warnings on fixup
Added function documentation
Updated user documentation
Fixed spelling in user documenation
Made days work without the leading 0
Set a reasonable minimum on ZoomLevel
Fixed release build error (Verbose log only takes one parameter)

* Objects + Documentation
Added documentation of functions
Using FileInfo and DirectoryInfo objects

* Test fixes

* Helper functions for Optimization + Build and Doc
Fixed Typo
Added markdown lint
Changed builds (vscode + monodevelop)
Added helper functions
Added TODOs

* Only listen to events when it makes sense to do so

* Removing trace messages

* Moving traces to debug

* Updating todo list

* More items complete

* Updating for known defects

* Fixing overlap warning

* Adding Tests, User Feedback and Fixing Defects
Found the overlap checking for days/months was wrong
Added space before the rule name when displaying
Added json files for testing
Added script for generating the days json file
Fixed typo

* Updating ToDo list

* ToDo and Test Cases
Added inactive test cases
Ran weather tests, added results
Updated todo

* ToDo List, Last Test Case
Test complete
Feature complete

* Adding flash and button to config menu
Added a show config.json to the config menu under DailyScreenshot Mod
Added the flash when taking a screenshot
  • Loading branch information
kins-dev authored Mar 11, 2020
1 parent 9293522 commit d744d26
Show file tree
Hide file tree
Showing 23 changed files with 4,577 additions and 267 deletions.
43 changes: 1 addition & 42 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,47 +1,6 @@
{
"cSpell.words": [
"COPROC",
"Chucklefish",
"Highcharts",
"Iseconds",
"Keypress",
"Mosfet",
"NUMSECTIONS",
"OUTFILE",
"PYTHONPATH",
"Pathoschild",
"Raspian",
"Ruediger",
"SMAPI",
"VARNAME",
"WEBDIR",
"bluepy",
"certbot",
"chmod",
"configparser",
"eval",
"extglob",
"ezgif",
"gerbers",
"gpio",
"hciconfig",
"hcitool",
"igrill",
"kasa",
"leds",
"lescan",
"libglib",
"lighttpd",
"nocasematch",
"omxplayer",
"readlink",
"rgba",
"shopt",
"smarthome",
"socio",
"ssrc",
"stardew",
"stdbuf",
"tplink"
"Stardew"
]
}
92 changes: 77 additions & 15 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,98 @@
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [{
"label": "Build Debug",
"type": "shell",
"label": "Clean",
"linux": {
"type": "process",
"options": {
"cwd": "DailyScreenshot"
},
"command": "mdtool",
"args": [
"build",
"-c:Debug"
"-t:Clean",
"-c:${input:Configuration}"
],
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": true,
"revealProblems": "onProblem"
}
}, {
"label": "Build Release",
},
"problemMatcher": ["$msCompile"],
"group": "build",
"detail": "Cleans the workspace",
"runOptions": {
"reevaluateOnRerun": false
}
}, {
"label": "Build",
"linux": {
"type": "shell",
"options": {
"cwd": "DailyScreenshot"
},
"command": "mdtool",
"args": [
"build",
"-c:Release"
"-c:${input:Configuration}"
],
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": false,
"revealProblems": "onProblem"
}
},
"problemMatcher": ["$msCompile"],
"group": {
"kind": "build",
"isDefault": true
},
"runOptions": {
"reevaluateOnRerun": false
}
},
{
"label": "Deploy",
"linux": {
"type": "shell",
"options": {
"cwd": "DailyScreenshot/obj/${input:Configuration}"
},
"command": "mv",
"args": [
"DailyScreenshot.{dll,pdb}",
"~/.steam/steam/steamapps/common/'Stardew Valley'/Mods/DailyScreenshot/."
],
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
"presentation": {
"echo": true,
"reveal": "always",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": false
}
}]
},
"problemMatcher": [],
"group": "none",
"runOptions": {
"reevaluateOnRerun": false
},
"dependsOn": ["Build"]
}
],
"inputs": [{
"id": "Configuration",
"type": "pickString",
"description": "Build type",
"options": ["Debug", "Release"]
}]
}
7 changes: 6 additions & 1 deletion DailyScreenshot/DailyScreenshot.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand Down Expand Up @@ -41,10 +41,15 @@
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="Newtonsoft.Json">
<HintPath>packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="ModConfig.cs" />
<Compile Include="ModEntry.cs" />
<Compile Include="ModRule.cs" />
<Compile Include="ModTrigger.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
Expand Down
1 change: 0 additions & 1 deletion DailyScreenshot/Makefile

This file was deleted.

Loading

0 comments on commit d744d26

Please sign in to comment.