File tree Expand file tree Collapse file tree 14 files changed +234
-43
lines changed Expand file tree Collapse file tree 14 files changed +234
-43
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
9293How 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
101103Notes
102104-----
Original file line number Diff line number Diff line change 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+ ---------------------------------------------------------------------------------------------------
210Version: 0.1.0
311Date: 2021-06-13
412 Notes:
Original file line number Diff line number Diff line change 22-- Don't init if it's a campaign
33if script .level .campaign_name then return end
44
5-
5+ require ( " defines " )
66local event_handler = require (" event_handler" )
77local modules = {}
88modules .command_wrapper = require (" models/command-wrapper/control" )
Original file line number Diff line number Diff line change 1+ -- Prototypes: https://wiki.factorio.com/Prototype
2+
3+ require (" defines" )
Original file line number Diff line number Diff line change 1+ -- Prototypes: https://wiki.factorio.com/Prototype
2+
3+ require (" defines" )
Original file line number Diff line number Diff line change 11-- Prototypes: https://wiki.factorio.com/Prototype
2+
3+ require (" defines" )
Original file line number Diff line number Diff line change 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_"
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments