Skip to content
This repository was archived by the owner on Jul 5, 2025. It is now read-only.

Commit 4de384d

Browse files
add dll version log message on awake
1 parent f7779b0 commit 4de384d

4 files changed

Lines changed: 18 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [1.1.4] - 2023-05-13
99

10+
- add dll version log message on awake
1011
- fix travel through rotated multidim blocks
1112
- update console enable/disable debug command
13+
- update readme with setup steps
1214

1315
## [1.1.3] - 2023-04-16
1416

ModInfo.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<Name value="Quantum Elevators" />
44
<Description value="Add infinite distance, vertical-warp elevator panels." />
55
<Author value="Jonathan Robertson (Kanaverum)" />
6+
<!-- REMINDER: this mod's DLL version will be logged on GameAwake and should reflect the same version listed here! -->
7+
<!-- If troubleshooting an issue, search "Quantum Elevators DLL" in logs to confirm these two values match. -->
68
<Version value="1.1.4" />
79
<Website value="https://github.com/jonathan-robertson/quantum-elevators" />
810
</ModInfo>

QuantumElevators.dll

512 Bytes
Binary file not shown.

src/ModAPI.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,23 @@ public void InitMod(Mod _modInstance)
2222
harmony.PatchAll(Assembly.GetExecutingAssembly());
2323
_log.Info("loaded");
2424

25+
ModEvents.GameAwake.RegisterHandler(OnGameAwake);
2526
ModEvents.GameStartDone.RegisterHandler(OnGameStartDone);
2627
}
2728

29+
private const string DLL_VERSION = "1.1.4"; // TODO: always update this before each release
30+
private void OnGameAwake()
31+
{
32+
try
33+
{
34+
_log.Info($"Quantum Elevators DLL Version: {DLL_VERSION}");
35+
}
36+
catch (Exception e)
37+
{
38+
_log.Error("OnGameAwake", e);
39+
}
40+
}
41+
2842
private void OnGameStartDone()
2943
{
3044
try

0 commit comments

Comments
 (0)