129 Commits

Autor SHA1 Nachricht Datum
Reinder Feenstra
49ff1cb553 board: added switch tile 2024-05-05 18:28:43 +02:00
Reinder Feenstra
9560f6519e lua: added label tile support 2024-04-25 23:34:42 +02:00
Reinder Feenstra
25c1f8ee0e Lua: added Color and TextAlign enums 2024-04-25 23:24:13 +02:00
Reinder Feenstra
f8c4b8549d lua: added support for setting enum properties 2024-04-25 23:23:29 +02:00
Reinder Feenstra
c18a64fd6f fix: invalid stack index in Object newindex metamethod 2024-04-25 23:23:18 +02:00
Reinder Feenstra
fcccab334f Renamed DCC++ to DCC-EX, as only DCC-EX is and will be supported. 2024-04-09 00:26:04 +02:00
Reinder Feenstra
5f0d78ae14 OutputController: Added support for ECoS object, see #95 2024-03-13 23:45:23 +01:00
Reinder Feenstra
a3a3e702e1 lua: added interface.output_channels 2024-02-26 00:24:30 +01:00
Reinder Feenstra
f828066cf2 WIP output system refactor (very big commit...), see #95 and #21
Summary of the changes:
- Output channel is now an enum
- Support for different output types: single/pair/aspect
- Outputs are no longer created on the interface and then assigned to a turnout/signal, instead a interface+channel+address is selected for a turnout/signal. Up to eight address can be used.
- Removed some network commands, can now be handled using the generic property/method system.
- Added support for DCCext (RCN-213) for LocoNet, DCC-EX and Z21.
TODO:
- Test/fix MarklinCAN/ECoS.
- Test/fix load old world files.
2024-02-12 23:34:16 +01:00
Reinder Feenstra
9594ad16f4 lua: made loconet imm_packet repeat optional 2024-01-04 00:35:16 +01:00
Reinder Feenstra
7574b96af1 fix: script state restore didn't fully work 2024-01-01 22:08:21 +01:00
Reinder Feenstra
74deba6712 lua: added nx and push button classes 2023-12-29 22:23:07 +01:00
Reinder Feenstra
8ec71e496d adding path reservation #WIP
see #14
2023-11-01 22:19:04 +01:00
Reinder Feenstra
5eaa45b3e0 lua: class: added INTERFACE for consistency 2023-09-25 22:52:40 +02:00
Reinder Feenstra
324435ed49 lua: added missing class id's for identification (list) 2023-09-25 22:48:45 +02:00
Reinder Feenstra
eb63012511 Object events more consistent now
Last param is now always the object emitting the event (except for singleton's like World and Clock)
Lua handler no longer adds the emitting object param (is in the event now)
2023-09-24 11:05:35 +02:00
Reinder Feenstra
a9aef63e4e fix: world failed to load if a script was present 2023-09-23 22:49:08 +02:00
Reinder Feenstra
b2c88e2c01 lua: implemented excution time limit 2023-09-17 19:16:54 +02:00
Reinder Feenstra
54ba3664a6 Merge remote-tracking branch 'origin/master' into 11-märklin-cs2cs3-hardware-support 2023-07-09 23:15:32 +02:00
Reinder Feenstra
b9dcc0703e Merge remote-tracking branch 'origin/master' into 11-märklin-cs2cs3-hardware-support 2023-07-01 01:09:51 +02:00
Reinder Feenstra
e28a9a5d96 DecoderProtocol: removed Auto/Custom, added None
see #72
2023-06-24 23:41:58 +02:00
Filippo Gentile
0c111c6763 server: further fix compilation after method.hpp split
Co-authored-by: Reinder Feenstra <reinderfeenstra@gmail.com>
2023-06-18 13:23:35 +02:00
Filippo Gentile
4c58c9d829 server: split method.hpp implementation
- Added method.tpp file
- Include it where needed
- Use CREATE_DEF when needed
2023-06-18 13:23:31 +02:00
Reinder Feenstra
c0ec3c7731 loconet: added support for sending messages from script 2023-06-14 21:31:42 +02:00
Reinder Feenstra
64272c8b06 lua status: fix: running count was not correct after load 2023-06-10 00:29:41 +02:00
Reinder Feenstra
b609d84815 lua: added object argument support to methods 2023-06-10 00:29:41 +02:00
Reinder Feenstra
2571542067 lua: added vector property support 2023-06-10 00:29:40 +02:00
Reinder Feenstra
a032935294 toolbar: added Lua status widget
only visible if scriptlist isn't empty
2023-06-08 00:23:43 +02:00
Reinder Feenstra
0d01d04112 lua: interface name, online, status available (readonly) 2023-06-06 00:00:37 +02:00
Reinder Feenstra
c6913206e5 loconet: added support for sending OPC_IMM_PACKET from script 2023-06-05 00:31:21 +02:00
Reinder Feenstra
176db3c764 lua: refactor object wrapper
now seperate object wrappers are per class
2023-06-05 00:26:45 +02:00
Reinder Feenstra
246b27c434 moved ObjectProperty<> implementation to seperate file
world.hpp now uses forward decl. for many classes, this reduces built time!
see #43
2023-03-30 15:09:11 +02:00
Reinder Feenstra
a2ed365050 renamed: FreightCar to FreightWagon 2023-03-09 23:49:51 +01:00
Reinder Feenstra
63a5b8c7af rename list add/remove to create/delete
add = add existing item
remove = remove item, but don't destroy it
2023-02-25 23:15:38 +01:00
Reinder Feenstra
143bb49a68 renamed MarklinCSInterface to MArklinCANInterface
see #11
2023-01-29 10:17:33 +01:00
Reinder Feenstra
268479f224 #11 marklin-cs: added interface class 2023-01-20 23:02:46 +01:00
Reinder Feenstra
61b3db241a bugfix: assert() triggered on invalid data on world close
closes #8
2023-01-17 23:43:39 +01:00
Reinder Feenstra
d77ddfbafb fix: added missing destroying() in Lua::Script 2023-01-06 00:55:53 +01:00
Reinder Feenstra
50f14074a1 added basic WiThrottle support 2022-12-04 23:54:32 +01:00
Reinder Feenstra
8f70509465 added base classes for identification support 2022-09-16 22:33:10 +02:00
Reinder Feenstra
f0989ff85c fix: added missing include for ubuntu 22.04 2022-09-02 19:41:40 +02:00
Reinder Feenstra
d25edfe913 lua: script no longer calls init() function if found
must now be added to script
2022-09-02 00:13:56 +02:00
Reinder Feenstra
228fde8fbe lua: added contains method to sets 2022-08-28 17:36:21 +02:00
Reinder Feenstra
5bffbccce2 test: added test for lua class.get() 2022-08-27 11:42:52 +02:00
Reinder Feenstra
cfdc203c2b lua: fixed class.get() now works as explained in manual 2022-08-27 11:39:05 +02:00
Reinder Feenstra
278b754bc1 log 3rd party component versions at startup 2022-08-25 00:23:27 +02:00
Reinder Feenstra
9f52368ad9 Version numbering improvements
- GitHub actions branch builds have a <branch>-<pipeline>-<sha_short> suffix.
- GitHub actions tag builds have no suffix.
- Other builds have a -dev suffix
2022-06-12 00:16:19 +02:00
Reinder Feenstra
73b5b53e6c input: published name and value to lua (readonly) 2022-05-22 11:39:29 +02:00
Reinder Feenstra
7978c76898 lua: added start/stop all to script list and added disabled property to script (to prevent start all) 2022-05-04 23:55:14 +02:00
Reinder Feenstra
371f82c433 added assert to check for use of missing enum values 2022-05-02 09:25:32 +02:00