From 9a7603506f5a2d8fceb1fffd81cd63bc45dfabed Mon Sep 17 00:00:00 2001 From: paramat Date: Mon, 30 Jul 2018 06:40:42 +0100 Subject: [PATCH] Use 'initial_properties' table. Add server log to explain warnings when driver leaves server while driving. Add steel and windows to textures --- README.txt | 7 +++---- init.lua | 19 ++++++++++++------- textures/airboat_airboat_back.png | Bin 127 -> 127 bytes textures/airboat_airboat_base.png | Bin 114 -> 114 bytes textures/airboat_airboat_front.png | Bin 122 -> 131 bytes textures/airboat_airboat_inv.png | Bin 146 -> 126 bytes textures/airboat_airboat_left.png | Bin 114 -> 127 bytes textures/airboat_airboat_right.png | Bin 112 -> 126 bytes 8 files changed, 15 insertions(+), 11 deletions(-) diff --git a/README.txt b/README.txt index e530e0c..b9f9f10 100644 --- a/README.txt +++ b/README.txt @@ -1,17 +1,16 @@ -airboat 0.1.6 by paramat +airboat 0.1.7 by paramat For Minetest 0.4.16 and later. Compatible with MT 5.0.0-dev. Depends: default Licenses -------- Source code: MIT -Media (textures): CC0 1.0 +Media (textures and nodebox design): CC0 1.0 Note about textures and crafting -------------------------------- This mod is fully functional but does not currently have a crafting recipe or -detailed textures. It is currently a 'kit mod' for you to complete. The textures -are templates for you to add detail to. +detailed textures. The textures are templates for you to add detail to. The airboat is available in the creative inventory or by using the /giveme chat command. diff --git a/init.lua b/init.lua index a02218a..d5cdbb3 100644 --- a/init.lua +++ b/init.lua @@ -24,14 +24,16 @@ end -- Airboat entity local airboat = { - physical = true, - collide_with_objects = false, -- Workaround fix for a MT engine bug - collisionbox = {-0.85, -1.5, -0.85, 0.85, 1.5, 0.85}, - visual = "wielditem", - visual_size = {x = 2.0, y = 2.0}, -- Scale up of nodebox is these * 1.5 - textures = {"airboat:airboat_nodebox"}, + initial_properties = { + physical = true, + collide_with_objects = false, -- Workaround fix for a MT engine bug + collisionbox = {-0.85, -1.5, -0.85, 0.85, 1.5, 0.85}, + visual = "wielditem", + visual_size = {x = 2.0, y = 2.0}, -- Scale up of nodebox is these * 1.5 + textures = {"airboat:airboat_nodebox"}, + }, - -- Mod-added properties + -- Custom fields driver = nil, removed = false, v = 0, @@ -155,6 +157,9 @@ function airboat.on_step(self, dtime) -- In MT 5.0.0 use 'airboat:on_detach_child()' to do this self.driver = nil self.auto = false + minetest.log("warning", "[airboat] Driver left server while" .. + " driving. This may cause some 'Pushing ObjectRef to" .. + " removed/deactivated object' warnings.") end end diff --git a/textures/airboat_airboat_back.png b/textures/airboat_airboat_back.png index 4dcc55f7f82a8b980a5d7f313285c5c731f1a2a4..520f4c6bcabfeea203caf3d3fd3abac0533a4252 100644 GIT binary patch delta 91 zcmV-h0Hptae~>9wfPjF;#>W5u|IBCcy#N3JF-b&0R4C75U;qK81_lJ6jKj1F3>pR@ xM{5-ntU%`sW>*72XxP+Hcu-T$0fGVJ002!Gk>^m!(4GJQ002ovPDHLkV1n2-BS8QF delta 91 zcmb=gpP(7Wz`)SZ(D48N|AUwAE(UT8JzX3_G|ne;ur_X3nb6h9HD^O;f diff --git a/textures/airboat_airboat_base.png b/textures/airboat_airboat_base.png index 1e866e84b2ca2dc96d18a10280848f9c18f340c0..92b52b40faf315fdc71c8a467130889b2a9f4c65 100644 GIT binary patch delta 78 zcmV-U0I~maa*!!WfPjF;#>W5u|IBCcy#N3JBuPX;R4C75V9;6x1uGaB1{;TgX;ml? ktZHBw<&ek$gTcoE0I0vqaph{O2LJ#707*qoM6N<$f=HJivj6}9 delta 78 zcmXRanxN^)z`)SZ(D48N|AUwAE(UT`JY5_^G|ne;oQ+~-)pnL-lU6s$5oH!wGfT?q hl;T8Yw&s3jh7EyVH6I@2sRgQM@O1TaS?83{1OQE98dm@S diff --git a/textures/airboat_airboat_front.png b/textures/airboat_airboat_front.png index 22d9ac8416013a1a5b58724895e6dd01964bafa8..b24b0ef4fa440184401e8dc451121a3825f8d304 100644 GIT binary patch delta 101 zcmby6l(9qCu?AWpY|NmFL)qf4-8+p1ohG?8m=3s67usWfuk!#L} z{|N=90!6R>J0FZMIhRmoDzJu$sUpJMz`%glmhTKVgJY%PoT^jXjsbNuc)I$ztaD0e F0suIPCz${M delta 92 zcmZo>teT(_#u?xf;>y6l(9qEE|NsAkm+meGa&$ah978nDCv&hiZdjSn)yOqxLui6Q vsX)=DFvo*lCFc^#Of@1J8RV`x&t_%_cX>W>`sC}DKz$6Ju6{1-oD!MA$b9hN!RyzrzkdDt|NsBq%Qvn8g&0eM z{DK)Ap4~_Ta`Zf1978y+Cnq?tE@b3j%hr$(I2aJrVAR9AfJdCYMT(8hQGsEVV{*gW dMq>pAhNAl-8)t3NG6w2o@O1TaS?83{1OPMvEj$1K diff --git a/textures/airboat_airboat_left.png b/textures/airboat_airboat_left.png index b051f282023704691727543d53955a97d65bd01b..896c64561d214cc89930fb8e74bd232eef705019 100644 GIT binary patch delta 96 zcmXS_pP&-W6W|l#%D}+T(9m$~*s=fr|5v@$e+}g8dAc};Xq->xXl(=v8V8*D+0Wu; ydF25EbD5}wgC#Eyk59-02FWYW9b~$uGc#BG*%D}+T(9rPz|Nn!R?k)y$R6JcALp07ObF?;wt`0K{I1|~*;%0f} m0R!_iMxGU?84cN*m>Klf2>p@wOE3efXYh3Ob6Mw<&;$SyrX1V= diff --git a/textures/airboat_airboat_right.png b/textures/airboat_airboat_right.png index 2a54b3a28e22e8efdaafc5b04cd1b6bcb9a0896a..2f1c3c89f67d5814a9ebf8d72a526fa5a4ea6823 100644 GIT binary patch delta 95 zcmXS@o1hZK6W|l#%D}+T(9m$~*s=fr|5v@$e+}g8db&7}@&A9l29H5NGc)^Q y8Lh&wMn;p0@U>Y92?G*%D}+T(9rPz|Nn!R?k)y$lssJ=Lp07OM{Las)!;D*Xl7<#ETdH@ kaezT;&y+%k3I|Ju*$zT~*b*l%0;*>4boFyt=akR{0J#<%9RL6T