Commit Graph

863 Commits

Author SHA1 Message Date
orwell 2dab59f055 Start changing APIs and applying proof-of-concept to ks signals 2024-02-06 21:10:40 +01:00
orwell aa9033f901 Implementation Plan 2024-01-28 23:42:56 +01:00
Y. Wang 5695a3e9ee
Adjust default aspect to allow shunting 2023-04-10 19:01:03 +02:00
Y. Wang 2afe802798
Allow selecting named aspect 2023-03-26 16:25:45 +02:00
Y. Wang e25b1c744d
Cancel type 2 signals; introduce signal groups for all signals 2023-03-26 11:53:00 +02:00
Y. Wang e61fe3176a
Show IP form for repeater signals 2023-03-23 20:06:03 +01:00
Y. Wang d443d8e07a
Distant signaling: avoid signal signs 2023-03-23 20:06:02 +01:00
Y. Wang 2d072cdc67
Rework formspecs; add description to JP signal group 2023-03-23 20:06:02 +01:00
Y. Wang 67efae9c9a
Adjust signal aspect formspecs to be of similar size 2023-03-23 20:06:02 +01:00
Y. Wang 640d72929d
Remove pre_occupy (not used); put detailed luacov info in artifacts 2023-03-23 20:06:02 +01:00
Y. Wang 778c9096ae
Optimize textures in previous commits 2023-03-23 20:06:02 +01:00
Y. Wang d290e8e994
Increase testing coverage for signal_aspects API 2023-03-23 20:06:02 +01:00
Y. Wang ba98fa5378
Harden type 2 signal group API; add test for type 2 main signals 2023-03-23 20:06:02 +01:00
Y. Wang d61c720020
Add texture for Japanese signal masts 2023-03-23 20:06:02 +01:00
Y. Wang 69c0fd9aca
Use green Ks masts 2023-03-23 20:06:02 +01:00
Y. Wang 7c9fd9179d
Add API documentation 2023-03-23 20:06:02 +01:00
Y. Wang 30a0f86248
Properly handle repeater signals 2023-03-23 20:06:02 +01:00
Y. Wang 34405b8431
Allow assigning distant signals from the main signal 2023-03-23 20:06:02 +01:00
Y. Wang a4abbf8824
Add hotfix for path invalidation 2023-03-23 20:06:02 +01:00
Y. Wang 6ae0615309
Automatic dst unassignment; respect tcbs.nodst 2023-03-23 20:06:02 +01:00
Y. Wang 4a3d442601
Reduce number of set_aspect calls 2023-03-23 20:06:02 +01:00
Y. Wang 875968f078
Unassign distant signals when canceling route 2023-03-23 20:06:02 +01:00
Y. Wang bd20da95ec
Remove test world script from CI
The system involving the test world has not been updated for a
significant amount of time and will likely be replaced with unittests
in the future.
2023-03-23 20:06:02 +01:00
Y. Wang 98c3710876
Implement primitive distant signaling 2023-03-23 20:06:02 +01:00
Y. Wang d1a0d8f265
Use tabs to switch between signaling and IP forms 2023-03-23 20:06:02 +01:00
Y. Wang 220563012d
Record signal aspect to avoid excessive get_aspect calls; report testing coverage 2023-03-23 20:06:02 +01:00
Y. Wang 9d5205e7e2
Use mineunit for advtrains_* 2023-03-23 20:06:02 +01:00
Y. Wang 5c8962b39b
Implement basic route signaling with Japanese signals for demo 2023-03-23 20:06:02 +01:00
Y. Wang 0b4cdbb455
Add Ne 3 and Ne 4 2023-03-23 20:06:01 +01:00
Maverick2797 3a6b1ca850 Add get_fc() and set_fc() commands
get_fc: returns a table of each wagon's FC codes
set_fc: set a table to overwrite the FC codes of a train's wagons
2023-03-17 20:03:12 +01:00
Maverick2797 82987b1a4f small security fixes in advtrains_luaautomation/
- fixed file permissions of advtrains_luaautomation/README.md (755->644)
 - fixed file permissions of advtrains_luaautomation/environment.lua (755->644)
 - prevented LuaATC section_occupancy() from having direct access to the interlocking section id occupancy table
 - simplify section_occupancy() logic
2023-03-17 19:57:43 +01:00
Maverick2797 cad4809b99 Add punchers name to ops panel punch event
event={type="punch", punch=true, name="foo"}
2023-03-12 17:24:27 +01:00
orwell96 2b21817b4f On_Joinplayer: fix train ID check for attachment update
Previously, statement was always false because train_id is no longer in the luaentity
2022-06-13 14:17:24 +02:00
Antonia 744aee2cdd Minor change to README
45 degree platform design is not a sound
2022-03-03 00:12:43 +01:00
orwell96 8beacdc508 Fix new wagon positioning when wheel positions are asymmetric, and remove leftover train.debug 2022-02-24 22:04:39 +01:00
orwell96 3cb21a80dc Wagons: Add two-pos wheel positioning logic for more realistic look of long wagons
Adds field "wheel_positions" in wagon definition
2022-02-09 23:06:02 +01:00
orwell96 ef8391a60d atc_reset(): Removed unused string parameter and also clear ATC autocouple flag (Cpl)
Fixes H#189 and H#190
2021-12-31 16:04:04 +01:00
Maverick2797 78e0c650e3 Load/Unload Track FC Integration
- Set a freight code in the track to whitelist only wagons with that FC as the current one

 - Set as # to disable the track

 - Set as a blank field (default) to allow all wagons to activate, irrespective of their FC
2021-12-29 21:21:37 +01:00
Maverick2797 7db61e9890 Automatically group wagons and locomotives based on definition values
Based on the advtrains wiki groups:
  Type		Group			Classifier
- Locomotives:	group:at_loco		is_locomotive = true
- Controllable:	group:at_control	seat_groups.dstand
- Passengers:	group:at_pax		seat_groups.pass
- Freight:	group:at_freight	has_inventory = true
2021-12-29 21:17:34 +01:00
Maverick2797 23d524df71 Luaautomation: add section_occupancy()
Returns a table of train ids for the specified section.
Returns nil if the section id is not provided..
Returns false if the section id is invalid.
Returns an empty table if the section id is valid but empty of trains.
2021-12-29 21:16:32 +01:00
Y. Wang 5912f778e1 Fix speed sign allowing v>max_speed 2021-12-16 22:24:05 +01:00
1F616EMO 0b9441c289 Add C&C Servers into the testing server list, since we are using the latest commit 2021-11-26 12:33:28 +01:00
ywang f27640ee27 Trivial fixup for train decoupling regression 2021-11-20 01:59:26 +01:00
orwell96 358bff47b2 Interlocking: Correct duplicate influence points semi-automatically
Searches and deletes duplicate influence points for the same signal when "Influence Point" formspec is opened.
2021-11-14 17:32:20 +01:00
Gabriel Pérez-Cerezo 546ae49167 rewrite readme in markdown, add more information 2021-11-10 16:35:42 +01:00
Gabriel Pérez-Cerezo 02687c11ee Remove non-deterministic test 2021-11-10 11:48:27 +01:00
Gabriel Pérez-Cerezo 890369090e Activate serialize_lib unit tests 2021-11-10 11:39:54 +01:00
Gabriel Pérez-Cerezo 3561a7bfa2 Add more unit tests, fix broken unit test 2021-11-09 21:56:41 +01:00
Gabriel Pérez-Cerezo 9ec9db0ca9 configure build.yml to run the unit tests 2021-11-09 21:51:33 +01:00
Maverick2797 43c85ab8cf readme atc_set_ars_disable typo 2021-11-09 21:45:33 +01:00