[Mod] Petz [DEPRECATED] [petz]

The next Petz will be...

Deer (Prince Of The Forest)
9
31%
Vulture (King of the Death)
9
31%
Armadillo (Master in the Defense)
11
38%
 
Total votes: 29

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Mod] Petz [v15.5] [petz]

by runs » Post

...

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Mod] Petz [v15.5] [petz]

by runs » Post

v15.6

Some changes in artificial Beehives (created by players), thanks to 'zeuner' user ideas, just to avoid infinite Honey and Queen Bees just creating and then destroying Beehives:

- Behives now are crafted with Queen Bees (not Worker Bees)
- Behives drop from 1 to 6 Honeycombs max (not always 6).
- No initial honey when an artificial Beehive is placed.
- When a Behive is placed, it takes 300s (configurable) to a Worker Bee being automatically created and starts to collect Honey. (not inmediately)
Last edited by runs on Fri Aug 07, 2020 01:05, edited 1 time in total.

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Mod] Petz [v15.6] [petz]

by runs » Post

This remains me to finish the Antz, LOL.

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Mod] Petz [v15.6] [petz]

by runs » Post

v15.7

- Fixed one global and more lua cleaning.

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Mod] Petz [v15.7] [petz]

by runs » Post

v15.8

- Refactor and improvement of the reading of the settings. More clear and modular.

Bastrabun
Member
Posts: 212
Joined: Mon Nov 04, 2019 19:48

Re: [Mod] Petz [v15.8] [petz]

by Bastrabun » Post

is there a way to tune down the enormous lag petz produces when players emerge new blocks? It's not too bad when you have 30 petz somewhere in a cage, but as soon as players go scouting the area, petz creates a lot of lag. (Same goes for waterlife, so maybe a mobkit thing?)

All I can do is relay the profiler saves to you or disable petz :-( In this example petz created 2.5 seconds of lag and I already made the spawning check not run every server step but only every second

Code: Select all

petz:                                                   |         2 |    181552 |      2556 |   0.0 |  98.9 |  30.0
  - on_activate[39] ...................................  |        64 |      1240 |       192 |   0.0 |  20.8 |   1.5
  - on_leaveplayer[3] .................................  |         2 |         3 |         2 |   0.0 |   0.1 |   0.0
  - on_step[44] .......................................  |        37 |     41750 |       196 |   0.0 |  90.7 |   5.0
  - on_activate[32] ...................................  |        68 |       814 |       187 |   0.0 |   8.8 |   1.6
  - get_staticdata[19] ................................  |        93 |       894 |       268 |   0.2 |   1.6 |   0.5
  - on_player_receive_fields[5] .......................  |         1 |        85 |         1 |   0.0 |   3.7 |   0.0
  - on_activate[16] ...................................  |        69 |       281 |       148 |   0.0 |   3.5 |   1.1
  - on_rightclick[42] .................................  |       332 |      5343 |       835 |   0.4 |   8.2 |   1.9
  - get_staticdata[12] ................................  |        23 |      2655 |       169 |   0.0 |  12.1 |   0.8
  - get_staticdata[34] ................................  |        24 |      1303 |       123 |   0.0 |  12.0 |   0.8
  - get_staticdata[5] .................................  |        49 |      1622 |       206 |   0.0 |  18.8 |   1.2
  - on_player_receive_fields[2] .......................  |         1 |       114 |         2 |   0.0 |   1.4 |   0.0
  - on_step[45] .......................................  |        38 |     26012 |       284 |   0.0 |  79.6 |   4.9
  - get_staticdata[29] ................................  |        23 |       749 |       167 |   0.1 |  10.0 |   1.3
  - get_staticdata[13] ................................  |        25 |       329 |        88 |   0.0 |   3.1 |   0.5
  - on_step[16] .......................................  |        33 |     11464 |       174 |   0.0 |  44.8 |   2.2
  - on_punchplayer[1] .................................  |         2 |       128 |        13 |   0.0 |   2.0 |   0.2
  - on_activate[28] ...................................  |       103 |     10545 |      1478 |   0.1 |  21.6 |   3.9
  - on_step[42] .......................................  |        37 |     17485 |       212 |   0.0 |  86.3 |   4.3
  - on_step[31] .......................................  |        28 |     21535 |       300 |   0.0 |  85.7 |   2.4
  - on_activate[38] ...................................  |       121 |       121 |       121 |   2.7 |   2.7 |   2.7
  - on_activate[15] ...................................  |        65 |      4085 |       285 |   0.0 |  21.1 |   1.4
  - on_activate[14] ...................................  |       188 |       188 |       188 |   0.7 |   0.7 |   0.7
  - get_staticdata[2] .................................  |        27 |      1824 |       234 |   0.0 |  15.9 |   0.8
  - on_leaveplayer[1] .................................  |         2 |         3 |         2 |   0.0 |   0.1 |   0.0
  - on_rightclick[22] .................................  |      1868 |      1868 |      1868 |   5.1 |   5.1 |   5.1
  - on_activate[34] ...................................  |        71 |       358 |       194 |   0.2 |   6.4 |   1.7
  - on_activate[13] ...................................  |       100 |      2341 |       426 |   0.0 |  13.0 |   3.2
  - on_player_receive_fields[3] .......................  |         1 |       107 |         1 |   0.0 |   1.0 |   0.0
  - on_step[17] .......................................  |        37 |     21792 |       251 |   0.0 |  76.8 |   3.0
  - get_staticdata[7] .................................  |        27 |       405 |       129 |   0.0 |   6.4 |   1.0
  - on_step[15] .......................................  |        33 |     86399 |      2052 |   0.0 |  90.3 |   7.6
  - on_step[43] .......................................  |        30 |     36340 |       306 |   0.0 |  95.3 |   5.6
  - on_step[30] .......................................  |        31 |     13614 |       189 |   0.0 |  88.2 |   3.9
  - get_staticdata[3] .................................  |        29 |      1261 |       173 |   0.0 |  10.5 |   0.4
  - on_activate[48] ...................................  |        80 |       938 |       274 |   0.1 |  13.9 |   1.7
  - ABM[3] ............................................  |       996 |      3050 |      1757 |   2.1 |   7.9 |   4.1
  - on_rightclick[11] .................................  |       561 |      2733 |      1097 |   0.3 |  25.4 |   2.7
  - on_punch[43] ......................................  |       110 |       797 |       314 |   1.0 |  19.9 |   6.8
  - on_punch[9] .......................................  |       139 |       514 |       306 |   0.7 |   3.5 |   2.1
  - get_staticdata[41] ................................  |        30 |       956 |       142 |   0.0 |   5.1 |   0.6
  - on_item_eat[1] ....................................  |         4 |       245 |        10 |   0.0 |   8.6 |   0.3
  - on_activate[10] ...................................  |        72 |       581 |       212 |   0.1 |   9.0 |   2.0
  - on_leaveplayer[2] .................................  |         2 |        29 |         7 |   0.0 |   0.2 |   0.1
  - on_step[14] .......................................  |        53 |      1071 |       231 |   0.1 |   2.3 |   0.5
  - get_staticdata[4] .................................  |        28 |      1428 |       147 |   0.0 |  10.0 |   1.2
  - get_staticdata[33] ................................  |        50 |        50 |        50 |   1.1 |   1.1 |   1.1
  - on_step[11] .......................................  |        35 |     11913 |       205 |   0.0 |  72.0 |   1.9
  - on_activate[5] ....................................  |        69 |      9587 |       492 |   0.1 |  11.9 |   1.3
  - get_staticdata[24] ................................  |        55 |      6342 |       841 |   0.1 |  26.6 |   2.3
  - on_step[36] .......................................  |        30 |      1540 |       179 |   0.1 |  30.9 |   2.9
  - on_leaveplayer[4] .................................  |         2 |         3 |         2 |   0.0 |   0.1 |   0.0
  - on_step[6] ........................................  |        33 |     30414 |       401 |   0.0 |  97.2 |   3.0
  - on_step[23] .......................................  |        30 |     24334 |       251 |   0.1 |  87.1 |   6.7
  - on_activate[11] ...................................  |        84 |      1397 |       300 |   0.0 |   8.4 |   1.1
  - get_staticdata[42] ................................  |        23 |      2873 |       168 |   0.0 |  12.0 |   1.3
  - on_activate[36] ...................................  |       146 |       146 |       146 |   1.7 |   4.3 |   3.0
  - on_activate[23] ...................................  |        79 |      1224 |       319 |   0.1 |  12.5 |   2.6
  - on_step[8] ........................................  |        34 |     31864 |       354 |   0.0 |  82.6 |   2.7
  - on_activate[45] ...................................  |        62 |      1406 |       243 |   0.1 |  18.7 |   1.7
  - on_step[34] .......................................  |        41 |      1329 |       285 |   0.4 |  22.4 |   6.1
  - get_staticdata[31] ................................  |        57 |       339 |       160 |   1.0 |   3.8 |   2.2
  - on_step[9] ........................................  |        32 |     15704 |       322 |   0.0 |  76.0 |   2.1
  - on_step[18] .......................................  |        41 |     21801 |       377 |   0.0 |  68.2 |   2.5
  - get_staticdata[25] ................................  |        26 |      1994 |       214 |   0.0 |  21.1 |   1.5
  - on_step[37] .......................................  |        32 |     35696 |       237 |   0.0 |  95.2 |   3.6
  - on_activate[20] ...................................  |        71 |      1289 |       260 |   0.0 |  17.1 |   1.8
  - on_joinplayer[1] ..................................  |         4 |        10 |         6 |   0.0 |   0.0 |   0.0
  - on_activate[9] ....................................  |        74 |      1146 |       252 |   0.1 |   9.4 |   1.0
  - on_activate[18] ...................................  |        88 |      2659 |       414 |   0.1 |  20.3 |   1.8
  - on_player_receive_fields[1] .......................  |         1 |        50 |         1 |   0.0 |   0.2 |   0.0
  - on_step[27] .......................................  |        40 |     56735 |      1148 |   0.0 |  98.1 |   6.9
  - on_activate[44] ...................................  |        58 |      2561 |       285 |   0.0 |  19.2 |   1.3
  - get_staticdata[17] ................................  |        22 |      2768 |       198 |   0.0 |  19.5 |   1.4
  - get_staticdata[15] ................................  |        43 |      6283 |       319 |   0.0 |  15.4 |   1.2
  - on_step[29] .......................................  |        28 |     36768 |       221 |   0.0 |  91.2 |   3.3
  - on_activate[8] ....................................  |        90 |      1320 |       272 |   0.1 |  36.9 |   2.0
  - on_activate[25] ...................................  |        69 |      1119 |       238 |   0.0 |  16.6 |   1.4
  - on_activate[7] ....................................  |        65 |      3384 |       269 |   0.1 |   7.9 |   1.6
  - get_staticdata[26] ................................  |        21 |      1672 |       153 |   0.0 |  13.0 |   1.5
  - globalstep[1] .....................................  |         1 |     11964 |         6 |   0.0 |  59.3 |   0.2
  - on_punch[36] ......................................  |       219 |       219 |       219 |   3.7 |   3.7 |   3.7
  - on_step[28] .......................................  |        44 |     24829 |       486 |   0.0 |  64.6 |   2.6
  - get_staticdata[6] .................................  |        29 |      9225 |       223 |   0.0 |  56.0 |   0.9
  - on_player_hpchange[1] .............................  |         1 |       132 |         3 |   0.0 |   4.4 |   0.1
  - on_player_receive_fields[6] .......................  |         1 |        91 |         1 |   0.0 |   0.7 |   0.0
  - on_step[24] .......................................  |        33 |      7169 |       224 |   0.0 |  51.3 |   2.1
  - on_step[10] .......................................  |        36 |     10322 |       188 |   0.0 |  69.4 |   3.2
  - get_staticdata[10] ................................  |        62 |      3753 |       295 |   0.0 |  17.5 |   2.4
  - on_activate[47] ...................................  |        73 |      1622 |       281 |   0.0 |  36.2 |   2.5
  - get_staticdata[43] ................................  |        34 |      1269 |       207 |   0.0 |   9.9 |   1.1
  - on_activate[6] ....................................  |        69 |      3045 |       378 |   0.0 |   2.8 |   0.7
  - ABM[4] ............................................  |      4593 |     17659 |      9065 |  12.8 |  25.3 |  18.5
  - on_step[46] .......................................  |        32 |     52802 |       301 |   0.0 |  85.2 |   3.9
  - on_activate[30] ...................................  |        61 |      1014 |       223 |   0.0 |  23.1 |   2.5
  - globalstep[2] .....................................  |         1 |      4383 |         2 |   0.0 |  88.9 |   0.1
  - on_punchplayer[2] .................................  |         1 |       119 |         4 |   0.0 |   1.6 |   0.1
  - on_step[5] ........................................  |        41 |     41873 |       469 |   0.0 |  90.9 |  12.1
  - on_step[32] .......................................  |        38 |     13994 |       237 |   0.0 |  49.9 |   3.2
  - on_step[13] .......................................  |        41 |     53122 |       263 |   0.0 |  86.9 |   4.2
  - on_step[7] ........................................  |        37 |     23122 |       548 |   0.1 |  74.4 |   3.5
  - on_activate[17] ...................................  |        90 |      1026 |       241 |   0.0 |   8.1 |   0.6
  - on_activate[46] ...................................  |        76 |     10201 |       469 |   0.1 |  47.1 |   1.9
  - get_staticdata[11] ................................  |        46 |       100 |        73 |   0.2 |   0.4 |   0.3
  - on_player_receive_fields[7] .......................  |         1 |       102 |         1 |   0.0 |   0.5 |   0.0
  - get_staticdata[40] ................................  |        25 |      8246 |       199 |   0.0 |  45.9 |   1.4
  - get_staticdata[39] ................................  |        24 |      2637 |       226 |   0.0 |  13.0 |   0.9
  - get_staticdata[14] ................................  |        41 |      1017 |       192 |   0.0 |   9.6 |   0.6
  - on_step[22] .......................................  |        50 |      2170 |       342 |   0.0 |   6.4 |   0.6
  - get_staticdata[28] ................................  |        22 |      3287 |       180 |   0.0 |  16.7 |   0.8
  - on_punch[27] ......................................  |        24 |       557 |       232 |   0.0 |   0.7 |   0.3
  - on_activate[33] ...................................  |        64 |      4831 |       257 |   0.0 |  12.4 |   1.2
  - get_staticdata[8] .................................  |        39 |      9177 |       285 |   0.0 |  23.7 |   1.2
  - get_staticdata[27] ................................  |        26 |      1116 |       117 |   0.0 |  13.2 |   1.1
  - on_step[20] .......................................  |        37 |     21685 |       224 |   0.0 |  86.0 |   2.6
  - on_activate[29] ...................................  |        65 |      2258 |       326 |   0.1 |  25.2 |   2.6
  - get_staticdata[21] ................................  |        25 |       691 |       143 |   0.0 |  10.0 |   0.8
  - get_staticdata[20] ................................  |        28 |      1134 |       226 |   0.1 |  13.8 |   1.5
  - on_activate[22] ...................................  |       119 |       491 |       283 |   0.2 |   1.6 |   0.7
  - on_player_receive_fields[4] .......................  |         1 |        78 |         1 |   0.0 |   0.6 |   0.0
Whatever I say is CC0

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Mod] Petz [v15.8] [petz]

by runs » Post

Bastrabun wrote:
Fri Aug 07, 2020 22:20
by Bastrabun » Fri Aug 07, 2020 22:20
is there a way to tune down the enormous lag petz produces when players emerge new blocks? It's not too bad when you have 30 petz somewhere in a cage, but as soon as players go scouting the area, petz creates a lot of lag. (Same goes for waterlife, so maybe a mobkit thing?)

All I can do is relay the profiler saves to you or disable petz :-( In this example petz created 2.5 seconds of lag and I already made the spawning check not run every server step but only every second
Bastrabun wrote:
Fri Aug 07, 2020 22:20
is there a way to tune down the enormous lag petz produces when players emerge new blocks? It's not too bad when you have 30 petz somewhere in a cage, but as soon as players go scouting the area, petz creates a lot of lag. (Same goes for waterlife, so maybe a mobkit thing?)

All I can do is relay the profiler saves to you or disable petz :-( In this example petz created 2.5 seconds of lag and I already made the spawning check not run every server step but only every second

Code: Select all

petz:                                                   |         2 |    181552 |      2556 |   0.0 |  98.9 |  30.0
  - on_activate[39] ...................................  |        64 |      1240 |       192 |   0.0 |  20.8 |   1.5
  - on_leaveplayer[3] .................................  |         2 |         3 |         2 |   0.0 |   0.1 |   0.0
  - on_step[44] .......................................  |        37 |     41750 |       196 |   0.0 |  90.7 |   5.0
  - on_activate[32] ...................................  |        68 |       814 |       187 |   0.0 |   8.8 |   1.6
  - get_staticdata[19] ................................  |        93 |       894 |       268 |   0.2 |   1.6 |   0.5
  - on_player_receive_fields[5] .......................  |         1 |        85 |         1 |   0.0 |   3.7 |   0.0
  - on_activate[16] ...................................  |        69 |       281 |       148 |   0.0 |   3.5 |   1.1
  - on_rightclick[42] .................................  |       332 |      5343 |       835 |   0.4 |   8.2 |   1.9
  - get_staticdata[12] ................................  |        23 |      2655 |       169 |   0.0 |  12.1 |   0.8
  - get_staticdata[34] ................................  |        24 |      1303 |       123 |   0.0 |  12.0 |   0.8
  - get_staticdata[5] .................................  |        49 |      1622 |       206 |   0.0 |  18.8 |   1.2
  - on_player_receive_fields[2] .......................  |         1 |       114 |         2 |   0.0 |   1.4 |   0.0
  - on_step[45] .......................................  |        38 |     26012 |       284 |   0.0 |  79.6 |   4.9
  - get_staticdata[29] ................................  |        23 |       749 |       167 |   0.1 |  10.0 |   1.3
  - get_staticdata[13] ................................  |        25 |       329 |        88 |   0.0 |   3.1 |   0.5
  - on_step[16] .......................................  |        33 |     11464 |       174 |   0.0 |  44.8 |   2.2
  - on_punchplayer[1] .................................  |         2 |       128 |        13 |   0.0 |   2.0 |   0.2
  - on_activate[28] ...................................  |       103 |     10545 |      1478 |   0.1 |  21.6 |   3.9
  - on_step[42] .......................................  |        37 |     17485 |       212 |   0.0 |  86.3 |   4.3
  - on_step[31] .......................................  |        28 |     21535 |       300 |   0.0 |  85.7 |   2.4
  - on_activate[38] ...................................  |       121 |       121 |       121 |   2.7 |   2.7 |   2.7
  - on_activate[15] ...................................  |        65 |      4085 |       285 |   0.0 |  21.1 |   1.4
  - on_activate[14] ...................................  |       188 |       188 |       188 |   0.7 |   0.7 |   0.7
  - get_staticdata[2] .................................  |        27 |      1824 |       234 |   0.0 |  15.9 |   0.8
  - on_leaveplayer[1] .................................  |         2 |         3 |         2 |   0.0 |   0.1 |   0.0
  - on_rightclick[22] .................................  |      1868 |      1868 |      1868 |   5.1 |   5.1 |   5.1
  - on_activate[34] ...................................  |        71 |       358 |       194 |   0.2 |   6.4 |   1.7
  - on_activate[13] ...................................  |       100 |      2341 |       426 |   0.0 |  13.0 |   3.2
  - on_player_receive_fields[3] .......................  |         1 |       107 |         1 |   0.0 |   1.0 |   0.0
  - on_step[17] .......................................  |        37 |     21792 |       251 |   0.0 |  76.8 |   3.0
  - get_staticdata[7] .................................  |        27 |       405 |       129 |   0.0 |   6.4 |   1.0
  - on_step[15] .......................................  |        33 |     86399 |      2052 |   0.0 |  90.3 |   7.6
  - on_step[43] .......................................  |        30 |     36340 |       306 |   0.0 |  95.3 |   5.6
  - on_step[30] .......................................  |        31 |     13614 |       189 |   0.0 |  88.2 |   3.9
  - get_staticdata[3] .................................  |        29 |      1261 |       173 |   0.0 |  10.5 |   0.4
  - on_activate[48] ...................................  |        80 |       938 |       274 |   0.1 |  13.9 |   1.7
  - ABM[3] ............................................  |       996 |      3050 |      1757 |   2.1 |   7.9 |   4.1
  - on_rightclick[11] .................................  |       561 |      2733 |      1097 |   0.3 |  25.4 |   2.7
  - on_punch[43] ......................................  |       110 |       797 |       314 |   1.0 |  19.9 |   6.8
  - on_punch[9] .......................................  |       139 |       514 |       306 |   0.7 |   3.5 |   2.1
  - get_staticdata[41] ................................  |        30 |       956 |       142 |   0.0 |   5.1 |   0.6
  - on_item_eat[1] ....................................  |         4 |       245 |        10 |   0.0 |   8.6 |   0.3
  - on_activate[10] ...................................  |        72 |       581 |       212 |   0.1 |   9.0 |   2.0
  - on_leaveplayer[2] .................................  |         2 |        29 |         7 |   0.0 |   0.2 |   0.1
  - on_step[14] .......................................  |        53 |      1071 |       231 |   0.1 |   2.3 |   0.5
  - get_staticdata[4] .................................  |        28 |      1428 |       147 |   0.0 |  10.0 |   1.2
  - get_staticdata[33] ................................  |        50 |        50 |        50 |   1.1 |   1.1 |   1.1
  - on_step[11] .......................................  |        35 |     11913 |       205 |   0.0 |  72.0 |   1.9
  - on_activate[5] ....................................  |        69 |      9587 |       492 |   0.1 |  11.9 |   1.3
  - get_staticdata[24] ................................  |        55 |      6342 |       841 |   0.1 |  26.6 |   2.3
  - on_step[36] .......................................  |        30 |      1540 |       179 |   0.1 |  30.9 |   2.9
  - on_leaveplayer[4] .................................  |         2 |         3 |         2 |   0.0 |   0.1 |   0.0
  - on_step[6] ........................................  |        33 |     30414 |       401 |   0.0 |  97.2 |   3.0
  - on_step[23] .......................................  |        30 |     24334 |       251 |   0.1 |  87.1 |   6.7
  - on_activate[11] ...................................  |        84 |      1397 |       300 |   0.0 |   8.4 |   1.1
  - get_staticdata[42] ................................  |        23 |      2873 |       168 |   0.0 |  12.0 |   1.3
  - on_activate[36] ...................................  |       146 |       146 |       146 |   1.7 |   4.3 |   3.0
  - on_activate[23] ...................................  |        79 |      1224 |       319 |   0.1 |  12.5 |   2.6
  - on_step[8] ........................................  |        34 |     31864 |       354 |   0.0 |  82.6 |   2.7
  - on_activate[45] ...................................  |        62 |      1406 |       243 |   0.1 |  18.7 |   1.7
  - on_step[34] .......................................  |        41 |      1329 |       285 |   0.4 |  22.4 |   6.1
  - get_staticdata[31] ................................  |        57 |       339 |       160 |   1.0 |   3.8 |   2.2
  - on_step[9] ........................................  |        32 |     15704 |       322 |   0.0 |  76.0 |   2.1
  - on_step[18] .......................................  |        41 |     21801 |       377 |   0.0 |  68.2 |   2.5
  - get_staticdata[25] ................................  |        26 |      1994 |       214 |   0.0 |  21.1 |   1.5
  - on_step[37] .......................................  |        32 |     35696 |       237 |   0.0 |  95.2 |   3.6
  - on_activate[20] ...................................  |        71 |      1289 |       260 |   0.0 |  17.1 |   1.8
  - on_joinplayer[1] ..................................  |         4 |        10 |         6 |   0.0 |   0.0 |   0.0
  - on_activate[9] ....................................  |        74 |      1146 |       252 |   0.1 |   9.4 |   1.0
  - on_activate[18] ...................................  |        88 |      2659 |       414 |   0.1 |  20.3 |   1.8
  - on_player_receive_fields[1] .......................  |         1 |        50 |         1 |   0.0 |   0.2 |   0.0
  - on_step[27] .......................................  |        40 |     56735 |      1148 |   0.0 |  98.1 |   6.9
  - on_activate[44] ...................................  |        58 |      2561 |       285 |   0.0 |  19.2 |   1.3
  - get_staticdata[17] ................................  |        22 |      2768 |       198 |   0.0 |  19.5 |   1.4
  - get_staticdata[15] ................................  |        43 |      6283 |       319 |   0.0 |  15.4 |   1.2
  - on_step[29] .......................................  |        28 |     36768 |       221 |   0.0 |  91.2 |   3.3
  - on_activate[8] ....................................  |        90 |      1320 |       272 |   0.1 |  36.9 |   2.0
  - on_activate[25] ...................................  |        69 |      1119 |       238 |   0.0 |  16.6 |   1.4
  - on_activate[7] ....................................  |        65 |      3384 |       269 |   0.1 |   7.9 |   1.6
  - get_staticdata[26] ................................  |        21 |      1672 |       153 |   0.0 |  13.0 |   1.5
  - globalstep[1] .....................................  |         1 |     11964 |         6 |   0.0 |  59.3 |   0.2
  - on_punch[36] ......................................  |       219 |       219 |       219 |   3.7 |   3.7 |   3.7
  - on_step[28] .......................................  |        44 |     24829 |       486 |   0.0 |  64.6 |   2.6
  - get_staticdata[6] .................................  |        29 |      9225 |       223 |   0.0 |  56.0 |   0.9
  - on_player_hpchange[1] .............................  |         1 |       132 |         3 |   0.0 |   4.4 |   0.1
  - on_player_receive_fields[6] .......................  |         1 |        91 |         1 |   0.0 |   0.7 |   0.0
  - on_step[24] .......................................  |        33 |      7169 |       224 |   0.0 |  51.3 |   2.1
  - on_step[10] .......................................  |        36 |     10322 |       188 |   0.0 |  69.4 |   3.2
  - get_staticdata[10] ................................  |        62 |      3753 |       295 |   0.0 |  17.5 |   2.4
  - on_activate[47] ...................................  |        73 |      1622 |       281 |   0.0 |  36.2 |   2.5
  - get_staticdata[43] ................................  |        34 |      1269 |       207 |   0.0 |   9.9 |   1.1
  - on_activate[6] ....................................  |        69 |      3045 |       378 |   0.0 |   2.8 |   0.7
  - ABM[4] ............................................  |      4593 |     17659 |      9065 |  12.8 |  25.3 |  18.5
  - on_step[46] .......................................  |        32 |     52802 |       301 |   0.0 |  85.2 |   3.9
  - on_activate[30] ...................................  |        61 |      1014 |       223 |   0.0 |  23.1 |   2.5
  - globalstep[2] .....................................  |         1 |      4383 |         2 |   0.0 |  88.9 |   0.1
  - on_punchplayer[2] .................................  |         1 |       119 |         4 |   0.0 |   1.6 |   0.1
  - on_step[5] ........................................  |        41 |     41873 |       469 |   0.0 |  90.9 |  12.1
  - on_step[32] .......................................  |        38 |     13994 |       237 |   0.0 |  49.9 |   3.2
  - on_step[13] .......................................  |        41 |     53122 |       263 |   0.0 |  86.9 |   4.2
  - on_step[7] ........................................  |        37 |     23122 |       548 |   0.1 |  74.4 |   3.5
  - on_activate[17] ...................................  |        90 |      1026 |       241 |   0.0 |   8.1 |   0.6
  - on_activate[46] ...................................  |        76 |     10201 |       469 |   0.1 |  47.1 |   1.9
  - get_staticdata[11] ................................  |        46 |       100 |        73 |   0.2 |   0.4 |   0.3
  - on_player_receive_fields[7] .......................  |         1 |       102 |         1 |   0.0 |   0.5 |   0.0
  - get_staticdata[40] ................................  |        25 |      8246 |       199 |   0.0 |  45.9 |   1.4
  - get_staticdata[39] ................................  |        24 |      2637 |       226 |   0.0 |  13.0 |   0.9
  - get_staticdata[14] ................................  |        41 |      1017 |       192 |   0.0 |   9.6 |   0.6
  - on_step[22] .......................................  |        50 |      2170 |       342 |   0.0 |   6.4 |   0.6
  - get_staticdata[28] ................................  |        22 |      3287 |       180 |   0.0 |  16.7 |   0.8
  - on_punch[27] ......................................  |        24 |       557 |       232 |   0.0 |   0.7 |   0.3
  - on_activate[33] ...................................  |        64 |      4831 |       257 |   0.0 |  12.4 |   1.2
  - get_staticdata[8] .................................  |        39 |      9177 |       285 |   0.0 |  23.7 |   1.2
  - get_staticdata[27] ................................  |        26 |      1116 |       117 |   0.0 |  13.2 |   1.1
  - on_step[20] .......................................  |        37 |     21685 |       224 |   0.0 |  86.0 |   2.6
  - on_activate[29] ...................................  |        65 |      2258 |       326 |   0.1 |  25.2 |   2.6
  - get_staticdata[21] ................................  |        25 |       691 |       143 |   0.0 |  10.0 |   0.8
  - get_staticdata[20] ................................  |        28 |      1134 |       226 |   0.1 |  13.8 |   1.5
  - on_activate[22] ...................................  |       119 |       491 |       283 |   0.2 |   1.6 |   0.7
  - on_player_receive_fields[4] .......................  |         1 |        78 |         1 |   0.0 |   0.6 |   0.0
I do not understand with players scouting. What do you mean?

Bastrabun
Member
Posts: 212
Joined: Mon Nov 04, 2019 19:48

Re: [Mod] Petz [v15.8] [petz]

by Bastrabun » Post

When players go out into the countryside, where non-emerged or non-loaded blocks need to get loaded :D

If you want, I can show you. It's reproducible
Whatever I say is CC0

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Mod] Petz [v15.8] [petz]

by runs » Post

Bastrabun wrote:
Sat Aug 08, 2020 00:54
When players go out into the countryside, where non-emerged or non-loaded blocks need to get loaded :D

If you want, I can show you. It's reproducible
In those blocks are petz? How do you know that it is caused by petz?

Note: The spawn should be set to 30s or more.

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Mod] Petz [v15.8] [petz]

by runs » Post

It is rare is when the petz (entities) are activated. The heavy load should be in a normal working.

Bastrabun
Member
Posts: 212
Joined: Mon Nov 04, 2019 19:48

Re: [Mod] Petz [v15.8] [petz]

by Bastrabun » Post

I know it because when I disable petz on my testserver that runs on the same machine and do what a player did before, I can compare(*). Lag with petz, less lag without. Take a look at the 4th columen of the profiler. The more, the worse. Some on_rightclick take a lot of time, some ABM does, some on_activate

Also the profiler says in the first line avg 2556, that's the avg computing time in ms this mod uses as far as I understood.

(*) more or less, I cannot reproduce exactly, but when he gets lag when playing a minigame, I also play the minigame. Or when he goes exploring the countryside on the live server and gets lag, I also go there and then see what the profiler tells me. When I am online, I can also ask the player and see what the profiler says.

Maybe I am mistaken and I do not understand what the profiler tells me. Then there's still the method of "disable in testserver and do stuff". How do I measure "lag" (in fact CPU time as Gundul already pointed out)? There the /status command that gives me lagspikes, and I can see entities teleporting back and forth - especially dolphins in the ocean.
Whatever I say is CC0

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Mod] Petz [v15.8] [petz]

by runs » Post

v15.9

- Changed 4 ABM functions to Nodetimers.

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Mod] Petz [v15.8] [petz]

by runs » Post

Bastrabun wrote:
Sat Aug 08, 2020 10:51
I know it because when I disable petz on my testserver that runs on the same machine and do what a player did before, I can compare(*). Lag with petz, less lag without. Take a look at the 4th columen of the profiler. The more, the worse. Some on_rightclick take a lot of time, some ABM does, some on_activate

Also the profiler says in the first line avg 2556, that's the avg computing time in ms this mod uses as far as I understood.

(*) more or less, I cannot reproduce exactly, but when he gets lag when playing a minigame, I also play the minigame. Or when he goes exploring the countryside on the live server and gets lag, I also go there and then see what the profiler tells me. When I am online, I can also ask the player and see what the profiler says.

Maybe I am mistaken and I do not understand what the profiler tells me. Then there's still the method of "disable in testserver and do stuff". How do I measure "lag" (in fact CPU time as Gundul already pointed out)? There the /status command that gives me lagspikes, and I can see entities teleporting back and forth - especially dolphins in the ocean.
Minigame is not related with Petz, but it may indicate that if the server is overloaded, the rest will go wrong.

Petz is a resource devourer, because it is not a static mod, but dynamic, interacting with the enviroment. And what's worse, each mob entity increases the problem. It is a matter about amount.

I've removed ABMs, cool thing and better.

The on_rightclick event is not crucial, cos is rare and triggered by the players, that is a puntual thing; anyway I will check it.

The major problem I can see is the on_activate event, reinstantiation of a overpopulated area can result in a bottleneck, cos a lot of mobs arise up at the same time. Petz only loads some variables at that point. I've checked mobkit and does not introduce serious heavy coding. Anyway I will check it too.

Use the analizing mod that Gundul said and then tell me.

The management of entities is the great forgotten of Minetest, the developers have never spoiled it. There are a few outstanding PRs that I hope will come out and fix some issues and improve performance.

PumpkingPurrsson
Member
Posts: 13
Joined: Mon Aug 17, 2020 16:30
GitHub: PumpkingPurrson
IRC: Pumpking
In-game: Pumpking

Re: [Mod] Petz [v15.9] [petz]

by PumpkingPurrsson » Post

My Duckie doesn't lay eggs :(
Pumpking is a verb. (And the second "s" is an illusion.)

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Mod] Petz [v15.9] [petz]

by runs » Post

PumpkingPurrsson wrote:
Mon Aug 17, 2020 18:10
My Duckie doesn't lay eggs :(
Await. Or try to decrease 'lay_egg_chance' in petz.conf.

PumpkingPurrsson
Member
Posts: 13
Joined: Mon Aug 17, 2020 16:30
GitHub: PumpkingPurrson
IRC: Pumpking
In-game: Pumpking

Re: [Mod] Petz [v15.9] [petz]

by PumpkingPurrsson » Post

Thank you! :)
Pumpking is a verb. (And the second "s" is an illusion.)

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Mod] Petz [v15.9] [petz]

by runs » Post

v15.10

- Now the lay of eggs by animal is limited to 10, to avoid a infinite egg production. New "max_laid_eggs" setting to adjust. this.

PumpkingPurrsson
Member
Posts: 13
Joined: Mon Aug 17, 2020 16:30
GitHub: PumpkingPurrson
IRC: Pumpking
In-game: Pumpking

Re: [MOD] Petz (petz)

by PumpkingPurrsson » Post

runs wrote:
Tue Mar 05, 2019 23:00
New version:
-Added a 'tamagochi_safe_node' in 'petz.conf'. It is the node over where the pet is safe and do not starve to death. So you can leave it safe and go to the adventure. By default is ''petz:yellow_paving" the floor of the kennel.
does that apply to any type of pet? (like duck and cat)
Pumpking is a verb. (And the second "s" is an illusion.)

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [MOD] Petz (petz)

by runs » Post

PumpkingPurrsson wrote:
Fri Aug 28, 2020 23:12
runs wrote:
Tue Mar 05, 2019 23:00
New version:
-Added a 'tamagochi_safe_node' in 'petz.conf'. It is the node over where the pet is safe and do not starve to death. So you can leave it safe and go to the adventure. By default is ''petz:yellow_paving" the floor of the kennel.
does that apply to any type of pet? (like duck and cat)
Yes, for all tamable pet. :-)

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Mod] Petz [v15.10] [petz]

by runs » Post

v15.11

- Now the werewolf status supports "player_monoids" and "playerphysics" mods better than override the player physics.

- Fixed the french translation.

Ignaramico
Member
Posts: 78
Joined: Fri Sep 04, 2020 21:23
GitHub: ignaramico

Re: [Mod] Petz [v15.11] [petz]

by Ignaramico » Post

Is possible to deactivate certain petz?, after using the mod my game crashes after playing 20 or so minutes, and i think is because of too many entities, and if i deactivate it the game runs as normal.
im using the game "minetest extended" for futher info

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Mod] Petz [v15.11] [petz]

by runs » Post

Ignaramico wrote:
Sun Sep 13, 2020 13:57
Is possible to deactivate certain petz?, after using the mod my game crashes after playing 20 or so minutes, and i think is because of too many entities, and if i deactivate it the game runs as normal.
im using the game "minetest extended" for futher info
Too much entities = lag, but not crash at all. Firstly would be better do investigate what/how/where is the problem. If Minetets crashes, the "debug.txt" file shows the point of the issue thru a error message.

PD: Petz is done for use with official MTG only.

Ignaramico
Member
Posts: 78
Joined: Fri Sep 04, 2020 21:23
GitHub: ignaramico

Re: [Mod] Petz [v15.11] [petz]

by Ignaramico » Post

runs wrote:
Sun Sep 13, 2020 19:37
Ignaramico wrote:
Sun Sep 13, 2020 13:57
Is possible to deactivate certain petz?, after using the mod my game crashes after playing 20 or so minutes, and i think is because of too many entities, and if i deactivate it the game runs as normal.
im using the game "minetest extended" for futher info
Too much entities = lag, but not crash at all. Firstly would be better do investigate what/how/where is the problem. If Minetets crashes, the "debug.txt" file shows the point of the issue thru a error message.

PD: Petz is done for use with official MTG only.
It wasnt a game crash, apparently my pc closed the game (maybe because of the lag or stuff), i changed the spawn of some mobs to 0 to help with the lag, and currently im playing without problems

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Mod] Petz [v15.11] [petz]

by runs » Post

Ignaramico wrote:
Mon Sep 14, 2020 21:43
runs wrote:
Sun Sep 13, 2020 19:37
Ignaramico wrote:
Sun Sep 13, 2020 13:57
Is possible to deactivate certain petz?, after using the mod my game crashes after playing 20 or so minutes, and i think is because of too many entities, and if i deactivate it the game runs as normal.
im using the game "minetest extended" for futher info
Too much entities = lag, but not crash at all. Firstly would be better do investigate what/how/where is the problem. If Minetets crashes, the "debug.txt" file shows the point of the issue thru a error message.

PD: Petz is done for use with official MTG only.
It wasnt a game crash, apparently my pc closed the game (maybe because of the lag or stuff), i changed the spawn of some mobs to 0 to help with the lag, and currently im playing without problems
What OS do you use? What PC specifications?

Bastrabun
Member
Posts: 212
Joined: Mon Nov 04, 2019 19:48

Re: [Mod] Petz [v15.11] [petz]

by Bastrabun » Post

Can you make it that when hitting petz with something, toolwear is applied?

Currently they are in the immortal group, while eg mobs_monster are in the fleshy group. Fleshy group monster and players add toolwear properly.

Mobs from water_life show the same behaviour, maybe it is a mobkit thing? I'll ask Gundul the same thing :)

This may relate to the toolwear-issue from mtg:

https://github.com/minetest/minetest_game/issues/2650

https://github.com/minetest/minetest/issues/5844

###

Also, minor thing: When a damaged pet is healed by feeding it, it says "Pony at full health (15)". But when the pony cannot be healed with one wheat, the text seems to be wrong.
Bildschirmfoto_2020-09-19_22-17-37.png
Bildschirmfoto_2020-09-19_22-17-37.png (24.75 KiB) Viewed 1117 times
Whatever I say is CC0

Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests