205 Commits

Autor SHA1 Nachricht Datum
Reinder Feenstra
48882fcf73 fix: loaded() event wasn't send to SubObject's 2021-06-04 00:32:24 +02:00
Reinder Feenstra
b7aa9fdabf fix: don't link with libstdc++fs on macOS 2021-05-29 22:05:28 +02:00
Reinder Feenstra
12f55cc344 fix for macOS 2021-05-29 21:49:05 +02:00
Reinder Feenstra
b39213f2b8 added support for macOS to endian.hpp 2021-05-29 21:43:22 +02:00
Reinder Feenstra
3e76285c4a Added quick implementation of LocoNet TCP binary for DR5000
Basicly a copy of LocoNetSerial with serial port replaced by a socket.
2021-05-28 22:42:37 +02:00
Reinder Feenstra
0e1cbf1dfc Fixed network protocol bug
The client could release an object handle while at the same the
handle was on the wire from the server to the client.
The client then expected a serialized object which the server didn't
send because the handle not yet release by the client at the time it
was sent.
Solution:
The client and server both count how many times an handle is send from
the server to  the client. The client object release only succeeds if the
counters match, to be sure no handles are "on the wire".
2021-05-26 23:02:05 +02:00
Reinder Feenstra
7044f4d00b first added decoder function type is now Light others are On/Off 2021-05-26 21:07:51 +02:00
Reinder Feenstra
1711108ee0 Added decoder function types: AlwaysOff, AlwaysOn 2021-05-26 21:05:26 +02:00
Reinder Feenstra
72514bf554 implemented mute/no smoke support in decoder 2021-05-25 23:58:24 +02:00
Reinder Feenstra
3225e7c6da added type property to decoder function 2021-05-25 23:56:26 +02:00
Reinder Feenstra
f7b087a562 xpressnet inputs are now automatically assigned to the first unused address if there is only one xpressnet bus 2021-05-24 00:44:55 +02:00
Reinder Feenstra
02a58d0f7d loconet inputs are now automatically assigned to the first unused address if there is only one loconet bus 2021-05-24 00:44:06 +02:00
Reinder Feenstra
025153156c input: don't show value property in edit dialog 2021-05-24 00:30:23 +02:00
Reinder Feenstra
aaf8831bcd input: set name to id when created 2021-05-24 00:26:20 +02:00
Reinder Feenstra
29f03eb46e moved some files related to input/output 2021-05-23 23:24:58 +02:00
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