From 71c1270551937c9d337bd48e509c7cd92e7777fa Mon Sep 17 00:00:00 2001 From: B3CKDOOR <22119241+B3CKDOOR@users.noreply.github.com> Date: Thu, 5 Dec 2024 14:52:38 +0100 Subject: [PATCH 1/4] Fix bug output slot 0>1 and 1>2 --- Data/Scripts/SeMoreEvents/Components/Events/WeatherEvent.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Data/Scripts/SeMoreEvents/Components/Events/WeatherEvent.cs b/Data/Scripts/SeMoreEvents/Components/Events/WeatherEvent.cs index 662d591..60320cd 100644 --- a/Data/Scripts/SeMoreEvents/Components/Events/WeatherEvent.cs +++ b/Data/Scripts/SeMoreEvents/Components/Events/WeatherEvent.cs @@ -160,12 +160,12 @@ private void CheckWeather() if (_selectedWeatherId != currentWeatherId) { if (_prevWeatherId == _selectedWeatherId) - Block.TriggerAction(0); + Block.TriggerAction(1); return; } if (_prevWeatherId != currentWeatherId) - Block.TriggerAction(1); + Block.TriggerAction(2); _prevWeatherId = currentWeatherId; } @@ -204,4 +204,4 @@ public void UpdateDetailedInfo(StringBuilder info, int slot, long entityId, floa info.AppendFormat(MySpaceTexts.EventOutputInfo, slot); } } -} \ No newline at end of file +} From d7cf4137e9e57cc0b7c7afaa956a37c675834f0a Mon Sep 17 00:00:00 2001 From: B3CKDOOR <22119241+B3CKDOOR@users.noreply.github.com> Date: Wed, 11 Dec 2024 13:52:55 +0100 Subject: [PATCH 2/4] Readme from steam imported --- README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..6d99679 --- /dev/null +++ b/README.md @@ -0,0 +1,20 @@ +# Purpose +This mod for Space Engineers Beta introduces new event types for the Event Controller block. Now you can trigger different events based on thruster power, natural gravity, and more! With this mod, you'll be able to create more complex and interesting space scenarios. Check it out and make your space scenes even more immersive. + +## Event Types +| Name | Value | +| ------------ | ------------ | +| Current Weather | Type | +| Projection Built | % | +| Other Event Controller Triggered | none | + +## Contributing + +**Suggestions** +You can always suggest your own ideas for the new event types in comments down below! + +**Crowdfunding** +We're looking for translations on our [Crowdin](https://crowdin.com/project/se-more-events) + +**Developers** +Mod source code is available on [Github](https://github.com/zznty/SeMoreEvents) From 3ba3e2d92f6dff58f66d50930df349ae1238cdb3 Mon Sep 17 00:00:00 2001 From: B3CKDOOR <22119241+B3CKDOOR@users.noreply.github.com> Date: Wed, 11 Dec 2024 15:44:45 +0100 Subject: [PATCH 3/4] Update .gitignore Ignore Visual Studio folder --- .gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index add57be..0976324 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ bin/ obj/ /packages/ riderModule.iml -/_ReSharper.Caches/ \ No newline at end of file +/_ReSharper.Caches/ +/.vs From deff15ce71a20d8bf794f945eae0932b9f04be44 Mon Sep 17 00:00:00 2001 From: B3CKDOOR <22119241+B3CKDOOR@users.noreply.github.com> Date: Sun, 15 Dec 2024 23:09:34 +0100 Subject: [PATCH 4/4] Simplify code IF statement yes/no --- .../SeMoreEvents/Components/Events/WeatherEvent.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Data/Scripts/SeMoreEvents/Components/Events/WeatherEvent.cs b/Data/Scripts/SeMoreEvents/Components/Events/WeatherEvent.cs index 60320cd..811e4cc 100644 --- a/Data/Scripts/SeMoreEvents/Components/Events/WeatherEvent.cs +++ b/Data/Scripts/SeMoreEvents/Components/Events/WeatherEvent.cs @@ -157,15 +157,16 @@ private void CheckWeather() var currentWeatherId = GetCurrentWeatherId(); - if (_selectedWeatherId != currentWeatherId) + if (_selectedWeatherId == currentWeatherId) { - if (_prevWeatherId == _selectedWeatherId) - Block.TriggerAction(1); + Block.TriggerAction(0); + return; + } + else + { + Block.TriggerAction(1); return; } - - if (_prevWeatherId != currentWeatherId) - Block.TriggerAction(2); _prevWeatherId = currentWeatherId; }