orwell96
edcc0d0917
Open files in binary mode; also serialize carriage return
...
Bumps serialization version as CR escape would not be read correctly in older version
2021-04-04 19:55:21 +02:00
orwell96
3dc6426e86
Remove sounds = default.sound_stone_defaults() as default is no longer a dependency
2021-04-04 19:48:35 +02:00
Blockhead
99e619a2e5
Make mesecons_switch a proper optional dependency (H#175)
2021-03-31 09:31:33 +02:00
orwell96
f5689e9e91
Add documentation and license
2021-03-22 13:28:21 +01:00
orwell96
2e281b134b
Fix init.lua functions to do what is documented on error
2021-03-22 12:40:54 +01:00
orwell96
5d372b1cf1
Increase size of LuaATC code input forms to 15x12 units
...
The current size of the code form is rather limiting as it fills only a small part of the screen.
Also adds global constant in init.lua so this can easily adapted in the future
2021-03-22 11:23:42 +01:00
hlqkj
4fcc552770
Remove "Last punched" from LuaATC init code fs
...
Also removed the now-dead last punch pos helper code.
Resized buttons accordinghly.
2021-03-22 11:06:34 +01:00
hlqkj
ace8ca0fda
Rework route ui formspec layout
...
- Aligned stuff
- Added style to use monospaced font in the ars rules editor textarea
2021-03-22 11:06:29 +01:00
hlqkj
b9c824db00
Rework active_common formspec layout
...
- Aligned stuff
- Added style to use monospaced font in the code editor textarea
- Added label to the environment dropdown
2021-03-22 11:06:26 +01:00
hlqkj
75474ec07e
Rework envsetup formspec layout
...
- Aligned stuff
- Added style to use monospaced font in the code editor textarea
2021-03-22 11:06:22 +01:00
hlqkj
5f2e40a08f
Use mono font to ATC rail command fields
2021-03-22 11:06:18 +01:00
hlqkj
07b1231f75
Rework stoprail formspec layout and add mono style
...
- Rework formspec layout, fixed tab order
- Added style to use monospaced font for the stn and ars fields
2021-03-22 11:06:03 +01:00
Blockhead
5b4f5491d2
Do not return early after setting station info on stop rail
...
Solves Hemiptera#171
2021-03-22 11:02:10 +01:00
Blockhead
7e94650b8d
Do not crash when operating signals without interlocking
...
The default set of signals were crashing when operated by right-clicking or
mesecons when advtrains_interlocking was not enabled.
2021-03-22 10:51:03 +01:00
orwell96
a224027b16
Add 'serialize_lib/' from commit 'a6e8b8b4353863ad563a4d5187f40fea702ea2de'
...
git-subtree-dir: serialize_lib
git-subtree-mainline: b82e10051d
git-subtree-split: a6e8b8b435
2021-03-13 11:29:44 +01:00
orwell96
b82e10051d
Remove serialize_lib in order to re-add it as subtree
2021-03-13 11:29:17 +01:00
orwell96
a6e8b8b435
mod.conf: Add more information about the mod, not just the name
2021-03-13 11:16:05 +01:00
orwell96
682ff59906
Replace deprecated depends.txt's by mod.conf and organize dependencies consistently, add modpack.conf
2021-03-13 11:13:13 +01:00
orwell96
b2d7bbb2c5
Signal influence points: Make sure to clear on removal of signal, clear orphaned when digging rail
2021-03-12 17:56:07 +01:00
orwell96
2dcf60dec6
Track can-dig check: also notify user when digging is not allowed
2021-03-12 17:30:50 +01:00
orwell96
0c7beca20e
Split out all train mods as basic_trains and remove them from main repo
...
Note: I'm not rewriting the history of this repository, too dangerous. basic_trains has been split out with git-filter-repo.
2021-03-12 11:00:38 +01:00
Maverick2797
e38f215faa
Added alternative recipes, falling back on the default: items as they seem to be in the rest of the mod.
...
May need rebalancing though.
2021-03-06 21:00:35 +01:00
orwell96
6135f8a23b
LuaATC: add sending atc command to train by ID, and getters for in/out text (solves #124 and #166 )
2021-03-02 19:51:56 +01:00
orwell96
db9e4429d7
Fix protection of TSR rail
2021-02-19 22:46:21 +01:00
orwell96
30076f5ce3
Add some missing craft recipes
...
- LuaATC remains non-craftable for now (elevated privs necessary anyway)
- Some crafts altered from dario's proposal
Co-authored-by: W3RQ01 <dario23@linux-forks.de>
2021-02-19 18:46:03 +01:00
orwell96
04c78373f1
LuaATC: add interrupt_safe() and clear_interrupts(), fix queue mainloop
2021-02-17 19:45:52 +01:00
orwell96
1e4156d0a4
LuaATC: Improve error/print logging, log only to subscribed players
2021-02-17 19:15:20 +01:00
orwell96
d13a610c2e
Clean up structure of atlatc README.md after rebase
2021-02-17 18:16:22 +01:00
Maverick2797
27a1474963
Updated atlac readme to consistently use Markdown formatting
2021-02-17 18:16:09 +01:00
orwell96
0bffd6ca64
Make DTIME_LIMIT and SAVE_INTERVAL globally accessible
2021-02-15 19:41:13 +01:00
orwell96
5569849401
Restore LuaATC autocouple interface accidentally lost in 74a2199
...
During rebase, this part of the autocouple feature must have been accidentally lost
2021-02-15 16:52:54 +01:00
orwell96
737eb4987f
LZB: Look ahead before movement, not after
2021-02-12 11:55:57 +01:00
orwell96
b65d99aa2c
Don't try to invalidate_ahead when path has been regularily invalidated before
2021-02-10 21:41:05 +01:00
orwell96
0a9cb548d7
Prevent calling approach callbacks during routesetting
...
interlocking.set_route() was updating the signal aspect, which caused LZB's invalidate_ahead callback to run, although the route isn't yet fully set. Don't look ahead at this point, but instead in the next train step.
2021-02-10 20:55:20 +01:00
orwell96
1e0ae9fcc5
fix legacy signal aspect converter
2021-02-10 18:28:50 +01:00
orwell96
96bb7d5e7e
LZB: don't look ahead past red signal
2021-02-10 18:27:09 +01:00
orwell96
0859e50c6e
Fix manual train control
2021-02-10 18:26:53 +01:00
orwell96
17e29a2511
Make anti-LZB-flicker system work after rebase onto hud redesign
2021-02-10 17:07:38 +01:00
orwell96
fad6f88bab
Fix hud and trainlogic to work together
2021-02-10 16:45:29 +01:00
orwell96
556e0782f7
Replace deprecated object:getxxx()/setxxx() by get_xxx()/set_xxx()
2021-02-10 16:42:15 +01:00
orwell96
1b8a3dfaf2
Add save interval setting, fix accidental global variable, at_sync_ndb on server priv not limited, timetaking for restore_all
2021-02-10 16:42:15 +01:00
orwell96
4d13b15842
luaatc: Train event: also remember arrow connection in enter callback, remove obsolete code
2021-02-10 16:39:46 +01:00
orwell96
56fe578916
Log how long saving takes
2021-02-10 16:39:46 +01:00
orwell96
080fbcf2fc
Make dtime limiting a setting
2021-02-10 16:39:46 +01:00
orwell96
672b4a422c
Remove debug facilities
2021-02-10 16:39:46 +01:00
orwell96
41568a3e2e
luaatc: don't fail train event when train has already passed the rail at event time
2021-02-10 16:39:46 +01:00
orwell96
0cef88ba7f
Add global slowdown factor instead of hard dtime limiting
2021-02-10 16:39:46 +01:00
orwell96
4f7c1b1b5d
Rewrite movement logic again
2021-02-10 16:39:46 +01:00
orwell96
8f4c90c5a5
Add debug prints, modify LZB to fix problems with look_ahead
2021-02-10 16:39:46 +01:00
orwell96
3c42d87dc0
Stoprail: Set LZB checkpoint speed back to 2
...
Caused problems when approaching stoprail in manual control
also better for compatibility
2021-02-10 16:39:46 +01:00