aboutsummaryrefslogtreecommitdiff
path: root/advtrains
Commit message (Collapse)AuthorAge
* Move passive API to the advtrains coreorwell962018-08-16
| | | | to remove dependency of interlocking on luaautomation
* Fix various bugs found while testingorwell962018-08-13
|
* Teleport player to their train every 2 seconds instead of just on_joinplayerorwell962018-08-12
| | | | Solves problem of wagon being unloaded while player sitting inside it because of network lag
* Fix some incompatibility crash for old worldsorwell962018-08-12
|
* onboard computer fixh-v-smacker2018-08-12
|
* Remove redundant digtron.lua fileGabriel Pérez-Cerezo2018-08-12
|
* Make digtron able to build tracks.Gabriel Pérez-Cerezo2018-08-12
|
* Fix ATC rail reversingorwell962018-08-12
|
* Signal aspect handling, make default signals compatible, fix signal diggingorwell962018-08-12
|
* Add routesetting callbacks.orwell962018-08-12
| | | | Now, only the signal aspect setting is still missing
* Implement routesettingorwell962018-07-21
| | | | Missing things: signal aspect updating, waiting routes handling, management /info tool
* Signal assignment and route programming procedureorwell962018-07-04
|
* Add off-track train flag, fixes wagon object property reset on reversingorwell962018-07-04
|
* Implement trains blocking sectionsorwell962018-06-29
|
* Complete Track Section handling, incl. removing tcb's and marker entitiesorwell962018-06-26
|
* Add track section concept and rework TCB design, implement new linking behaviororwell962018-06-21
|
* Add Track Circuit Breaks (TCBs), Database and Track Circuit Setuporwell962018-06-20
| | | | Does not get saved yet.
* Check for inventory existence before serializing, and do not create it again ↵orwell962018-06-19
| | | | if it already exists.
* Fix Boardcom and Wagon properties not being shownorwell962018-06-18
|
* Fix box wagon inventory serialization and make box wagons protected.orwell962018-06-14
|
* Correct some documentationorwell962018-06-14
|
* Update nodedb.luaimcasper2018-06-14
| | | correct read/write file binary data
* Fix bugs found while testingorwell962018-06-14
|
* add option to show train and wagon idorwell962018-06-14
|
* Fix final bugs and to-do's (u.a.save/load system)orwell962018-06-14
|
* Fix yaw calculations, track placement orientation and speed up direction ↵orwell962018-06-14
| | | | lookup functions
* Mainly make collisions and coupling workorwell962018-06-14
| | | | Missing: ATC stuff, yaw problems
* Implement collisions. (does not work yet, still code errors)orwell962018-06-14
end return {x=coord.x+x, y=coord.y, z=coord.z+z} end function advtrains.dirToCoord(dir) return advtrains.dirCoordSet({x=0, y=0, z=0}, dir) end function advtrains.maxN(list, expectstart) local n=expectstart or 0 while list[n] do n=n+1 end return n-1 end function advtrains.minN(list, expectstart) local n=expectstart or 0 while list[n] do n=n-1 end return n+1 end --vertical_transmit: --[[ rely1, rely2 tell to which height the connections are pointed to. 1 means it will go up the next node ]] function advtrains.conway(midreal, prev, traintype)--in order prev,mid,return local mid=advtrains.round_vector_floor_y(midreal) local drives_on=advtrains.all_traintypes[traintype].drives_on if not advtrains.get_rail_info_at(advtrains.round_vector_floor_y(prev), traintype) then return nil end local midnode_ok, middir1, middir2, midrely1, midrely2=advtrains.get_rail_info_at(advtrains.round_vector_floor_y(mid), traintype) if not midnode_ok then return nil end local next, chkdir, chkrely, y_offset y_offset=0 --print("[advtrains] in order mid1,mid2",middir1,middir2) --try if it is dir1 local cor1=advtrains.dirCoordSet(mid, middir2)--<<<< if math.floor(cor1.x+0.5)==math.floor(prev.x+0.5) and math.floor(cor1.z+0.5)==math.floor(prev.z+0.5) then--this was previous next=advtrains.dirCoordSet(mid, middir1orwell962018-01-15
| | | | Fixes seat access properties not being saved Reported by Och_Noe in Linuxworks Server