aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
Commit message (Expand)AuthorAge
* Spacing fixesShadowNinja2022-04-08
* Fix compiler warningsShadowNinja2022-04-08
* Fix -mwindows flag not being applied anymoresfan52022-04-03
* Remove direct OpenGL(ES) dependencysfan52022-03-09
* Move the codebase to C++14sfan52022-02-26
* Enable high-res timers on Windowssfan52022-01-27
* Fully remove bitmap font support (#11863)sfan52022-01-08
* Automatically use SSE registers for FP operations on i386 (#11853)William L. DeRieux IV2021-12-28
* Add Lua bitop library (#9847)Lejo2021-11-26
* Automatically package MinGW runtime in buildbotsfan52021-10-31
* Touch UI support for desktop builds (#10729)TheBrokenRail2021-09-26
* Don't look for zlib and zstd manually on Windowssfan52021-09-01
* Switch MapBlock compression to zstd (#10788)lhofhansl2021-08-31
* Take advantage of IrrlichtMt CMake target (#11287)JosiahWI2021-07-27
* Fix no locales being generated when APPLY_LOCALE_BLACKLIST=0sfan52021-07-20
* Use --image-base instead of -Ttext-segment for lld linker on FreeBSD (#9367) ...Dmitry Marakasov2021-05-15
* Use Irrlicht functions to query npot texture supportsfan52021-05-05
* Fix two CMake build issuessfan52021-04-21
* Look for PostgreSQL library properly and fix CIsfan52021-04-20
* Fix ignored OpenGLES2 include path and cmake warningsfan52021-04-16
* Buildbot changes to allow out-of-tree builds (#11180)sfan52021-04-11
* Replace fallback font nonsense with automatic per-glyph fallback (#11084)sfan52021-03-29
* Clean up cmake DLL installation and other minor thingssfan52021-03-12
* Switch Irrlicht dependency to our own forksfan52021-03-09
* Handle changes caused by CMake minimum version bump (#10859)sfan52021-01-29
* Fix some minor code issues all over the placesfan52020-12-24
* Mark additional locales as brokensfan52020-11-10
* Update fallback font to newer versionsfan52020-11-10
* Improve MSVC cmake and update vcpkg instruction (#10407)k.h.lai2020-09-29
* Complete Haiku platform support. (#10311)David CARLIER2020-08-23
* Cleanup of particle & particlespawner structures and code (#9893)sfan52020-05-22
* Fix gettext detection and locale building (#9772)Juozas2020-04-29
* Add MetricsBackend with prometheus counter supportLoic Blot2020-04-29
* Remove /LTCG from when compiling with clang-cl (#9765)k.h.lai2020-04-27
* Add an option to disable unittest build, & disable them on Docker build (#9677)Loïc Blot2020-04-16
* Drop -Wabi useless flag (#9676)Loïc Blot2020-04-16
* Swap out -ffast-math for a safe subset of optimization flags (#9682)sfan52020-04-16
* Refactor texture overrides and add new features (#9600)Hugues Ross2020-04-14
* Implement DPI scaling for Windows (#9586)sfan52020-04-11
* Drop content_sao.{cpp,h}Loic Blot2020-04-11
* Move serveractiveobject & unitsaoLoic Blot2020-04-11
* Drop genericobject.{cpp,h} (#9629)Loïc Blot2020-04-10
* Work around LuaJIT issues on aarch64 (#9614)sfan52020-04-08
* Fix linking failures when compiled with Clang 9sfan52020-03-05
* CMakeLists: Remove some redundant declarations and flagssfan52020-01-23
* Organize and sort out some library dependency issuessfan52020-01-23
* Remove zh_* from GETTEXT_BLACKLISTED_LOCALES (#9229)Zaoqi2020-01-22
* Move Quicktune code to util/ (#8871)ANAND2019-09-29
* Fix breakage of non-GLES2 setups (#8774)Jozef Behran2019-08-10
* Let ENABLE_GLES appear in cmake_config.h and change its functionalitysfan52019-08-04
minetest.chat_send_player(player:get_player_name(), "Missing privilege: atlatc - Operation cancelled!") return end local meta=minetest.get_meta(pos) local ph=minetest.pos_to_string(pos) local nodetbl = ac.nodes[ph] or {} --if fields.quit then return end if fields.env then nodetbl.env=fields.env end if fields.code then nodetbl.code=fields.code end if fields.save then -- reset certain things nodetbl.err=nil if advtrains.lines and advtrains.lines.sched then -- discard all schedules for this node advtrains.lines.sched.discard_all(advtrains.encode_pos(pos)) end end if fields.cle then nodetbl.data={} end ac.nodes[ph]=nodetbl meta:set_string("formspec", ac.getform(pos, meta)) if nodetbl.env then meta:set_string("infotext", "LuaAutomation component, assigned to environment '"..nodetbl.env.."'") else meta:set_string("infotext", "LuaAutomation component, invalid enviroment set!") end end function ac.run_in_env(pos, evtdata, customfct_p) local ph=minetest.pos_to_string(pos) local nodetbl = ac.nodes[ph] if not nodetbl then atwarn("LuaAutomation component at",ph,": Data not in memory! Please visit component and click 'Save'!") return end local meta if advtrains.is_node_loaded(pos) then meta=minetest.get_meta(pos) end if not nodetbl.env or not atlatc.envs[nodetbl.env] then atwarn("LuaAutomation component at",ph,": Not an existing environment: "..(nodetbl.env or "<nil>")) return false end if not nodetbl.code or nodetbl.code=="" then atwarn("LuaAutomation component at",ph,": No code to run! (insert -- to suppress warning)") return false end local customfct=customfct_p or {} -- add interrupt function customfct.interrupt=function(t, imesg) assertt(t, "number") assert(t >= 0) atlatc.interrupt.add(t, pos, {type="int", int=true, message=imesg, msg=imesg}) --Compatiblity "message" field. end -- add digiline_send function, if digiline is loaded if minetest.global_exists("digiline") then customfct.digiline_send=function(channel, msg) assertt(channel, "string") if advtrains.is_node_loaded(pos) then digiline:receptor_send(pos, digiline.rules.default, channel, msg) end end end -- add lines scheduler if enabled if advtrains.lines and advtrains.lines.sched then customfct.schedule = function(rwtime, msg) return advtrains.lines.sched.enqueue(rwtime, "atlatc_env", {pos=pos, msg=msg}, advtrains.encode_pos(pos), 1) end customfct.schedule_in = function(rwtime, msg) return advtrains.lines.sched.enqueue_in(rwtime, "atlatc_env", {pos=pos, msg=msg}, advtrains.encode_pos(pos), 1) end end local datain=nodetbl.data or {} local succ, dataout = atlatc.envs[nodetbl.env]:execute_code(datain, nodetbl.code, evtdata, customfct) if succ then atlatc.active.nodes[ph].data=atlatc.remove_invalid_data(dataout) else atlatc.active.nodes[ph].err=dataout atwarn("LuaAutomation ATC interface rail at",ph,": LUA Error:",dataout) if meta then meta:set_string("infotext", "LuaAutomation ATC interface rail, ERROR:"..dataout) end --TODO temporary --if customfct.atc_id then -- advtrains.drb_dump(customfct.atc_id) -- error("Debug: LuaATC error hit!") --end end if meta then meta:set_string("formspec", ac.getform(pos, meta)) end end function ac.on_digiline_receive(pos, node, channel, msg) atlatc.interrupt.add(0, pos, {type="digiline", digiline=true, channel = channel, msg = msg}) end if advtrains.lines and advtrains.lines.sched then advtrains.lines.sched.register_callback("atlatc_env", function(data) -- This adds another interrupt to the atlatc queue... there might be a better way atlatc.interrupt.add(0, data.pos, {type="schedule",schedule=true, msg=data.msg}) end) end ac.trackdef_advtrains_defs = { on_train_enter = function(pos, train_id) --do async. Event is fired in train steps atlatc.interrupt.add(0, pos, {type="train", train=true, id=train_id}) end, } atlatc.active=ac