[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 [v22.15] [petz]

by runs » Post

Festus1965 wrote:
Sat Mar 12, 2022 09:56
runs wrote:
Sat Mar 12, 2022 09:02
Festus1965 wrote:
Fri Mar 11, 2022 23:47

where is this time set ? file.lua:line ???
In any "brain" file, any file that start by "br_" in petz/petz/mobkit", this line:

Code: Select all

if mobkit.timer(self, 1) then
I spend some time in the files, I am sure not professional in lua.
Is there any change in one setting to reduce that 1sec timer down to 2 or 3 = reduce CPU time of Petz by 50 or 66 % ?

When a server has a profiler file show 33% Petz and next mod is under 10% I think it's presents is too high.
I will do configurable.

The problem of Petz in servers is to allow to players too much petz. If the players max of a server is X, i.e. 20, the max number of petz should be 80, no more.

Petz are entities as the players. So they have to be limited.
Last edited by runs on Sat Mar 12, 2022 20:39, edited 2 times in total.

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

Re: [Mod] Petz [v22.15] [petz]

by runs » Post

Inocudom wrote:
Sat Mar 12, 2022 07:31
Any porcupine puffers in the future of this mod? We are in the house of Pisces right now. They can be an example of the "beware the silly ones" trope for this mod. You can see one right here:
https://youtu.be/lOltMxQ8Kfc
There could be two variants of this fish. One would only be fatal if eaten, while the other one kills the player instantly upon contact (regardless of armor, health, and/or enchantments.) Pisces power indeed! Maybe there could even be a third type that lives in lava and spits that liquid at players to cause damage (also instant death upon contact?) Just some ideas...
Petz has been on stand-by for about a year. That's good, because the bugs should be minimal.

The problem is that I'm tired, not of Petz, but of people in general. Of the attacks. Of envy towards me and all the bullshit. I know it's the norm on the internet, but there comes a time when you say, is it worth it to me? Even though I don't give a damn about them, of course they make a dent.

Now I'm concentrating on my new game, which will of course have a new and improved Petz.

Petz is not dead, just is sleeping.

User avatar
Festus1965
Member
Posts: 4181
Joined: Sun Jan 03, 2016 11:58
GitHub: Festus1965
In-game: Festus1965 Thomas Thailand Explorer
Location: Thailand ChiangMai
Contact:

Re: [Mod] Petz [v22.15] [petz]

by Festus1965 » Post

LMD wrote:
Sat Mar 12, 2022 18:30
Are you sure that your assumption is correct in the first place, that most time is being spent due to those timers?
Am I ?

As there is no single master using, and all split on very much small ones, I guess so:
Spoiler
petz: | 8 | 582649 | 9607 | 0.0 | 98.2 | 33.8
- on_deactivate[36] ................................. | 1 | 84 | 4 | 0.0 | 0.1 | 0.0
- on_leaveplayer[3] ................................. | 1 | 1156 | 5 | 0.0 | 2.7 | 0.0
- on_step[44] ....................................... | 25 | 128807 | 411 | 0.0 | 84.3 | 1.6
- on_punchplayer[2] ................................. | 1 | 28920 | 7 | 0.0 | 32.7 | 0.0
- on_rightclick[39] ................................. | 332 | 4000 | 860 | 0.0 | 16.7 | 3.3
- get_staticdata[19] ................................ | 7 | 22563 | 83 | 0.0 | 22.2 | 0.1
- get_staticdata[49] ................................ | 10 | 6391 | 63 | 0.0 | 5.8 | 0.1
- on_player_receive_fields[5] ....................... | 1 | 4511 | 2 | 0.0 | 7.8 | 0.0
- on_activate[16] ................................... | 30 | 2235 | 113 | 0.0 | 1.4 | 0.1
- on_leaveplayer[2] ................................. | 1 | 178 | 3 | 0.0 | 0.6 | 0.0
- on_step[45] ....................................... | 24 | 140087 | 401 | 0.0 | 75.5 | 1.5
- get_staticdata[29] ................................ | 8 | 10423 | 60 | 0.0 | 8.6 | 0.1
- on_deactivate[14] ................................. | 1 | 353 | 4 | 0.0 | 0.6 | 0.0
- on_punchplayer[1] ................................. | 1 | 14434 | 16 | 0.0 | 13.7 | 0.0
- on_rightclick[48] ................................. | 683 | 718 | 700 | 1.4 | 3.1 | 2.2
- on_leaveplayer[1] ................................. | 1 | 262 | 2 | 0.0 | 0.3 | 0.0
- on_deactivate[46] ................................. | 1 | 161 | 3 | 0.0 | 0.7 | 0.0
- on_deactivate[15] ................................. | 1 | 2608 | 7 | 0.0 | 2.7 | 0.0
- on_deactivate[32] ................................. | 1 | 244 | 3 | 0.0 | 0.5 | 0.0
- get_staticdata[44] ................................ | 9 | 29530 | 93 | 0.0 | 31.3 | 0.1
- on_deactivate[13] ................................. | 1 | 199 | 5 | 0.0 | 0.4 | 0.0
- on_rightclick[49] ................................. | 244 | 1452 | 634 | 0.1 | 4.8 | 2.1
- on_deactivate[35] ................................. | 1 | 514 | 4 | 0.0 | 1.6 | 0.0
- on_punch[19] ...................................... | 9 | 1855 | 188 | 0.0 | 22.5 | 1.2
- get_staticdata[24] ................................ | 12 | 375 | 64 | 0.0 | 0.9 | 0.1
- on_deactivate[33] ................................. | 1 | 189 | 4 | 0.0 | 0.6 | 0.0
- get_staticdata[45] ................................ | 7 | 4811 | 76 | 0.0 | 16.2 | 0.1
- on_deactivate[23] ................................. | 1 | 71 | 4 | 0.0 | 0.0 | 0.0
- on_deactivate[10] ................................. | 1 | 2951 | 18 | 0.0 | 3.4 | 0.0
- on_deactivate[44] ................................. | 1 | 1464 | 6 | 0.0 | 1.7 | 0.0
- get_staticdata[25] ................................ | 9 | 1603 | 47 | 0.0 | 2.8 | 0.1
- get_staticdata[15] ................................ | 8 | 7308 | 105 | 0.0 | 7.1 | 0.1
- on_deactivate[30] ................................. | 1 | 133 | 3 | 0.0 | 0.4 | 0.0
- get_staticdata[8] ................................. | 13 | 15783 | 105 | 0.0 | 12.3 | 0.1
- on_deactivate[45] ................................. | 1 | 234 | 5 | 0.0 | 0.8 | 0.0
- on_deactivate[20] ................................. | 1 | 1589 | 6 | 0.0 | 0.6 | 0.0
- get_staticdata[26] ................................ | 15 | 14773 | 113 | 0.0 | 29.9 | 0.2
- on_punch[48] ...................................... | 9 | 2868 | 218 | 0.0 | 17.9 | 1.2
- get_staticdata[16] ................................ | 16 | 24485 | 117 | 0.0 | 30.6 | 0.2
- /howl ............................................. | 8 | 1760 | 104 | 0.0 | 1.5 | 0.3
- get_staticdata[9] ................................. | 7 | 17039 | 126 | 0.0 | 13.7 | 0.1
- on_punch[14] ...................................... | 10 | 5851 | 190 | 0.0 | 17.6 | 0.7
- get_staticdata[10] ................................ | 18 | 31207 | 340 | 0.0 | 27.0 | 0.4
- get_staticdata[47] ................................ | 8 | 2645 | 60 | 0.0 | 15.4 | 0.1
- get_staticdata[37] ................................ | 11 | 1854 | 111 | 0.0 | 3.9 | 0.2
- get_staticdata[50] ................................ | 17 | 24545 | 134 | 0.0 | 47.8 | 0.2
- on_punch[49] ...................................... | 11 | 2245 | 247 | 0.0 | 7.1 | 1.1
- on_step[5] ........................................ | 34 | 120699 | 652 | 0.0 | 91.6 | 3.0
- on_deactivate[42] ................................. | 1 | 402 | 4 | 0.0 | 0.7 | 0.0
- on_rightclick[18] ................................. | 314 | 936 | 489 | 1.4 | 9.5 | 3.6
- get_staticdata[40] ................................ | 9 | 3675 | 66 | 0.0 | 7.3 | 0.1
- get_staticdata[30] ................................ | 8 | 6282 | 85 | 0.0 | 9.0 | 0.1
- on_rightclick[29] ................................. | 252 | 5442 | 1021 | 0.0 | 32.6 | 3.9
- on_punch[16] ...................................... | 11 | 3646 | 269 | 0.0 | 2.4 | 0.6
- on_punch[38] ...................................... | 388 | 388 | 388 | 0.9 | 0.9 | 0.9
- on_activate[8] .................................... | 40 | 25572 | 296 | 0.0 | 19.0 | 0.4
- on_deactivate[7] .................................. | 1 | 353 | 3 | 0.0 | 0.9 | 0.0
- get_staticdata[22] ................................ | 8 | 6919 | 135 | 0.0 | 19.6 | 0.2
- on_punch[29] ...................................... | 85 | 153 | 119 | 0.4 | 1.0 | 0.7
- on_deactivate[5] .................................. | 1 | 508 | 5 | 0.0 | 1.2 | 0.0
- get_staticdata[34] ................................ | 8 | 4979 | 99 | 0.0 | 12.4 | 0.1
- on_deactivate[40] ................................. | 1 | 411 | 4 | 0.0 | 1.7 | 0.0
- get_staticdata[31] ................................ | 8 | 1033 | 56 | 0.0 | 1.9 | 0.1
- on_deactivate[4] .................................. | 1 | 411 | 3 | 0.0 | 3.5 | 0.0
- get_staticdata[13] ................................ | 9 | 1383 | 43 | 0.0 | 1.4 | 0.0
- on_punch[44] ...................................... | 11 | 1724 | 294 | 0.0 | 8.1 | 0.8
- on_player_hpchange[1] ............................. | 1 | 3613 | 2 | 0.0 | 7.9 | 0.0
- on_deactivate[2] .................................. | 1 | 3042 | 43 | 0.0 | 4.7 | 0.1
- on_deactivate[31] ................................. | 1 | 244 | 4 | 0.0 | 2.3 | 0.0
- on_rightclick[8] .................................. | 223 | 7237 | 862 | 0.3 | 13.8 | 2.6
- get_staticdata[32] ................................ | 10 | 4601 | 65 | 0.0 | 7.8 | 0.1
- on_activate[9] .................................... | 34 | 7412 | 211 | 0.0 | 9.0 | 0.3
- on_punch[45] ...................................... | 11 | 267 | 139 | 0.0 | 3.1 | 0.7
- get_staticdata[43] ................................ | 8 | 22450 | 143 | 0.0 | 8.2 | 0.2
- get_staticdata[33] ................................ | 16 | 4420 | 70 | 0.0 | 3.1 | 0.2
- on_step[48] ....................................... | 23 | 74140 | 391 | 0.0 | 76.6 | 1.5
- get_staticdata[36] ................................ | 8 | 15243 | 89 | 0.0 | 19.9 | 0.1
- on_rightclick[9] .................................. | 245 | 4204 | 651 | 0.2 | 24.1 | 3.1
- on_rightclick[44] ................................. | 230 | 14297 | 995 | 0.1 | 19.5 | 2.0
- get_staticdata[41] ................................ | 10 | 18997 | 113 | 0.0 | 37.2 | 0.2
- get_staticdata[23] ................................ | 8 | 14177 | 170 | 0.0 | 28.9 | 0.3
- on_punch[46] ...................................... | 25 | 663 | 285 | 0.0 | 5.1 | 1.3
- on_punch[24] ...................................... | 10 | 6685 | 455 | 0.0 | 10.6 | 1.5
- on_punch[34] ...................................... | 14 | 1220 | 311 | 0.0 | 11.2 | 3.4
- get_staticdata[42] ................................ | 12 | 4788 | 80 | 0.0 | 6.4 | 0.1
- on_rightclick[45] ................................. | 215 | 1949 | 573 | 0.3 | 10.2 | 2.7
- on_punch[7] ....................................... | 13 | 643 | 99 | 0.0 | 3.3 | 0.4
- on_punch[54] ...................................... | 11 | 1786 | 200 | 0.0 | 6.6 | 1.0
- on_punch[25] ...................................... | 22 | 1651 | 358 | 0.1 | 5.7 | 0.9
- on_punch[35] ...................................... | 12 | 222 | 157 | 0.0 | 0.4 | 0.2
- on_rightclick[14] ................................. | 250 | 1447 | 553 | 0.2 | 5.0 | 1.1
- on_rightclick[46] ................................. | 315 | 3639 | 1304 | 0.3 | 9.6 | 3.9
- on_punch[47] ...................................... | 9 | 2604 | 218 | 0.0 | 4.8 | 0.8
- on_punch[26] ...................................... | 200 | 200 | 200 | 4.6 | 4.6 | 4.6
- on_punch[17] ...................................... | 75 | 3545 | 211 | 0.0 | 11.2 | 0.6
- on_step[18] ....................................... | 23 | 95683 | 494 | 0.0 | 85.4 | 1.6
- on_activate[38] ................................... | 32 | 10376 | 132 | 0.0 | 11.3 | 0.4
- on_deactivate[41] ................................. | 1 | 3961 | 6 | 0.0 | 7.2 | 0.0
- on_punch[40] ...................................... | 9 | 4250 | 301 | 0.0 | 48.5 | 2.3
- on_rightclick[15] ................................. | 218 | 10988 | 990 | 0.1 | 7.1 | 1.4
- on_rightclick[34] ................................. | 758 | 758 | 758 | 4.9 | 4.9 | 4.9
- on_punch[9] ....................................... | 11 | 1599 | 187 | 0.0 | 3.8 | 0.7
- on_rightclick[24] ................................. | 287 | 293 | 290 | 1.0 | 2.0 | 1.5
- on_punch[10] ...................................... | 6 | 2529 | 265 | 0.0 | 9.1 | 1.3
- on_activate[49] ................................... | 33 | 6705 | 227 | 0.0 | 29.8 | 0.4
- on_punch[41] ...................................... | 13 | 621 | 230 | 0.0 | 1.2 | 0.4
- on_rightclick[16] ................................. | 227 | 11512 | 1063 | 0.1 | 14.2 | 2.0
- on_punch[8] ....................................... | 11 | 7961 | 228 | 0.0 | 25.5 | 0.7
- on_punch[27] ...................................... | 9 | 884 | 201 | 0.0 | 4.2 | 1.0
- on_rightclick[35] ................................. | 1014 | 3462 | 1670 | 2.7 | 13.1 | 6.5
- on_punch[11] ...................................... | 2 | 8567 | 483 | 0.0 | 11.4 | 1.0
- on_activate[29] ................................... | 39 | 956 | 146 | 0.0 | 2.2 | 0.2
- on_deactivate[28] ................................. | 1 | 145 | 2 | 0.0 | 0.6 | 0.0
- on_step[49] ....................................... | 24 | 61963 | 444 | 0.0 | 85.9 | 1.7
- on_punch[42] ...................................... | 12 | 1785 | 287 | 0.0 | 7.4 | 1.0
- on_activate[39] ................................... | 39 | 4902 | 262 | 0.0 | 6.8 | 0.3
- on_punch[20] ...................................... | 8 | 2202 | 237 | 0.0 | 7.6 | 0.9
- on_punch[30] ...................................... | 15 | 594 | 249 | 0.0 | 2.1 | 0.7
- on_rightclick[51] ................................. | 321 | 2608 | 778 | 0.4 | 9.1 | 2.6
- on_punch[12] ...................................... | 12 | 487 | 203 | 0.0 | 4.3 | 0.7
- on_deactivate[1] .................................. | 1 | 17623 | 71 | 0.0 | 22.9 | 0.1
- on_activate[48] ................................... | 34 | 22088 | 367 | 0.0 | 23.9 | 0.5
- on_activate[19] ................................... | 40 | 14623 | 265 | 0.0 | 27.7 | 0.5
- on_rightclick[37] ................................. | 285 | 5605 | 824 | 0.0 | 28.1 | 3.5
- on_step[39] ....................................... | 22 | 117346 | 493 | 0.0 | 82.1 | 1.7
- on_punch[21] ...................................... | 16 | 336 | 190 | 0.1 | 4.0 | 1.2
- on_punch[31] ...................................... | 10 | 806 | 205 | 0.0 | 10.1 | 1.6
- on_rightclick[27] ................................. | 298 | 1461 | 560 | 0.8 | 8.9 | 2.5
- on_activate[28] ................................... | 57 | 1566 | 238 | 0.0 | 2.0 | 0.4
- on_step[29] ....................................... | 27 | 43745 | 339 | 0.0 | 67.2 | 1.2
- on_deactivate[19] ................................. | 1 | 482 | 3 | 0.0 | 0.5 | 0.0
- on_rightclick[30] ................................. | 238 | 2877 | 556 | 0.2 | 18.3 | 2.6
- on_punch[32] ...................................... | 18 | 174 | 114 | 0.1 | 3.5 | 1.3
- on_rightclick[20] ................................. | 294 | 3780 | 760 | 0.2 | 20.3 | 3.5
- on_activate[2] .................................... | 96 | 124 | 111 | 0.4 | 1.6 | 0.9
- on_activate[18] ................................... | 34 | 54665 | 272 | 0.0 | 34.9 | 0.4
- on_step[19] ....................................... | 24 | 107071 | 563 | 0.0 | 85.9 | 2.0
- on_punch[23] ...................................... | 11 | 3400 | 413 | 0.0 | 33.3 | 3.7
- on_rightclick[31] ................................. | 267 | 4976 | 846 | 0.2 | 11.9 | 3.5
- on_punch[33] ...................................... | 8 | 2377 | 277 | 0.0 | 12.1 | 1.0
- get_staticdata[4] ................................. | 8 | 28346 | 394 | 0.0 | 32.1 | 0.4
- on_activate[5] .................................... | 30 | 7403 | 261 | 0.0 | 15.2 | 0.3
- on_rightclick[21] ................................. | 378 | 2346 | 1135 | 0.6 | 4.5 | 2.3
- on_deactivate[48] ................................. | 1 | 427 | 3 | 0.0 | 1.5 | 0.0
- on_step[8] ........................................ | 24 | 55051 | 470 | 0.0 | 77.9 | 1.7
- on_rightclick[23] ................................. | 296 | 6653 | 1212 | 0.0 | 19.8 | 4.7
- on_activate[4] .................................... | 1 | 15 | 4 | 0.0 | 0.1 | 0.0
- on_rightclick[22] ................................. | 269 | 1062 | 473 | 0.6 | 11.3 | 3.5
- on_deactivate[49] ................................. | 1 | 335 | 4 | 0.0 | 0.7 | 0.0
- on_rightclick[13] ................................. | 245 | 11129 | 740 | 0.2 | 38.2 | 2.6
- on_step[52] ....................................... | 23 | 192736 | 710 | 0.0 | 94.5 | 2.0
- on_activate[7] .................................... | 33 | 51583 | 897 | 0.0 | 37.9 | 1.0
- get_staticdata[6] ................................. | 9 | 10563 | 85 | 0.0 | 13.7 | 0.1
- on_rightclick[33] ................................. | 329 | 2282 | 719 | 0.4 | 17.6 | 5.1
- on_activate[20] ................................... | 40 | 2898 | 204 | 0.0 | 4.4 | 0.3
- on_step[53] ....................................... | 22 | 75503 | 594 | 0.0 | 82.7 | 2.3
- on_activate[6] .................................... | 32 | 14219 | 316 | 0.0 | 14.9 | 0.4
- on_activate[30] ................................... | 51 | 9342 | 272 | 0.0 | 14.7 | 0.4
- on_step[32] ....................................... | 25 | 44920 | 270 | 0.0 | 74.3 | 0.9
- on_activate[23] ................................... | 40 | 17382 | 251 | 0.0 | 31.7 | 0.4
- on_deactivate[34] ................................. | 3 | 3 | 3 | 0.0 | 0.0 | 0.0
- on_step[38] ....................................... | 76 | 3568 | 276 | 0.2 | 16.9 | 1.8
- on_step[22] ....................................... | 25 | 96007 | 272 | 0.0 | 76.5 | 1.0
- on_activate[17] ................................... | 36 | 15485 | 410 | 0.0 | 10.2 | 0.4
- get_staticdata[35] ................................ | 28 | 86 | 53 | 0.0 | 0.4 | 0.1
- on_activate[33] ................................... | 2 | 1580 | 24 | 0.0 | 1.1 | 0.0
- on_punch[51] ...................................... | 225 | 267 | 246 | 0.3 | 0.6 | 0.4
- on_rightclick[47] ................................. | 348 | 10918 | 945 | 0.1 | 29.2 | 4.4
- on_rightclick[17] ................................. | 270 | 7597 | 931 | 0.1 | 30.9 | 2.7
- on_punch[3] ....................................... | 141 | 256 | 198 | 0.1 | 2.4 | 1.2
- on_step[2] ........................................ | 27 | 14042 | 414 | 0.0 | 35.3 | 2.6
- on_step[33] ....................................... | 25 | 76118 | 368 | 0.0 | 80.3 | 1.6
- on_activate[22] ................................... | 34 | 8836 | 191 | 0.0 | 16.6 | 0.3
- get_staticdata[1] ................................. | 31 | 254 | 110 | 0.3 | 1.1 | 0.6
- on_step[51] ....................................... | 25 | 97850 | 941 | 0.0 | 79.0 | 2.9
- on_rightclick[41] ................................. | 233 | 5075 | 554 | 0.2 | 11.3 | 2.9
- on_rightclick[42] ................................. | 1104 | 1187 | 1156 | 0.0 | 15.8 | 6.6
- on_step[23] ....................................... | 23 | 51394 | 320 | 0.0 | 77.9 | 1.2
- on_activate[32] ................................... | 29 | 8434 | 243 | 0.0 | 24.6 | 0.4
- on_deactivate[47] ................................. | 1 | 9102 | 13 | 0.0 | 7.8 | 0.0
- on_rightclick[12] ................................. | 334 | 2579 | 624 | 0.4 | 15.5 | 3.7
- on_deactivate[8] .................................. | 1 | 506 | 4 | 0.0 | 1.3 | 0.0
- on_rightclick[32] ................................. | 683 | 1161 | 953 | 0.6 | 4.5 | 2.7
- on_rightclick[10] ................................. | 413 | 1942 | 678 | 0.3 | 8.0 | 2.4
- on_step[12] ....................................... | 25 | 93200 | 436 | 0.0 | 73.1 | 1.5
- on_punch[50] ...................................... | 10 | 1244 | 209 | 0.0 | 7.5 | 0.8
- on_step[30] ....................................... | 23 | 160338 | 472 | 0.0 | 77.5 | 2.0
- on_rightclick[26] ................................. | 243 | 711 | 459 | 0.1 | 3.7 | 1.7
- on_step[4] ........................................ | 60 | 132 | 104 | 0.1 | 0.5 | 0.3
- on_activate[25] ................................... | 31 | 12709 | 371 | 0.0 | 12.4 | 0.5
- get_staticdata[5] ................................. | 13 | 7075 | 112 | 0.0 | 7.8 | 0.2
- on_player_receive_fields[2] ....................... | 1 | 5253 | 2 | 0.0 | 17.9 | 0.0
- on_step[20] ....................................... | 29 | 54068 | 316 | 0.0 | 87.9 | 1.2
- on_rightclick[4] .................................. | 223 | 4700 | 658 | 0.0 | 21.6 | 3.0
- on_activate[40] ................................... | 84 | 134 | 111 | 0.0 | 0.2 | 0.1
- on_activate[35] ................................... | 28 | 9207 | 230 | 0.0 | 26.4 | 0.4
- on_step[16] ....................................... | 25 | 32674 | 243 | 0.0 | 55.7 | 0.6
- on_deactivate[29] ................................. | 1 | 959 | 3 | 0.0 | 1.2 | 0.0
- on_deactivate[18] ................................. | 1 | 319 | 3 | 0.0 | 2.0 | 0.0
- on_step[13] ....................................... | 20 | 263678 | 1312 | 0.0 | 90.0 | 4.2
- on_activate[50] ................................... | 33 | 10142 | 209 | 0.0 | 9.3 | 0.3
- on_step[31] ....................................... | 23 | 80348 | 452 | 0.0 | 81.1 | 1.9
- on_activate[24] ................................... | 49 | 6028 | 429 | 0.0 | 22.4 | 0.6
- on_step[17] ....................................... | 34 | 69798 | 722 | 0.0 | 75.5 | 2.0
- on_deactivate[27] ................................. | 1 | 320 | 4 | 0.0 | 0.4 | 0.0
- get_staticdata[2] ................................. | 12 | 14262 | 124 | 0.0 | 30.8 | 0.2
- on_step[47] ....................................... | 23 | 86809 | 569 | 0.0 | 94.5 | 2.1
- on_punch[52] ...................................... | 11 | 537 | 196 | 0.0 | 4.3 | 0.9
- on_rightclick[5] .................................. | 221 | 8664 | 697 | 0.1 | 28.3 | 3.0
- get_staticdata[11] ................................ | 9 | 12807 | 89 | 0.0 | 3.1 | 0.1
- on_player_receive_fields[3] ....................... | 1 | 4134 | 2 | 0.0 | 10.3 | 0.0
- on_activate[43] ................................... | 33 | 13038 | 295 | 0.0 | 19.0 | 0.5
- get_staticdata[20] ................................ | 9 | 25629 | 82 | 0.0 | 21.3 | 0.1
- on_activate[46] ................................... | 34 | 12154 | 236 | 0.0 | 12.3 | 0.3
- on_step[10] ....................................... | 25 | 68763 | 424 | 0.0 | 75.7 | 1.4
- get_staticdata[21] ................................ | 18 | 5973 | 186 | 0.0 | 11.5 | 0.3
- get_staticdata[3] ................................. | 12 | 15052 | 146 | 0.0 | 8.9 | 0.2
- on_activate[53] ................................... | 35 | 6929 | 315 | 0.0 | 12.8 | 0.6
- on_deactivate[43] ................................. | 1 | 2824 | 4 | 0.0 | 2.3 | 0.0
- on_rightclick[6] .................................. | 212 | 7605 | 679 | 0.1 | 26.8 | 4.4
- on_deactivate[9] .................................. | 1 | 12753 | 79 | 0.0 | 20.2 | 0.1
- globalstep[2] ..................................... | 1 | 16365 | 2 | 0.0 | 57.8 | 0.0
- on_deactivate[6] .................................. | 1 | 1405 | 9 | 0.0 | 4.9 | 0.0
- on_activate[34] ................................... | 33 | 11677 | 168 | 0.0 | 12.2 | 0.2
- on_activate[42] ................................... | 41 | 5036 | 245 | 0.0 | 8.4 | 0.4
- on_activate[37] ................................... | 35 | 23221 | 186 | 0.0 | 12.5 | 0.3
- on_step[14] ....................................... | 25 | 42977 | 285 | 0.0 | 59.0 | 0.9
- on_deactivate[21] ................................. | 1 | 315 | 4 | 0.0 | 1.5 | 0.0
- on_step[50] ....................................... | 20 | 46034 | 304 | 0.0 | 76.3 | 1.0
- on_step[40] ....................................... | 30 | 49387 | 333 | 0.0 | 78.2 | 1.4
- on_activate[52] ................................... | 31 | 2316 | 157 | 0.0 | 5.2 | 0.2
- on_item_eat[1] .................................... | 2 | 6654 | 12 | 0.0 | 32.3 | 0.1
- on_step[36] ....................................... | 31 | 39465 | 354 | 0.0 | 74.7 | 1.4
- on_activate[15] ................................... | 33 | 23277 | 589 | 0.0 | 35.6 | 0.7
- on_rightclick[7] .................................. | 330 | 22592 | 2756 | 0.3 | 41.4 | 5.1
- on_deactivate[3] .................................. | 1 | 4156 | 15 | 0.0 | 3.4 | 0.0
- on_step[6] ........................................ | 29 | 142547 | 437 | 0.0 | 77.0 | 1.5
- on_activate[27] ................................... | 37 | 17548 | 370 | 0.0 | 32.6 | 0.6
- on_activate[36] ................................... | 33 | 8210 | 161 | 0.0 | 10.9 | 0.2
- on_activate[41] ................................... | 34 | 16353 | 210 | 0.0 | 13.4 | 0.3
- globalstep[1] ..................................... | 6 | 98983 | 73 | 0.0 | 82.5 | 0.3
- on_step[15] ....................................... | 23 | 136322 | 818 | 0.0 | 82.3 | 2.3
- on_step[28] ....................................... | 26 | 80446 | 363 | 0.0 | 83.9 | 1.1
- get_staticdata[38] ................................ | 8 | 3161 | 103 | 0.0 | 9.6 | 0.2
- on_step[41] ....................................... | 23 | 98842 | 447 | 0.0 | 78.8 | 1.6
- on_deactivate[24] ................................. | 1 | 104 | 2 | 0.0 | 0.2 | 0.0
- on_punch[6] ....................................... | 13 | 914 | 62 | 0.0 | 3.7 | 0.3
- on_activate[55] ................................... | 40 | 19476 | 309 | 0.0 | 21.3 | 0.5
- on_deactivate[39] ................................. | 1 | 1790 | 3 | 0.0 | 0.9 | 0.0
- on_joinplayer[1] .................................. | 1 | 1693 | 8 | 0.0 | 1.2 | 0.0
- get_staticdata[46] ................................ | 8 | 11009 | 145 | 0.0 | 18.0 | 0.2
- on_activate[11] ................................... | 36 | 29036 | 226 | 0.0 | 46.7 | 0.3
- on_player_receive_fields[1] ....................... | 1 | 3298 | 3 | 0.0 | 15.9 | 0.0
- on_step[27] ....................................... | 40 | 19864 | 448 | 0.0 | 42.4 | 1.7
- on_activate[12] ................................... | 34 | 15092 | 293 | 0.0 | 14.5 | 0.3
- get_staticdata[12] ................................ | 9 | 9553 | 177 | 0.0 | 14.2 | 0.2
- on_step[37] ....................................... | 29 | 83703 | 287 | 0.0 | 73.8 | 1.2
- on_step[7] ........................................ | 24 | 231657 | 2928 | 0.0 | 92.9 | 9.7
- on_deactivate[11] ................................. | 1 | 10063 | 7 | 0.0 | 11.0 | 0.0
- on_activate[45] ................................... | 35 | 9068 | 192 | 0.0 | 4.9 | 0.2
- on_activate[54] ................................... | 39 | 8666 | 206 | 0.0 | 15.8 | 0.3
- on_step[26] ....................................... | 24 | 178716 | 989 | 0.0 | 85.6 | 3.7
- on_step[34] ....................................... | 25 | 31667 | 247 | 0.0 | 58.2 | 0.8
- on_activate[13] ................................... | 43 | 49399 | 855 | 0.0 | 28.4 | 1.0
- on_deactivate[37] ................................. | 1 | 314 | 4 | 0.0 | 0.7 | 0.0
- on_activate[26] ................................... | 2 | 294 | 21 | 0.0 | 0.5 | 0.0
- on_step[11] ....................................... | 24 | 52316 | 360 | 0.0 | 83.6 | 1.3
- on_player_receive_fields[6] ....................... | 1 | 1491 | 2 | 0.0 | 4.2 | 0.0
- on_step[24] ....................................... | 31 | 48500 | 475 | 0.0 | 86.9 | 2.3
- get_staticdata[7] ................................. | 14 | 7022 | 127 | 0.0 | 14.0 | 0.2
- on_step[43] ....................................... | 27 | 63484 | 398 | 0.0 | 69.1 | 1.1
- on_activate[47] ................................... | 37 | 17630 | 230 | 0.0 | 4.1 | 0.3
- on_activate[10] ................................... | 41 | 11282 | 300 | 0.0 | 18.7 | 0.4
- on_step[9] ........................................ | 23 | 58246 | 306 | 0.0 | 89.8 | 1.1
- on_leaveplayer[5] ................................. | 1 | 154 | 1 | 0.0 | 0.8 | 0.0
- on_step[46] ....................................... | 23 | 81933 | 600 | 0.0 | 87.4 | 2.0
- on_deactivate[26] ................................. | 1 | 518 | 4 | 0.0 | 4.2 | 0.0
- on_step[35] ....................................... | 24 | 81768 | 270 | 0.0 | 62.3 | 0.8
- on_deactivate[25] ................................. | 1 | 1997 | 6 | 0.0 | 3.9 | 0.0
- get_staticdata[48] ................................ | 9 | 7289 | 138 | 0.0 | 9.6 | 0.2
- get_staticdata[17] ................................ | 13 | 28895 | 95 | 0.0 | 26.8 | 0.1
- on_rightclick[50] ................................. | 219 | 12381 | 837 | 0.1 | 28.3 | 2.8
- on_activate[51] ................................... | 34 | 14042 | 342 | 0.0 | 13.0 | 0.5
- on_step[25] ....................................... | 20 | 101602 | 654 | 0.0 | 79.5 | 2.6
- on_activate[14] ................................... | 34 | 4930 | 233 | 0.0 | 6.2 | 0.3
- on_rightclick[28] ................................. | 236 | 1968 | 545 | 0.3 | 8.1 | 1.8
- on_player_receive_fields[7] ....................... | 1 | 7999 | 2 | 0.0 | 6.9 | 0.0
- on_leaveplayer[4] ................................. | 1 | 4051 | 5 | 0.0 | 9.4 | 0.0
- get_staticdata[27] ................................ | 9 | 13566 | 92 | 0.0 | 24.3 | 0.2
- on_rightclick[38] ................................. | 386 | 1064 | 685 | 1.5 | 10.2 | 5.8
- on_deactivate[16] ................................. | 1 | 214 | 3 | 0.0 | 0.6 | 0.0
- get_staticdata[28] ................................ | 10 | 5918 | 93 | 0.0 | 8.1 | 0.2
- get_staticdata[14] ................................ | 12 | 7392 | 137 | 0.0 | 4.7 | 0.2
- on_rightclick[3] .................................. | 263 | 8894 | 729 | 0.1 | 29.4 | 3.0
- on_rightclick[11] ................................. | 241 | 31544 | 1097 | 0.0 | 40.3 | 2.9
- on_deactivate[12] ................................. | 1 | 65 | 2 | 0.0 | 0.2 | 0.0
- on_activate[31] ................................... | 35 | 24859 | 220 | 0.0 | 15.3 | 0.4
- on_punch[53] ...................................... | 13 | 3457 | 240 | 0.0 | 8.9 | 0.8
- on_deactivate[22] ................................. | 1 | 3477 | 6 | 0.0 | 31.5 | 0.0
- on_punch[13] ...................................... | 10 | 2636 | 291 | 0.0 | 8.1 | 1.2
- on_punch[15] ...................................... | 13 | 4248 | 633 | 0.0 | 14.6 | 2.8
- on_player_receive_fields[4] ....................... | 1 | 1902 | 2 | 0.0 | 2.8 | 0.0
on_step[7] with 9.7 highest single, then some more around 5%, so
* would nice to know what number is what pet
* seams to be all petz at sum making a lot to reach this 33% CPU time in profiler
runs wrote:
Sat Mar 12, 2022 20:28
I will do configurable.

The problem of Petz in servers is to allow to players too much petz. If the players max of a server is X, i.e. 20, the max number of petz should be 80, no more.

Petz are entities as the players. So they have to be limited.
* same question I also had to server owner: can you count them, he told he can see it, and when I see some time the chat, some seam to have a lot
* I saw the limitation settings,
but he (we) have to find out which limitation is most helping keep the fun, but reduce the load. I don't use petz, but I mind about servers that are near not playable as of lag, and make all mt community itself loose gamer.
Human has no future (climate change)
If urgend, you find me in Roblox (as CNXThomas)

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

Re: [Mod] Petz [v22.15] [petz]

by runs » Post

Festus1965 wrote:
Sat Mar 12, 2022 23:56
LMD wrote:
Sat Mar 12, 2022 18:30
Are you sure that your assumption is correct in the first place, that most time is being spent due to those timers?
Am I ?

As there is no single master using, and all split on very much small ones, I guess so:
Spoiler
petz: | 8 | 582649 | 9607 | 0.0 | 98.2 | 33.8
- on_deactivate[36] ................................. | 1 | 84 | 4 | 0.0 | 0.1 | 0.0
- on_leaveplayer[3] ................................. | 1 | 1156 | 5 | 0.0 | 2.7 | 0.0
- on_step[44] ....................................... | 25 | 128807 | 411 | 0.0 | 84.3 | 1.6
- on_punchplayer[2] ................................. | 1 | 28920 | 7 | 0.0 | 32.7 | 0.0
- on_rightclick[39] ................................. | 332 | 4000 | 860 | 0.0 | 16.7 | 3.3
- get_staticdata[19] ................................ | 7 | 22563 | 83 | 0.0 | 22.2 | 0.1
- get_staticdata[49] ................................ | 10 | 6391 | 63 | 0.0 | 5.8 | 0.1
- on_player_receive_fields[5] ....................... | 1 | 4511 | 2 | 0.0 | 7.8 | 0.0
- on_activate[16] ................................... | 30 | 2235 | 113 | 0.0 | 1.4 | 0.1
- on_leaveplayer[2] ................................. | 1 | 178 | 3 | 0.0 | 0.6 | 0.0
- on_step[45] ....................................... | 24 | 140087 | 401 | 0.0 | 75.5 | 1.5
- get_staticdata[29] ................................ | 8 | 10423 | 60 | 0.0 | 8.6 | 0.1
- on_deactivate[14] ................................. | 1 | 353 | 4 | 0.0 | 0.6 | 0.0
- on_punchplayer[1] ................................. | 1 | 14434 | 16 | 0.0 | 13.7 | 0.0
- on_rightclick[48] ................................. | 683 | 718 | 700 | 1.4 | 3.1 | 2.2
- on_leaveplayer[1] ................................. | 1 | 262 | 2 | 0.0 | 0.3 | 0.0
- on_deactivate[46] ................................. | 1 | 161 | 3 | 0.0 | 0.7 | 0.0
- on_deactivate[15] ................................. | 1 | 2608 | 7 | 0.0 | 2.7 | 0.0
- on_deactivate[32] ................................. | 1 | 244 | 3 | 0.0 | 0.5 | 0.0
- get_staticdata[44] ................................ | 9 | 29530 | 93 | 0.0 | 31.3 | 0.1
- on_deactivate[13] ................................. | 1 | 199 | 5 | 0.0 | 0.4 | 0.0
- on_rightclick[49] ................................. | 244 | 1452 | 634 | 0.1 | 4.8 | 2.1
- on_deactivate[35] ................................. | 1 | 514 | 4 | 0.0 | 1.6 | 0.0
- on_punch[19] ...................................... | 9 | 1855 | 188 | 0.0 | 22.5 | 1.2
- get_staticdata[24] ................................ | 12 | 375 | 64 | 0.0 | 0.9 | 0.1
- on_deactivate[33] ................................. | 1 | 189 | 4 | 0.0 | 0.6 | 0.0
- get_staticdata[45] ................................ | 7 | 4811 | 76 | 0.0 | 16.2 | 0.1
- on_deactivate[23] ................................. | 1 | 71 | 4 | 0.0 | 0.0 | 0.0
- on_deactivate[10] ................................. | 1 | 2951 | 18 | 0.0 | 3.4 | 0.0
- on_deactivate[44] ................................. | 1 | 1464 | 6 | 0.0 | 1.7 | 0.0
- get_staticdata[25] ................................ | 9 | 1603 | 47 | 0.0 | 2.8 | 0.1
- get_staticdata[15] ................................ | 8 | 7308 | 105 | 0.0 | 7.1 | 0.1
- on_deactivate[30] ................................. | 1 | 133 | 3 | 0.0 | 0.4 | 0.0
- get_staticdata[8] ................................. | 13 | 15783 | 105 | 0.0 | 12.3 | 0.1
- on_deactivate[45] ................................. | 1 | 234 | 5 | 0.0 | 0.8 | 0.0
- on_deactivate[20] ................................. | 1 | 1589 | 6 | 0.0 | 0.6 | 0.0
- get_staticdata[26] ................................ | 15 | 14773 | 113 | 0.0 | 29.9 | 0.2
- on_punch[48] ...................................... | 9 | 2868 | 218 | 0.0 | 17.9 | 1.2
- get_staticdata[16] ................................ | 16 | 24485 | 117 | 0.0 | 30.6 | 0.2
- /howl ............................................. | 8 | 1760 | 104 | 0.0 | 1.5 | 0.3
- get_staticdata[9] ................................. | 7 | 17039 | 126 | 0.0 | 13.7 | 0.1
- on_punch[14] ...................................... | 10 | 5851 | 190 | 0.0 | 17.6 | 0.7
- get_staticdata[10] ................................ | 18 | 31207 | 340 | 0.0 | 27.0 | 0.4
- get_staticdata[47] ................................ | 8 | 2645 | 60 | 0.0 | 15.4 | 0.1
- get_staticdata[37] ................................ | 11 | 1854 | 111 | 0.0 | 3.9 | 0.2
- get_staticdata[50] ................................ | 17 | 24545 | 134 | 0.0 | 47.8 | 0.2
- on_punch[49] ...................................... | 11 | 2245 | 247 | 0.0 | 7.1 | 1.1
- on_step[5] ........................................ | 34 | 120699 | 652 | 0.0 | 91.6 | 3.0
- on_deactivate[42] ................................. | 1 | 402 | 4 | 0.0 | 0.7 | 0.0
- on_rightclick[18] ................................. | 314 | 936 | 489 | 1.4 | 9.5 | 3.6
- get_staticdata[40] ................................ | 9 | 3675 | 66 | 0.0 | 7.3 | 0.1
- get_staticdata[30] ................................ | 8 | 6282 | 85 | 0.0 | 9.0 | 0.1
- on_rightclick[29] ................................. | 252 | 5442 | 1021 | 0.0 | 32.6 | 3.9
- on_punch[16] ...................................... | 11 | 3646 | 269 | 0.0 | 2.4 | 0.6
- on_punch[38] ...................................... | 388 | 388 | 388 | 0.9 | 0.9 | 0.9
- on_activate[8] .................................... | 40 | 25572 | 296 | 0.0 | 19.0 | 0.4
- on_deactivate[7] .................................. | 1 | 353 | 3 | 0.0 | 0.9 | 0.0
- get_staticdata[22] ................................ | 8 | 6919 | 135 | 0.0 | 19.6 | 0.2
- on_punch[29] ...................................... | 85 | 153 | 119 | 0.4 | 1.0 | 0.7
- on_deactivate[5] .................................. | 1 | 508 | 5 | 0.0 | 1.2 | 0.0
- get_staticdata[34] ................................ | 8 | 4979 | 99 | 0.0 | 12.4 | 0.1
- on_deactivate[40] ................................. | 1 | 411 | 4 | 0.0 | 1.7 | 0.0
- get_staticdata[31] ................................ | 8 | 1033 | 56 | 0.0 | 1.9 | 0.1
- on_deactivate[4] .................................. | 1 | 411 | 3 | 0.0 | 3.5 | 0.0
- get_staticdata[13] ................................ | 9 | 1383 | 43 | 0.0 | 1.4 | 0.0
- on_punch[44] ...................................... | 11 | 1724 | 294 | 0.0 | 8.1 | 0.8
- on_player_hpchange[1] ............................. | 1 | 3613 | 2 | 0.0 | 7.9 | 0.0
- on_deactivate[2] .................................. | 1 | 3042 | 43 | 0.0 | 4.7 | 0.1
- on_deactivate[31] ................................. | 1 | 244 | 4 | 0.0 | 2.3 | 0.0
- on_rightclick[8] .................................. | 223 | 7237 | 862 | 0.3 | 13.8 | 2.6
- get_staticdata[32] ................................ | 10 | 4601 | 65 | 0.0 | 7.8 | 0.1
- on_activate[9] .................................... | 34 | 7412 | 211 | 0.0 | 9.0 | 0.3
- on_punch[45] ...................................... | 11 | 267 | 139 | 0.0 | 3.1 | 0.7
- get_staticdata[43] ................................ | 8 | 22450 | 143 | 0.0 | 8.2 | 0.2
- get_staticdata[33] ................................ | 16 | 4420 | 70 | 0.0 | 3.1 | 0.2
- on_step[48] ....................................... | 23 | 74140 | 391 | 0.0 | 76.6 | 1.5
- get_staticdata[36] ................................ | 8 | 15243 | 89 | 0.0 | 19.9 | 0.1
- on_rightclick[9] .................................. | 245 | 4204 | 651 | 0.2 | 24.1 | 3.1
- on_rightclick[44] ................................. | 230 | 14297 | 995 | 0.1 | 19.5 | 2.0
- get_staticdata[41] ................................ | 10 | 18997 | 113 | 0.0 | 37.2 | 0.2
- get_staticdata[23] ................................ | 8 | 14177 | 170 | 0.0 | 28.9 | 0.3
- on_punch[46] ...................................... | 25 | 663 | 285 | 0.0 | 5.1 | 1.3
- on_punch[24] ...................................... | 10 | 6685 | 455 | 0.0 | 10.6 | 1.5
- on_punch[34] ...................................... | 14 | 1220 | 311 | 0.0 | 11.2 | 3.4
- get_staticdata[42] ................................ | 12 | 4788 | 80 | 0.0 | 6.4 | 0.1
- on_rightclick[45] ................................. | 215 | 1949 | 573 | 0.3 | 10.2 | 2.7
- on_punch[7] ....................................... | 13 | 643 | 99 | 0.0 | 3.3 | 0.4
- on_punch[54] ...................................... | 11 | 1786 | 200 | 0.0 | 6.6 | 1.0
- on_punch[25] ...................................... | 22 | 1651 | 358 | 0.1 | 5.7 | 0.9
- on_punch[35] ...................................... | 12 | 222 | 157 | 0.0 | 0.4 | 0.2
- on_rightclick[14] ................................. | 250 | 1447 | 553 | 0.2 | 5.0 | 1.1
- on_rightclick[46] ................................. | 315 | 3639 | 1304 | 0.3 | 9.6 | 3.9
- on_punch[47] ...................................... | 9 | 2604 | 218 | 0.0 | 4.8 | 0.8
- on_punch[26] ...................................... | 200 | 200 | 200 | 4.6 | 4.6 | 4.6
- on_punch[17] ...................................... | 75 | 3545 | 211 | 0.0 | 11.2 | 0.6
- on_step[18] ....................................... | 23 | 95683 | 494 | 0.0 | 85.4 | 1.6
- on_activate[38] ................................... | 32 | 10376 | 132 | 0.0 | 11.3 | 0.4
- on_deactivate[41] ................................. | 1 | 3961 | 6 | 0.0 | 7.2 | 0.0
- on_punch[40] ...................................... | 9 | 4250 | 301 | 0.0 | 48.5 | 2.3
- on_rightclick[15] ................................. | 218 | 10988 | 990 | 0.1 | 7.1 | 1.4
- on_rightclick[34] ................................. | 758 | 758 | 758 | 4.9 | 4.9 | 4.9
- on_punch[9] ....................................... | 11 | 1599 | 187 | 0.0 | 3.8 | 0.7
- on_rightclick[24] ................................. | 287 | 293 | 290 | 1.0 | 2.0 | 1.5
- on_punch[10] ...................................... | 6 | 2529 | 265 | 0.0 | 9.1 | 1.3
- on_activate[49] ................................... | 33 | 6705 | 227 | 0.0 | 29.8 | 0.4
- on_punch[41] ...................................... | 13 | 621 | 230 | 0.0 | 1.2 | 0.4
- on_rightclick[16] ................................. | 227 | 11512 | 1063 | 0.1 | 14.2 | 2.0
- on_punch[8] ....................................... | 11 | 7961 | 228 | 0.0 | 25.5 | 0.7
- on_punch[27] ...................................... | 9 | 884 | 201 | 0.0 | 4.2 | 1.0
- on_rightclick[35] ................................. | 1014 | 3462 | 1670 | 2.7 | 13.1 | 6.5
- on_punch[11] ...................................... | 2 | 8567 | 483 | 0.0 | 11.4 | 1.0
- on_activate[29] ................................... | 39 | 956 | 146 | 0.0 | 2.2 | 0.2
- on_deactivate[28] ................................. | 1 | 145 | 2 | 0.0 | 0.6 | 0.0
- on_step[49] ....................................... | 24 | 61963 | 444 | 0.0 | 85.9 | 1.7
- on_punch[42] ...................................... | 12 | 1785 | 287 | 0.0 | 7.4 | 1.0
- on_activate[39] ................................... | 39 | 4902 | 262 | 0.0 | 6.8 | 0.3
- on_punch[20] ...................................... | 8 | 2202 | 237 | 0.0 | 7.6 | 0.9
- on_punch[30] ...................................... | 15 | 594 | 249 | 0.0 | 2.1 | 0.7
- on_rightclick[51] ................................. | 321 | 2608 | 778 | 0.4 | 9.1 | 2.6
- on_punch[12] ...................................... | 12 | 487 | 203 | 0.0 | 4.3 | 0.7
- on_deactivate[1] .................................. | 1 | 17623 | 71 | 0.0 | 22.9 | 0.1
- on_activate[48] ................................... | 34 | 22088 | 367 | 0.0 | 23.9 | 0.5
- on_activate[19] ................................... | 40 | 14623 | 265 | 0.0 | 27.7 | 0.5
- on_rightclick[37] ................................. | 285 | 5605 | 824 | 0.0 | 28.1 | 3.5
- on_step[39] ....................................... | 22 | 117346 | 493 | 0.0 | 82.1 | 1.7
- on_punch[21] ...................................... | 16 | 336 | 190 | 0.1 | 4.0 | 1.2
- on_punch[31] ...................................... | 10 | 806 | 205 | 0.0 | 10.1 | 1.6
- on_rightclick[27] ................................. | 298 | 1461 | 560 | 0.8 | 8.9 | 2.5
- on_activate[28] ................................... | 57 | 1566 | 238 | 0.0 | 2.0 | 0.4
- on_step[29] ....................................... | 27 | 43745 | 339 | 0.0 | 67.2 | 1.2
- on_deactivate[19] ................................. | 1 | 482 | 3 | 0.0 | 0.5 | 0.0
- on_rightclick[30] ................................. | 238 | 2877 | 556 | 0.2 | 18.3 | 2.6
- on_punch[32] ...................................... | 18 | 174 | 114 | 0.1 | 3.5 | 1.3
- on_rightclick[20] ................................. | 294 | 3780 | 760 | 0.2 | 20.3 | 3.5
- on_activate[2] .................................... | 96 | 124 | 111 | 0.4 | 1.6 | 0.9
- on_activate[18] ................................... | 34 | 54665 | 272 | 0.0 | 34.9 | 0.4
- on_step[19] ....................................... | 24 | 107071 | 563 | 0.0 | 85.9 | 2.0
- on_punch[23] ...................................... | 11 | 3400 | 413 | 0.0 | 33.3 | 3.7
- on_rightclick[31] ................................. | 267 | 4976 | 846 | 0.2 | 11.9 | 3.5
- on_punch[33] ...................................... | 8 | 2377 | 277 | 0.0 | 12.1 | 1.0
- get_staticdata[4] ................................. | 8 | 28346 | 394 | 0.0 | 32.1 | 0.4
- on_activate[5] .................................... | 30 | 7403 | 261 | 0.0 | 15.2 | 0.3
- on_rightclick[21] ................................. | 378 | 2346 | 1135 | 0.6 | 4.5 | 2.3
- on_deactivate[48] ................................. | 1 | 427 | 3 | 0.0 | 1.5 | 0.0
- on_step[8] ........................................ | 24 | 55051 | 470 | 0.0 | 77.9 | 1.7
- on_rightclick[23] ................................. | 296 | 6653 | 1212 | 0.0 | 19.8 | 4.7
- on_activate[4] .................................... | 1 | 15 | 4 | 0.0 | 0.1 | 0.0
- on_rightclick[22] ................................. | 269 | 1062 | 473 | 0.6 | 11.3 | 3.5
- on_deactivate[49] ................................. | 1 | 335 | 4 | 0.0 | 0.7 | 0.0
- on_rightclick[13] ................................. | 245 | 11129 | 740 | 0.2 | 38.2 | 2.6
- on_step[52] ....................................... | 23 | 192736 | 710 | 0.0 | 94.5 | 2.0
- on_activate[7] .................................... | 33 | 51583 | 897 | 0.0 | 37.9 | 1.0
- get_staticdata[6] ................................. | 9 | 10563 | 85 | 0.0 | 13.7 | 0.1
- on_rightclick[33] ................................. | 329 | 2282 | 719 | 0.4 | 17.6 | 5.1
- on_activate[20] ................................... | 40 | 2898 | 204 | 0.0 | 4.4 | 0.3
- on_step[53] ....................................... | 22 | 75503 | 594 | 0.0 | 82.7 | 2.3
- on_activate[6] .................................... | 32 | 14219 | 316 | 0.0 | 14.9 | 0.4
- on_activate[30] ................................... | 51 | 9342 | 272 | 0.0 | 14.7 | 0.4
- on_step[32] ....................................... | 25 | 44920 | 270 | 0.0 | 74.3 | 0.9
- on_activate[23] ................................... | 40 | 17382 | 251 | 0.0 | 31.7 | 0.4
- on_deactivate[34] ................................. | 3 | 3 | 3 | 0.0 | 0.0 | 0.0
- on_step[38] ....................................... | 76 | 3568 | 276 | 0.2 | 16.9 | 1.8
- on_step[22] ....................................... | 25 | 96007 | 272 | 0.0 | 76.5 | 1.0
- on_activate[17] ................................... | 36 | 15485 | 410 | 0.0 | 10.2 | 0.4
- get_staticdata[35] ................................ | 28 | 86 | 53 | 0.0 | 0.4 | 0.1
- on_activate[33] ................................... | 2 | 1580 | 24 | 0.0 | 1.1 | 0.0
- on_punch[51] ...................................... | 225 | 267 | 246 | 0.3 | 0.6 | 0.4
- on_rightclick[47] ................................. | 348 | 10918 | 945 | 0.1 | 29.2 | 4.4
- on_rightclick[17] ................................. | 270 | 7597 | 931 | 0.1 | 30.9 | 2.7
- on_punch[3] ....................................... | 141 | 256 | 198 | 0.1 | 2.4 | 1.2
- on_step[2] ........................................ | 27 | 14042 | 414 | 0.0 | 35.3 | 2.6
- on_step[33] ....................................... | 25 | 76118 | 368 | 0.0 | 80.3 | 1.6
- on_activate[22] ................................... | 34 | 8836 | 191 | 0.0 | 16.6 | 0.3
- get_staticdata[1] ................................. | 31 | 254 | 110 | 0.3 | 1.1 | 0.6
- on_step[51] ....................................... | 25 | 97850 | 941 | 0.0 | 79.0 | 2.9
- on_rightclick[41] ................................. | 233 | 5075 | 554 | 0.2 | 11.3 | 2.9
- on_rightclick[42] ................................. | 1104 | 1187 | 1156 | 0.0 | 15.8 | 6.6
- on_step[23] ....................................... | 23 | 51394 | 320 | 0.0 | 77.9 | 1.2
- on_activate[32] ................................... | 29 | 8434 | 243 | 0.0 | 24.6 | 0.4
- on_deactivate[47] ................................. | 1 | 9102 | 13 | 0.0 | 7.8 | 0.0
- on_rightclick[12] ................................. | 334 | 2579 | 624 | 0.4 | 15.5 | 3.7
- on_deactivate[8] .................................. | 1 | 506 | 4 | 0.0 | 1.3 | 0.0
- on_rightclick[32] ................................. | 683 | 1161 | 953 | 0.6 | 4.5 | 2.7
- on_rightclick[10] ................................. | 413 | 1942 | 678 | 0.3 | 8.0 | 2.4
- on_step[12] ....................................... | 25 | 93200 | 436 | 0.0 | 73.1 | 1.5
- on_punch[50] ...................................... | 10 | 1244 | 209 | 0.0 | 7.5 | 0.8
- on_step[30] ....................................... | 23 | 160338 | 472 | 0.0 | 77.5 | 2.0
- on_rightclick[26] ................................. | 243 | 711 | 459 | 0.1 | 3.7 | 1.7
- on_step[4] ........................................ | 60 | 132 | 104 | 0.1 | 0.5 | 0.3
- on_activate[25] ................................... | 31 | 12709 | 371 | 0.0 | 12.4 | 0.5
- get_staticdata[5] ................................. | 13 | 7075 | 112 | 0.0 | 7.8 | 0.2
- on_player_receive_fields[2] ....................... | 1 | 5253 | 2 | 0.0 | 17.9 | 0.0
- on_step[20] ....................................... | 29 | 54068 | 316 | 0.0 | 87.9 | 1.2
- on_rightclick[4] .................................. | 223 | 4700 | 658 | 0.0 | 21.6 | 3.0
- on_activate[40] ................................... | 84 | 134 | 111 | 0.0 | 0.2 | 0.1
- on_activate[35] ................................... | 28 | 9207 | 230 | 0.0 | 26.4 | 0.4
- on_step[16] ....................................... | 25 | 32674 | 243 | 0.0 | 55.7 | 0.6
- on_deactivate[29] ................................. | 1 | 959 | 3 | 0.0 | 1.2 | 0.0
- on_deactivate[18] ................................. | 1 | 319 | 3 | 0.0 | 2.0 | 0.0
- on_step[13] ....................................... | 20 | 263678 | 1312 | 0.0 | 90.0 | 4.2
- on_activate[50] ................................... | 33 | 10142 | 209 | 0.0 | 9.3 | 0.3
- on_step[31] ....................................... | 23 | 80348 | 452 | 0.0 | 81.1 | 1.9
- on_activate[24] ................................... | 49 | 6028 | 429 | 0.0 | 22.4 | 0.6
- on_step[17] ....................................... | 34 | 69798 | 722 | 0.0 | 75.5 | 2.0
- on_deactivate[27] ................................. | 1 | 320 | 4 | 0.0 | 0.4 | 0.0
- get_staticdata[2] ................................. | 12 | 14262 | 124 | 0.0 | 30.8 | 0.2
- on_step[47] ....................................... | 23 | 86809 | 569 | 0.0 | 94.5 | 2.1
- on_punch[52] ...................................... | 11 | 537 | 196 | 0.0 | 4.3 | 0.9
- on_rightclick[5] .................................. | 221 | 8664 | 697 | 0.1 | 28.3 | 3.0
- get_staticdata[11] ................................ | 9 | 12807 | 89 | 0.0 | 3.1 | 0.1
- on_player_receive_fields[3] ....................... | 1 | 4134 | 2 | 0.0 | 10.3 | 0.0
- on_activate[43] ................................... | 33 | 13038 | 295 | 0.0 | 19.0 | 0.5
- get_staticdata[20] ................................ | 9 | 25629 | 82 | 0.0 | 21.3 | 0.1
- on_activate[46] ................................... | 34 | 12154 | 236 | 0.0 | 12.3 | 0.3
- on_step[10] ....................................... | 25 | 68763 | 424 | 0.0 | 75.7 | 1.4
- get_staticdata[21] ................................ | 18 | 5973 | 186 | 0.0 | 11.5 | 0.3
- get_staticdata[3] ................................. | 12 | 15052 | 146 | 0.0 | 8.9 | 0.2
- on_activate[53] ................................... | 35 | 6929 | 315 | 0.0 | 12.8 | 0.6
- on_deactivate[43] ................................. | 1 | 2824 | 4 | 0.0 | 2.3 | 0.0
- on_rightclick[6] .................................. | 212 | 7605 | 679 | 0.1 | 26.8 | 4.4
- on_deactivate[9] .................................. | 1 | 12753 | 79 | 0.0 | 20.2 | 0.1
- globalstep[2] ..................................... | 1 | 16365 | 2 | 0.0 | 57.8 | 0.0
- on_deactivate[6] .................................. | 1 | 1405 | 9 | 0.0 | 4.9 | 0.0
- on_activate[34] ................................... | 33 | 11677 | 168 | 0.0 | 12.2 | 0.2
- on_activate[42] ................................... | 41 | 5036 | 245 | 0.0 | 8.4 | 0.4
- on_activate[37] ................................... | 35 | 23221 | 186 | 0.0 | 12.5 | 0.3
- on_step[14] ....................................... | 25 | 42977 | 285 | 0.0 | 59.0 | 0.9
- on_deactivate[21] ................................. | 1 | 315 | 4 | 0.0 | 1.5 | 0.0
- on_step[50] ....................................... | 20 | 46034 | 304 | 0.0 | 76.3 | 1.0
- on_step[40] ....................................... | 30 | 49387 | 333 | 0.0 | 78.2 | 1.4
- on_activate[52] ................................... | 31 | 2316 | 157 | 0.0 | 5.2 | 0.2
- on_item_eat[1] .................................... | 2 | 6654 | 12 | 0.0 | 32.3 | 0.1
- on_step[36] ....................................... | 31 | 39465 | 354 | 0.0 | 74.7 | 1.4
- on_activate[15] ................................... | 33 | 23277 | 589 | 0.0 | 35.6 | 0.7
- on_rightclick[7] .................................. | 330 | 22592 | 2756 | 0.3 | 41.4 | 5.1
- on_deactivate[3] .................................. | 1 | 4156 | 15 | 0.0 | 3.4 | 0.0
- on_step[6] ........................................ | 29 | 142547 | 437 | 0.0 | 77.0 | 1.5
- on_activate[27] ................................... | 37 | 17548 | 370 | 0.0 | 32.6 | 0.6
- on_activate[36] ................................... | 33 | 8210 | 161 | 0.0 | 10.9 | 0.2
- on_activate[41] ................................... | 34 | 16353 | 210 | 0.0 | 13.4 | 0.3
- globalstep[1] ..................................... | 6 | 98983 | 73 | 0.0 | 82.5 | 0.3
- on_step[15] ....................................... | 23 | 136322 | 818 | 0.0 | 82.3 | 2.3
- on_step[28] ....................................... | 26 | 80446 | 363 | 0.0 | 83.9 | 1.1
- get_staticdata[38] ................................ | 8 | 3161 | 103 | 0.0 | 9.6 | 0.2
- on_step[41] ....................................... | 23 | 98842 | 447 | 0.0 | 78.8 | 1.6
- on_deactivate[24] ................................. | 1 | 104 | 2 | 0.0 | 0.2 | 0.0
- on_punch[6] ....................................... | 13 | 914 | 62 | 0.0 | 3.7 | 0.3
- on_activate[55] ................................... | 40 | 19476 | 309 | 0.0 | 21.3 | 0.5
- on_deactivate[39] ................................. | 1 | 1790 | 3 | 0.0 | 0.9 | 0.0
- on_joinplayer[1] .................................. | 1 | 1693 | 8 | 0.0 | 1.2 | 0.0
- get_staticdata[46] ................................ | 8 | 11009 | 145 | 0.0 | 18.0 | 0.2
- on_activate[11] ................................... | 36 | 29036 | 226 | 0.0 | 46.7 | 0.3
- on_player_receive_fields[1] ....................... | 1 | 3298 | 3 | 0.0 | 15.9 | 0.0
- on_step[27] ....................................... | 40 | 19864 | 448 | 0.0 | 42.4 | 1.7
- on_activate[12] ................................... | 34 | 15092 | 293 | 0.0 | 14.5 | 0.3
- get_staticdata[12] ................................ | 9 | 9553 | 177 | 0.0 | 14.2 | 0.2
- on_step[37] ....................................... | 29 | 83703 | 287 | 0.0 | 73.8 | 1.2
- on_step[7] ........................................ | 24 | 231657 | 2928 | 0.0 | 92.9 | 9.7
- on_deactivate[11] ................................. | 1 | 10063 | 7 | 0.0 | 11.0 | 0.0
- on_activate[45] ................................... | 35 | 9068 | 192 | 0.0 | 4.9 | 0.2
- on_activate[54] ................................... | 39 | 8666 | 206 | 0.0 | 15.8 | 0.3
- on_step[26] ....................................... | 24 | 178716 | 989 | 0.0 | 85.6 | 3.7
- on_step[34] ....................................... | 25 | 31667 | 247 | 0.0 | 58.2 | 0.8
- on_activate[13] ................................... | 43 | 49399 | 855 | 0.0 | 28.4 | 1.0
- on_deactivate[37] ................................. | 1 | 314 | 4 | 0.0 | 0.7 | 0.0
- on_activate[26] ................................... | 2 | 294 | 21 | 0.0 | 0.5 | 0.0
- on_step[11] ....................................... | 24 | 52316 | 360 | 0.0 | 83.6 | 1.3
- on_player_receive_fields[6] ....................... | 1 | 1491 | 2 | 0.0 | 4.2 | 0.0
- on_step[24] ....................................... | 31 | 48500 | 475 | 0.0 | 86.9 | 2.3
- get_staticdata[7] ................................. | 14 | 7022 | 127 | 0.0 | 14.0 | 0.2
- on_step[43] ....................................... | 27 | 63484 | 398 | 0.0 | 69.1 | 1.1
- on_activate[47] ................................... | 37 | 17630 | 230 | 0.0 | 4.1 | 0.3
- on_activate[10] ................................... | 41 | 11282 | 300 | 0.0 | 18.7 | 0.4
- on_step[9] ........................................ | 23 | 58246 | 306 | 0.0 | 89.8 | 1.1
- on_leaveplayer[5] ................................. | 1 | 154 | 1 | 0.0 | 0.8 | 0.0
- on_step[46] ....................................... | 23 | 81933 | 600 | 0.0 | 87.4 | 2.0
- on_deactivate[26] ................................. | 1 | 518 | 4 | 0.0 | 4.2 | 0.0
- on_step[35] ....................................... | 24 | 81768 | 270 | 0.0 | 62.3 | 0.8
- on_deactivate[25] ................................. | 1 | 1997 | 6 | 0.0 | 3.9 | 0.0
- get_staticdata[48] ................................ | 9 | 7289 | 138 | 0.0 | 9.6 | 0.2
- get_staticdata[17] ................................ | 13 | 28895 | 95 | 0.0 | 26.8 | 0.1
- on_rightclick[50] ................................. | 219 | 12381 | 837 | 0.1 | 28.3 | 2.8
- on_activate[51] ................................... | 34 | 14042 | 342 | 0.0 | 13.0 | 0.5
- on_step[25] ....................................... | 20 | 101602 | 654 | 0.0 | 79.5 | 2.6
- on_activate[14] ................................... | 34 | 4930 | 233 | 0.0 | 6.2 | 0.3
- on_rightclick[28] ................................. | 236 | 1968 | 545 | 0.3 | 8.1 | 1.8
- on_player_receive_fields[7] ....................... | 1 | 7999 | 2 | 0.0 | 6.9 | 0.0
- on_leaveplayer[4] ................................. | 1 | 4051 | 5 | 0.0 | 9.4 | 0.0
- get_staticdata[27] ................................ | 9 | 13566 | 92 | 0.0 | 24.3 | 0.2
- on_rightclick[38] ................................. | 386 | 1064 | 685 | 1.5 | 10.2 | 5.8
- on_deactivate[16] ................................. | 1 | 214 | 3 | 0.0 | 0.6 | 0.0
- get_staticdata[28] ................................ | 10 | 5918 | 93 | 0.0 | 8.1 | 0.2
- get_staticdata[14] ................................ | 12 | 7392 | 137 | 0.0 | 4.7 | 0.2
- on_rightclick[3] .................................. | 263 | 8894 | 729 | 0.1 | 29.4 | 3.0
- on_rightclick[11] ................................. | 241 | 31544 | 1097 | 0.0 | 40.3 | 2.9
- on_deactivate[12] ................................. | 1 | 65 | 2 | 0.0 | 0.2 | 0.0
- on_activate[31] ................................... | 35 | 24859 | 220 | 0.0 | 15.3 | 0.4
- on_punch[53] ...................................... | 13 | 3457 | 240 | 0.0 | 8.9 | 0.8
- on_deactivate[22] ................................. | 1 | 3477 | 6 | 0.0 | 31.5 | 0.0
- on_punch[13] ...................................... | 10 | 2636 | 291 | 0.0 | 8.1 | 1.2
- on_punch[15] ...................................... | 13 | 4248 | 633 | 0.0 | 14.6 | 2.8
- on_player_receive_fields[4] ....................... | 1 | 1902 | 2 | 0.0 | 2.8 | 0.0
on_step[7] with 9.7 highest single, then some more around 5%, so
* would nice to know what number is what pet
* seams to be all petz at sum making a lot to reach this 33% CPU time in profiler
runs wrote:
Sat Mar 12, 2022 20:28
I will do configurable.

The problem of Petz in servers is to allow to players too much petz. If the players max of a server is X, i.e. 20, the max number of petz should be 80, no more.

Petz are entities as the players. So they have to be limited.
* same question I also had to server owner: can you count them, he told he can see it, and when I see some time the chat, some seam to have a lot
* I saw the limitation settings,
but he (we) have to find out which limitation is most helping keep the fun, but reduce the load. I don't use petz, but I mind about servers that are near not playable as of lag, and make all mt community itself loose gamer.
It should be noted that animal mods are very consuming. If you don't have a decent server forget about it.

The best thing to do is to limit / clean up the number of Petz in the world. Another thing is to treat petz not as pets, but as perishable products

There are already a lot of settings:

Code: Select all

##Population Control
#To no limit put: -1
max_tamed_by_owner = -1
This setting limits the petz that a player can have. Maybe 10 max for each player.

Code: Select all

##Lifetime
#No general lifetime = -1
lifetime = -1
#Individual lifetime variability (0.0-1.0)
lifetime_variability = 0.2
lifetime_only_non_tamed = false
lifetime_avoid_non_breedable = false
This setting add a lifetime in seconds for Petz. This make the Petz die, even for tamed petz. Furthermore you can refine it and set a long (even almost eternal) lifetime only for beloved petz as puppies/kitties (kitty_lifetime = 999999.) and a short one for less "important" ones as hamsters. In example, sheeps/pigs/etc. are a source of food, so kill them to get meat/wool as a real farmer, breed them, in short, work like a farmer because animals will die, they are not pets but products. As in real life, pets are not eternal.

In short, make the players take care of their Petz, not have them sitting there forgotten.

There is no other way, it is clear that the servers limit the number of players, but they think they can have thousands of animals. It is the same players as animals, they consume a lot of CPU.

And another thing, don't pretend to have animals with underpowered servers. If you want to go two hundred per hour buy a Ferrari not a utility car.

ZAAo
Member
Posts: 47
Joined: Tue Jul 27, 2021 16:15

Re: [Mod] Petz [v22.14] [petz]

by ZAAo » Post

runs wrote:
Tue Mar 08, 2022 16:13
I have a few ideas/requests/suggestions, to make it even more awesome... if I may be so bold as to express these :)

1. Maybe a blowgun with a sedative.
2. Really Petz are Baby-Adults, I mean can breed.
3. Petz are babies.
4. Yeah baby and bear cubs. Good idea.
5. The code to fetch the ball in ground is there uncommented. I have to anable it.
6. You already can capture Petz with lasso and net. Blowpipe yes.
7. Yes, the whistle works with all your Petz.
8. I want to create breeds. But I do not understand you want to say.
9. Renewable petz bowwl. Good idea.
10. Yes.
11. Yes. Lizard is cool.

PS I've seen a few times how some animals somehow get stuck on top of things (tree, built structure, etc.) and are apparently unable to get down by themselves, until a player builds a way down, by placing blocks or breaking down some of whatever the animal is stuck on... Could you look into this?

Petz are intrepid to climb but fear to down. Maybe squirrels should jump to the ground. Arboreal behaviours are very limited right now.
Thanks for taking the time to read and respond to my message and to consider my ideas.

I will try to clarify some of the ideas / suggestions I posted:

2. I think it will be great if we can also have adult dogs and adult cats, along with having the puppies and kittens in Petz.
3. Can the petz start out as babies, and then grow up and get older, and be changed from one stage of animal to the next? For example: We start with a puppy, then over time it changes to an adult dog?

4. It would be great to have some cute cubs for lion, bear, and tiger.
5. Awesome - then it will be much more fun to play with the pets with the ball. Can you also add a frisbee toy to throw for them?
6. Good.
7. Thanks.
8. When I said "option to set the breed of the puppy when you first get it ", I mean that you can choose what type of dog (also called its "breed") you want it to be. Example: Labrador, Collie, Maltese (small dog), Golden Retriever, Great Dane (very big), German Shepherd, etc. Some dog types are more aggressive and some bark more... So the behaviour of your dog will be different depending on which "breed" you choose when you spawn the puppy.

9. Pet food and bowls would be great :)
10. So will the pets automatically play with each other already, or is it a feature that still needs to be added?
11. Similar to my question in point nr 3... I wonder if you can let the pets start off as eggs or babies and then grow, changing to different life stages as time goes by.
12. I'm glad you also think it will be cool to have a lizard pet :)

JALdMIC
Member
Posts: 116
Joined: Tue Oct 08, 2019 18:49
In-game: None

Re: [Mod] Petz [v22.15] [petz]

by JALdMIC » Post

Este mod podria tener su propio subjuego estilo Harvest Moon .
I believe this mod can have his own subgame like Harvest Moon.

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

Re: [Mod] Petz [v22.15] [petz]

by runs » Post

v22.16

- Fixed a rare crash with the anthill in conjuction with the xp_redo and areas mods.

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

Re: [Mod] Petz [v22.14] [petz]

by runs » Post

ZAAo wrote:
Thu Mar 17, 2022 15:42
runs wrote:
Tue Mar 08, 2022 16:13
I have a few ideas/requests/suggestions, to make it even more awesome... if I may be so bold as to express these :)

1. Maybe a blowgun with a sedative.
2. Really Petz are Baby-Adults, I mean can breed.
3. Petz are babies.
4. Yeah baby and bear cubs. Good idea.
5. The code to fetch the ball in ground is there uncommented. I have to anable it.
6. You already can capture Petz with lasso and net. Blowpipe yes.
7. Yes, the whistle works with all your Petz.
8. I want to create breeds. But I do not understand you want to say.
9. Renewable petz bowwl. Good idea.
10. Yes.
11. Yes. Lizard is cool.

PS I've seen a few times how some animals somehow get stuck on top of things (tree, built structure, etc.) and are apparently unable to get down by themselves, until a player builds a way down, by placing blocks or breaking down some of whatever the animal is stuck on... Could you look into this?

Petz are intrepid to climb but fear to down. Maybe squirrels should jump to the ground. Arboreal behaviours are very limited right now.
Thanks for taking the time to read and respond to my message and to consider my ideas.

I will try to clarify some of the ideas / suggestions I posted:

2. I think it will be great if we can also have adult dogs and adult cats, along with having the puppies and kittens in Petz.
3. Can the petz start out as babies, and then grow up and get older, and be changed from one stage of animal to the next? For example: We start with a puppy, then over time it changes to an adult dog?

4. It would be great to have some cute cubs for lion, bear, and tiger.
5. Awesome - then it will be much more fun to play with the pets with the ball. Can you also add a frisbee toy to throw for them?
6. Good.
7. Thanks.
8. When I said "option to set the breed of the puppy when you first get it ", I mean that you can choose what type of dog (also called its "breed") you want it to be. Example: Labrador, Collie, Maltese (small dog), Golden Retriever, Great Dane (very big), German Shepherd, etc. Some dog types are more aggressive and some bark more... So the behaviour of your dog will be different depending on which "breed" you choose when you spawn the puppy.

9. Pet food and bowls would be great :)
10. So will the pets automatically play with each other already, or is it a feature that still needs to be added?
11. Similar to my question in point nr 3... I wonder if you can let the pets start off as eggs or babies and then grow, changing to different life stages as time goes by.
12. I'm glad you also think it will be cool to have a lizard pet :)
I will start creating new dog races.

ZAAo
Member
Posts: 47
Joined: Tue Jul 27, 2021 16:15

Re: [Mod] Petz [v22.14] [petz]

by ZAAo » Post

runs wrote:
Tue Mar 08, 2022 16:13

I will start creating new dog races.
Yay!!!! That will be soooooooooooooooo awesome! :D Thanks!!!

ZAAo
Member
Posts: 47
Joined: Tue Jul 27, 2021 16:15

Re: [Mod] Petz [v22.16] [petz]

by ZAAo » Post

I see the Petz mod has been updated, but the changelog file is still empty. Can you perhaps specify what has changed in each update, so we know what new features / additions / changes to look for? ;-)
E.g. v 1.25 - bugfixes: ... now does ..., or added ... pet... etc.?

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

Re: [Mod] Petz [v22.16] [petz]

by runs » Post

ZAAo wrote:
Fri Apr 08, 2022 06:16
I see the Petz mod has been updated, but the changelog file is still empty. Can you perhaps specify what has changed in each update, so we know what new features / additions / changes to look for? ;-)
E.g. v 1.25 - bugfixes: ... now does ..., or added ... pet... etc.?
Yes.

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

Re: [Mod] Petz [v22.16] [petz]

by runs » Post

v22.17

- Tarantulas can be captured with a net.

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

Re: [Mod] Petz [v22.17] [petz]

by runs » Post

v22.18
- Fix: Petz do not affected by Lava Source.

0siribix
Member
Posts: 123
Joined: Tue Nov 17, 2020 20:54
GitHub: 0siribix
In-game: 0siribix

Re: [Mod] Petz [v22.18] [petz]

by 0siribix » Post

Request:
Allow user named petz_aggro and petz_friendly to bypass protection spawn. I did this with mobs_redo before by checking for mobs_redo user in protection instead of checking protection for ""

So maybe add new settings called aggro_spawn_username and friendly_spawn_username with defaults to ""
Then when a monster wants to spawn you check minetest.is_protected(aggro_spawn_username, pos)
This can allow friendly monsters to spawn at server spawn or for players/admins to create monster farms

ZAAo
Member
Posts: 47
Joined: Tue Jul 27, 2021 16:15

Re: [Mod] Petz [v22.16] [petz]

by ZAAo » Post

runs wrote:
Mon Apr 11, 2022 22:05
ZAAo wrote:
Fri Apr 08, 2022 06:16
I see the Petz mod has been updated, but the changelog file is still empty. Can you perhaps specify what has changed in each update, so we know what new features / additions / changes to look for? ;-)
E.g. v 1.25 - bugfixes: ... now does ..., or added ... pet... etc.?
Yes.
Thanks.

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

Re: [Mod] Petz [v22.18] [petz]

by runs » Post

0siribix wrote:
Tue Apr 12, 2022 03:19
Request:
Allow user named petz_aggro and petz_friendly to bypass protection spawn. I did this with mobs_redo before by checking for mobs_redo user in protection instead of checking protection for ""

So maybe add new settings called aggro_spawn_username and friendly_spawn_username with defaults to ""
Then when a monster wants to spawn you check minetest.is_protected(aggro_spawn_username, pos)
This can allow friendly monsters to spawn at server spawn or for players/admins to create monster farms
I don't understand your question.

0siribix
Member
Posts: 123
Joined: Tue Nov 17, 2020 20:54
GitHub: 0siribix
In-game: 0siribix

Re: [Mod] Petz [v22.18] [petz]

by 0siribix » Post

runs wrote:
Wed Apr 13, 2022 08:58
I don't understand your question.
I would like to see these changes. If you prefer, I can fork and create a PR

Add settings

Code: Select all

	{
	name = "peacful_spawn_username",
	type = "string",
	split = false,
	default = "petz_spawn",
	},
	{
	name = "monster_spawn_username",
	type = "string",
	split = false,
	default = "monsterz_spawn",
	},
Currently in api_spawn you check for minetest.is_protected. This should be changed to check if spawning a peaceful mob or spawning a monster is allowed

Code: Select all

	local allow_peaceful = minetest.is_protected(spawn_pos, petz.peaceful_spawn_username)
	local allow_monsters = minetest.is_protected(spawn_pos, petz.monster_spawn_username)
	if petz.settings.no_spawn_in_protected and not (allow_peaceful or allow_monsters) then
		return
	end
This will allow to override spawn monsters or animals in protected areas. Protection owner only needs to add the username to the protection

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

Re: [Mod] Petz [v22.19] [petz]

by runs » Post

...
Last edited by runs on Thu May 12, 2022 08:52, edited 1 time in total.

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

Re: [Mod] Petz [v22.18] [petz]

by runs » Post

v2.19

- Fix: You can "stole" a pet if two sellers try to buy a pet at the same time.

Slightly
Member
Posts: 37
Joined: Sun May 15, 2022 22:29
In-game: Slightly

Re: [Mod] Petz [v22.19] [petz]

by Slightly » Post

What exactly are the affinity and wild settings doing in the /petz files for each of the petz?

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

Re: [Mod] Petz [v22.19] [petz]

by runs » Post

Slightly wrote:
Sun May 15, 2022 22:44
What exactly are the affinity and wild settings doing in the /petz files for each of the petz?
affinitty: only applies to the tamagochi mode. Set the affinitty to the owner. If low, the petz abandon its owner.
wild: aggressive animals that attck players. tough to tame.

Slightly
Member
Posts: 37
Joined: Sun May 15, 2022 22:29
In-game: Slightly

Re: [Mod] Petz [v22.19] [petz]

by Slightly » Post

Thank you. I thought perhaps it was related to the petz ability to stay near the bowl and bale, but it sounds like it doesn't. What does determine that?

I enjoy playing with your mod quite a bit and there are no kids anywhere around. :) I am tweaking a few things for personal use as I learn about lua and MT modding in general. I've attempted to stop the chimps from dying easily (they seem to be easily damaged in the trees and only have 10 hp, so thought affinity and wild might be helpful, but seems not. I have just upped the hp and changed from arboreal brain.

Also wanted pigeons to stick around a park, as they do irl. I have managed that and was thinking to make a node of "dirt with birdseed" for them to hang around.

A couple things I would like to look into: no female elephants seem to be spawning on a couple servers I know of and the genetics of ponies, after personally breeding them and keeping a log, don't seem to be related to parents. Color appears random, though some are more common than others. Any tips you have appreciated, but I am just using this as a learning project for myself, so np if not.

I also tweaked the textures to give most petz cuter eyes and expressions, more varied markings on the kittens, more choices of textures on the puppies, a truly adorable muddy pig in addition to a cuter clean one, and a few other minor changes here and there to make them more fun for me to play with. Overall, this has been a lot of fun and a nice inspiration for learning to mod. Thank you for sharing your work!

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

Re: [Mod] Petz [v22.19] [petz]

by runs » Post

Slightly wrote:
Mon May 16, 2022 20:56
Thank you. I thought perhaps it was related to the petz ability to stay near the bowl and bale, but it sounds like it doesn't. What does determine that?

I enjoy playing with your mod quite a bit and there are no kids anywhere around. :) I am tweaking a few things for personal use as I learn about lua and MT modding in general. I've attempted to stop the chimps from dying easily (they seem to be easily damaged in the trees and only have 10 hp, so thought affinity and wild might be helpful, but seems not. I have just upped the hp and changed from arboreal brain.

Also wanted pigeons to stick around a park, as they do irl. I have managed that and was thinking to make a node of "dirt with birdseed" for them to hang around.

A couple things I would like to look into: no female elephants seem to be spawning on a couple servers I know of and the genetics of ponies, after personally breeding them and keeping a log, don't seem to be related to parents. Color appears random, though some are more common than others. Any tips you have appreciated, but I am just using this as a learning project for myself, so np if not.

I also tweaked the textures to give most petz cuter eyes and expressions, more varied markings on the kittens, more choices of textures on the puppies, a truly adorable muddy pig in addition to a cuter clean one, and a few other minor changes here and there to make them more fun for me to play with. Overall, this has been a lot of fun and a nice inspiration for learning to mod. Thank you for sharing your work!
- I will check female elephants not spawning.
- Genetics its a science, in humans for example:
--Brown eyed parents can have blue eyed sons.
--Blue eyed parents always have blue or green eyed sons, never black or brown.
https://external-content.duckduckgo.com ... f=1&nofb=1
--etc
--So ponies have one pair of genes, dominant and recesive, the combination of them (4 possibilities) gets a result.
--The most recesive gen in ponies is "cimarron", so 2 cimarron parents always have "cimarron" sons.
--The most dominant gen is "brown", so 2 brown ponies have descendants of 100% brown or (75% brown-eyed and 25% another color) depending of the recesive ("hidden") gens.
--The rule to get pure races is: Breed ponies with the same color in sucessive generations til the descendants would be the same.

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

Re: [Mod] Petz [v22.19] [petz]

by runs » Post

v23

Image

- Mobkit was forked and tweaked. Goodbye mobkit. Welcome new kitZ engine.
- More fast than ever. x3 faster.
- 100% compatible with previous versions.


WARNING: Server owners should use this version discreetly, it may cause crashes.

User avatar
LMD
Member
Posts: 1386
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

Re: [Mod] Petz [v22.19] [petz]

by LMD » Post

runs wrote:
Sat May 28, 2022 09:35
v23

Image

- Mobkit was forked and tweaked. Goodbye mobkit. Welcome new kitZ engine.
- More fast than ever. x3 faster.
- 100% compatible with previous versions.
Please provide some data to back up your claim that kitZ is 3 times faster than mobkit. Which optimizations have you made?
My stuff: Projects - Mods - Website

Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 21 guests