2021-01-18 9:00 JST 〜 メンテナンスによるサービス全停止予定
  • R/O
  • SSH

コミット

タグ

よく使われているワード(クリックで追加)

javaandroidc++linuxc#objective-ccocoa誰得qtrubypythonwindowsphpgamebathyscaphegui翻訳comegattwitterframeworkbtronvb.net計画中(planning stage)testdomarduinodirectxpreviewerゲームエンジン

A simple mod for the game "Factorio" that does what it's name implies.


コミットメタ情報

リビジョン595ec2423a574229dd49c8d91f501a3ae113b208 (tree)
日時2020-10-02 21:47:10
作者Eric Hopper <hopper@omni...>
コミッターEric Hopper

ログメッセージ

Backport changes from 0.2 branch to 0.1 branch.

変更サマリ

差分

diff -r 7c1ed8f83697 -r 595ec2423a57 changelog.txt
--- a/changelog.txt Tue Feb 26 19:39:09 2019 -0800
+++ b/changelog.txt Fri Oct 02 05:47:10 2020 -0700
@@ -1,3 +1,20 @@
1+---------------------------------------------------------------------------------------------------
2+Version: 0.1.5
3+Date: 02. 10. 2020
4+ Changes:
5+ - Backport changes and bugfixes from 0.2 (aka Factorio 0.18/1.0)
6+ branch to 0.1 (aka Factorio 0.17).
7+ - Fix control prototype to no longer use long-deprecated 'script-only'
8+ consume mode. This may result in some behavior change if you have the
9+ control key used for RunSpeedToggle also bound to other actions. The
10+ deprecated 'script-only' mode still works in 0.17, but the change is
11+ being backported anyway.
12+ - Change default binding for toggle key to F6 to avoid conflicting
13+ with keys that are part of Factorio base and to be consistent with the
14+ 0.18 version.
15+ Bugfixes:
16+ - Make negative speeds work correctly. This involved fixing a broken
17+ floating point comparison function.
118 ---------------------------------------------------------------------------------------------------
219 Version: 0.1.4
320 Date: 26. 02. 2018
diff -r 7c1ed8f83697 -r 595ec2423a57 control.lua
--- a/control.lua Tue Feb 26 19:39:09 2019 -0800
+++ b/control.lua Fri Oct 02 05:47:10 2020 -0700
@@ -40,8 +40,8 @@
4040 end
4141
4242 local function approx_eq(v1, v2, errscale)
43- offset = v2 * errscale
44- return ((v1 >= (v2 - offset)) and (v1 <= (v2 + offset)))
43+ offset = math.max(math.abs(v1 * errscale), math.abs(v2 * errscale))
44+ return math.abs(v1 - v2) <= offset
4545 end
4646
4747 local function on_hotkey(event)
diff -r 7c1ed8f83697 -r 595ec2423a57 data.lua
--- a/data.lua Tue Feb 26 19:39:09 2019 -0800
+++ b/data.lua Fri Oct 02 05:47:10 2020 -0700
@@ -3,8 +3,8 @@
33 {
44 type = "custom-input",
55 name = "runspeedtoggle_hotkey",
6- key_sequence = "F1",
7- consuming = "script-only"
6+ key_sequence = "F6",
7+ consuming = "none"
88 },
99 }
1010 )
diff -r 7c1ed8f83697 -r 595ec2423a57 info.json
--- a/info.json Tue Feb 26 19:39:09 2019 -0800
+++ b/info.json Fri Oct 02 05:47:10 2020 -0700
@@ -1,6 +1,6 @@
11 {
22 "name": "RunSpeedToggle",
3- "version": "0.1.4",
3+ "version": "0.1.5",
44 "title": "Run Speed Toggle",
55 "author": "Omnifarious",
66 "contact": "eric-factorio@omnifarious.org",