Reinder Feenstra
2f1ec0ab16
loconet outputs are now automatically assigned to the first unused address if there is only one loconet bus
2021-05-23 11:16:44 +02:00
Reinder Feenstra
0797828064
output: don't show value property in edit dialog
2021-05-23 10:49:23 +02:00
Reinder Feenstra
0d6aec544d
Output: set name to id when created
2021-05-23 10:47:10 +02:00
Reinder Feenstra
cfed6ed9f1
bugfix: Client::connectionLost/connectionError must be called in eventloop
2021-05-23 01:58:46 +02:00
Reinder Feenstra
ccaebb6190
fix: implemented Traintastic::clientGone()
2021-05-23 01:58:46 +02:00
Reinder Feenstra
6a525eb94b
world: added scaleRatio property
2021-05-22 00:10:12 +02:00
Reinder Feenstra
fb1eed69f6
Added world properties menu item/dialog
2021-05-21 23:11:26 +02:00
Reinder Feenstra
8bac326a2e
sorted WorldScaleValues big to small
2021-05-21 23:09:22 +02:00
Reinder Feenstra
55dfc63bac
removed no longer used enum TraintasticMode
2021-05-21 08:03:55 +02:00
Reinder Feenstra
8b961ac706
fixed server version log message
2021-05-21 00:27:40 +02:00
Reinder Feenstra
06342baaa0
Added *no smoke* option to world.
...
(will force disable all smoke generation in future)
2021-05-21 00:20:54 +02:00
Reinder Feenstra
b39b6ad162
Lua script code now save to seperate file
2021-05-14 11:07:34 +02:00
Reinder Feenstra
754acd528a
loader/saver: added support for load/save additional files
2021-05-14 11:03:40 +02:00
Reinder Feenstra
1e69644dba
Added support for sha1 digest calculation of strings and files
2021-05-14 10:56:44 +02:00
Reinder Feenstra
a218a2b3e4
World object now loaded/saved using generic object load/save
2021-05-13 23:47:58 +02:00
Reinder Feenstra
dd738257b3
Added store attributes to world properties
2021-05-13 23:40:28 +02:00
Reinder Feenstra
eef3fc41e0
Added display name attributes for id/name/notes properties
2021-05-13 22:18:00 +02:00
Reinder Feenstra
23d00df4f1
Added DisplayName attribute, to override the default class_id:property_name
2021-05-13 21:31:14 +02:00
Reinder Feenstra
7e6fe45af9
server now displays a message when running in windows system tray
2021-05-12 21:39:59 +02:00
Reinder Feenstra
5bf2875b6c
Added --tray option to run server in windows system tray
...
The https://github.com/zserge/tray code was very helpful for getting it done.
2021-05-11 23:23:05 +02:00
Reinder Feenstra
7967800dcb
windows: added version resource to client and server
2021-05-07 00:01:10 +02:00
Reinder Feenstra
75e17dcb96
moved project version to shared file
2021-05-04 23:14:28 +02:00
Reinder Feenstra
ef610b3e43
moved frozen to shared/thirdparty
2021-04-23 21:59:13 +02:00
Reinder Feenstra
b6db974745
lua: added set support to check<> and to<>
2021-04-23 21:03:22 +02:00
Reinder Feenstra
d9b121948f
Lua: fix: ReadOnlyTable, existing keys could be written
2021-04-22 23:28:41 +02:00
Reinder Feenstra
919e2e2787
test: lua: added check if writing to enum/set.type_name.* raises an error
2021-04-22 23:24:27 +02:00
Reinder Feenstra
7ab43c4598
test: added missing registation of Lua::ReadOnlyTable
2021-04-20 23:08:22 +02:00
Reinder Feenstra
56926a375a
Lua::ReadOnlyTable added assert to check if type is registered
2021-04-20 23:07:51 +02:00
Reinder Feenstra
ef6d5ff9fd
Lua: moved all error's to error.hpp
...
for easy reuse and maintenance
2021-04-20 22:59:51 +02:00
Reinder Feenstra
5b4ab8f30d
Added test and support for Lua::check<> enum's
2021-04-20 22:24:26 +02:00
Reinder Feenstra
1c4b3bb74a
Added test and support for Lua::check<> string/string_view
2021-04-20 22:22:23 +02:00
Reinder Feenstra
beb4576dc1
Lua::check<> fixed (u)int implementation
...
moved error to seperate header for easier re-use
2021-04-19 23:22:15 +02:00
Reinder Feenstra
d9f02fcbac
added tests Lua::check<> bool, int and float types
2021-04-19 23:20:39 +02:00
Reinder Feenstra
08f78d1ab9
test: moved protect jmp_buf global to lua state
...
so every lua state has its own jmp_buf
2021-04-19 23:18:50 +02:00
Reinder Feenstra
fb1eecb01f
Added ccov (code coverage) target
2021-04-14 20:57:20 +02:00
Reinder Feenstra
c24c1d7e4a
test lua enum: added tostring testing
2021-04-14 20:47:23 +02:00
Reinder Feenstra
b45a1c851f
added missing include guard
2021-04-14 08:09:03 +02:00
Reinder Feenstra
5727e70048
removed garbage code
2021-04-14 08:08:25 +02:00
Reinder Feenstra
f2b7d7bb52
test lua: replace panic-to-exception by longjmp
...
calls to Lua can now easily be protected using the protect<> template function, it will return false if a lua error occurs.
The exception method didn't work properly with catch2 on windows.
2021-04-14 00:04:03 +02:00
Reinder Feenstra
0ae199574e
added license header to tests
2021-04-12 23:41:54 +02:00
Reinder Feenstra
ac1ade0a3d
test: Added test for Lua::Enum<>
2021-04-12 23:31:41 +02:00
Reinder Feenstra
a4a90fde12
test fix: added missing pushnumber
2021-04-12 23:30:22 +02:00
Reinder Feenstra
13cf3ed57f
Lua::to<> added enum support
2021-04-12 23:29:44 +02:00
Reinder Feenstra
6e8dd4972b
lua enum: added assert to check if registered
2021-04-12 23:25:10 +02:00
Reinder Feenstra
b4bb83f108
test: added Lua::Set<> test
2021-04-07 23:03:16 +02:00
Reinder Feenstra
282cc1c9c5
lua: set: added support for add/subtract operators
2021-04-07 23:00:13 +02:00
Reinder Feenstra
cc79919789
renamed trackPowerOff to powerOn (inverts value!)
2021-04-06 22:55:47 +02:00
Reinder Feenstra
1b64fd275e
command station: don't store online/emergency_stop/track_voltage_off as state values
...
properties must have a safe value when created/loaded
2021-04-05 23:29:27 +02:00
Reinder Feenstra
cba0a554a5
controller: now responds to offline/online events
2021-04-05 23:20:48 +02:00
Reinder Feenstra
0eafd5018c
redesigned world states/events
...
- added online/offline for connection to e.g. command station(s)
- changed track power to more generic power on/off
- renamed emergency stop to stop
- added run, to clear stop
- added mute function (not yet handled internally)
2021-04-05 16:47:26 +02:00