aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trainlogic.lua
Commit message (Collapse)AuthorAge
* Fix entity damageorwell962017-11-02
| | | | Animals from mobs weren't damaged because they have the immortal group set. Instead, we check for the existence of "fleshy".
* Punch non-player objects when they get overridden by a train.orwell962017-10-25
|
* Fix subway train placerorwell962017-10-25
|
* Some workaround fixes for Linuxworks serverorwell962017-10-25
| | | | | Trains no longer get deleted when there's no rail Fast item to create subway train
* Implement multi-occupation in detector.on_node table to finally fix collisionsorwell962017-10-25
|
* Replace many math.floor(x+0.5) calls (or math.floor calls that should be ↵orwell962017-10-25
| | | | those) by custom atround() function
* Fix coupling and collisions in certain casesorwell962017-10-25
| | | | | | If a train moved towards another train, and the other train's step was executed after the first one's, the trains did eventually not collide. Fix by moving the enter_node and collision check to step_b Also change some couple behavior
* Do not crash when train_pos is nil while checking wagon entity loadingorwell962017-10-11
|
* Remove zip release files, move mod to root, exclude assets from Makefile (#92)rubenwardy2017-09-20
|
* Restructure mod directoryorwell962017-01-04
|
* Add Automatic Train Control systemorwell962017-01-04
|
* unify update_trainpart_properties and check_trainpartloadorwell962017-01-02
|
* Do not duplicate definitions of 'print' in every fileorwell962017-01-02
|
* spawn couple on train collisionorwell962016-12-31
| | | | also fix empty trains hanging around for too long
* remove train type concept and calculate train's capabilities based on used ↵orwell962016-12-22
| | | | wagons
* Turning mod into a modpack and separating the trains from the core modorwell962016-12-20
setting_get("remote_port")) .."]" .. "checkbox[8,-0.25;cb_public_serverlist;".. fgettext("Public Serverlist") .. ";" .. render_details .. "]" retval = retval .. "button[8,2.5;4,1.5;btn_mp_connect;".. fgettext("Connect") .. "]" .. "field[8.75,1.5;3.5,0.5;te_name;;" .. core.formspec_escape(core.setting_get("name")) .."]" .. "pwdfield[8.75,2.3;3.5,0.5;te_pwd;]" if render_details then retval = retval .. "tablecolumns[" .. "color,span=3;" .. "text,align=right;" .. -- clients "text,align=center,padding=0.25;" .. -- "/" "text,align=right,padding=0.25;" .. -- clients_max image_column(fgettext("Creative mode"), "creative") .. ",padding=1;" .. image_column(fgettext("Damage enabled"), "damage") .. ",padding=0.25;" .. image_column(fgettext("PvP enabled"), "pvp") .. ",padding=0.25;" .. "color,span=1;" .. "text,padding=1]" -- name else retval = retval .. "tablecolumns[text]" end retval = retval .. "table[-0.05,0;7.55,2.75;favourites;" if #menudata.favorites > 0 then retval = retval .. render_favorite(menudata.favorites[1],render_details) for i=2,#menudata.favorites,1 do retval = retval .. "," .. render_favorite(menudata.favorites[i],render_details) end end if tabdata.fav_selected ~= nil then retval = retval .. ";" .. tabdata.fav_selected .. "]" else retval = retval .. ";0]" end -- separator retval = retval .. "box[-0.28,3.75;12.4,0.1;#FFFFFF]" -- checkboxes retval = retval .. "checkbox[8.0,3.9;cb_creative;".. fgettext("Creative Mode") .. ";" .. dump(core.setting_getbool("creative_mode")) .. "]"..