Skip to content

Commit a10c815

Browse files
committed
Update to 0.2.1
1 parent ba626a0 commit a10c815

File tree

14 files changed

+234
-43
lines changed

14 files changed

+234
-43
lines changed

.gitignore

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
# OS #
2+
######
3+
.DS_Store
4+
5+
# Git #
6+
#######
7+
*.orig
8+
itory
9+
10+
# Packages #
11+
############
12+
# it's better to unpack these files and commit the raw source
13+
# git has its own built in compression methods
14+
*.7z
15+
*.dmg
16+
*.gz
17+
*.iso
18+
*.jar
19+
*.rar
20+
*.tar
21+
*.zip
22+
23+
# Node & Bower & JSPM #
24+
#######################
25+
node_modules
26+
bower_components
27+
jspm_packages
28+
29+
# NetBeans specific #
30+
#####################
31+
nbproject/private/
32+
build/
33+
nbbuild/
34+
dist/
35+
nbdist/
36+
.nb-gradle/
37+
nbactions.xml
38+
nb-configuration.xml
39+
40+
# KomodoEdit #
41+
##############
42+
*.komodoproject
43+
.komodotools
44+
45+
# Cloud9 #
46+
##########
47+
.c9revisions
48+
.c9
49+
50+
# Notepad++ backups #
51+
#####################
52+
*.bak
53+
54+
# Linux #
55+
#########
56+
*~
57+
# temporary files which can be created if a process still has a handle open of a deleted file
58+
.fuse_hidden*
59+
# KDE directory preferences
60+
.directory
61+
# Linux trash folder which might appear on any partition or disk
62+
.Trash-*
63+
# .nfs files are created when an open file is removed but is still being accessed
64+
.nfs*
65+
66+
# Node #
67+
########
68+
# Logs
69+
logs
70+
*.log
71+
npm-debug.log*
72+
yarn-debug.log*
73+
yarn-error.log*
74+
# Runtime data
75+
pids
76+
*.pid
77+
*.seed
78+
*.pid.lock
79+
# Directory for instrumented libs generated by jscoverage/JSCover
80+
lib-cov
81+
# Coverage directory used by tools like istanbul
82+
coverage
83+
# nyc test coverage
84+
.nyc_output
85+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
86+
.grunt
87+
# Bower dependency directory (https://bower.io/)
88+
bower_components
89+
# node-waf configuration
90+
.lock-wscript
91+
# Compiled binary addons (https://nodejs.org/api/addons.html)
92+
build/Release
93+
# Dependency directories
94+
node_modules/
95+
jspm_packages/
96+
# TypeScript v1 declaration files
97+
typings/
98+
# Optional npm cache directory
99+
.npm
100+
# Optional eslint cache
101+
.eslintcache
102+
# Optional REPL history
103+
.node_repl_history
104+
# Output of 'npm pack'
105+
*.tgz
106+
# Yarn Integrity file
107+
.yarn-integrity
108+
# dotenv environment variables file
109+
.env
110+
# parcel-bundler cache (https://parceljs.org/)
111+
.cache
112+
# next.js build output
113+
.next
114+
# nuxt.js build output
115+
.nuxt
116+
# vuepress build output
117+
.vuepress/dist
118+
# Serverless directories
119+
.serverless
120+
# VS Code stuff
121+
.vscode/launch.json

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ What it can do
6060

6161
* Filter parameters of commands
6262
* Add switchable commands via map settings
63+
* Double check of commands
6364
* Use built-in error handling of commands
6465
* Use modular structure
6566
* Remotely and safely disable your mod
@@ -92,11 +93,12 @@ Stuff used
9293
How to start?
9394
------------
9495

96+
* Change [info.json](info.json), [defines.lua](defines.lua)
9597
* Replace my nickname, this project in links with your stuff almost everywhere
96-
* **Change** settings in [models/command-wrapper/control.lua](models/command-wrapper/control.lua)
9798
* Remove unnecessary code, files in /models and create a file there with similar structure in the folder
9899
* Handle files in [control.lua](control.lua)
99100
* **Change or delete** .github/ISSUE_TEMPLATE/*
101+
* Change settings in [models/command-wrapper/control.lua](models/command-wrapper/control.lua) if you want
100102

101103
Notes
102104
-----

changelog.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
---------------------------------------------------------------------------------------------------
2+
Version: 0.2.0
3+
Date: 2021-06-14
4+
Changes:
5+
- Refactored
6+
- Improved command-wrapper
7+
Bugfixes:
8+
- Fixed switchable commands
9+
---------------------------------------------------------------------------------------------------
210
Version: 0.1.0
311
Date: 2021-06-13
412
Notes:

control.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
-- Don't init if it's a campaign
33
if script.level.campaign_name then return end
44

5-
5+
require("defines")
66
local event_handler = require("event_handler")
77
local modules = {}
88
modules.command_wrapper = require("models/command-wrapper/control")

data-final-fixes.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- Prototypes: https://wiki.factorio.com/Prototype
2+
3+
require("defines")

data-updates.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-- Prototypes: https://wiki.factorio.com/Prototype
2+
3+
require("defines")

data.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
-- Prototypes: https://wiki.factorio.com/Prototype
2+
3+
require("defines")

defines.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-- change this \/ in your mod!
2+
3+
MOD_NAME = "example-mod"
4+
5+
-- Don't use symbols like '-' etc (it'll break pattern of regular expressions)
6+
MOD_SHORT_NAME = "em_"

info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "example-mod",
3-
"version": "0.1.0",
3+
"version": "0.2.1",
44
"factorio_version": "1.1",
55
"title": "Example mod",
66
"author": "Put your nickname",

models/command-wrapper/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ What it can do
1515
* Filter parameters of commands
1616
* Add switchable commands via map settings
1717
* Use built-in error handling of commands
18+
* Double check of commands
1819
* Has simple integration (4+ lines)

0 commit comments

Comments
 (0)